maint: enable double-word-prohibiting rule
[gnulib.git] / ChangeLog
1 2012-01-17  Jim Meyering  <meyering@redhat.com>
2
3         maint: enable double-word-prohibiting rule
4         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
5         Exempt three files.
6
7 2012-01-17  Jim Meyering  <meyering@redhat.com>
8
9         maint: remove empty lines at EOF, but excluding modules/*
10         Apply syntax rules at home as well as abroad.  Most changes
11         were induced by running this:
12           make srcdir=. _build-aux=build-aux -f top/maint.mk \
13             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
14             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
15         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
16         Exempt modules/* and two binary files.
17         Also exempt doc/INSTALL*, per request from Bruno Haible.
18         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
19         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
20         * doc/Copyright/request-assign.future: Likewise.
21         * doc/Copyright/request-disclaim.changes: Likewise.
22         * doc/INSTALL: Likewise.
23         * doc/INSTALL.ISO: Likewise.
24         * doc/INSTALL.UTF-8: Likewise.
25         * doc/acl-cygwin.txt: Likewise.
26         * doc/acl-resources.txt: Likewise.
27         * doc/fdl-1.2.texi: Likewise.
28         * doc/fdl-1.3.texi: Likewise.
29         * doc/fdl.texi: Likewise.
30         * lib/argp-pin.c: Likewise.
31         * lib/round.c: Likewise.
32         * lib/unicase/u16-totitle.c: Likewise.
33         * lib/unictype/block_test.c: Likewise.
34         * lib/uninorm/canonical-decomposition.c: Likewise.
35         * m4/README: Likewise.
36         * m4/relocatable-lib.m4: Likewise.
37         * tests/test-isnand-nolibm.c: Likewise.
38         * tests/test-isnand.c: Likewise.
39         * tests/uninorm/NormalizationTest.txt: Likewise.
40
41 2012-01-17  Jim Meyering  <meyering@redhat.com>
42
43         maint: add framework to run syntax-check rules against gnulib sources
44         * cfg.mk: New file, to disable all currently-failing tests.
45         We'll enable them one by one, as they are made to pass.
46         * Makefile (sc_maint): New rule.
47
48 2012-01-21  Bruno Haible  <bruno@clisp.org>
49
50         stdint: Add support for Android.
51         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
52         include the system's <stdint.h>.
53         Reported by Simon Josefsson <simon@josefsson.org>.
54
55 2012-01-19  Jim Meyering  <meyering@redhat.com>
56
57         bootstrap: add bootstrap_post_import_hook
58         Bison does still need something like the gnulib_mk_hook whose
59         invocation I had to remove along with slurp in commit 767ccd40.
60         Technically, we could get along without it, but doing so would
61         have required living with a warning and a mandatory post-bootstrap
62         automake rerun.
63         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
64         (bootstrap_post_import_hook): New function.
65         Invoke it after gnulib-tool --import and before autoreconf.
66
67 2012-01-18  Jim Meyering  <meyering@redhat.com>
68
69         gitlog-to-changelog: don't use "no_"-prefixed variable name
70         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
71         to enable both --cluster and --no-cluster.  Change variable name,
72         s/\$no_cluster/$cluster/, and reverse usage to match.
73
74         gitlog-to-changelog: use "||", not "or" in expressions
75         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
76         expressions.
77
78 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
79
80         gitlog-to-changelog: new option --no-cluster
81         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
82         clustering of adjacent commit messages.
83
84 2012-01-17  Jim Meyering  <meyering@redhat.com>
85
86         maint: spell file systems with two words, not one
87         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
88         two words, not one.
89
90 2012-01-16  Jim Meyering  <meyering@redhat.com>
91
92         bootstrap: add a FIXME comment to ensure we eventually remove the hack
93         * build-aux/bootstrap (gnulib_tool_options): Add comment.
94
95 2012-01-16  Eric Blake  <eblake@redhat.com>
96
97         bootstrap: cater to autoconf 2.59
98         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
99         is not available.
100
101         bootstrap: properly check for libtool
102         * build-aux/bootstrap (libtoolize): Also run libtool when older
103         usage is detected.
104
105 2012-01-15  Bruno Haible  <bruno@clisp.org>
106
107         Improve support for MSVC 9.
108         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
109         clashes on MSVC.
110         * lib/fcntl.in.h: Likewise.
111         * lib/stdlib.in.h: Likewise.
112         * lib/sys_stat.in.h: Likewise.
113
114 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
115
116         gnupload: we hold the master copy of this script now
117         For motivation and more information, see:
118         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
119         * build-aux/gnupload: Make it clear in the heading comments that the
120         master copy of this file is maintained by gnulib.  Since we are at
121         it, bump its copyright year and ...
122         ($scriptversion): ... the date in its version.
123         ($usage): Patches and bug reports should be sent to the gnulib list,
124         not the automake one.
125         * config/srclist.txt: Don't try to sync 'gnupload' from automake
126         anymore.
127
128 2012-01-15  Bruno Haible  <bruno@clisp.org>
129
130         Fix module 'random'.
131         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
132         initstate, setstate are declared.
133
134 2012-01-14  Bruno Haible  <bruno@clisp.org>
135
136         Tests for module 'random'.
137         * modules/random-tests: New file.
138         * tests/test-random.c: New file, based on tests/test-random_r.c.
139
140         New module 'random'.
141         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
142         declarations.
143         * lib/random.c: New file, based on glibc/stdlib/random.c.
144         * m4/random.m4: New file.
145         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
146         HAVE_RANDOM.
147         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
148         * modules/random: New file.
149         * config/srclist.txt: Add an entry for random.c.
150         * doc/posix-functions/random.texi: Mention the 'random' module.
151         * doc/posix-functions/initstate.texi: Likewise.
152         * doc/posix-functions/setstate.texi: Likewise.
153         * doc/posix-functions/srandom.texi: Likewise.
154
155 2012-01-12  Bruno Haible  <bruno@clisp.org>
156
157         random_r: Use common idioms.
158         * lib/random_r.c: Include <stdlib.h> first.
159
160         random_r: Override incompatible API on AIX, OSF/1.
161         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
162         Override the system function if REPLACE_RANDOM_R is 1.
163         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
164         and OSF/1, set REPLACE_RANDOM_R.
165         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
166         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
167         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
168         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
169         * doc/glibc-functions/random_r.texi: Likewise.
170         * doc/glibc-functions/setstate_r.texi: Likewise.
171
172         random_r: Support for MSVC 9.
173         * lib/random_r.c: Include stdint.h, not inttypes.h.
174
175 2012-01-12  Eric Blake  <eblake@redhat.com>
176
177         inet_ntop: guard extra work by IF_LINT
178         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
179         better code generation when not checking for warnings.
180         Suggested by Paul Eggert and Jim Meyering.
181
182         strptime: fix regression on mingw
183         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
184         Fix regression.  Reported by Bruno Haible.
185
186 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
187             Bruno Haible  <bruno@clisp.org>
188
189         copy-file: add error-code-returning variant.
190         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
191         (qcopy_file_preserving): New declaration.
192         * lib/copy-file.c (qcopy_file_preserving): Renamed from
193         copy_file_preserving. Change return type to 'int'. Don't emit an error
194         message here.
195         (copy_file_preserving): New function.
196         * tests/test-copy-file.c: Include <stdlib.h>.
197         (main): Test qcopy_file_preserving if the environment variable
198         NO_STDERR_OUTPUT is set.
199         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
200         with NO_STDERR_OUTPUT
201         * tests/test-copy-file-2.sh: Likewise.
202
203 2012-01-10  Bruno Haible  <bruno@clisp.org>
204
205         copy-file: Use 'quote' module consistently.
206         * lib/copy-file.c (copy_file_preserving): Use quote().
207
208         copy-file: Refactor.
209         * lib/copy-file.c: Include quote.h.
210         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
211         message here.
212         * modules/copy-file (Depends-on): Add quote.
213
214         acl: Export qcopy_acl.
215         * lib/acl.h (qcopy_acl): New declaration.
216         * lib/copy-acl.c (qcopy_acl): Make non-static.
217
218         acl: Rename a local variable.
219         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
220
221         acl: Align return values of copy_acl and qcopy_acl.
222         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
223         maybe < -1.
224
225 2012-01-11  Eric Blake  <eblake@redhat.com>
226
227         strptime: silence gcc warnings
228         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
229         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
230         Reported by Daniel P. Berrange.
231
232         inet_ntop: silence gcc warning
233         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
234         Reported by Daniel P. Berrange.
235
236 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
237
238         getloadavg test: skip the test on GNU/Linux without /proc mounted
239         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
240         file.  When /proc is not mounted, it always fails with ENOENT.
241         * tests/test-getloadavg.c (main): Treat ENOENT return code from
242         getloadavg(3) the same way as ENOSYS and ENOTSUP.
243
244 2012-01-10  Bruno Haible  <bruno@clisp.org>
245
246         regex: Avoid link error on MSVC 9.
247         * modules/regex (Depends-on): Add wctype.
248
249 2012-01-10  Bruno Haible  <bruno@clisp.org>
250
251         doc: Mention --with-tests option.
252         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
253         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
254         --with-tests.
255         Reported by Reuben Thomas.
256
257 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
258
259         users.txt: order package names lexicographically.
260         * users.txt: Order package names lexicographically.
261
262 2012-01-10  Jim Meyering  <meyering@redhat.com>
263
264         maint.mk: fix description in comment
265         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
266
267         ignore-value: remove deprecated ignore_ptr function
268         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
269         * NEWS: Note this.
270
271 2012-01-09  Jim Meyering  <meyering@redhat.com>
272
273         test-init.sh: avoid a subshell
274         * tests/test-init.sh: Remove protective subshell.
275         Suggested by Bernhard Voelker.  While a subshell is normally
276         required to protect against older shells (Solaris, FreeBSD) that
277         warn about a missing program before performing redirection, the
278         shell-selection tests performed by init.sh probably exclude any
279         offending shell.
280
281 2012-01-08  Bruno Haible  <bruno@clisp.org>
282
283         setlocale tests: Avoid test failure on Solaris 11 2011-11.
284         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
285         variable.
286
287 2012-01-08  Bruno Haible  <bruno@clisp.org>
288
289         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
290         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
291         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
292         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
293         macro.
294         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
295         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
296         * lib/spawn_faction_addopen.c: Add workaround implementation if
297         HAVE_WORKING_POSIX_SPAWN.
298         * modules/spawn (Makefile): Substitute
299         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
300         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
301         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
302         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
303         (Depends-on): Update conditions.
304         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
305         the Solaris 11 bug.
306
307 2012-01-08  Bruno Haible  <bruno@clisp.org>
308
309         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
310         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
311         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
312         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
313         macro.
314         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
315         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
316         * lib/spawn_faction_adddup2.c: Add workaround implementation if
317         HAVE_WORKING_POSIX_SPAWN.
318         * modules/spawn (Makefile): Substitute
319         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
320         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
321         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
322         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
323         (Depends-on): Update conditions.
324         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
325         the Solaris 11 bug.
326
327 2012-01-08  Bruno Haible  <bruno@clisp.org>
328
329         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
330         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
331         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
332         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
333         HAVE_WORKING_POSIX_SPAWN.
334         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
335         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
336         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
337         * lib/spawn_faction_addclose.c: Add workaround implementation if
338         HAVE_WORKING_POSIX_SPAWN.
339         * modules/spawn (Makefile): Substitute
340         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
341         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
342         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
343         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
344         (Depends-on): Update conditions.
345         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
346         the Solaris 11 bug.
347
348 2012-01-08  Bruno Haible  <bruno@clisp.org>
349
350         doc: Update for Solaris 11 2011-11.
351         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
352         * m4/printf.m4: Update comments.
353
354 2012-01-08  Bruno Haible  <bruno@clisp.org>
355
356         mktime: Avoid compilation error on Solaris 11.
357         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
358
359 2012-01-08  Bruno Haible  <bruno@clisp.org>
360
361         doc: Small fix.
362         * doc/posix-headers/nl_types.texi: Correct platforms list.
363
364 2012-01-08  Simon Josefsson  <simon@josefsson.org>
365
366         Add lgpl-3.0 module.
367         * MODULES.html.sh (Support for building documentation): Add
368         lgpl-3.0.
369         * modules/lgpl-3.0: New file.
370
371 2012-01-08  Jim Meyering  <meyering@redhat.com>
372
373         select.c: indent with spaces, not TABs
374         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
375
376 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
377
378         quotearg: do not use grave accent for left quote
379         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
380         locale_quoting_style.
381         (quotearg_buffer_restyled): Fix example.
382         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
383
384 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
385
386         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
387         Most programs do not have translation catalogs for English and much
388         less separate catalogs for British and American English.  Drop the
389         suggestion to translators about these two, and provide it
390         automatically for Unicode locales.  Like most programs, even those
391         using American English, we use single quotation marks.  This conflicts
392         with the American typographic convention, but works better when you
393         cite the entire error message within double quotes.  It also tries not
394         to clash with established practice and with what non-gnulib programs
395         will usually do.
396         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
397         using an UTF-8 or GB-18030 locale.  The list of other locales with
398         quotes was provided by Bruno Haible.
399         (quotearg_buffer_restyled): Adjust instructions to translators.
400         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
401         text, since this would be wrong when using Unicode.
402         * modules/quotearg: Depend on c-strcaseeq.
403
404 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
405
406         quotearg: fix Wikipedia link
407         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
408
409 2012-01-07  Simon Josefsson  <simon@josefsson.org>
410
411         Fix for mingw with MSVC9.
412         * m4/ld-version-script.m4: Check that compiler rejects version
413         scripts with syntax errors.  Reported by Bruno Haible
414         <bruno@clisp.org>.
415
416 2012-01-06  Bruno Haible  <bruno@clisp.org>
417
418         Talk about "native Windows API", not "Woe32".
419         * lib/accept4.c: Update comments to mention native Windows.
420         * lib/execute.c: Likewise.
421         * lib/fatal-signal.c: Likewise.
422         * lib/localcharset.c: Likewise.
423         * lib/nanosleep.c: Likewise.
424         * lib/nl_langinfo.c: Likewise.
425         * lib/pclose.c: Likewise.
426         * lib/pipe-filter-gi.c: Likewise.
427         * lib/pipe-filter-ii.c: Likewise.
428         * lib/pipe.c: Likewise.
429         * lib/pipe2.c: Likewise.
430         * lib/popen.c: Likewise.
431         * lib/progreloc.c: Likewise.
432         * lib/relocatable.c: Likewise.
433         * lib/sigaction.c: Likewise.
434         * lib/sigprocmask.c: Likewise.
435         * lib/spawn-pipe.h: Likewise.
436         * lib/spawn-pipe.c: Likewise.
437         * lib/spawni.c: Likewise.
438         * lib/stat-time.h: Likewise.
439         * lib/w32spawn.h: Likewise.
440         * tests/test-isatty.c: Likewise.
441         * lib/config.charset: More comments.
442         * doc/gnulib-intro.texi: Mention native Windows.
443         * doc/posix-functions/_Exit_C99.texi: Likewise.
444         * doc/posix-headers/fcntl.texi: Likewise.
445
446 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
447
448         argp: Avoid crash if translator uses % characters in a translation.
449         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
450         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
451
452 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
453
454         doc: C11 and C++11 are now official
455         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
456         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
457         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
458         * modules/stdalign:
459         Replace references to draft C1X to C11, and to draft C++0X to C++11.
460
461 2012-01-06  Bruno Haible  <bruno@clisp.org>
462
463         uc-is-grapheme-break tests: Tweak.
464         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
465         message.
466
467 2012-01-06  Bruno Haible  <bruno@clisp.org>
468
469         test-init.sh: correct the test for diff -u
470         * tests/test-init.sh: Also redirect stdout to /dev/null.
471
472 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
473
474         Use ', not `, for quoting output.
475         * build-aux/announce-gen (usage, sizes, print_news_deltas)
476         (print_changelog_deltas, get_tool_versions, main program):
477         * build-aux/git-version-gen:
478         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
479         * build-aux/move-if-change (help):
480         * build-aux/useless-if-before-free (usage, main program):
481         * check-module (parse_module_file, usage)
482         (find_included_lib_files, check_module):
483         * lib/argmatch.c (main) [TEST]:
484         * lib/argp-help.c (_help):
485         * lib/getopt1.c (main) [TEST]:
486         * lib/git-merge-changelog.c (usage):
487         * lib/xstrtol-error.c (xstrtol_error):
488         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
489         * m4/argz.m4 (gl_FUNC_ARGZ):
490         * m4/bison.m4 (gl_BISON):
491         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
492         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
493         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
494         * m4/fpending.m4 (gl_PREREQ_FPENDING):
495         * m4/gc-random.m4 (gl_GC_RANDOM):
496         * m4/intl.m4 (gt_CHECK_DECL):
497         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
498         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
499         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
500         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
501         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
502         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
503         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
504         * tests/test-dirname.c (main):
505         * tests/test-getpass.c (main):
506         * tests/test-iconvme.c (main):
507         * tests/test-parse-datetime.c (LOG):
508         * tests/test-xstrtoimax.sh:
509         * tests/test-xstrtol.sh:
510         * tests/test-xstrtoll.sh:
511         * tests/test-xstrtoumax.sh:
512         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
513         * top/GNUmakefile (abort-due-to-no-makefile):
514         Quote 'like this', not `like this', as per the recent change to
515         the GNU coding standards.
516
517 2012-01-05  Bruno Haible  <bruno@clisp.org>
518
519         strtoimax: Don't force a replacement on systems where intmax_t is int.
520         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
521         'intmax_t' is not larger than 'int'.
522         Reported by Pádraig Brady <P@draigBrady.com>.
523
524 2012-01-05  Bruno Haible  <bruno@clisp.org>
525
526         doc: Mention NetBSD bugs.
527         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
528         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
529
530 2012-01-05  Bruno Haible  <bruno@clisp.org>
531
532         strtoumax tests: Enhance tests.
533         * tests/test-strtoumax.c (main): Add tests for large values.
534
535 2012-01-05  Bruno Haible  <bruno@clisp.org>
536
537         strtoimax: Work around AIX 5.1 bug.
538         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
539         definition.
540         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
541         Set HAVE_STRTOIMAX.
542         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
543         REPLACE_STRTOIMAX.
544         * modules/inttypes-incomplete (Makefile.am): Substitute
545         REPLACE_STRTOIMAX.
546         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
547         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
548         (Depends-on): Update conditions.
549         * tests/test-strtoimax.c (main): Add tests for large values.
550         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
551
552 2012-01-05  Bruno Haible  <bruno@clisp.org>
553
554         inttypes: Modernize.
555         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
556         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
557         (Makefile.am): Update inttypes.h rule.
558
559 2012-01-05  Jim Meyering  <meyering@redhat.com>
560
561         init.sh: don't waste a subshell just to redirect stderr
562         * tests/init.sh: In testing for diff -u and diff -c, use a
563         stderr-redirecting exec inside `...` rather than a subshell.
564
565         test-init.sh: avoid failure on HP-UX 11.00
566         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
567         resolves to diff -c or cmp.  Reported by Bruno Haible.
568
569 2012-01-05  Bruno Haible  <bruno@clisp.org>
570
571         Tests for module 'strtoull'.
572         * modules/strtoull-tests: New file.
573         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
574
575 2012-01-05  Bruno Haible  <bruno@clisp.org>
576
577         Tests for module 'strtoll'.
578         * modules/strtoll-tests: New file.
579         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
580
581 2012-01-05  Bruno Haible  <bruno@clisp.org>
582
583         Tests for module 'strtoul'.
584         * modules/strtoul-tests: New file.
585         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
586
587 2012-01-05  Bruno Haible  <bruno@clisp.org>
588
589         Tests for module 'strtol'.
590         * modules/strtol-tests: New file.
591         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
592
593 2012-01-04  Jim Meyering  <meyering@redhat.com>
594
595         test-init.sh: accommodate Solaris 5.10's different diff -u output
596         * tests/test-init.sh: Also exempt @@ lines from the comparison
597         of diff output, since Solaris 5.10 and GNU diff formats differ.
598         Reported by Stefano Lattarini.
599
600 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
601
602         test-posixtm: don't assume signed integer wraparound
603         * tests/test-posixtm.c (main): Don't assume wraparound semantics
604         after signed integer overflow.  Inspired by (though it may not
605         fix) Bruno Haible's bug report in
606         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
607
608         Spell out "Windows 9x" and "Windows XP".
609         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
610         "Windows 9x" and "WinXP" with "Windows XP".
611
612 2012-01-04  Jim Meyering  <meyering@redhat.com>
613
614         test-vc-list-files-cvs.sh: remove obsolete comment
615         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
616         double exit.  Now that's all encapsulated via skip_ and Exit.
617
618 2012-01-04  Bruno Haible  <bruno@clisp.org>
619
620         Talk about "native Windows API", not "Win32".
621         * lib/classpath.c: Update comments to mention native Windows.
622         * lib/csharpexec.c: Likewise.
623         * lib/dup2.c: Likewise.
624         * lib/error.c: Likewise.
625         * lib/fcntl.c: Likewise.
626         * lib/filename.h: Likewise.
627         * lib/findprog.c: Likewise.
628         * lib/get-rusage-as.c: Likewise.
629         * lib/get-rusage-data.c: Likewise.
630         * lib/getpagesize.c: Likewise.
631         * lib/javaexec.c: Likewise.
632         * lib/msvc-inval.c: Likewise.
633         * lib/msvc-nothrow.c: Likewise.
634         * lib/nanosleep.c: Likewise.
635         * lib/nonblocking.c: Likewise.
636         * lib/printf-parse.c: Likewise.
637         * lib/setlocale.c: Likewise.
638         * lib/sigaction.c: Likewise.
639         * lib/strerror_r.c: Likewise.
640         * lib/tmpdir.c: Likewise.
641         * lib/vasnprintf.c: Likewise.
642         * lib/w32spawn.h: Likewise.
643         * lib/waitpid.c: Likewise.
644         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
645         * m4/locale-ar.m4: Likewise.
646         * m4/locale-fr.m4: Likewise.
647         * m4/locale-ja.m4: Likewise.
648         * m4/locale-tr.m4: Likewise.
649         * m4/locale-zh.m4: Likewise.
650         * m4/printf.m4: Likewise.
651         * tests/test-cloexec.c: Likewise.
652         * tests/test-copy-acl.sh: Likewise.
653         * tests/test-copy-file.sh: Likewise.
654         * tests/test-file-has-acl.sh: Likewise.
655         * tests/test-set-mode-acl.sh: Likewise.
656         * tests/test-dup-safer.c: Likewise.
657         * tests/test-dup2.c: Likewise.
658         * tests/test-dup3.c: Likewise.
659         * tests/test-fcntl.c: Likewise.
660         * tests/test-nonblocking-pipe.h: Likewise.
661         * tests/test-nonblocking-socket.h: Likewise.
662         * tests/test-pipe.c: Likewise.
663         * tests/test-pipe2.c: Likewise.
664         * tests/test-spawn-pipe-child.c: Likewise.
665         * doc/acl-resources.txt: Likewise.
666         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
667         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
668         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
669         * lib/localcharset.c: Update comments to mention native Windows.
670         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
671         * lib/localename.c: Likewise.
672         * lib/progreloc.c: Likewise.
673         * lib/relocatable.c: Likewise.
674         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
675         (windows_compute_revents): Renamed from win32_compute_revents.
676         (windows_compute_revents_socket): Renamed from
677         win32_compute_revents_socket.
678         * lib/select.c: Update comments to mention native Windows.
679         (windows_poll_handle): Renamed from win32_poll_handle.
680         * m4/threadlib.m4: Update comments to mention native Windows.
681         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
682         --enable-threads=windows instead of --enable-threads=win32. Set
683         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
684         * lib/glthread/lock.h: Update comments to mention native Windows.
685         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
686         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
687         USE_WIN32_THREADS.
688         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
689         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
690         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
691         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
692         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
693         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
694         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
695         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
696         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
697         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
698         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
699         * tests/test-tls.c: Likewise.
700         Rationale:
701         Microsoft renamed the "Win32 API" to "Windows API", as it is available
702         on both 32-bit and 64-bit Windows systems.
703         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
704         line of distinction is between "native Windows" on one side and Unix/
705         POSIX systems on the other side. More details in
706         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
707         Suggested by Paul Eggert.
708
709 2012-01-03  Bruno Haible  <bruno@clisp.org>
710
711         isatty: Support for MSVC 9.
712         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
713         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
714         (_isatty_nothrow): New function.
715         (isatty): Use it instead of _isatty.
716         (IsConsoleHandle): Add comment, from Paolo Bonzini.
717         * lib/poll.c (IsConsoleHandle): Likewise.
718         * lib/select.c (IsConsoleHandle): Likewise.
719         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
720         (gl_PREREQ_ISATTY): New macro.
721         * modules/isatty (Depends-on): Add msvc-inval.
722         (configure.ac): Invoke gl_PREREQ_ISATTY.
723
724 2012-01-03  Jim Meyering  <meyering@redhat.com>
725
726         maint.mk: remove temporary transition aid from over 1.5 years ago
727         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
728         purpose was to aid in the transition (avoiding silent malfunction)
729         from that old name to the new _sc_search_regexp.  This shim was
730         added by commit 219c504b.
731
732         init.sh: do not try to accommodate compare arguments starting with "-"
733         * tests/init.sh (compare_dev_null_): Do not try to accommodate
734         compare arguments that start with "-".  Besides, we do not worry
735         about this when invoking diff or cmp; why start now with sed?
736         Using "--" to separate options from argument would trigger sed
737         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
738         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
739
740 2012-01-02  Bruno Haible  <bruno@clisp.org>
741
742         Enhance tests for module 'isatty'.
743         * modules/isatty-tests (Depends-on): Add pipe-posix.
744         * tests/test-isatty.c: Include <fcntl.h>.
745         (DEV_NULL): New macro.
746         (main): Test the resut of isatty() also on regular files, pipes, and
747         /dev/null.
748
749         New module 'isatty'.
750         * lib/unistd.in.h (isatty): New declaration.
751         * lib/isatty.c: New file, based on an idea of
752         Bastien Roucariès <roucaries.bastien@gmail.com>.
753         * m4/isatty.m4: New file.
754         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
755         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
756         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
757         REPLACE_ISATTY.
758         * modules/isatty: New file.
759         * doc/posix-functions/isatty.texi: Mention the new module.
760         Suggested by Paolo Bonzini.
761
762 2012-01-02  Bruno Haible  <bruno@clisp.org>
763
764         canonicalize: Tweak 2011-12-29 commit.
765         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
766         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
767
768 2012-01-02  Jim Meyering  <meyering@redhat.com>
769
770         gitlog-to-changelog: describe input syntax in --help output
771         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
772
773         gitlog-to-changelog: fix typo in --help: show backslash before email @
774         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
775         in sources, but not in actual output.
776
777 2011-12-30  Jim Meyering  <meyering@redhat.com>
778
779         gitlog-to-changelog: don't malfunction when name contains %-directive
780         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
781         in a name string cause trouble.  E.g., with a user name of "%s",
782         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
783
784 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
785
786         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
787         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
788         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
789         the "  (tiny change)" notation that is appended to the standard
790         ChangeLog "date  name  email" header line.
791
792 2012-01-01  Jim Meyering  <meyering@redhat.com>
793
794         test-framework-sh: init.sh: fix "make dist" failure
795         When using gnulib-tool's --with-tests option and any module that
796         depends on test-framework-sh, "make dist" would fail due to the
797         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
798         in the gltests directory, and not in the gllib/ directory.
799         One way to work around that is to move the EXTRA_DIST += init.sh
800         from the primary module to the -tests one:
801         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
802         * modules/test-framework-sh (Makefile.am): ...not here.
803         Reported by Tom G. Christensen in
804         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
805
806         version-etc: update copyright year reported by --version
807         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
808
809 2011-12-31  Pádraig Brady  <P@draigBrady.com>
810
811         canonicalize: only stat() if required
812         * lib/canonicalize.c (canonicalize_filename_mode):
813         Avoid calling l?stat() when both CAN_MISSING,
814         and CAN_NOLINKS are set, as we neither need
815         to resolve symlinks or test component existence.
816
817 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
818
819         doc: cover st_ino issues once; add OpenVMS etc.
820         * doc/posix-functions/stat.texi (stat):
821         * doc/posix-functions/lstat.texi (lstat):
822         * doc/posix-functions/fstatat.texi (fstatat):
823         * doc/posix-functions/fstat.texi (fstat):
824         Move general 'struct stat' stuff to sys_stat.texi,
825         leaving behind a pointer.
826         * doc/posix-headers/sys_stat.texi (sys/stat.h):
827         Merge duplicate info about 'struct stat' problems into here.
828         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
829         and suggest partial workarounds.
830
831         same-inode: port to OpenVMS
832         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
833         three st_ino values.
834
835 2011-12-30  Pádraig Brady  <P@draigBrady.com>
836
837         canonicalize: fix references to stat() and lstat()
838         * lib/canonicalize.c (canonicalize_filename_mode):
839         Ensure references always resolve to a replacement
840         function if required (even via a macro).
841
842 2011-12-30  Jim Meyering  <meyering@redhat.com>
843
844         gitlog-to-changelog: remove a little duplication
845         * build-aux/gitlog-to-changelog (main): Grep @lines once,
846         rather than twice.
847
848 2011-12-29  Pádraig Brady  <P@draigBrady.com>
849
850         canonicalize: add support for not resolving symlinks
851         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
852         indicate we don't want to follow symlinks.  Also
853         provide CAN_MODE_MASK to aid setting these existing
854         mutually exclusive values.
855         * lib/canonicalize.c (canonicalize_filename_mode):
856         Extract the flags from can_mode parameter, which
857         are currently just used to select between stat()
858         and lstat().  Also ensure that mutually exclusive
859         values are flagged immediately as invalid.
860         * tests/test-canonicalize.c: Verify symlinks are
861         not followed, and that invalid flag combinations
862         are diagnosed.
863
864 2011-12-25  Jim Meyering  <meyering@redhat.com>
865
866         gitlog-to-changelog: do not clump multi-paragraph entries
867         Identical header lines (date,name,email+coauthors) are suppressed,
868         thus putting all entries with those same characteristics under
869         a single header.  However, when a log entry consists of two or
870         more paragraphs, it may not be clear where it starts and ends.
871         This change makes it so that such an entry is always separated
872         from others by a header line, even when that header would
873         otherwise be suppressed.
874         * build-aux/gitlog-to-changelog: Implement the above.
875         Inspired by a related request from Stefano Lattarini in
876         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
877
878 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
879
880         announce-gen: fix `cmd' typo in diagnostic
881         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
882         diagnostic: a missing '$' meant that the command was not output.
883
884 2011-12-23  Jim Meyering  <meyering@redhat.com>
885
886         test-framework-sh: distribute init.sh
887         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
888         Otherwise, "make -C gnulib-tests check" (at least in grep) would
889         fail due to the lack of init.sh.
890
891         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
892         * modules/atexit-tests: Rather than listing tests/init.sh,
893         now that there's a module for it, simply depend on that new module.
894         * modules/closein-tests: Likewise.
895         * modules/exclude-tests: Likewise.
896         * modules/getcwd-tests: Likewise.
897         * modules/perror-tests: Likewise.
898         * modules/pread-tests: Likewise.
899         * modules/pwrite-tests: Likewise.
900         * modules/vc-list-files-tests: Likewise.
901         * modules/verify-tests: Likewise.
902         * modules/xalloc-die-tests: Likewise.
903         * modules/xstrtoimax-tests: Likewise.
904         * modules/xstrtol-tests: Likewise.
905         * modules/xstrtoll-tests: Likewise.
906         * modules/xstrtoumax-tests: Likewise.
907         * modules/yesno-tests: Likewise.
908
909 2011-12-22  Jim Meyering  <meyering@redhat.com>
910
911         test-framework-sh: add minimal tests of init.sh's compare function
912         * modules/test-framework-sh-tests: New file.
913         * tests/test-init.sh: New file.
914
915         test-framework-sh: new module
916         * modules/test-framework-sh: New file.
917         * MODULES.html.sh (Support for maintaining and releasing projects):
918         List it.
919
920         init.sh: do not emit simulated diff output to stderr
921         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
922
923 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
924
925         .gitignore: ignore gnulib.dvi and regex.info
926         * doc/.gitignore:add gnulib.dvi and regex.info
927
928 2011-12-22  Jim Meyering  <meyering@redhat.com>
929
930         init.sh: correct previous change
931         * tests/init.sh (compare): My previous change was wrong.
932         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
933
934         init.sh: avoid unwarranted test failure when using "set -e"
935         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
936         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
937         a use like "compare exp out" would get evoke an unconditional failure.
938
939 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
940
941         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
942         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
943         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
944         autoreconf that did not.
945         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
946         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
947
948 2011-12-17  Jim Meyering  <meyering@redhat.com>
949
950         bootstrap: remove some now-unneeded code
951         This script arose back when gnulib-tool was young.
952         Since then, it has seen improvements that render much of this
953         script unnecessary.  In particular, it can now make symlinks
954         to the files it uses.  Also, I no longer see as much value in
955         marking files as read-only via comments.
956         If you relied on the symlink-creation feature of the preceding
957         version of this script, you can get most of that functionality
958         by adding the --symlink option to the definition of
959         gnulib_tool_option_extras in your bootstrap.conf file.
960         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
961         Run autopoint and libtoolize *before* gnulib-tool.
962         After it, run an abbreviated autoreconf, rather than a loop around
963         all tools.
964         (slirp, bt_mark_as_generated): Remove functions.
965
966 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
967
968         ftoastr: fix typo
969         * lib/ftoastr.h: Fix misspelling in comment.
970
971 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
972
973         * top/README-release: fix punctuation.
974
975 2011-12-17  Jim Meyering  <meyering@redhat.com>
976
977         bootstrap: correct the recent buildreq change
978         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
979         had no effect.
980         * build-aux/bootstrap (buildreq): Bracket each search term with
981         "*...*", so that the shell "case" statement works as intended.
982         Add comments.
983
984 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
985
986         build: let bootstrap resort to wget when downloading .po files
987         * build-aux/bootstrap (download_po_files): Fallback to wget when
988         downloading the .po files via rsync fails.  This is necessary to
989         bootstrap from behind a strict firewall.
990
991 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
992
993         stdint: don't assume C++11 when compiling with g++
994         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
995         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
996         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
997         work also in C++ before C++11, as that improperly inhibits
998         generating a substitute stdint.h for that case.
999
1000 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1001
1002         alloca: protect comment from gnulib-tool
1003         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
1004         that gnulib-tool doesn't think it's a license, and munge it to
1005         say "GCC version 3".
1006
1007 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
1008
1009         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
1010         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
1011         $(abs_top_builddir) instead of $(top_builddir).
1012
1013 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
1014
1015         strftime-tests: also test nanoseconds
1016         * tests/test-strftime.c (T): Add a test of %N.
1017
1018 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
1019
1020         inttypes, stdint: add C++11 support
1021         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
1022         when including inttypes.h and stdint.h.  Support this change to
1023         the standard.
1024         * doc/posix-headers/inttypes.texi (inttypes.h):
1025         * doc/posix-headers/stdint.texi (stdint.h): Document this.
1026         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
1027         Define if not defined already, for the benefit of pre-C++11 hosts.
1028         Define the standard format macros (e.g., PRId8) always.
1029         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
1030         Likewise, if __cpluspus.  Define the standard constant and limit
1031         macros (e.g., INT8_C, INT8_MAX) always.
1032         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
1033         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
1034         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
1035         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
1036         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
1037         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
1038         Likewise.
1039
1040 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
1041
1042         nonblocking tests: Fix test failure on Linux/PPC.
1043         Suggested by Prerna Saxena in
1044         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
1045         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
1046         Set to 1100000.
1047
1048 2011-12-12  Jim Meyering  <meyering@redhat.com>
1049
1050         argmatch: don't hard-code `' when listing valid option arguments
1051         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
1052         use the quote function to add quotes.  Use fputs rather than
1053         fprintf for the format string with no format directive.
1054
1055 2011-12-07  Eric Blake  <eblake@redhat.com>
1056
1057         bootstrap: detect tools required by gnulib-tool
1058         * build-aux/bootstrap (buildreq): Provide minimum implicit
1059         dependencies.
1060         * DEPENDENCIES: Mention patch as a prereq.
1061
1062 2011-12-04  Bruno Haible  <bruno@clisp.org>
1063
1064         sethostname: Port to Windows platforms.
1065         * lib/sethostname.c: Provide an alternate implementation for Windows
1066         platforms.
1067         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
1068         (main): Skip the test if sethostname() fails with EPERM. On Windows
1069         platforms, don't check the result of gethostname().
1070
1071 2011-12-04  Bruno Haible  <bruno@clisp.org>
1072             Jim Meyering  <meyering@redhat.com>
1073
1074         tests: Avoid spurious error message on platforms without mktemp program.
1075         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
1076
1077 2011-12-04  Bruno Haible  <bruno@clisp.org>
1078
1079         sethostname: Fix documentation.
1080         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
1081         "not fixed" section.
1082
1083 2011-12-03  Bruno Haible  <bruno@clisp.org>
1084
1085         gnulib-tool: Verify that the License field is present and non-empty.
1086         * gnulib-tool (func_get_license_raw): New function, extracted from
1087         func_get_license.
1088         (func_get_license): Use it. Warn if the module is not a test module and
1089         has no license.
1090         Suggested by Jim Meyering.
1091
1092 2011-12-03  Bruno Haible  <bruno@clisp.org>
1093
1094         sethostname tests: Fix link error on mingw.
1095         * tests/test-sethostname1.c: New file, extracted from
1096         tests/test-sethostname.c.
1097         * tests/test-sethostname2.c: New file, extracted from
1098         tests/test-sethostname.c.
1099         * tests/test-sethostname.c: Remove file.
1100         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
1101         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
1102         (Depends-on): Add gethostname.
1103         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
1104         Link the latter with $(GETHOSTNAME_LIB).
1105
1106         sethostname tests: Fix compilation error on mingw.
1107         * tests/test-sethostname.c: Don't include <sys/types.h>.
1108         (geteuid): Use a dummy value without uid_t.
1109         * modules/sethostname-tests (Depends-on): Remove sys_types.
1110
1111         sethostname tests: Avoid a gcc warning.
1112         * tests/test-sethostname.c (main): Remove an unused variable.
1113
1114         Tweak last commit.
1115         * modules/sethostname-tests (Files): Sort by decreasing importance.
1116         (configure.ac): Check for geteuid.
1117         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
1118         the test when there's nothing to test. Drop an unnecessary cast.
1119         Improve an error message. Verify that the final sethostname() call
1120         succeeds.
1121
1122 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1123
1124         Add a test suite for the sethostname module.
1125         * modules/sethostname-tests: New file.  A test program
1126         for the sethostname module.
1127         * tests/test-sethostname.c: Likewise.
1128
1129 2011-12-03  Bruno Haible  <bruno@clisp.org>
1130
1131         Tweak last commit.
1132         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
1133         Fix preprocessor directives indentation. Fix typos.
1134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
1135         * modules/unistd (Makefile): Likewise.
1136
1137 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1138
1139         Integrate the sethostname module into unistd.
1140         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
1141         into the unistd.h header.
1142         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
1143         preprocessor directives.
1144         * modules/unistd: Setup the Makefile substitutions of the
1145         SETHOSTNAME preprocessor directives.
1146
1147 2011-12-03  Bruno Haible  <bruno@clisp.org>
1148
1149         Tweak last commit.
1150         * lib/sethostname.c: Don't include <string.h>.
1151         (sethostname): No need to copy the argument string to the stack. Don't
1152         call clearerr. Preserve errno when fprintf failed.
1153         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
1154         Don't invoke AC_REPLACE_FUNCS.
1155         * modules/sethostname (Link): Remove empty section.
1156         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
1157         failure problem.
1158
1159 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1160
1161         New module 'sethostname'.
1162         * lib/sethostname.c (sethostname): New file.  Provide sethostname
1163         for systems that lack it.
1164         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
1165         sethostname declaration and function.
1166         * modules/sethostname: New file.  Define the sethostname module.
1167
1168 2011-12-03  Bruno Haible  <bruno@clisp.org>
1169
1170         Tweak last commit.
1171         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
1172
1173 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1174
1175         Split the HOST_NAME_MAX detection into a separate m4 macro.
1176         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
1177         macro so it can be used by the pending sethostname module.
1178
1179 2011-12-03  Bruno Haible  <bruno@clisp.org>
1180
1181         Fix module descriptions syntax.
1182         * modules/argv-iter (License): Fix syntax.
1183         * modules/di-set (License): Likewise.
1184         * modules/ino-map (License): Likewise.
1185         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
1186
1187 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
1188
1189         stdalign: port to Clang 3.0
1190         Problem reported by Simon Josefsson in
1191         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
1192         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
1193         which has <stdalign.h> but which does not define alignof.
1194         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
1195
1196 2011-12-01  Eric Blake  <eblake@redhat.com>
1197
1198         mktempd: silence dd usage
1199         * build-aux/mktempd (rand_bytes): Silence dd.
1200
1201 2011-11-30  Simon Josefsson  <simon@josefsson.org>
1202
1203         manywarnings: Don't mention gcc version in docstring.
1204         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
1205         Jim Meyering <meyering@redhat.com>.
1206
1207 2011-11-30  Jim Meyering  <meyering@redhat.com>
1208
1209         hash: mark a few floating point constants with "f" suffix
1210         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
1211         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
1212         floating point constants with "f", since they're destined to be
1213         saved/used as "float"s.
1214
1215 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
1216
1217         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
1218         * tests/test-float.c (test_long_double): Correct and re-enable the
1219         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
1220
1221 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
1222
1223         Avoid subtracting two pointers that don't point into the same block.
1224         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
1225         only pointers into the same memory block are subtracted. We cannot
1226         assume that sizeof (ptrdiff_t) == sizeof (void *).
1227
1228 2011-11-29  Eric Blake  <eblake@redhat.com>
1229
1230         maint.mk: add syntax check for use of compare from init.sh
1231         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
1232         moved here from coreutils.
1233
1234         manywarnings: drop -Wunsuffixed-float-constants
1235         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
1236         '1.0D', which is the only way to silence this warning for 'double'.
1237
1238 2011-11-29  Jim Meyering  <meyering@redhat.com>
1239
1240         hash: mark compute_bucket_size with the pure attribute
1241         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
1242
1243         quotearg, propername: correct pragma guard expression
1244         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
1245         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
1246
1247 2011-11-28  Jim Meyering  <meyering@redhat.com>
1248
1249         propername: do not mark proper_name with the const attribute
1250         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
1251         since it examines data pointed to by its parameter.
1252         * lib/propername.c (proper_name): Instead, add a pragma to suppress
1253         the suggestion from -Wsuggest-attribute=const.
1254
1255         propername: mark one more function as const
1256         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
1257
1258 2011-11-27  Jim Meyering  <meyering@redhat.com>
1259
1260         mark functions with const and pure attributes
1261
1262         Mark functions per suggestions from gcc-4.6 when using these options:
1263         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
1264         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
1265         Follow these guidelines: when possible, apply the attribute to
1266         an extern declaration, not to its definition.  Apply it to the
1267         definition only when the definition is static.
1268         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
1269         * lib/argv-iter.h (argv_iter_n_args): Likewise.
1270         * lib/base64.h (isbase64): Likewise.
1271         * lib/basename-lgpl.c (last_component, base_len): Likewise.
1272         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
1273         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
1274         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
1275         (c_tolower, c_toupper): Likewise.
1276         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
1277         * lib/chdir-long.c (find_non_slash): Likewise.
1278         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
1279         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
1280         * lib/file-type.h (file_type): Likewise.
1281         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
1282         * lib/filevercmp.c (verrevcmp): Likewise.
1283         * lib/freadahead.h (freadahead): Likewise.
1284         * lib/fts.c (fts_maxarglen): Likewise.
1285         * lib/hash-pjw.h (hash_pjw): Likewise.
1286         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
1287         * lib/hash.c (is_prime, next_prime): Likewise.
1288         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
1289         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
1290         (hash_table_ok, hash_get_first, hash_string): Likewise.
1291         (compute_bucket_size): Likewise.
1292         * lib/i-ring.h (i_ring_empty): Likewise.
1293         * lib/isnan.c (isnanl): Likewise.
1294         * lib/math.h (isnanl, rpl_isnanl): Likewise.
1295         * lib/memcasecmp.h (memcasecmp): Likewise.
1296         * lib/memchr2.h (memchr2): Likewise.
1297         * lib/memcmp2.h (memcmp2): Likewise.
1298         * lib/parse-datetime.y (lookup_zone): Likewise.
1299         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
1300         [!WINDOWS_SOCKETS]: Likewise.
1301         * lib/strnlen1.h (strnlen1): Likewise.
1302         * lib/uniwidth.in.h (uc_width): Likewise.
1303         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
1304         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
1305         (quoting_options_from_style): Add a comment.
1306         * lib/propername.h (proper_name): Add a comment.
1307
1308 2011-11-27  Bruno Haible  <bruno@clisp.org>
1309
1310         Remove unused macros from !_LIBC code in glibc-borrowed files.
1311         * lib/fnmatch.c (STRCOLL): Remove macro.
1312         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
1313         * lib/glob.c (__stat, __readdir64): Remove macros.
1314         * lib/tempname.c (__open64, __xstat64): Remove macros.
1315         Suggested by Paul Eggert.
1316
1317 2011-11-27  Bruno Haible  <bruno@clisp.org>
1318
1319         getcwd: Fix link error on MSVC 9.
1320         * modules/getcwd (Depends-on): Add readdir, rewinddir.
1321
1322 2011-11-27  Bruno Haible  <bruno@clisp.org>
1323
1324         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
1325         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
1326         HAVE_OPENDIR is 0.
1327         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
1328         HAVE_CLOSEDIR is 0.
1329         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
1330         is 0.
1331         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
1332
1333 2011-11-27  Bruno Haible  <bruno@clisp.org>
1334
1335         getcwd: Fix bug from 2011-08-17.
1336         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
1337         platforms that need it.
1338         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
1339         code of 4 to be a failure, not a success. This ensures that
1340         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
1341
1342 2011-11-27  Bruno Haible  <bruno@clisp.org>
1343
1344         binary-io tests: Avoid test failure on mingw when libtool is used.
1345         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
1346         Don't verify the size of t-bin-out1.tmp here.
1347         * tests/test-binary-io.sh: Verify it here.
1348         Reported by Simon Josefsson.
1349
1350 2011-11-26  Bruno Haible  <bruno@clisp.org>
1351
1352         Fix conflict between two instantiations of module 'unistd'.
1353         * gnulib-tool (func_emit_autoconf_snippet): Substitute
1354         ${include_guard_prefix} also in the autoconf snippet.
1355         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
1356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
1357         GNULIB_UNISTD_H_GETOPT.
1358         * modules/getopt-posix (configure.ac): Set the
1359         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
1360         * modules/getopt-gnu (configure.ac): Likewise.
1361         * modules/unistd (Makefile.am): Change the substitution value of
1362         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
1363         Reported by Simon Josefsson.
1364
1365 2011-11-25  Bruno Haible  <bruno@clisp.org>
1366
1367         pagealign_alloc: Doc and comments.
1368         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
1369         module.
1370         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
1371
1372 2011-11-25  Jim Meyering  <meyering@redhat.com>
1373
1374         test-update-copyright.sh: avoid false-positive failure
1375         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
1376         around false positive failure on Cygwin/Windows.  The latter was
1377         matching erroneously-created files with names like
1378         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
1379
1380 2011-11-25  Simon Josefsson  <simon@josefsson.org>
1381
1382         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
1383         * m4/valgrind-tests.m4: Check that the parameters that will be
1384         used works, not just a subset of them.  Reported by Bruno Haible
1385         <bruno@clisp.org>.
1386
1387 2011-11-24  Jim Meyering  <meyering@redhat.com>
1388
1389         test-stdalign.c: comment out long double tests
1390         * tests/test-stdalign.c: Don't try to reduce alignment of long double
1391         variables.  That provokes errors like this from gcc-4.7.0 20111124:
1392         error: '_Alignas' specifiers cannot reduce alignment of \
1393         'static_longdouble_alignas'.
1394
1395 2011-11-22  Jim Meyering  <meyering@redhat.com>
1396
1397         init.sh: make "compare /dev/null FILE" output more readable
1398         * tests/init.sh (compare_): Document the preferred order of arguments.
1399         (emit_diff_u_header_): New function.
1400         (compare_dev_null_): Emit a simulated diff, rather than just the
1401         contents of the unexpected file.  Suggestion from Bruno Haible.
1402
1403 2011-11-21  Jim Meyering  <meyering@redhat.com>
1404             Eric Blake  <eblake@redhat.com>
1405
1406         init.sh: work around OSF/1 5.1's mishandling of /dev/null
1407         * tests/init.sh: Make our compare function slightly more portable.
1408         Reported by Bruno Haible in
1409         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
1410
1411 2011-11-21  Simon Josefsson  <simon@josefsson.org>
1412
1413         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
1414         before using it, in code that ends up in config.h.
1415
1416 2011-11-20  Bruno Haible  <bruno@clisp.org>
1417
1418         getcwd: Work around getcwd bug on AIX 5..7.
1419         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
1420         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
1421         Use a different value for gl_cv_func_getcwd_path_max. Move the
1422         definition of HAVE_PARTLY_WORKING_GETCWD from here...
1423         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
1424         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
1425         Define HAVE_MINIMALLY_WORKING_GETCWD.
1426         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
1427         where it is not even minimally working, that is, on AIX.
1428         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
1429         m4/getcwd-path-max.m4.
1430         (main): Update exit code computation.
1431         * doc/posix-functions/getcwd.texi: Mention list of platforms where
1432         getcwd does not handle long file names.
1433
1434 2011-11-20  Bruno Haible  <bruno@clisp.org>
1435
1436         getcwd: Fix bug from 2009-09-10.
1437         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
1438         like "no".
1439
1440 2011-11-20  Simon Josefsson  <simon@josefsson.org>
1441
1442         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
1443
1444 2011-11-20  Bruno Haible  <bruno@clisp.org>
1445
1446         fma tests: Avoid shadowing local variables.
1447         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
1448         expected.
1449
1450 2011-11-20  Bruno Haible  <bruno@clisp.org>
1451
1452         copysignf tests: Fix.
1453         * tests/test-copysignf.c: Fix signature check.
1454
1455 2011-11-20  Bruno Haible  <bruno@clisp.org>
1456
1457         fma: Remove unused code.
1458         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
1459         unused macros.
1460
1461 2011-11-20  Bruno Haible  <bruno@clisp.org>
1462
1463         sethostname: Fix doc about AIX.
1464         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
1465         sethostname; it has it.
1466
1467         sethostname: Mention more portability problems.
1468         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
1469         problem.
1470         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1471
1472 2011-11-19  Bruno Haible  <bruno@clisp.org>
1473
1474         Depend on module fcntl-h when AT_FDCWD is used.
1475         * modules/utimens (Depends-on): Add fcntl-h.
1476         * modules/areadlinkat (Depends-on): Likewise.
1477         * modules/areadlinkat-with-size (Depends-on): Likewise.
1478         * modules/faccessat (Depends-on): Likewise.
1479         * modules/fchmodat (Depends-on): Likewise.
1480         * modules/fchownat (Depends-on): Likewise.
1481         * modules/getcwd (Depends-on): Likewise.
1482         * modules/mkdirat (Depends-on): Likewise.
1483         * modules/mkfifoat (Depends-on): Likewise.
1484         * modules/readlinkat (Depends-on): Likewise.
1485         * modules/symlinkat (Depends-on): Likewise.
1486         * modules/dup2-tests (Depends-on): Likewise.
1487         * modules/fdutimensat-tests (Depends-on): Likewise.
1488         * modules/futimens-tests (Depends-on): Likewise.
1489
1490 2011-11-19  Bruno Haible  <bruno@clisp.org>
1491
1492         euidaccess: Update a comment.
1493         * lib/euidaccess.c: Update comment about platforms with faccessat.
1494
1495 2011-11-19  Bruno Haible  <bruno@clisp.org>
1496
1497         openat: Fix file list.
1498         * modules/openat (Files): Remove lib/at-func.c.
1499
1500 2011-11-19  Bruno Haible  <bruno@clisp.org>
1501
1502         fstatat: Simplify.
1503         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
1504         gnulib should define rpl_fstatat, there is a
1505         "#define fstatat rpl_fstatat" in <sys/stat.h>.
1506
1507 2011-11-19  Bruno Haible  <bruno@clisp.org>
1508
1509         Ensure 'inline' can be used in tests/test-utimens-common.h.
1510         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
1511         * modules/futimens-tests (configure.ac): Likewise.
1512         * modules/utimens-tests (configure.ac): Likewise.
1513         * modules/utimensat-tests (configure.ac): Likewise.
1514
1515 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1516
1517         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
1518         not hash_insert0.
1519         (hash_insert_if_absent): Doc fix.
1520
1521 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1522
1523         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
1524
1525 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1526
1527         test-getcwd: disambiguate exit status
1528         * tests/test-getcwd.c (test_long_name): Return 0..7.
1529         (main): Exit with an unambiguous exit status.  The old
1530         code yielded a mysterious mixture of two failure codes.
1531
1532         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
1533         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
1534         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
1535         rpl_fstatat or fstatat.  This should fix the other problem
1536         reported by Kai Habel in
1537         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1538         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
1539         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
1540         and I reproduced it on a Solaris 8 host we still have in production.
1541
1542 2011-11-18  Jim Meyering  <meyering@redhat.com>
1543
1544         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
1545         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
1546         Add a sentence to the comment.
1547         (hash_insert0): New function that simply calls hash_insert_if_absent.
1548         * lib/hash.h (hash_insert_if_absent): Declare it.
1549         (hash_insert0): Add deprecation attribute.
1550         (_GL_ATTRIBUTE_DEPRECATED): Define.
1551         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
1552         not hash_insert0.
1553         * NEWS: Mention it, even though it's not really an incompatible change.
1554
1555 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
1556
1557         openat: avoid compilation failure due to lack of <errno.h> inclusion
1558         * lib/openat.c: Include <errno.h>.
1559
1560 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1561
1562         * modules/getcwd (Depends-on): Add fdopendir.
1563         This fixes one of the two problems reported by Kai Habel in
1564         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1565
1566         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
1567         stdalign problem reported by Ian Beckwith in
1568         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
1569         * modules/crypto/gc-arcfour (Depends-on):
1570         Depend conditionally on crypto/arcfour.
1571         * modules/crypto/gc-arctwo (Depends-on):
1572         Depend conditionally on crypto/arctwo.
1573         * modules/crypto/gc-des (Depends-on):
1574         Depend conditionally on crypto/des.
1575         * modules/crypto/gc-hmac-md5 (Depends-on):
1576         Depend conditionally on crypto/hmac-md5.
1577         * modules/crypto/gc-hmac-sha1 (Depends-on):
1578         Depend conditionally on crypto/hmac-sha1.
1579         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
1580         * modules/crypto/gc-md4 (Depends-on):
1581         Depend conditionally on crypto/md4.
1582         * modules/crypto/gc-md5 (Depends-on):
1583         Depend conditionally on crypto/md5.
1584         * modules/crypto/gc-rijndael (Depends-on):
1585         Depend conditionally on crypto/rijndael.
1586         * modules/crypto/gc-sha1 (Depends-on):
1587         Depend conditionally on crypto/sha1.
1588         * modules/crypto/gc-arcfour:
1589         * modules/crypto/gc-arctwo:
1590         * modules/crypto/gc-des:
1591         * modules/crypto/gc-hmac-md5:
1592         * modules/crypto/gc-hmac-sha1:
1593         * modules/crypto/gc-md2:
1594         * modules/crypto/gc-md4:
1595         * modules/crypto/gc-md5:
1596         * modules/crypto/gc-rijndael:
1597         * modules/crypto/gc-sha1:
1598         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
1599         now that the conditional dependencies do the work for us.
1600
1601 2011-11-17  Jim Meyering  <meyering@redhat.com>
1602
1603         tests: factor st_ctime-comparison out of two headers
1604         * tests/test-utimens-common.h (ctime_compare): Define.
1605         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
1606         * tests/test-lutimens.h (test_lutimens): Likewise.
1607         * tests/test-utimens.h (test_utimens): Likewise.
1608
1609         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
1610         Invoke the test program via an init.sh-using wrapper.
1611         * tests/test-getcwd.sh: New file.
1612         * modules/getcwd-tests (Files): Add it.
1613         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
1614
1615 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
1616
1617         gitlog-to-changelog: support multi-author commits.
1618         The FSF cares about keeping track of all authors of patches to its
1619         projects, but Git doesn't provide obvious support for multi-author
1620         changesets. Consensus seems to be forming around the use of extra
1621         Signed-off-by inspired lines in the log message formatted as
1622         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
1623         multi-author commits between version control systems.
1624         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
1625         log message and output in standard ChangeLog multi-author format.
1626         Reported by Peter Rosin <peda@lysator.liu.se>
1627
1628 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
1629             Bruno Haible  <bruno@clisp.org>
1630
1631         Fix some modules' file list.
1632         * modules/fstatat (Files): Add m4/lstat.m4.
1633         * modules/openat (Files): Likewise.
1634         * modules/unlinkat (Files): Likewise.
1635
1636 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
1637
1638         maint.mk: fix tight-scope.mk generation in VPATH builds.
1639         * top/maint.mk (tight-scope.mk): Make sure to prefix file
1640         reference with $(srcdir) so that the file is found correctly even
1641         when running `make syntax-check' in a VPATH build.
1642
1643 2011-11-13  Bruno Haible  <bruno@clisp.org>
1644             Jim Meyering  <meyering@redhat.com>
1645
1646         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
1647         * tests/init.sh (compare): Remove "No differences encountered" or
1648         synonymous output from the 'diff' program.
1649
1650 2011-11-13  Bruno Haible  <bruno@clisp.org>
1651
1652         Makefile: Tweak indentation.
1653         * Makefile: Use tab as first character in every line that contains rule
1654         commands.
1655
1656 2011-11-13  Bruno Haible  <bruno@clisp.org>
1657
1658         Syntax check for copyright statements.
1659         * check-copyright: New file.
1660         * Makefile (sc_check_copyright): New rule.
1661
1662 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1663
1664         * build-aux/git-version-gen: Add --prefix to configure the tag
1665         match string.
1666
1667 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1668
1669         * build-aux/git-version-gen: Add --help and --version.
1670
1671 2011-11-12  Jim Meyering  <meyering@redhat.com>
1672
1673         revamp the other test-exclude?.sh scripts to use init.sh, too
1674         * tests/test-exclude1.sh: Use init.sh.
1675         * tests/test-exclude2.sh: Likewise.
1676         * tests/test-exclude3.sh: Likewise.
1677         * tests/test-exclude4.sh: Likewise.
1678         * tests/test-exclude5.sh: Likewise.
1679         * tests/test-exclude6.sh: Likewise.
1680         * tests/test-exclude7.sh: Likewise.
1681         * tests/test-exclude8.sh: Likewise.
1682         * modules/exclude-tests (Files): List init.sh.
1683
1684         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
1685         These shell scripts ignored failure of the binary test-exclude,
1686         so making the latter return 77 didn't cause them to be skipped.
1687         * tests/test-exclude5.sh: Exit with test-exclude's error status
1688         when that program fails.  Revamp to use init.sh.
1689         * tests/test-exclude2.sh: Likewise.
1690
1691         test-exclude: fix a typo
1692         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
1693
1694 2011-11-11  Bruno Haible  <bruno@clisp.org>
1695
1696         obstack: Fix compilation error on MSVC 9.
1697         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
1698
1699 2011-11-11  Jim Meyering  <meyering@redhat.com>
1700
1701         test-exclude: skip tests rather than failing on deficient systems
1702         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
1703         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
1704         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
1705         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
1706
1707 2011-11-10  Bruno Haible  <bruno@clisp.org>
1708
1709         ptsname_r test: Avoid gcc warning on glibc systems.
1710         * tests/test-ptsname_r.c (null_ptr): New function.
1711         (test_errors): Use it.
1712
1713 2011-11-10  Bruno Haible  <bruno@clisp.org>
1714
1715         ptsname_r: Avoid compilation error on OSF/1 5.1.
1716         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
1717         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
1718         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
1719         function is not declared or incompatibly declared.
1720         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
1721         * modules/ptsname_r (Depends-on, configure.ac): Update.
1722         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
1723
1724 2011-11-10  Bruno Haible  <bruno@clisp.org>
1725
1726         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
1727         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
1728         When cross-compiling, guess yes on all platforms except AIX.
1729         Reported by Ludovic Courtès <ludo@gnu.org>.
1730
1731 2011-11-09  Bruno Haible  <bruno@clisp.org>
1732
1733         ptsname_r tests: Fix bugs.
1734         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
1735         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
1736
1737 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1738
1739         fstatat: work with cross-compilation
1740         Problem reported by Ludovic Courtès in
1741         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
1742         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
1743         "cross-compiling" and assume the bug is present.  Replace
1744         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
1745         an inverted sense, to be more conservative about our assumptions.
1746         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
1747
1748 2011-11-09  Bruno Haible  <bruno@clisp.org>
1749
1750         Improve MODULES.html output.
1751         * modules/mkfifoat (Description): Use the word "function".
1752         * modules/readlinkat (Description): Likewise.
1753         * modules/symlinkat (Description): Likewise.
1754
1755 2011-11-09  Eric Blake  <eblake@redhat.com>
1756
1757         ptsname_r-tests: new test module
1758         * modules/ptsname_r-tests: New module.
1759         * tests/test-ptsname_r.c: New file.
1760
1761         ptsname_r: new module
1762         * modules/ptsname_r: New module.
1763         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
1764         * lib/ptsname.c (__ptsname_r): Split...
1765         * lib/ptsname_r.c: ...into new file.
1766         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1767         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
1768         * modules/stdlib (Makefile.am): Substitute witnesses.
1769         * lib/stdlib.in.h (ptsname_r): Declare it.
1770         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
1771         * MODULES.html.sh (Misc): Likewise.
1772         * modules/ptsname (Depends-on): Alter dependency.
1773         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
1774
1775 2011-11-09  Jim Meyering  <meyering@redhat.com>
1776
1777         announce-gen: be more concise when there's only one URL+tarball
1778         * build-aux/announce-gen (get_tool_versions): When you distribute
1779         only one type of tarball, combine the first two "Here are..."
1780         sections and make the key-checking grammar independent of
1781         how many tarballs there are.
1782
1783 2011-11-09  Eric Blake  <eblake@redhat.com>
1784
1785         openpty: provide a stub on mingw
1786         * lib/pty.in.h (includes): Provide forward declarations.
1787         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
1788
1789         raise: fix mingw handling of SIGPIPE
1790         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
1791
1792 2011-11-08  Bruno Haible  <bruno@clisp.org>
1793
1794         More conditional dependencies.
1795         * modules/faccessat (Depends-on): Add conditions.
1796         * modules/fchmodat (Depends-on): Likewise.
1797         * modules/fchownat (Depends-on): Likewise.
1798         * modules/fstatat (Depends-on): Likewise.
1799         * modules/mkfifoat (Depends-on): Likewise.
1800         * modules/readlinkat (Depends-on): Likewise.
1801         * modules/symlinkat (Depends-on): Likewise.
1802         * modules/unlinkat (Depends-on): Likewise.
1803         * modules/utimensat (Depends-on): Likewise.
1804         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
1805         * modules/linkat (Depends-on): Refine the conditions.
1806         * modules/renameat (Depends-on): Likewise.
1807
1808 2011-11-08  Bruno Haible  <bruno@clisp.org>
1809
1810         faccessat: Move AC_LIBOBJ invocation to module description.
1811         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
1812         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
1813         invocation from here...
1814         * modules/faccessat (configure.ac): ... to here. Invoke
1815         gl_PREREQ_FACCESSAT.
1816
1817 2011-11-08  Bruno Haible  <bruno@clisp.org>
1818
1819         faccessat: Simplify autoconf macro.
1820         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
1821         gl_FUNC_EUIDACCESS.
1822
1823 2011-11-08  Bruno Haible  <bruno@clisp.org>
1824
1825         renameat: Fix dependencies.
1826         * modules/renameat (Depends-on): Add stdbool.
1827
1828 2011-11-08  Bruno Haible  <bruno@clisp.org>
1829
1830         mkfifoat: Fix module description.
1831         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
1832         not gl_UNISTD_MODULE_INDICATOR.
1833
1834 2011-11-08  Bruno Haible  <bruno@clisp.org>
1835
1836         fstatat: Remove unused dependency.
1837         * modules/fstatat (Depends-on): Remove fstat.
1838
1839 2011-11-08  Simon Josefsson  <simon@josefsson.org>
1840
1841         GNUmakefile: behave when Makefile is missing.
1842         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
1843
1844 2011-11-08  Bruno Haible  <bruno@clisp.org>
1845
1846         openat: Conditionalize dependencies.
1847         * lib/openat.c: Reduce the scope of some #includes.
1848         * modules/openat (Depends-on): Add conditions.
1849
1850 2011-11-07  Jim Meyering  <meyering@redhat.com>
1851
1852         maint.mk: extract GPG key ID without using a temporary file
1853         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
1854         without using a temporary file.  Based on a suggestion from Werner Koch
1855         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
1856
1857 2011-11-07  Eric Blake  <eblake@redhat.com>
1858
1859         grantpt: fix typo
1860         * lib/stdlib.in.h (grantpt): Check correct function.
1861
1862         maint.mk: silence new syntax check
1863         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
1864
1865 2011-11-06  Bruno Haible  <bruno@clisp.org>
1866
1867         Doc about floating-point and math API.
1868         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
1869         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
1870
1871 2011-11-06  Bruno Haible  <bruno@clisp.org>
1872
1873         stdalign tests: Skip the test when compiled by Sun C.
1874         * tests/test-stdalign.c (main): Skip the test on Sun C.
1875
1876 2011-11-06  Bruno Haible  <bruno@clisp.org>
1877
1878         ansi-c++-opt: Complete the 2011-06-05 change.
1879         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
1880         does not support namespaces, set the variable to "no", not to ":".
1881
1882 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1883
1884         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
1885
1886 2011-11-06  Bruno Haible  <bruno@clisp.org>
1887
1888         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
1889         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
1890         (minus_zerol) [HP-UX]: New macro.
1891         (unary_minus) [HP-UX]: New function.
1892         (copysignl) [HP-UX]: Use unary_minus function.
1893
1894 2011-11-06  Bruno Haible  <bruno@clisp.org>
1895
1896         ldexp, ldexpf, ldexpl: Enhance tests.
1897         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
1898         and tests/test-ldexpl.c.
1899         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
1900         LDEXP, MIN_EXP, MAX_EXP): New macros.
1901         Include test-ldexp.h.
1902         (main): Just call test_function.
1903         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
1904         infinity.h, nan.h.
1905         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1906         MAX_EXP): New macros.
1907         Include test-ldexp.h.
1908         (x, y): Remove variables.
1909         (main): Just call test_function.
1910         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
1911         infinity.h, nan.h.
1912         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1913         MAX_EXP): New macros.
1914         Include test-ldexp.h.
1915         (x, y): Remove variables.
1916         (main): Just call test_function.
1917         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
1918         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
1919         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1920         (Depends-on): Add isnand-nolibm, signbit, float.
1921         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
1922         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1923         (Depends-on): Add isnanf-nolibm, signbit, float.
1924
1925 2011-11-06  Bruno Haible  <bruno@clisp.org>
1926
1927         math tests: Cosmetics.
1928         * tests/test-math-c++.cc: Reorder declarations.
1929
1930 2011-11-05  Bruno Haible  <bruno@clisp.org>
1931
1932         fma*: Simplify test.
1933         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
1934         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
1935
1936         Tests for module 'fmal'.
1937         * modules/fmal-tests: New file.
1938         * tests/test-fmal1.c: New file.
1939         * tests/test-fmal2.c: New file.
1940
1941         New module 'fmal'.
1942         * lib/math.in.h (fmal): New declaration.
1943         * lib/fmal.c: New file.
1944         * m4/fmal.m4: New file.
1945         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
1946         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
1947         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
1948         REPLACE_FMAL.
1949         * modules/fmal: New file.
1950         * doc/posix-functions/fmal.texi: Mention the new module and the various
1951         bugs.
1952
1953         Tests for module 'fmaf'.
1954         * modules/fmaf-tests: New file.
1955         * tests/test-fmaf1.c: New file.
1956         * tests/test-fmaf2.c: New file.
1957
1958         New module 'fmaf'.
1959         * lib/math.in.h (fmaf): New declaration.
1960         * lib/fmaf.c: New file.
1961         * m4/fmaf.m4: New file.
1962         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
1963         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
1964         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
1965         REPLACE_FMAF.
1966         * modules/fmaf: New file.
1967         * doc/posix-functions/fmaf.texi: Mention the new module and the various
1968         bugs.
1969
1970         Tests for module 'fma'.
1971         * modules/fma-tests: New file.
1972         * tests/test-fma1.c: New file.
1973         * tests/test-fma1.h: New file.
1974         * tests/test-fma2.c: New file.
1975         * tests/test-fma2.h: New file.
1976
1977         New module 'fma'.
1978         * lib/math.in.h (fma): New declaration.
1979         * lib/fma.c: New file.
1980         * m4/fma.m4: New file.
1981         * m4/fegetround.m4: New file.
1982         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
1983         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
1984         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
1985         REPLACE_FMA.
1986         * modules/fma: New file.
1987         * doc/posix-functions/fma.texi: Mention the new module and the various
1988         bugs.
1989
1990         Extend gl_MATHFUNC.
1991         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
1992         Support 'void' as argument type.
1993         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
1994
1995 2011-11-05  Jim Meyering  <meyering@redhat.com>
1996
1997         maint.mk: also prohibit inclusion of dirent.h without use
1998         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
1999
2000 2011-11-05  Bruno Haible  <bruno@clisp.org>
2001
2002         ldexpl tests: Avoid test failure on MSVC 9.
2003         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
2004         value. Needed in order to enforce the conversion from a value greater
2005         than LDBL_MAX to Infinity.
2006
2007 2011-11-05  Bruno Haible  <bruno@clisp.org>
2008
2009         New modules 'at-internal', 'openat-h', split off from module 'openat'.
2010         * modules/at-internal: New file, extracted from modules/openat.
2011         * modules/openat-h: New file.
2012         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
2013         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
2014         * modules/openat (Description): Add reference to POSIX function.
2015         (Files): Remove lib/openat.h, lib/openat-proc.c.
2016         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
2017         intprops, unistd.
2018         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
2019         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
2020         gl_FCNTL_MODULE_INDICATOR.
2021         (Include): Remove unistd.h, openat.h.
2022         * modules/areadlinkat (Files): Add lib/at-func.c.
2023         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2024         openat-die, openat-h, save-cwd.
2025         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
2026         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2027         openat-die, openat-h, save-cwd, unistd.
2028         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
2029         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2030         openat-h, save-cwd. Remove fcntl-h, openat.
2031         * modules/fchmodat (Files): Remove lib/openat.h.
2032         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2033         openat, stdbool, unistd.
2034         * modules/fchownat (Files): Remove lib/openat.h.
2035         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2036         openat, stdbool, sys_stat.
2037         * modules/fdopendir (Files): Remove lib/openat-priv.h,
2038         lib/openat-proc.c.
2039         (Depends-on): Add at-internal.
2040         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
2041         * modules/fstatat (Files): Remove lib/openat.h.
2042         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2043         stdbool, unistd.
2044         * modules/fts (Depends-on): Add openat-h.
2045         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
2046         openat.
2047         * modules/mkdirat (Files): Remove lib/openat.h.
2048         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2049         openat, stdbool, sys_stat.
2050         * modules/mkfifoat (Files): Add lib/at-func.c.
2051         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2052         openat-h, save-cwd. Remove fcntl-h, openat.
2053         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
2054         * modules/readlinkat (Files): Add lib/at-func.c.
2055         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2056         openat-h, save-cwd. Remove fcntl-h, openat.
2057         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
2058         openat.
2059         * modules/selinux-at (Files): Add lib/at-func.c.
2060         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2061         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
2062         * modules/symlinkat (Files): Add lib/at-func.c.
2063         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2064         openat-h, save-cwd. Remove fcntl-h, openat.
2065         * modules/unlinkat (Files): Remove lib/openat.h.
2066         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2067         stdbool.
2068         * modules/utimensat (Files): Add lib/at-func.c.
2069         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
2070         openat-die, openat-h, save-cwd.
2071         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
2072         * modules/fdutimensat-tests (Depends-on): Add openat.
2073         * modules/fstatat-tests (Depends-on): Add openat-h.
2074         * modules/readlinkat-tests (Depends-on): Add openat.
2075         * modules/symlinkat-tests (Depends-on): Add openat.
2076
2077 2011-11-05  Bruno Haible  <bruno@clisp.org>
2078
2079         openat: Include <stdbool.h>.
2080         * lib/openat.c: Include <stdbool.h>.
2081
2082 2011-11-04  Bruno Haible  <bruno@clisp.org>
2083
2084         fchownat, renameat, unlinkat: Fix dependencies.
2085         * modules/fchownat (Depends-on): Add fstatat.
2086         * modules/renameat (Depends-on): Likewise.
2087         * modules/unlinkat (Depends-on): Likewise.
2088
2089 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
2090
2091         openat: remove direct dependency on dirent
2092         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
2093         and hasn't been needed ever since fdopendir was split into its own
2094         module on 2009-08-31.
2095         * modules/openat (Depends-on): Remove dirent.
2096
2097 2011-11-04  Bruno Haible  <bruno@clisp.org>
2098
2099         renameat: Optimize code size.
2100         * modules/renameat (configure.ac): Don't compile at-func2.c if
2101         REPLACE_RENAMEAT is 1.
2102
2103 2011-11-04  Bruno Haible  <bruno@clisp.org>
2104
2105         openat tests: Fix file list.
2106         * modules/openat-tests (Files): Add tests/test-open.h.
2107
2108 2011-11-04  Bruno Haible  <bruno@clisp.org>
2109
2110         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
2111         * modules/fchmodat (Depends-on): Add openat-die.
2112         * modules/fchownat (Depends-on): Likewise.
2113         * modules/linkat (Depends-on): Likewise.
2114         * modules/renameat (Depends-on): Likewise.
2115         * modules/openat (Depends-on): Add dirent.
2116
2117 2011-11-04  Jim Meyering  <meyering@redhat.com>
2118
2119         at-func*.c: fix comments
2120         * lib/at-func2.c: Correct/improve first-line comment.
2121         * lib/at-func.c: Correct grammar in first-line comment.
2122
2123 2011-11-04  Bruno Haible  <bruno@clisp.org>
2124
2125         New module 'mkdirat', split off from module 'openat'.
2126         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
2127         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
2128         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
2129         * modules/mkdirat: New file, extracted from modules/openat.
2130         * modules/openat (Files): Remove lib/mkdirat.c.
2131         (Depends-on): Remove mkdir.
2132         (configure.ac): Remove AC_LIBOBJ of mkdirat.
2133         (Include): Remove <sys/stat.h>.
2134         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
2135         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
2136         tests/test-mkdir.h.
2137         (Depends-on): Remove ignore-value.
2138         (Makefile.am): Remove rules for test-mkdirat.
2139         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
2140         of module 'openat'.
2141         * NEWS: Mention the change.
2142
2143 2011-11-04  Bruno Haible  <bruno@clisp.org>
2144
2145         closedir: Avoid warning on mingw.
2146         * lib/closedir.c: Include <unistd.h>.
2147
2148 2011-11-04  Bruno Haible  <bruno@clisp.org>
2149
2150         New module 'fstatat', split off from module 'openat'.
2151         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
2152         defined.
2153         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
2154         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
2155         gl_FUNC_FSTATAT.
2156         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
2157         * modules/fstatat: New file, extracted from modules/openat.
2158         * modules/openat (Files): Remove lib/fstatat.c.
2159         (Depends-on): Remove lstat.
2160         (configure.ac): Remove AC_LIBOBJ of fstatat.
2161         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
2162         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
2163         tests/test-lstat.h, tests/test-stat.h.
2164         (Depends-on): Remove getcwd-lgpl.
2165         (Makefile.am): Remove rules for test-fstatat.
2166         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
2167         of module 'openat'.
2168         * NEWS: Mention the change.
2169         * modules/getcwd (Depends-on): Add fstatat.
2170         * modules/linkat (Depends-on): Likewise.
2171         * modules/mkfifoat-tests (Depends-on): Likewise.
2172         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
2173
2174 2011-11-03  Bruno Haible  <bruno@clisp.org>
2175
2176         New module 'unlinkat', split off from module 'openat'.
2177         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
2178         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
2179         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
2180         * modules/unlinkat: New file, extracted from modules/openat. Correct
2181         the dependency conditions.
2182         * modules/openat (Files): Remove lib/unlinkat.c.
2183         (Depends-on): Remove rmdir, unlink.
2184         (configure.ac): Remove AC_LIBOBJ of unlinkat.
2185         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
2186         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
2187         tests/test-rmdir.h, tests/test-unlink.h.
2188         (Depends-on): Remove unlinkdir.
2189         (Makefile.am): Remove rules for test-unlinkat.
2190         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
2191         of module 'openat'.
2192         * NEWS: Mention the change.
2193         * modules/linkat-tests (Depends-on): Add unlinkat.
2194         * modules/mkfifoat-tests (Depends-on): Likewise.
2195         * modules/readlinkat-tests (Depends-on): Likewise.
2196
2197 2011-11-02  Bruno Haible  <bruno@clisp.org>
2198
2199         New module 'fchmodat', split off from module 'openat'.
2200         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
2201         defined.
2202         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
2203         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
2204         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
2205         * modules/fchmodat: New file, extracted from modules/openat.
2206         * modules/openat (Files): Remove lib/fchmodat.c.
2207         (configure.ac): Remove AC_LIBOBJ of fchmodat.
2208         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
2209         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
2210         (Makefile.am): Remove rules for test-fchmodat.
2211         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
2212         of module 'openat'.
2213         * NEWS: Mention the change.
2214
2215 2011-11-02  Jim Meyering  <meyering@redhat.com>
2216
2217         putenv: indent #definition of "environ" to placate cppi
2218         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
2219
2220         gitlog-to-changelog: provide a ChangeLog-repair mechanism
2221         Git logs are often treated as immutable, because editing them
2222         changes the SHA1 checksums of all descendants.  Thus, errors in
2223         git logs tend to stay there forever.  However, when we generate
2224         a ChangeLog file -- typically for distribution -- from that git log,
2225         we can actually make corrections in the generated file.  The key
2226         lies in recording in machine-readable/applicable form the desired
2227         corrections.  See --help for description and an example.
2228         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
2229         (usage): Describe it; alphabetize option descriptions.
2230         (main): Honor the new option, carefully.
2231
2232 2011-11-01  Jim Meyering  <meyering@redhat.com>
2233
2234         gitlog-to-changelog: avoid an infloop
2235         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
2236         that ends up being empty.
2237
2238 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2239
2240         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
2241         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
2242         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
2243         contains (possibly-quoted) backslashes.  This should avoid
2244         all-too-common shell bugs if COMPLICATED contains backslashes in
2245         the "wrong" places.  Reported by David Evans in
2246         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
2247         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
2248         because we want ASCII ranges.  Is there some reason we don't use
2249         the C locale everywhere in this script?
2250         (func_module, top level): Avoid unwanted pathname expansion when
2251         $repo_url_prefix or $repo_url_suffix_repl contain shell
2252         metacharacters like '?' and '*'.
2253
2254 2011-11-01  Bruno Haible  <bruno@clisp.org>
2255
2256         fchownat: Improve description.
2257         * modules/fchownat (Description): Add link to function.
2258
2259 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2260
2261         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
2262         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
2263         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
2264         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
2265
2266 2011-11-01  Bruno Haible  <bruno@clisp.org>
2267
2268         alignof: Avoid collision with stdalign module.
2269         * lib/alignof.h (alignof): Remove macro.
2270         * NEWS: Mention the change.
2271         Reported by Paul Eggert.
2272
2273 2011-11-01  Bruno Haible  <bruno@clisp.org>
2274
2275         New module 'fchownat', split off from module 'openat'.
2276         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
2277         defined.
2278         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
2279         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
2280         invoke gl_FUNC_FCHOWNAT.
2281         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
2282         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
2283         * modules/fchownat: New file, extracted from modules/openat.
2284         * modules/openat (Files): Remove lib/fchownat.c.
2285         (Depends-on): Remove lchown.
2286         (configure.ac): Remove AC_LIBOBJ of fchownat.
2287         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
2288         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
2289         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
2290         (Depends-on): Remove mgetgroups, usleep, stat-time.
2291         (configure.ac): Remove test for getegid.
2292         (Makefile.am): Remove rules for test-fchownat.
2293         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
2294         of module 'openat'.
2295         * NEWS: Mention the change.
2296
2297 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
2298
2299         stdalign: port better to MSVC and to Sun C 5.11
2300         This fixes some of the problems reported by Bruno Haible in
2301         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
2302         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
2303         shortcomings of MSVC and of Sun C 5.11.
2304         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
2305         around __declspec arg.
2306         * modules/stdalign-tests (Files): Add tests/macros.h.
2307         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
2308         Include macros.h, for ASSERT.
2309         (DECLARE_ALIGNED): Remove.
2310         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
2311         to catch bug), and to 1 if not (simplifies the rest of the code).
2312         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
2313         (CHECK_AUTO): Remove.
2314         (CHECK_ALIGNED): Check only the alignment of the static vars,
2315         since auto var alignment isn't supported by Sun C 5.11.
2316         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
2317         ASSERT failures are easier to diagnose.
2318
2319 2011-10-31  Bruno Haible  <bruno@clisp.org>
2320
2321         doc about some IRIX 5.3 problems.
2322         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
2323         on IRIX 5.3.
2324         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
2325         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
2326         5.3.
2327         * doc/posix-functions/grantpt.texi: Likewise.
2328         * doc/posix-functions/unlockpt.texi: Likewise.
2329         * doc/posix-functions/lgamma.texi: Likewise.
2330         * doc/posix-functions/nextafter.texi: Likewise.
2331         * doc/posix-functions/remainder.texi: Likewise.
2332         * doc/posix-functions/select.texi: Mention misplaced declaration on
2333         IRIX 5.3.
2334         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2335
2336 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
2337
2338         gitlog-to-changelog: fix git-log invocation.
2339         git-log mishandles date strings before 1970-01-01 UTC, and there is
2340         no use to specify --since=1970-01-01 by default anyway.
2341         * build-aux/gitlog-to-changelog: By default, when no --since option
2342         was given, do not specify explicit --since option to git-log.
2343
2344 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
2345
2346         gitlog-to-changelog: new option --append-dot.
2347         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
2348         first non-blank line of each commit message terminated with a dot.
2349
2350 2011-10-30  Bruno Haible  <bruno@clisp.org>
2351
2352         ffsl, ffsll: Avoid compilation error due to 'restrict'.
2353         * lib/ffsl.h: Include <config.h>.
2354         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
2355
2356 2011-10-30  Jim Meyering  <meyering@redhat.com>
2357
2358         GNUmakefile: reenable "make syntax-check" for most projects
2359         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
2360         build-aux variable", "syntax-check" would do nothing but succeed with
2361         the "No version control files detected..." diagnostic (unless you
2362         happened to override _build-aux via cfg.mk).
2363         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
2364         to precede inclusion of maint.mk.  Otherwise, these variables would
2365         be used undefined in any project that does not override the default.
2366
2367 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
2368
2369         gitlog-to-changelog: treat a message with only blank lines as empty.
2370         * build-aux/gitlog-to-changelog: Move the code that removes leading and
2371         trailing blank lines before the code that issues a warning about an
2372         empty commit message.
2373
2374 2011-10-30  Jim Meyering  <meyering@redhat.com>
2375
2376         test-parse-datetime.c: avoid new DST-related false positive test failure
2377         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
2378         based on the time/date we'll convert, not the current time.
2379         Otherwise, the moment we cross a DST boundary like today's in
2380         Europe, (CEST to CET), that offset ends up being one hour off.
2381
2382 2011-10-27  Bruno Haible  <bruno@clisp.org>
2383
2384         fstat: Tweak documentation.
2385         * modules/fstat (Description): More precise description.
2386
2387 2011-10-27  Bruno Haible  <bruno@clisp.org>
2388
2389         Update documentation regarding 'largefile' module.
2390         * doc/posix-functions/fstat.texi: Tweak wording.
2391         * doc/posix-functions/opendir.texi: Mention that the module fixes the
2392         problems with huge directories and/or small ino_t types.
2393         * doc/posix-functions/readdir.texi: Likewise.
2394         * doc/posix-functions/rewinddir.texi: Likewise.
2395
2396 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
2397
2398         maint.mk: don't maintain a second build-aux variable.
2399         * maint.mk (build_aux): Removed.  The maintainer-makefile module
2400         depends on GNUmakefile, which already maintains a cfg.mk
2401         overridable $(_build-aux) for projects with a non-standard
2402         build-aux directory location, although without the $(srcdir)
2403         prefix.  Use that variable consistently instead of introducing a
2404         second one.  Adjust all call sites.
2405
2406 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2407
2408         Add stdalign module and use it in other modules.
2409         This is based on a previous proposal by Bruno Haible
2410         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
2411
2412         stdalign: new module
2413         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
2414         * modules/stdalign: New files.
2415         * MODULES.html.sh (c1x_core_properties): Add stdalign.
2416         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
2417
2418         stdalign-tests: new module
2419         * modules/stdalign-tests, tests/test-stdalign.c: New files.
2420
2421         argp: use stdalign
2422         * lib/argp-parse.c: Include <stdalign.h>.
2423         (alignof): Remove.
2424         * modules/argp (Depends-on): Add stdalign.
2425
2426         crypto libraries: use stdalign
2427         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
2428         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
2429         Do not include <stdlib.h> twice, in md4.c.
2430         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
2431         because we are accessing a pointer's bit-pattern, not a size.
2432         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
2433         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
2434         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
2435         * modules/crypto/sha512: Likewise.
2436
2437         sys_socket: use stdalign, not alignof
2438         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
2439         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
2440
2441 2011-10-27  Bruno Haible  <bruno@clisp.org>
2442
2443         raise test: Avoid a test failure on Linux/MIPS.
2444         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
2445         because 99 is a valid signal on Linux/MIPS.
2446
2447 2011-10-27  Bruno Haible  <bruno@clisp.org>
2448
2449         nonblocking tests: Fix test failure on Linux/MIPS.
2450         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
2451         Set to 270000.
2452
2453 2011-10-27  Bruno Haible  <bruno@clisp.org>
2454
2455         utimensat: Work around problem on Linux/hppa.
2456         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
2457         values.
2458         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
2459
2460 2011-10-25  Jim Meyering  <meyering@redhat.com>
2461
2462         maint.mk: fix a bug in sc_prohibit_stddef_without_use
2463         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
2464         after symbols like NULL, size_t, etc.
2465         Reported by Alfred M. Szmidt.
2466
2467         maint.mk: exempt ENODATA from a syntax-check rule
2468         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
2469         from the sc_prohibit_always-defined_macros syntax-check rule.
2470         Add a comment.  See this for more details:
2471         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
2472
2473 2011-10-23  Jim Meyering  <meyering@redhat.com>
2474
2475         fts: close parent dir FD before returning from post-traversal fts_read
2476         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
2477         unlink A, even though an FD open on A remained.  This is suboptimal
2478         (holding a file descriptor open longer than needed), but otherwise not
2479         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
2480         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
2481         that represents a real problem: it causes the removal of A to fail
2482         with e.g., "rm: cannot remove `A': Device or resource busy"
2483
2484         fts visits each directory twice and keeps a cache (fts_fd_ring) of
2485         directory file descriptors.  After completing the final, FTS_DP,
2486         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
2487         cache, but then proceeded to add a new FD to it via the subsequent
2488         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
2489         final file descriptor would be closed only via fts_close's call to
2490         fd_ring_clear.  Now, it is usually closed earlier, via the final
2491         FTS_DP-returning fts_read call.
2492         * lib/fts.c (restore_initial_cwd): New function, converted from
2493         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
2494         Update callers.
2495         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
2496         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
2497
2498 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
2499             Bruno Haible  <bruno@clisp.org>
2500             Jim Meyering  <jim@meyering.net>
2501
2502         readme-release: improve safety of release prep instructions.
2503         * README-release: Don't git pull all branches when only master
2504         is needed for the release process.
2505         Run make maintainer-clean before changing trees and merging.
2506         Don't try to run ./configure right after git pull in case files
2507         that influence the bootstrap process have changed, move the
2508         ./configure step to after running ./bootstrap.
2509         Don't bootstrap "one last time"... it's the first time!
2510
2511 2011-10-22  Bruno Haible  <bruno@clisp.org>
2512
2513         errno, strerror-override: Support for MSVC 10.
2514         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
2515         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
2516         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
2517         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
2518         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
2519         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
2520         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
2521         Assign values compatible with MSVC 10.
2522         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
2523         New macros.
2524         (GNULIB_defined_EWINSOCK): New macro.
2525         * lib/strerror-override.c (strerror_override): Update accordingly.
2526         * lib/strerror-override.h: Likewise.
2527         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
2528         longer equal to the corresponding errno value.
2529         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2530
2531 2011-10-22  Bruno Haible  <bruno@clisp.org>
2532
2533         perror: Recognize when test program crashes.
2534         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
2535         strerror, set gl_cv_func_perror_works to no.
2536         Reported by Daniel Richard G. <skunk@iskunk.org>.
2537
2538         perror: Fix indentation.
2539         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
2540
2541 2011-10-22  Bruno Haible  <bruno@clisp.org>
2542
2543         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
2544         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
2545         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
2546         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
2547         functions, not as a macro.
2548         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
2549         macros.
2550         (isfinite, isinf, isnan, signbit): Check overloaded functions and
2551         absence of macro.
2552         Suggested by Eric Blake.
2553         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2554
2555 2011-10-21  Bruno Haible  <bruno@clisp.org>
2556
2557         relocatable-prog-wrapper: Don't leave object files behind.
2558         * build-aux/install-reloc: Re-synchronize list of .o files to be
2559         removed with list of compilation units.
2560
2561 2011-10-20  Bruno Haible  <bruno@clisp.org>
2562
2563         openpty, posix_openpt: Remove code duplication.
2564         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
2565         * lib/openpty.c: Include <stdlib.h>.
2566         (openpty): Use posix_openpt on all platforms except IRIX.
2567         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
2568
2569 2011-10-20  Bruno Haible  <bruno@clisp.org>
2570
2571         unlockpt: Detect invalid argument.
2572         * lib/unlockpt.c: Include <fcntl.h>.
2573         (unlockpt): Check whether fd is valid, using fcntl().
2574         * modules/unlockpt (Depends-on): Add fcntl-h.
2575
2576 2011-10-20  Bruno Haible  <bruno@clisp.org>
2577
2578         openpty: Avoid compilation error on AIX 6.1.
2579         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
2580
2581 2011-10-20  Bruno Haible  <bruno@clisp.org>
2582
2583         posix_openpt: Support for OpenBSD.
2584         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
2585         (posix_openpt) [OpenBSD]: New code.
2586         * lib/grantpt.c: Include <fcntl.h>.
2587         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
2588         * modules/grantpt (Depends-on): Add fcntl-h.
2589
2590 2011-10-20  Bruno Haible  <bruno@clisp.org>
2591
2592         posix_openpt test: Coding style.
2593         * tests/test-posix_openpt.c: Use GNU coding style.
2594
2595 2011-10-20  Bruno Haible  <bruno@clisp.org>
2596
2597         grantpt: Support --avoid=pt_chown.
2598         * modules/grantpt (Files): Add lib/pty-private.h.
2599
2600 2011-10-20  Bruno Haible  <bruno@clisp.org>
2601
2602         posix_openpt: Fix autoconf macro.
2603         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
2604         unneeded check for _getpty.
2605
2606 2011-10-20  Bruno Haible  <bruno@clisp.org>
2607
2608         openpty: Update comments.
2609         * lib/openpty.c: Add comments about Minix.
2610
2611 2011-10-19  Eric Blake  <eblake@redhat.com>
2612
2613         openpty: relax license
2614         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
2615
2616         pt_chown: use configmake to simplify build
2617         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
2618
2619         ptsname and others: relax license
2620         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
2621         * modules/unlockpt (License): Likewise.
2622         * modules/pt_chown (License): Likewise.
2623         * modules/ptsname (License): Likewise.
2624         * modules/ttyname_r (License): Likewise.
2625
2626 2011-10-19  Jim Meyering  <meyering@redhat.com>
2627
2628         posix_openpt: remove spurious #endif
2629         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
2630
2631 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
2632
2633         maint.mk: Respect $(build_aux) in web-manual rule.
2634         * top/maint.mk (web-manual): Find gen-announce script in user's
2635         $(build_aux) directory instead of hard-coding 'build-aux'.
2636
2637 2011-10-19  Bruno Haible  <bruno@clisp.org>
2638
2639         posix_openpt: Fix compilation error.
2640         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
2641         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
2642         Mention the openpty module as an alternative.
2643
2644 2011-10-19  Bruno Haible  <bruno@clisp.org>
2645
2646         Support for old NeXTstep 3.3 frexp().
2647         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
2648         execution time of the test to 5 seconds.
2649         Reported by Daniel Richard G. <skunk@iskunk.org>.
2650
2651 2011-10-19  Bruno Haible  <bruno@clisp.org>
2652
2653         Support for old NeXTstep 3.3 sed.
2654         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
2655         part, use /.../, not \|...|. Escape periods in the header file name.
2656         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2657         Reported by Daniel Richard G. <skunk@iskunk.org>.
2658
2659 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2660
2661         Support for old NeXTstep 3.3 gcc.
2662         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
2663         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
2664         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
2665         * lib/spawn.in.h (_Restrict_arr_): Likewise.
2666         * lib/regex.h (_Restrict_arr_): Likewise.
2667         * lib/regex_internal.h (re_token_t): Likewise.
2668         * lib/regexec.c (check_node_accept_bytes): Likewise.
2669         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
2670
2671 2011-10-18  Eric Blake  <eblake@redhat.com>
2672
2673         posix_openpt: new module
2674         * modules/posix_openpt: New module.
2675         * m4/posix_openpt.m4: New file.
2676         * lib/posix_openpt.c: Likewise.
2677         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2678         (gl_STDLIB_H_DEFAULTS): Set defaults.
2679         * modules/stdlib (Makefile.am): Substitute macros.
2680         * lib/stdlib.in.h (posix_openpt): Declare.
2681         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
2682         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
2683         * modules/posix_openpt-tests: New test module.
2684         * tests/test-posix_openpt.c: New test.
2685
2686 2011-10-15  Bruno Haible  <bruno@clisp.org>
2687
2688         xstrtoll: Fix compilation failure.
2689         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
2690         from lib/strtol.c.
2691         * doc/posix-headers/limits.texi: Mention missing numerical limits on
2692         some platforms.
2693         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2694
2695 2011-10-15  Bruno Haible  <bruno@clisp.org>
2696
2697         vasnprintf: Optimize bit search operation.
2698         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
2699         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
2700         gl_DOUBLE_EXPONENT_LOCATION.
2701         * modules/vasnprintf (Files): Add m4/exponentd.m4.
2702         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2703         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2704         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2705         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2706         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2707         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2708         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2709         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
2710
2711 2011-10-15  Bruno Haible  <bruno@clisp.org>
2712
2713         vasnprintf: Fix comments.
2714         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
2715
2716 2011-10-14  Bruno Haible  <bruno@clisp.org>
2717
2718         Tests for module 'integer_length_ll'.
2719         * modules/integer_length_ll-tests: New file.
2720         * tests/test-integer_length_ll.c: New file.
2721
2722         New module 'integer_length_ll'.
2723         * lib/integer_length_ll.c: New file.
2724         * modules/integer_length_ll: New file.
2725
2726 2011-10-14  Bruno Haible  <bruno@clisp.org>
2727
2728         Tests for module 'integer_length_l'.
2729         * modules/integer_length_l-tests: New file.
2730         * tests/test-integer_length_l.c: New file.
2731
2732         New module 'integer_length_l'.
2733         * lib/integer_length_l.c: New file.
2734         * modules/integer_length_l: New file.
2735
2736 2011-10-14  Bruno Haible  <bruno@clisp.org>
2737
2738         Tests for module 'integer_length'.
2739         * modules/integer_length-tests: New file.
2740         * tests/test-integer_length.c: New file.
2741
2742         New module 'integer_length'.
2743         * lib/integer_length.h: New file.
2744         * lib/integer_length.c: New file.
2745         * modules/integer_length: New file.
2746
2747 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2748
2749         popen: Fix dependency conditions.
2750         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
2751
2752 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2753
2754         perror: Fix autoconf test.
2755         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
2756         <stdlib.h> and <string.h>.
2757
2758 2011-10-14  Bruno Haible  <bruno@clisp.org>
2759
2760         ffsl: Optimize on 64-bit platforms.
2761         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
2762         unrolling.
2763
2764 2011-10-13  Bruno Haible  <bruno@clisp.org>
2765
2766         ffsl: Optimize on 32-bit platforms.
2767         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
2768         use ffs() without a loop.
2769
2770         ffsl, ffsll: Optimize for GCC.
2771         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
2772         * lib/ffsl.c (GCC_BUILTIN): New macro.
2773         * lib/ffsll.c (GCC_BUILTIN): Likewise.
2774
2775 2011-10-13  Bruno Haible  <bruno@clisp.org>
2776
2777         ffs, bcopy, memset: Support symbol renaming via config.h.
2778         * lib/ffs.c: Include <config.h>.
2779         * lib/bcopy.c: Likewise.
2780         * lib/memset.c: Likewise.
2781
2782 2011-10-10  Bruno Haible  <bruno@clisp.org>
2783
2784         atanl: Simplify for platforms where 'long double' == 'double'.
2785         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2786         alternative implementation.
2787         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2788         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2789         * modules/atanl (Depends-on): Add atan. Update conditions.
2790
2791 2011-10-10  Bruno Haible  <bruno@clisp.org>
2792
2793         acosl: Simplify for platforms where 'long double' == 'double'.
2794         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2795         alternative implementation.
2796         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2797         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2798         * modules/acosl (Depends-on): Add acos. Update conditions.
2799
2800 2011-10-10  Bruno Haible  <bruno@clisp.org>
2801
2802         asinl: Simplify for platforms where 'long double' == 'double'.
2803         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2804         alternative implementation.
2805         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2806         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2807         * modules/asinl (Depends-on): Add asin. Update conditions.
2808
2809 2011-10-10  Bruno Haible  <bruno@clisp.org>
2810
2811         tanl: Simplify for platforms where 'long double' == 'double'.
2812         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2813         implementation.
2814         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2815         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2816         * modules/tanl (Depends-on): Add tan. Update conditions.
2817         (configure.ac): Don't compile trigl.c if
2818         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2819
2820 2011-10-10  Bruno Haible  <bruno@clisp.org>
2821
2822         cosl: Simplify for platforms where 'long double' == 'double'.
2823         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2824         implementation.
2825         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2826         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2827         * modules/cosl (Depends-on): Add cos. Update conditions.
2828         (configure.ac): Don't compile sincosl.c and trigl.c if
2829         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2830
2831 2011-10-10  Bruno Haible  <bruno@clisp.org>
2832
2833         sinl: Simplify for platforms where 'long double' == 'double'.
2834         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2835         implementation.
2836         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2837         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2838         * modules/sinl (Depends-on): Add sin. Update conditions.
2839         (configure.ac): Don't compile sincosl.c and trigl.c if
2840         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2841
2842 2011-10-10  Bruno Haible  <bruno@clisp.org>
2843
2844         logl: Simplify for platforms where 'long double' == 'double'.
2845         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2846         implementation.
2847         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2848         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2849         * modules/logl (Depends-on): Add log. Update conditions.
2850
2851 2011-10-10  Bruno Haible  <bruno@clisp.org>
2852
2853         expl: Simplify for platforms where 'long double' == 'double'.
2854         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2855         implementation.
2856         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2857         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2858         * modules/expl (Depends-on): Add exp. Update conditions.
2859
2860 2011-10-10  Bruno Haible  <bruno@clisp.org>
2861
2862         sqrtl: Simplify for platforms where 'long double' == 'double'.
2863         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2864         alternative implementation.
2865         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2866         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2867         * modules/sqrtl (Depends-on): Update conditions.
2868
2869 2011-10-10  Bruno Haible  <bruno@clisp.org>
2870
2871         ldexpl: Simplify for platforms where 'long double' == 'double'.
2872         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2873         alternative implementation.
2874         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2875         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2876         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
2877
2878 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
2879
2880         ffsll: set correct witness
2881         * modules/ffsll (configure.ac): Fix typo.
2882
2883 2011-10-10  Bruno Haible  <bruno@clisp.org>
2884
2885         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
2886         * lib/printf-frexpl.c: Include <config.h>.
2887         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2888         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
2889         second time.
2890         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
2891         gl_LONG_DOUBLE_VS_DOUBLE.
2892         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
2893         conditions.
2894
2895 2011-10-10  Bruno Haible  <bruno@clisp.org>
2896
2897         frexpl: Simplify for platforms where 'long double' == 'double'.
2898         * lib/frexpl.c: Include <config.h>.
2899         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2900         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2901         time.
2902         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2903         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2904         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
2905         * modules/frexpl (Depends-on): Add frexp. Update conditions.
2906         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
2907         conditions.
2908
2909 2011-10-10  Jim Meyering  <meyering@redhat.com>
2910
2911         test-renameat: don't leave behind a temporary file
2912         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
2913           ERROR: files left in build directory after distclean:
2914           ./gltests/test-renameat.too
2915           make[1]: *** [distcleancheck] Error 1
2916         Reported by Tom G. Christensen.
2917
2918 2011-10-09  Bruno Haible  <bruno@clisp.org>
2919
2920         rint: Determine RINT_LIBM correctly on AIX 7.
2921         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
2922         directly, not only through a function pointer. Also accept an optional
2923         4th argument with extra code.
2924         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
2925         rintf() call by gcc when optimizing.
2926
2927         mathfunc.m4: Refactor.
2928         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
2929         m4 variable.
2930
2931 2011-10-09  Bruno Haible  <bruno@clisp.org>
2932
2933         rintl: Simplify for platforms where 'long double' == 'double'.
2934         * lib/rintl.c: Include <config.h>.
2935         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2936         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2937         time.
2938         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2939         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2940         * modules/rintl (Depends-on): Add rint. Update conditions.
2941
2942 2011-10-09  Bruno Haible  <bruno@clisp.org>
2943
2944         roundl: Simplify for platforms where 'long double' == 'double'.
2945         * lib/roundl.c: Include <config.h>.
2946         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2947         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2948         time.
2949         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2950         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2951         * modules/roundl (Depends-on): Add round. Update conditions.
2952
2953 2011-10-09  Bruno Haible  <bruno@clisp.org>
2954
2955         truncl: Simplify for platforms where 'long double' == 'double'.
2956         * lib/truncl.c: Include <config.h>.
2957         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2958         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2959         time.
2960         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2961         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2962         * modules/truncl (Depends-on): Add trunc. Update conditions.
2963
2964 2011-10-09  Bruno Haible  <bruno@clisp.org>
2965
2966         ceill: Simplify for platforms where 'long double' == 'double'.
2967         * lib/ceill.c: Include <config.h>.
2968         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2969         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2970         time.
2971         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2972         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2973         * modules/ceill (Depends-on): Add ceil. Update conditions.
2974
2975 2011-10-09  Bruno Haible  <bruno@clisp.org>
2976
2977         floorl: Simplify for platforms where 'long double' == 'double'.
2978         * lib/floorl.c: Include <config.h>.
2979         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2980         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2981         time.
2982         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2983         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2984         * modules/floorl (Depends-on): Add floor. Update conditions.
2985
2986 2011-10-09  Bruno Haible  <bruno@clisp.org>
2987
2988         rint: Fix ordering constraints.
2989         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
2990         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2991         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2992
2993 2011-10-09  Bruno Haible  <bruno@clisp.org>
2994
2995         copysignl: Simplify for platforms where 'long double' == 'double'.
2996         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2997         alternative.
2998         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2999         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3000         * modules/copysignl (Depends-on): Add copysign. Update conditions.
3001
3002 2011-10-09  Bruno Haible  <bruno@clisp.org>
3003
3004         Tests for module 'rintl'.
3005         * modules/rintl-tests: New file.
3006         * tests/test-rintl.c: New file.
3007
3008         New module 'rintl'.
3009         * lib/math.in.h (rintl): New declaration.
3010         * lib/rintl.c: New file.
3011         * m4/rintl.m4: New file.
3012         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
3013         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
3014         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
3015         * modules/rintl: New file.
3016         * tests/test-math-c++.cc: Check the declaration of rintl.
3017         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3018         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
3019         * doc/posix-functions/rintl.texi: Mention the new module.
3020
3021 2011-10-09  Bruno Haible  <bruno@clisp.org>
3022
3023         Tests for module 'rintf'.
3024         * modules/rintf-tests: New file.
3025         * tests/test-rintf.c: New file.
3026
3027         New module 'rintf'.
3028         * lib/math.in.h (rintf): New declaration.
3029         * lib/rintf.c: New file.
3030         * m4/rintf.m4: New file.
3031         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
3032         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
3033         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
3034         * modules/rintf: New file.
3035         * tests/test-math-c++.cc: Check the declaration of rintf.
3036         * doc/posix-functions/rintf.texi: Mention the new module.
3037
3038 2011-10-09  Bruno Haible  <bruno@clisp.org>
3039
3040         rint: Support for MSVC.
3041         * lib/math.in.h (rint): New declaration.
3042         * lib/rint.c: New file.
3043         * m4/rint.m4: New file.
3044         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
3045         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
3046         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
3047         * modules/rint (Description): Fix.
3048         (Files): Add lib/rint.c, m4/rint.m4.
3049         (Depends-on): Add math.
3050         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
3051         gl_MATH_MODULE_INDICATOR.
3052         * tests/test-math-c++.cc: Check the declaration of rint.
3053         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3054         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
3055         * doc/posix-functions/rint.texi: Mention the replacement provided by
3056         the module.
3057
3058         rint tests: More tests.
3059         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
3060         minus-zero.h, infinity.h, nan.h.
3061         (main): Skip the test if the current rounding mode is not standard. Add
3062         tests for negative numbers, minus zero, infinity, NaN.
3063         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
3064         tests/nan.h.
3065         (Depends-on): Add isnand-nolibm.
3066
3067 2011-10-09  Bruno Haible  <bruno@clisp.org>
3068
3069         Tests for module 'copysignl'.
3070         * modules/copysignl-tests: New file.
3071         * tests/test-copysignl.c: New file.
3072
3073         New module 'copysignl'.
3074         * lib/math.in.h (copysignl): New declaration.
3075         * lib/copysignl.c: New file.
3076         * m4/copysignl.m4: New file.
3077         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
3078         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
3079         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
3080         HAVE_COPYSIGNL.
3081         * modules/copysignl: New file.
3082         * tests/test-math-c++.cc: Check the declaration of copysignl.
3083         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3084         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
3085         * doc/posix-functions/copysignl.texi: Mention the new module.
3086
3087 2011-10-09  Bruno Haible  <bruno@clisp.org>
3088
3089         Tests for module 'copysignf'.
3090         * modules/copysignf-tests: New file.
3091         * tests/test-copysignf.c: New file.
3092
3093         New module 'copysignf'.
3094         * lib/math.in.h (copysignf): New declaration.
3095         * lib/copysignf.c: New file.
3096         * m4/copysignf.m4: New file.
3097         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
3098         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
3099         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
3100         HAVE_COPYSIGNF.
3101         * modules/copysignf: New file.
3102         * tests/test-math-c++.cc: Check the declaration of copysignf.
3103         * doc/posix-functions/copysignf.texi: Mention the new module.
3104
3105 2011-10-09  Bruno Haible  <bruno@clisp.org>
3106
3107         Ensure that HAVE_* variables are set to 1 before they are set to 0.
3108         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
3109         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
3110         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3111         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
3112         gl_SIGNAL_H_DEFAULTS.
3113
3114 2011-10-09  Bruno Haible  <bruno@clisp.org>
3115
3116         poll: Make macro safer.
3117         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
3118         ac_cv_header_poll_h is not set.
3119
3120 2011-10-09  Bruno Haible  <bruno@clisp.org>
3121
3122         copysign: Provide replacement.
3123         * lib/math.in.h (copysign): New declaration.
3124         * lib/copysign.c: New file.
3125         * m4/copysign.m4: New file.
3126         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
3127         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
3128         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
3129         HAVE_COPYSIGN.
3130         * modules/copysign (Description): Clarify.
3131         (Files): Add lib/copysign.c, m4/copysign.m4.
3132         (Depends-on): Add math, signbit.
3133         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
3134         gl_MATH_MODULE_INDICATOR.
3135         * tests/test-math-c++.cc: Check the declaration of copysign.
3136         * doc/posix-functions/copysign.texi: Mention the effects of the module
3137         on Minix and MSVC.
3138
3139 2011-10-09  Bruno Haible  <bruno@clisp.org>
3140
3141         isinf: Ensure macro on AIX 5.1.
3142         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
3143         macro.
3144         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
3145
3146 2011-10-09  Bruno Haible  <bruno@clisp.org>
3147
3148         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
3149         * modules/snprintf-posix-tests (configure.ac): Require
3150         gl_LONG_DOUBLE_VS_DOUBLE.
3151         * modules/sprintf-posix-tests (configure.ac): Likewise.
3152         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
3153         * modules/vasprintf-posix-tests (configure.ac): Likewise.
3154         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
3155         * modules/vsprintf-posix-tests (configure.ac): Likewise.
3156         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
3157         tests on platforms where 'long double' is the same as 'double'.
3158         * tests/test-sprintf-posix.h (test_function): Likewise.
3159         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3160         * tests/test-vasprintf-posix.c (test_function): Likewise.
3161
3162         *printf: Fix for platforms where 'long double' == 'double'.
3163         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
3164         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
3165         * modules/dprintf-posix (Files): Add m4/math_h.m4.
3166         * modules/fprintf-posix (Files): Likewise.
3167         * modules/obstack-printf-posix (Files): Likewise.
3168         * modules/snprintf-posix (Files): Likewise.
3169         * modules/sprintf-posix (Files): Likewise.
3170         * modules/vasnprintf (Files): Likewise.
3171         * modules/vasnprintf-posix (Files): Likewise.
3172         * modules/vasprintf-posix (Files): Likewise.
3173         * modules/vdprintf-posix (Files): Likewise.
3174         * modules/vfprintf-posix (Files): Likewise.
3175         * modules/vsnprintf-posix (Files): Likewise.
3176         * modules/vsprintf-posix (Files): Likewise.
3177         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3178         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3179         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3180         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3181         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3182         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3183         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3184
3185         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
3186         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
3187         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3188         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
3189         'long double'.
3190         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
3191
3192         isinf: Fix for platforms where 'long double' == 'double'.
3193         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3194         Don't blindly assume 80-bit 'long double'.
3195
3196         isfinite: Fix for platforms where 'long double' == 'double'.
3197         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3198         Don't blindly assume 80-bit 'long double'.
3199
3200         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
3201         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
3202         * modules/isfinite-tests (configure.ac): Require
3203         gl_LONG_DOUBLE_VS_DOUBLE.
3204         * modules/isinf-tests (configure.ac): Likewise.
3205         * modules/isnan-tests (configure.ac): Likewise.
3206         * modules/isnanl-tests (configure.ac): Likewise.
3207         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
3208         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
3209         tests on platforms where 'long double' is the same as 'double'.
3210         * tests/test-isinf.c (test_isinfl): Likewise.
3211         * tests/test-isnan.c (test_long_double): Likewise.
3212         * tests/test-isnanl.h (main): Likewise.
3213
3214 2011-10-08  Bruno Haible  <bruno@clisp.org>
3215
3216         Tests for module 'tanhf'.
3217         * modules/tanhf-tests: New file.
3218         * tests/test-tanhf.c: New file.
3219
3220         New module 'tanhf'.
3221         * lib/math.in.h (tanhf): New declaration.
3222         * lib/tanhf.c: New file.
3223         * m4/tanhf.m4: New file.
3224         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
3225         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
3226         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
3227         * modules/tanhf: New file.
3228         * tests/test-math-c++.cc: Check the declaration of tanhf.
3229         * doc/posix-functions/tanhf.texi: Mention the new module.
3230
3231         tanh: Use a .m4 file.
3232         * m4/tanh.m4: New file.
3233         * modules/tanh (Files): Add it.
3234         (configure.ac): Just invoke gl_FUNC_TANH.
3235
3236 2011-10-08  Bruno Haible  <bruno@clisp.org>
3237
3238         Tests for module 'coshf'.
3239         * modules/coshf-tests: New file.
3240         * tests/test-coshf.c: New file.
3241
3242         New module 'coshf'.
3243         * lib/math.in.h (coshf): New declaration.
3244         * lib/coshf.c: New file.
3245         * m4/coshf.m4: New file.
3246         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
3247         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
3248         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
3249         * modules/coshf: New file.
3250         * tests/test-math-c++.cc: Check the declaration of coshf.
3251         * doc/posix-functions/coshf.texi: Mention the new module.
3252
3253         cosh: Use a .m4 file.
3254         * m4/cosh.m4: New file.
3255         * modules/cosh (Files): Add it.
3256         (configure.ac): Just invoke gl_FUNC_COSH.
3257
3258 2011-10-08  Bruno Haible  <bruno@clisp.org>
3259
3260         Tests for module 'sinhf'.
3261         * modules/sinhf-tests: New file.
3262         * tests/test-sinhf.c: New file.
3263
3264         New module 'sinhf'.
3265         * lib/math.in.h (sinhf): New declaration.
3266         * lib/sinhf.c: New file.
3267         * m4/sinhf.m4: New file.
3268         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
3269         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
3270         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
3271         * modules/sinhf: New file.
3272         * tests/test-math-c++.cc: Check the declaration of sinhf.
3273         * doc/posix-functions/sinhf.texi: Mention the new module.
3274
3275         sinh: Use a .m4 file.
3276         * m4/sinh.m4: New file.
3277         * modules/sinh (Files): Add it.
3278         (configure.ac): Just invoke gl_FUNC_SINH.
3279
3280 2011-10-08  Bruno Haible  <bruno@clisp.org>
3281
3282         Tests for module 'atan2f'.
3283         * modules/atan2f-tests: New file.
3284         * tests/test-atan2f.c: New file.
3285
3286         New module 'atan2f'.
3287         * lib/math.in.h (atan2f): New declaration.
3288         * lib/atan2f.c: New file.
3289         * m4/atan2f.m4: New file.
3290         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
3291         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
3292         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
3293         * modules/atan2f: New file.
3294         * tests/test-math-c++.cc: Check the declaration of atan2f.
3295         * doc/posix-functions/atan2f.texi: Mention the new module.
3296
3297         atan2: Use a .m4 file.
3298         * m4/atan2.m4: New file.
3299         * modules/atan2 (Files): Add it.
3300         (configure.ac): Just invoke gl_FUNC_ATAN2.
3301
3302 2011-10-08  Bruno Haible  <bruno@clisp.org>
3303
3304         Tests for module 'atanf'.
3305         * modules/atanf-tests: New file.
3306         * tests/test-atanf.c: New file.
3307
3308         New module 'atanf'.
3309         * lib/math.in.h (atanf): New declaration.
3310         * lib/atanf.c: New file.
3311         * m4/atanf.m4: New file.
3312         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
3313         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
3314         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
3315         * modules/atanf: New file.
3316         * tests/test-math-c++.cc: Check the declaration of atanf.
3317         * doc/posix-functions/atanf.texi: Mention the new module.
3318
3319         atan: Use a .m4 file.
3320         * m4/atan.m4: New file.
3321         * modules/atan (Files): Add it.
3322         (configure.ac): Just invoke gl_FUNC_ATAN.
3323
3324 2011-10-08  Bruno Haible  <bruno@clisp.org>
3325
3326         Tests for module 'acosf'.
3327         * modules/acosf-tests: New file.
3328         * tests/test-acosf.c: New file.
3329
3330         New module 'acosf'.
3331         * lib/math.in.h (acosf): New declaration.
3332         * lib/acosf.c: New file.
3333         * m4/acosf.m4: New file.
3334         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
3335         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
3336         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
3337         * modules/acosf: New file.
3338         * tests/test-math-c++.cc: Check the declaration of acosf.
3339         * doc/posix-functions/acosf.texi: Mention the new module.
3340
3341         acos: Use a .m4 file.
3342         * m4/acos.m4: New file.
3343         * modules/acos (Files): Add it.
3344         (configure.ac): Just invoke gl_FUNC_ACOS.
3345
3346 2011-10-08  Bruno Haible  <bruno@clisp.org>
3347
3348         Tests for module 'asinf'.
3349         * modules/asinf-tests: New file.
3350         * tests/test-asinf.c: New file.
3351
3352         New module 'asinf'.
3353         * lib/math.in.h (asinf): New declaration.
3354         * lib/asinf.c: New file.
3355         * m4/asinf.m4: New file.
3356         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
3357         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
3358         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
3359         * modules/asinf: New file.
3360         * tests/test-math-c++.cc: Check the declaration of asinf.
3361         * doc/posix-functions/asinf.texi: Mention the new module.
3362
3363         asin: Use a .m4 file.
3364         * m4/asin.m4: New file.
3365         * modules/asin (Files): Add it.
3366         (configure.ac): Just invoke gl_FUNC_ASIN.
3367
3368 2011-10-08  Bruno Haible  <bruno@clisp.org>
3369
3370         Tests for module 'tanf'.
3371         * modules/tanf-tests: New file.
3372         * tests/test-tanf.c: New file.
3373
3374         New module 'tanf'.
3375         * lib/math.in.h (tanf): New declaration.
3376         * lib/tanf.c: New file.
3377         * m4/tanf.m4: New file.
3378         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
3379         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
3380         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
3381         * modules/tanf: New file.
3382         * tests/test-math-c++.cc: Check the declaration of tanf.
3383         * doc/posix-functions/tanf.texi: Mention the new module.
3384
3385         tan: Use a .m4 file.
3386         * m4/tan.m4: New file.
3387         * modules/tan (Files): Add it.
3388         (configure.ac): Just invoke gl_FUNC_TAN.
3389
3390 2011-10-08  Bruno Haible  <bruno@clisp.org>
3391
3392         Tests for module 'cosf'.
3393         * modules/cosf-tests: New file.
3394         * tests/test-cosf.c: New file.
3395
3396         New module 'cosf'.
3397         * lib/math.in.h (cosf): New declaration.
3398         * lib/cosf.c: New file.
3399         * m4/cosf.m4: New file.
3400         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
3401         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
3402         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
3403         * modules/cosf: New file.
3404         * tests/test-math-c++.cc: Check the declaration of cosf.
3405         * doc/posix-functions/cosf.texi: Mention the new module.
3406
3407         cos: Use a .m4 file.
3408         * m4/cos.m4: New file.
3409         * modules/cos (Files): Add it.
3410         (configure.ac): Just invoke gl_FUNC_COS.
3411
3412 2011-10-08  Bruno Haible  <bruno@clisp.org>
3413
3414         Tests for module 'sinf'.
3415         * modules/sinf-tests: New file.
3416         * tests/test-sinf.c: New file.
3417
3418         New module 'sinf'.
3419         * lib/math.in.h (sinf): New declaration.
3420         * lib/sinf.c: New file.
3421         * m4/sinf.m4: New file.
3422         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
3423         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
3424         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
3425         * modules/sinf: New file.
3426         * tests/test-math-c++.cc: Check the declaration of sinf.
3427         * doc/posix-functions/sinf.texi: Mention the new module.
3428
3429         sin: Use a .m4 file.
3430         * m4/sin.m4: New file.
3431         * modules/sin (Files): Add it.
3432         (configure.ac): Just invoke gl_FUNC_SIN.
3433
3434 2011-10-08  Bruno Haible  <bruno@clisp.org>
3435
3436         Tests for module 'powf'.
3437         * modules/powf-tests: New file.
3438         * tests/test-powf.c: New file.
3439
3440         New module 'powf'.
3441         * lib/math.in.h (powf): New declaration.
3442         * lib/powf.c: New file.
3443         * m4/powf.m4: New file.
3444         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
3445         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
3446         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
3447         * modules/powf: New file.
3448         * tests/test-math-c++.cc: Check the declaration of powf.
3449         * doc/posix-functions/powf.texi: Mention the new module.
3450
3451         pow: Use a .m4 file.
3452         * m4/pow.m4: New file.
3453         * modules/pow (Files): Add it.
3454         (configure.ac): Just invoke gl_FUNC_POW.
3455
3456 2011-10-08  Bruno Haible  <bruno@clisp.org>
3457
3458         Tests for module 'log10f'.
3459         * modules/log10f-tests: New file.
3460         * tests/test-log10f.c: New file.
3461
3462         New module 'log10f'.
3463         * lib/math.in.h (log10f): New declaration.
3464         * lib/log10f.c: New file.
3465         * m4/log10f.m4: New file.
3466         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
3467         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
3468         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
3469         * modules/log10f: New file.
3470         * tests/test-math-c++.cc: Check the declaration of log10f.
3471         * doc/posix-functions/log10f.texi: Mention the new module.
3472
3473         log10: Use a .m4 file.
3474         * m4/log10.m4: New file.
3475         * modules/log10 (Files): Add it.
3476         (configure.ac): Just invoke gl_FUNC_LOG10.
3477
3478 2011-10-08  Bruno Haible  <bruno@clisp.org>
3479
3480         Tests for module 'logf'.
3481         * modules/logf-tests: New file.
3482         * tests/test-logf.c: New file.
3483
3484         New module 'logf'.
3485         * lib/math.in.h (logf): New declaration.
3486         * lib/logf.c: New file.
3487         * m4/logf.m4: New file.
3488         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
3489         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
3490         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
3491         * modules/logf: New file.
3492         * tests/test-math-c++.cc: Check the declaration of logf.
3493         * doc/posix-functions/logf.texi: Mention the new module.
3494
3495         log: Use a .m4 file.
3496         * m4/log.m4: New file.
3497         * modules/log (Files): Add it.
3498         (configure.ac): Just invoke gl_FUNC_LOG.
3499
3500 2011-10-08  Bruno Haible  <bruno@clisp.org>
3501
3502         Tests for module 'expf'.
3503         * modules/expf-tests: New file.
3504         * tests/test-expf.c: New file.
3505
3506         New module 'expf'.
3507         * lib/math.in.h (expf): New declaration.
3508         * lib/expf.c: New file.
3509         * m4/expf.m4: New file.
3510         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
3511         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
3512         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
3513         * modules/expf: New file.
3514         * tests/test-math-c++.cc: Check the declaration of expf.
3515         * doc/posix-functions/expf.texi: Mention the new module.
3516
3517         exp: Use a .m4 file.
3518         * m4/exp.m4: New file.
3519         * modules/exp (Files): Add it.
3520         (configure.ac): Just invoke gl_FUNC_EXP.
3521
3522 2011-10-08  Bruno Haible  <bruno@clisp.org>
3523
3524         Tests for module 'sqrtf'.
3525         * modules/sqrtf-tests: New file.
3526         * tests/test-sqrtf.c: New file.
3527
3528         New module 'sqrtf'.
3529         * lib/math.in.h (sqrtf): New declaration.
3530         * lib/sqrtf.c: New file.
3531         * m4/sqrtf.m4: New file.
3532         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
3533         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
3534         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
3535         * modules/sqrtf: New file.
3536         * tests/test-math-c++.cc: Check the declaration of sqrtf.
3537         * doc/posix-functions/sqrtf.texi: Mention the new module.
3538
3539 2011-10-08  Bruno Haible  <bruno@clisp.org>
3540
3541         Tests: Avoid link failures w.r.t. libintl.
3542         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
3543         $(LIBINTL).
3544         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
3545         $(LIBINTL).
3546         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
3547         against $(LIBINTL).
3548         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
3549         $(LIBINTL).
3550         * modules/openat-tests (Makefile.am): Link test-fchmodat against
3551         $(LIBINTL).
3552         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
3553
3554 2011-10-08  Bruno Haible  <bruno@clisp.org>
3555
3556         pow tests: Defeat compiler optimizations.
3557         * tests/test-pow.c (main): Assign arguments to x and y before use.
3558
3559 2011-10-08  Bruno Haible  <bruno@clisp.org>
3560
3561         gnulib-tool: Improve last commit.
3562         * gnulib-tool (func_modules_transitive_closure): Simplify code.
3563         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
3564         ignore dependencies that are not among the modules list.
3565
3566 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
3567
3568         gnulib-tool: don't follow dependencies to avoided modules
3569         This fixes a bug that is related to the previous one.
3570         * gnulib-tool (func_modules_transitive_closure)
3571         (func_emit_autoconf_snippets):
3572         Check whether a dependency is acceptable before using it.
3573         (--extract-dependencies): Report an error if --avoid is also used,
3574         since this combination of options is not yet supported.
3575
3576         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
3577         Problem reported by Peter Dyballa in
3578         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
3579         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
3580         when echoing "$condition".
3581
3582 2011-10-07  Bruno Haible  <bruno@clisp.org>
3583
3584         Fix documentation about math functions on MacOS X.
3585         * doc/posix-functions/exp2.texi: Don't say the function is missing on
3586         MacOS X 10.5.
3587         * doc/posix-functions/fdim.texi: Likewise.
3588         * doc/posix-functions/feclearexcept.texi: Likewise.
3589         * doc/posix-functions/fegetenv.texi: Likewise.
3590         * doc/posix-functions/fegetround.texi: Likewise.
3591         * doc/posix-functions/feholdexcept.texi: Likewise.
3592         * doc/posix-functions/feraiseexcept.texi: Likewise.
3593         * doc/posix-functions/fesetenv.texi: Likewise.
3594         * doc/posix-functions/fesetround.texi: Likewise.
3595         * doc/posix-functions/fetestexcept.texi: Likewise.
3596         * doc/posix-functions/feupdateenv.texi: Likewise.
3597         * doc/posix-functions/fmax.texi: Likewise.
3598         * doc/posix-functions/fmin.texi: Likewise.
3599         * doc/posix-functions/log2.texi: Likewise.
3600         * doc/posix-functions/modff.texi: Likewise.
3601         * doc/posix-functions/nan.texi: Likewise.
3602         * doc/posix-functions/nanf.texi: Likewise.
3603         * doc/posix-functions/nextafterf.texi: Likewise.
3604         * doc/posix-functions/remquo.texi: Likewise.
3605
3606 2011-10-07  Bruno Haible  <bruno@clisp.org>
3607
3608         modff: Drop assumption about library that defines modff.
3609         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
3610         AC_CHECK_FUNCS.
3611         * modules/modff (Files): Add m4/mathfunc.m4.
3612
3613 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
3614
3615         raise tests: Avoid a GCC warning.
3616         * tests/test-raise.c (handler): Use _Noreturn.
3617
3618 2011-10-07  Bruno Haible  <bruno@clisp.org>
3619
3620         Tests for module 'ldexpf'.
3621         * modules/ldexpf-tests: New file.
3622         * tests/test-ldexpf.c: New file.
3623
3624         New module 'ldexpf'.
3625         * lib/math.in.h (ldexpf): New declaration.
3626         * lib/ldexpf.c: New file.
3627         * m4/ldexpf.m4: New file.
3628         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
3629         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
3630         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
3631         * modules/ldexpf: New file.
3632         * tests/test-math-c++.cc: Check the declaration of ldexpf.
3633         * doc/posix-functions/ldexpf.texi: Mention the new module.
3634
3635 2011-10-06  Bruno Haible  <bruno@clisp.org>
3636
3637         frexpf: Work around problems on IRIX and mingw.
3638         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
3639         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
3640         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
3641         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
3642         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
3643         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
3644         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
3645
3646 2011-10-06  Bruno Haible  <bruno@clisp.org>
3647
3648         fabsf: Drop assumption about library that defines fabsf.
3649         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
3650         AC_CHECK_FUNCS.
3651         * modules/fabsf (Files): Add m4/mathfunc.m4.
3652
3653 2011-10-06  Bruno Haible  <bruno@clisp.org>
3654
3655         frexpf: Drop assumption about library that defines frexpf.
3656         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
3657         'int *', 'float *', 'long double *', 'float', 'long double'.
3658         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
3659         AC_CHECK_FUNCS.
3660         * modules/frexpf (Files): Add m4/mathfunc.m4.
3661
3662         Tests for module 'frexpf'.
3663         * modules/frexpf-tests: New file.
3664         * tests/test-frexpf.c: New file.
3665
3666         New module 'frexpf'.
3667         * lib/math.in.h (frexpf): New declaration.
3668         * lib/frexpf.c: New file.
3669         * m4/frexpf.m4: New file.
3670         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
3671         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
3672         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
3673         * modules/frexpf: New file.
3674         * tests/test-math-c++.cc: Check the declaration of frexpf.
3675         * doc/posix-functions/frexpf.texi: Mention the new module.
3676
3677 2011-10-06  Bruno Haible  <bruno@clisp.org>
3678
3679         math: Sort function declarations of math.in.h.
3680         * lib/math.in.h (frexp, logb): Move declarations.
3681
3682 2011-10-05  Bruno Haible  <bruno@clisp.org>
3683
3684         Tests for module 'modff'.
3685         * modules/modff-tests: New file.
3686         * tests/test-modff.c: New file.
3687
3688         New module 'modff'.
3689         * lib/math.in.h (modff): New declaration.
3690         * lib/modff.c: New file.
3691         * m4/modff.m4: New file.
3692         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
3693         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
3694         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
3695         * modules/modff: New file.
3696         * tests/test-math-c++.cc: Check the declaration of modff.
3697         * doc/posix-functions/modff.texi: Mention the new module.
3698
3699         modf tests: Make test sharper.
3700         * tests/test-modf.c (main): Strengthen upper bound.
3701
3702         modf: Use a .m4 file.
3703         * m4/modf.m4: New file.
3704         * modules/modf (Files): Add it.
3705         (configure.ac): Just invoke gl_FUNC_MODF.
3706
3707 2011-10-05  Bruno Haible  <bruno@clisp.org>
3708
3709         Tests for module 'fmodf'.
3710         * modules/fmodf-tests: New file.
3711         * tests/test-fmodf.c: New file.
3712
3713         New module 'fmodf'.
3714         * lib/math.in.h (fmodf): New declaration.
3715         * lib/fmodf.c: New file.
3716         * m4/fmodf.m4: New file.
3717         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
3718         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
3719         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
3720         * modules/fmodf: New file.
3721         * tests/test-math-c++.cc: Check the declaration of fmodf.
3722         * doc/posix-functions/fmodf.texi: Mention the new module.
3723
3724         fmod: Use a .m4 file.
3725         * m4/fmod.m4: New file.
3726         * modules/fmod (Files): Add it.
3727         (configure.ac): Just invoke gl_FUNC_FMOD.
3728
3729 2011-10-05  Bruno Haible  <bruno@clisp.org>
3730
3731         Tests for module 'fabsf'.
3732         * modules/fabsf-tests: New file.
3733         * tests/test-fabsf.c: New file.
3734
3735         New module 'fabsf'.
3736         * lib/math.in.h (fabsf): New declaration.
3737         * lib/fabsf.c: New file.
3738         * m4/fabsf.m4: New file.
3739         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
3740         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
3741         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
3742         * modules/fabsf: New file.
3743         * tests/test-math-c++.cc: Check the declaration of fabsf.
3744         * doc/posix-functions/fabsf.texi: Mention the new module.
3745
3746         fabs: Use a .m4 file.
3747         * m4/fabs.m4: New file.
3748         * modules/fabs (Files): Add it.
3749         (configure.ac): Just invoke gl_FUNC_FABS.
3750
3751 2011-10-05  Jim Meyering  <meyering@redhat.com>
3752
3753         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
3754         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
3755         ls -lL regression introduced in coreutils-8.12, it does so at the
3756         cost of an additional stat call in the common case.  Besides, now
3757         that the kernel change that prompted commit 95f7c57f has been reverted
3758         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
3759         we have no use for commit 95f7c57f, "file-has-acl: use
3760         acl_extended_file_nofollow if available".
3761
3762 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
3763
3764         file-has-acl: revert unintended change in behavior of ls -L
3765         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
3766         derived from...
3767         (file_has_acl): ...code here.  Call it.
3768         This problem was introduced with 2011-07-22 commit 95f7c57f,
3769         "file-has-acl: use acl_extended_file_nofollow if available".
3770         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
3771
3772 2011-10-03  Bruno Haible  <bruno@clisp.org>
3773
3774         poll: Avoid link errors on MSVC.
3775         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
3776         * modules/poll (Depends-on): Add sockets.
3777         (Link): New section.
3778         * NEWS: Mention the change.
3779         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
3780         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
3781         $(LIB_POLL) instead of $(LIBSOCKET).
3782
3783 2011-10-03  Bruno Haible  <bruno@clisp.org>
3784
3785         sys_select tests: Fix link error on MSVC 9.
3786         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
3787         with $(LIB_SELECT) instead of $(LIBSOCKET).
3788
3789 2011-10-03  Bruno Haible  <bruno@clisp.org>
3790
3791         sys_select: Fix compilation error on mingw.
3792         * lib/sys_select.in.h: On native Windows, include <io.h>.
3793
3794 2011-10-03  Bruno Haible  <bruno@clisp.org>
3795
3796         wmemset: Support for MSVC.
3797         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
3798         whether wmemset() exists.
3799
3800 2011-10-03  Bruno Haible  <bruno@clisp.org>
3801
3802         wmemmove: Support for MSVC.
3803         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
3804         whether wmemmove() exists.
3805
3806 2011-10-03  Bruno Haible  <bruno@clisp.org>
3807
3808         wmemcpy: Support for MSVC.
3809         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
3810         whether wmemcpy() exists.
3811
3812 2011-10-03  Bruno Haible  <bruno@clisp.org>
3813
3814         wmemcmp: Support for MSVC.
3815         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
3816         whether wmemcmp() exists.
3817
3818 2011-10-03  Bruno Haible  <bruno@clisp.org>
3819
3820         wmemchr: Support for MSVC.
3821         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
3822         whether wmemchr() exists.
3823
3824 2011-10-03  Bruno Haible  <bruno@clisp.org>
3825
3826         glthread/*, strsignal: Support for MSVC.
3827         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
3828         including <winsock.h> on MSVC 9.
3829         * lib/glthread/lock.h: Likewise.
3830         * lib/glthread/thread.h: Likewise.
3831         * lib/glthread/tls.h: Likewise.
3832         * lib/glthread/yield.h: Likewise.
3833         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
3834         if HAVE_UNISTD_H is false.
3835         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
3836
3837 2011-10-03  Bruno Haible  <bruno@clisp.org>
3838
3839         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
3840         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
3841         Set to 100000.
3842
3843 2011-10-03  Bruno Haible  <bruno@clisp.org>
3844
3845         acl: Fix specification.
3846         * lib/file-has-acl.c (file_has_acl): Fix specification.
3847
3848 2011-10-03  Bruno Haible  <bruno@clisp.org>
3849
3850         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
3851         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
3852         (compute_curr_prefix, shared_library_fullname,
3853         find_shared_library_fullname, get_shared_library_fullname, relocate):
3854         Use it together with PIC && INSTALLDIR.
3855         Reported by <jojelino@gmail.com>
3856         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
3857
3858 2011-10-01  Jim Meyering  <meyering@redhat.com>
3859
3860         maint.mk: adjust a release-related rule not to require use of gzip
3861         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
3862         Instead, check each file in $(DIST_ARCHIVES).  This is better for
3863         projects that build only .tar.xz files.  Also fix an erroneous test.
3864
3865         test-linkat: don't leave behind a temporary file
3866         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
3867         Otherwise, coreutils' "make distcheck" would fail with this:
3868           Only in /c/cu/tests/torture/coreutils/test/\
3869             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
3870           make[2]: *** [my-distcheck] Error 1
3871
3872         float, math: add omitted file
3873         * lib/itold.c: Add file, required for yesterday's float change.
3874
3875 2011-10-01  Bruno Haible  <bruno@clisp.org>
3876
3877         isinf: Fix for OpenBSD/x86.
3878         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
3879         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
3880         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
3881
3882 2011-10-01  Bruno Haible  <bruno@clisp.org>
3883
3884         isfinite: Fix syntax error in configure test.
3885         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
3886
3887         isfinite: Fix typo.
3888         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
3889         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
3890
3891 2011-10-01  Bruno Haible  <bruno@clisp.org>
3892
3893         nonblocking tests: Fix test failure on Linux/IA-64.
3894         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
3895         Set to 270000.
3896
3897 2011-10-01  Bruno Haible  <bruno@clisp.org>
3898
3899         mkfifoat tests: Fix a test failure on mingw.
3900         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
3901         with error ENOSYS.
3902
3903 2011-09-30  Bruno Haible  <bruno@clisp.org>
3904
3905         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
3906         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
3907         'long double'. Set REPLACE_ITOLD.
3908         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
3909         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
3910         * lib/itold.c: New file.
3911         * modules/float (Files): Add lib/itold.c.
3912         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
3913         (Makefile.am): Substitute REPLACE_ITOLD.
3914         * modules/math (Depends-on): Add float.
3915         (Makefile.am): Substitute REPLACE_ITOLD.
3916         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
3917         * doc/posix-headers/math.texi: Likewise.
3918         * doc/posix-functions/logl.texi: Likewise.
3919
3920 2011-09-30  Bruno Haible  <bruno@clisp.org>
3921
3922         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
3923         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
3924         Set to 140000.
3925
3926 2011-09-30  Bruno Haible  <bruno@clisp.org>
3927
3928         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
3929         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
3930         invocation, say "right after AC_PROG_CC_STDC", not "right after
3931         AC_PROG_CC".
3932         Reported by Gary V. Vaughan <gary@gnu.org>.
3933
3934 2011-09-30  Bruno Haible  <bruno@clisp.org>
3935
3936         Centralize C99 requirement.
3937         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
3938         * modules/stdarg (configure.ac-early): Invoke it instead of
3939         AC_PROG_CC_STDC.
3940         Reported by Gary V. Vaughan and Paul Eggert.
3941
3942 2011-09-29  Bruno Haible  <bruno@clisp.org>
3943
3944         float: Fix LDBL_MAX value on Linux/PowerPC.
3945         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
3946         on Linux/PowerPC.
3947         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
3948         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
3949         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
3950         platform.
3951         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
3952
3953 2011-09-29  Bruno Haible  <bruno@clisp.org>
3954
3955         doc: Improve doc about gl_EARLY.
3956         * doc/gnulib-tool.texi (Initial import): Mention where to place an
3957         AC_PROG_CC_STDC invocation.
3958         Reported by Gary V. Vaughan <gary@gnu.org>.
3959
3960 2011-09-28  Bruno Haible  <bruno@clisp.org>
3961
3962         fgetc, fputc, fread, fwrite tests: Fix link error.
3963         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
3964         on non-MSVC platforms.
3965         * tests/test-fputc.c (main): Likewise.
3966         * tests/test-fread.c (main): Likewise.
3967         * tests/test-fwrite.c (main): Likewise.
3968         Reported by Jim Meyering.
3969
3970 2011-09-27  Bruno Haible  <bruno@clisp.org>
3971
3972         fputc, fwrite tests: Avoid test failure on MSVC.
3973         * tests/test-fgetc.c: Include msvc-inval.h.
3974         (main): Invoke gl_msvc_inval_ensure_handler.
3975         * tests/test-fputc.c: Include msvc-inval.h.
3976         (main): Invoke gl_msvc_inval_ensure_handler.
3977         * tests/test-fread.c: Include msvc-inval.h.
3978         (main): Invoke gl_msvc_inval_ensure_handler.
3979         * tests/test-fwrite.c: Include msvc-inval.h.
3980         (main): Invoke gl_msvc_inval_ensure_handler.
3981         * modules/fgetc-tests (Depends-on): Add msvc-inval.
3982         * modules/fputc-tests (Depends-on): Likewise.
3983         * modules/fread-tests (Depends-on): Likewise.
3984         * modules/fwrite-tests (Depends-on): Likewise.
3985
3986 2011-09-27  Bruno Haible  <bruno@clisp.org>
3987
3988         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
3989         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
3990         (raise): Remove older, duplicated declaration.
3991         (_gl_raise_SIGPIPE): New declaration.
3992         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
3993         (rpl_raise): Remove function.
3994         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
3995         a gnulib-defined SIGPIPE here.
3996         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
3997         'sigprocmask' has detected missing signal-blocking and the module
3998         'sigpipe' is enabled.
3999         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4000
4001 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
4002
4003         base64-tests: avoid memory leak
4004         * tests/test-base64.c (main): Plug memory leak.
4005
4006         base32: new module
4007         * modules/base32: New module.
4008         * lib/base32.c: New file.
4009         * lib/base32.h: Likewise.
4010         * m4/base32.m4: Likewise.
4011         * modules/base32-tests: New test.
4012         * tests/test-base32.c: Likewise.
4013         * MODULES.html.sh (Misc): Mention it.
4014
4015 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4016
4017         gnulib: use more-standard license notice wording
4018         * gnulib-tool (func_emit_copyright_notice): When emitting a
4019         license notice into a file, use the standard wording as suggested
4020         by the current information for GNU maintainers, except say "file"
4021         rather than "program".  The new wording gives a license version
4022         number, which addresses an issue raised by Glenn Morris in
4023         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
4024         * m4/onceonly.m4: Use that same wording here, too.
4025
4026         dup2: minor simplification
4027         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
4028         as lib/dup2.c no longer uses 'inline'.
4029
4030 2011-09-25  Bruno Haible  <bruno@clisp.org>
4031
4032         strings: Fix compilation error on MSVC.
4033         * lib/strings.in.h: Include <stddef.h> for size_t.
4034
4035 2011-09-25  Bruno Haible  <bruno@clisp.org>
4036
4037         fflush et al.: Document limitation on MSVC.
4038         * doc/posix-functions/fflush.texi: Document possible crash in handling
4039         mode other than DEFAULT_HANDLING.
4040         * doc/posix-functions/fgetc.texi: Likewise.
4041         * doc/posix-functions/fputc.texi: Likewise.
4042         * doc/posix-functions/fread.texi: Likewise.
4043         * doc/posix-functions/fwrite.texi: Likewise.
4044
4045 2011-09-25  Bruno Haible  <bruno@clisp.org>
4046
4047         msvc-inval: Allow three invalid parameter handling modes.
4048         * lib/msvc-inval.h: Don't include <stdlib.h> here.
4049         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
4050         macros.
4051         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
4052         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
4053         SANE_LIBRARY_HANDLING as a no-op.
4054         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
4055         <stdlib.h>.
4056         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
4057
4058 2011-09-25  Bruno Haible  <bruno@clisp.org>
4059
4060         msvc-inval: Make handler multithread-safe.
4061         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
4062         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
4063         declarations.
4064         (gl_msvc_inval_current): New declaration.
4065         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4066         Operate on the structure returned by gl_msvc_inval_current().
4067         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
4068         Remove varaiables.
4069         (tls_index, tls_initialized): New variables.
4070         (not_per_thread): New variable.
4071         (gl_msvc_inval_current): New function.
4072         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
4073         returned by gl_msvc_inval_current().
4074
4075 2011-09-25  Bruno Haible  <bruno@clisp.org>
4076
4077         msvc-inval: Install handler globally.
4078         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
4079         !_MSC_VER.
4080         (gl_msvc_invalid_parameter_handler): Remove declaration.
4081         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
4082         declarations.
4083         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4084         Install the handler globally, don't uninstall it.
4085         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
4086         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
4087         currently valid, call RaiseException instead.
4088         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
4089         for !_MSC_VER.
4090
4091 2011-09-25  Bruno Haible  <bruno@clisp.org>
4092
4093         strerror_r-posix: Fix for MSVC 9.
4094         * lib/strerror_r.c (local_snprintf): New function.
4095         (snprintf): Define to local_snprintf, not to _snprintf.
4096
4097 2011-09-25  Bruno Haible  <bruno@clisp.org>
4098
4099         ftruncate: Support for MSVC 9.
4100         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
4101         (chsize_nothrow): New function.
4102         (chsize): Redefine as a macro.
4103         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
4104         * modules/ftruncate (Depends-on): Add msvc-inval.
4105
4106 2011-09-25  Bruno Haible  <bruno@clisp.org>
4107
4108         New module 'fstat'.
4109         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
4110         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
4111         * lib/fchdir.c (rpl_fstat): Remove function.
4112         * m4/fstat.m4: New file.
4113         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
4114         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
4115         declared.
4116         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
4117         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
4118         * modules/fstat: New file.
4119         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
4120         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
4121         is set.
4122         * doc/posix-functions/fstat.texi: Mention the new module and the
4123         problem on MSVC.
4124         * NEWS: Mention the change.
4125         * modules/acl (Depends-on): Add fstat.
4126         * modules/chdir-safer (Depends-on): Likewise.
4127         * modules/chown (Depends-on): Likewise.
4128         * modules/copy-file (Depends-on): Likewise.
4129         * modules/fchdir (Depends-on): Likewise.
4130         * modules/fdopendir (Depends-on): Likewise.
4131         * modules/fopen (Depends-on): Likewise.
4132         * modules/fts (Depends-on): Likewise.
4133         * modules/getcwd (Depends-on): Likewise.
4134         * modules/isapipe (Depends-on): Likewise.
4135         * modules/linkat (Depends-on): Likewise.
4136         * modules/lseek (Depends-on): Likewise.
4137         * modules/mkdir-p (Depends-on): Likewise.
4138         * modules/open (Depends-on): Likewise.
4139         * modules/openat (Depends-on): Likewise.
4140         * modules/read-file (Depends-on): Likewise.
4141         * modules/renameat (Depends-on): Likewise.
4142         * modules/utimens (Depends-on): Likewise.
4143
4144 2011-09-25  Bruno Haible  <bruno@clisp.org>
4145
4146         linkat: Fix compilation on MSVC 9.
4147         * lib/linkat.c: Don't include <stdint.h>.
4148
4149 2011-09-25  Bruno Haible  <bruno@clisp.org>
4150
4151         fclose: Support for MSVC 9.
4152         * lib/fclose.c: Include msvc-inval.h.
4153         (fclose_nothrow): New function.
4154         (rpl_fclose): Use it.
4155         * modules/fclose (Depends-on): Add msvc-inval.
4156         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
4157
4158 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
4159
4160         dup2: minor simplifications
4161         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
4162         that it's a performance win.
4163         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
4164         ! defined __CYGWIN__)" to "ifdef F_GETFL".
4165
4166 2011-09-24  Jim Meyering  <meyering@redhat.com>
4167
4168         test-futimens: avoid a warning from gcc -Wshadow
4169         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
4170         to avoid a shadowing warning.
4171
4172 2011-09-24  Bruno Haible  <bruno@clisp.org>
4173
4174         fdopen: Support for MSVC 9.
4175         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
4176         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
4177         * lib/fdopen.c: Include msvc-inval.h.
4178         (fdopen_nothrow): New function.
4179         (rpl_fdopen): Use it.
4180         * modules/fdopen (Depends-on): Add msvc-inval.
4181         * modules/fclose-tests (Depends-on): Add fdopen.
4182         * modules/fflush-tests (Depends-on): Likewise.
4183         * modules/fgetc-tests (Depends-on): Likewise.
4184         * modules/fputc-tests (Depends-on): Likewise.
4185         * modules/fread-tests (Depends-on): Likewise.
4186         * modules/freopen-tests (Depends-on): Likewise.
4187         * modules/fseeko-tests (Depends-on): Likewise.
4188         * modules/ftello-tests (Depends-on): Likewise.
4189         * modules/fwrite-tests  (Depends-on): Likewise.
4190         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
4191
4192 2011-09-24  Bruno Haible  <bruno@clisp.org>
4193
4194         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
4195         * modules/fgetc-tests (Depends-on): Add unistd.
4196         * modules/fputc-tests (Depends-on): Likewise.
4197         * modules/fread-tests (Depends-on): Likewise.
4198         * modules/fwrite-tests (Depends-on): Likewise.
4199
4200 2011-09-24  Bruno Haible  <bruno@clisp.org>
4201
4202         dup: Simplify autoconf test.
4203         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
4204         on gl_MSVC_INVAL's result.
4205
4206 2011-09-24  Bruno Haible  <bruno@clisp.org>
4207
4208         Tests for function fwrite().
4209         * modules/fwrite-tests: New file.
4210         * tests/test-fwrite.c: New file.
4211         * modules/stdio-tests (Depends-on): Add fwrite-tests.
4212
4213         Tests for function fread().
4214         * modules/fread-tests: New file.
4215         * tests/test-fread.c: New file.
4216         * modules/stdio-tests (Depends-on): Add fread-tests.
4217
4218         Activate fputc tests.
4219         * modules/stdio-tests (Depends-on): Add fputc-tests.
4220
4221         Enhance fgetc, fputc tests.
4222         * tests/test-fgetc.c (main): Also test the stream's error indicator.
4223         * tests/test-fputc.c (main): Likewise.
4224
4225 2011-09-24  Bruno Haible  <bruno@clisp.org>
4226
4227         write: Support for MSVC 9.
4228         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4229         is not 1.
4230         * lib/write.c (write_nothrow): New function.
4231         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
4232         not 1. Use write_nothrow.
4233         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
4234         invalid parameter handler.
4235         (gl_PREREQ_WRITE): New macro.
4236         * modules/write (Depends-on): Add msvc-inval.
4237         (configure.ac): Invoke gl_PREREQ_WRITE.
4238         * doc/posix-functions/write.texi: Mention the problem on MSVC.
4239
4240 2011-09-24  Bruno Haible  <bruno@clisp.org>
4241
4242         read: Fix last commit.
4243         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
4244
4245 2011-09-24  Bruno Haible  <bruno@clisp.org>
4246
4247         dup2: Fix last commit.
4248         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
4249         (rpl_dup2): Disable fcntl workaround on native Windows.
4250
4251         sigprocmask: Make code safer.
4252         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
4253         section that changes macro definitions for this compilation unit.
4254
4255 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
4256
4257         dup2: clarify by coalescing Windows-specific material
4258         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
4259         "msvc-nothrow.h"' to the Windows-specific section, so that the
4260         Emacs source need not contain these include files.
4261         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
4262         Windows-specific fixes into this function rather than just the
4263         nothrow fix, as this shortens and clarifies the code.  Always
4264         define as a function, as that's a bit cleaner than having it be
4265         sometimes a function and sometimes a macro.
4266         (rpl_dup2): Move the Windows-specific stuff out of here and into
4267         ms_windows_dup2.  Don't protect the Haiku-related fix with
4268         "#if !defined __linux__", as the same code also works around
4269         a Linux kernel bug, and it doesn't add any system calls on any
4270         platform.  Add comment about FreeBSD 6.1.
4271
4272         sigprocmask: move #include directive
4273         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
4274         Windows-specific section, so that the Emacs source need not
4275         contain msvc-inval.h.
4276
4277 2011-09-23  Bruno Haible  <bruno@clisp.org>
4278
4279         read: Support for MSVC 9.
4280         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4281         is not 1.
4282         * lib/read.c (read_nothrow): New function.
4283         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
4284         read_nothrow.
4285         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
4286         invalid parameter handler.
4287         (gl_PREREQ_READ): New macro.
4288         * modules/read (Depends-on): Add msvc-inval.
4289         (configure.ac): Invoke gl_PREREQ_READ.
4290         * doc/posix-functions/read.texi: Mention the problem on MSVC.
4291
4292 2011-09-23  Bruno Haible  <bruno@clisp.org>
4293
4294         close: Support for MSVC 9.
4295         * lib/close.c: Include <errno.h>, msvc-inval.h.
4296         (close_nothrow): New function.
4297         (rpl_close): Use it.
4298         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
4299         invalid parameter handler.
4300         * modules/close (Depends-on): Add msvc-inval.
4301         * modules/dup2-tests (Depends-on): Add close.
4302         * modules/dup3-tests (Depends-on): Likewise.
4303         * modules/fcntl-tests (Depends-on): Likewise.
4304         * modules/spawn-pipe-tests (Depends-on): Likewise.
4305         * modules/unistd-safer-tests (Depends-on): Likewise.
4306         * doc/posix-functions/close.texi: Mention the problem on MSVC.
4307
4308 2011-09-23  Bruno Haible  <bruno@clisp.org>
4309
4310         New module 'dup'.
4311         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
4312         Allow replacement.
4313         * lib/dup.c: New file.
4314         * lib/fchdir.c (rpl_dup): Remove function.
4315         * m4/dup.m4: New file.
4316         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
4317         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
4318         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
4319         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
4320         * modules/dup: New file.
4321         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
4322         'dup' module is in use.
4323         * modules/fdopendir (Depends-on): Add dup.
4324         * modules/fdutimensat-tests (Depends-on): Likewise.
4325         * modules/fts (Depends-on): Likewise.
4326         * modules/futimens-tests (Depends-on): Likewise.
4327         * modules/posix_spawnp-tests (Depends-on): Likewise.
4328         * modules/unistd-safer-tests (Depends-on): Likewise.
4329         * modules/utimens-tests (Depends-on): Likewise.
4330         * doc/posix-functions/dup.texi: Mention the new module and the problem
4331         on MSVC.
4332
4333 2011-09-23  Bruno Haible  <bruno@clisp.org>
4334
4335         getdtablesize: Support for MSVC 9.
4336         * lib/getdtablesize.c: Include msvc-inval.h.
4337         (_setmaxstdio_nothrow): New function.
4338         (_setmaxstdio): Redefine it.
4339         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
4340         * modules/getdtablesize (Depends-on): Add msvc-inval.
4341         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
4342
4343 2011-09-23  Bruno Haible  <bruno@clisp.org>
4344
4345         signal-h: Rename from signal.
4346         * modules/signal-h: Renamed from modules/signal.
4347         * modules/pthread_sigmask (Depends-on): Update.
4348         * modules/raise (Depends-on): Likewise.
4349         * modules/sigaction (Depends-on): Likewise.
4350         * modules/sigpipe (Depends-on): Likewise.
4351         * modules/sigprocmask (Depends-on): Likewise.
4352         * modules/sys_select (Depends-on): Likewise.
4353         * modules/signal-h-tests: Renamed from modules/signal-tests.
4354         (Files, Depends-on, Makefile.am): Update.
4355         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
4356         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
4357         (Files, Makefile.am): Update.
4358         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
4359         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
4360         * modules/signal: New placeholder file.
4361         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
4362         * doc/posix-headers/signal.texi: Update.
4363         * NEWS: Mention the change.
4364
4365 2011-09-23  Bruno Haible  <bruno@clisp.org>
4366
4367         sigprocmask: Avoid crashes through signal() on MSVC 9.
4368         * lib/sigprocmask.c: Include msvc-inval.h.
4369         (signal_nothrow): New function.
4370         (signal): Redefine it.
4371         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
4372         * modules/sigprocmask (Depends-on): Add msvc-inval.
4373         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
4374
4375 2011-09-23  Bruno Haible  <bruno@clisp.org>
4376
4377         Tests for module 'raise'.
4378         * modules/raise-tests: New file.
4379         * tests/test-raise.c: New file.
4380
4381         raise: Support for MSVC.
4382         * lib/signal.in.h (raise): New declaration.
4383         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
4384         for native Windows platforms.
4385         * m4/raise.m4: New file.
4386         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
4387         HAVE_RAISE, REPLACE_RAISE.
4388         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
4389         REPLACE_RAISE.
4390         * modules/raise (Status, Notice): Remove fields.
4391         (Files): Add m4/raise.m4.
4392         (Depends-on): Add signal, msvc-inval.
4393         (configure.ac): Use the common idioms.
4394         (Maintainer): Add me.
4395         * tests/test-signal-c++.cc: Check the signature of raise.
4396         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
4397
4398 2011-09-23  Bruno Haible  <bruno@clisp.org>
4399
4400         pipe2: Fix compilation on pre-C99 compilers.
4401         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
4402
4403 2011-09-23  Bruno Haible  <bruno@clisp.org>
4404
4405         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
4406         * lib/msvc-nothrow.h: New file.
4407         * lib/msvc-nothrow.c: New file.
4408         * m4/msvc-nothrow.m4: New file.
4409         * modules/msvc-nothrow: New file.
4410         * lib/dup2.c: Include msvc-nothrow.h.
4411         (rpl_dup2): No need to protect _get_osfhandle call here.
4412         * lib/accept4.c: Include msvc-nothrow.h.
4413         * lib/error.c: Likewise.
4414         * lib/fcntl.c: Likewise.
4415         * lib/lseek.c: Likewise.
4416         * lib/nonblocking.c: Likewise.
4417         * lib/poll.c: Likewise.
4418         * lib/read.c: Likewise.
4419         * lib/select.c: Likewise.
4420         * lib/sockets.h: Likewise.
4421         * lib/sockets.c: Likewise.
4422         * lib/stdio-read.c: Likewise.
4423         * lib/stdio-write.c: Likewise.
4424         * lib/write.c: Likewise.
4425         * lib/w32sock.h: Likewise.
4426         * lib/w32spawn.h: Likewise.
4427         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
4428         * lib/fsync.c: Likewise.
4429         * lib/isapipe.c: Likewise.
4430         * modules/dup2 (Depends-on): Add msvc-nothrow.
4431         * modules/accept4 (Depends-on): Likewise.
4432         * modules/error (Depends-on): Likewise.
4433         * modules/fcntl (Depends-on): Likewise.
4434         * modules/lseek (Depends-on): Likewise.
4435         * modules/nonblocking (Depends-on): Likewise.
4436         * modules/poll (Depends-on): Likewise.
4437         * modules/read (Depends-on): Likewise.
4438         * modules/select (Depends-on): Likewise.
4439         * modules/sockets (Depends-on): Likewise.
4440         * modules/sigpipe (Depends-on): Likewise.
4441         * modules/write (Depends-on): Likewise.
4442         * modules/accept (Depends-on): Likewise.
4443         * modules/bind (Depends-on): Likewise.
4444         * modules/connect (Depends-on): Likewise.
4445         * modules/gethostname (Depends-on): Likewise.
4446         * modules/getpeername (Depends-on): Likewise.
4447         * modules/getsockname (Depends-on): Likewise.
4448         * modules/getsockopt (Depends-on): Likewise.
4449         * modules/ioctl (Depends-on): Likewise.
4450         * modules/listen (Depends-on): Likewise.
4451         * modules/recv (Depends-on): Likewise.
4452         * modules/recvfrom (Depends-on): Likewise.
4453         * modules/send (Depends-on): Likewise.
4454         * modules/sendto (Depends-on): Likewise.
4455         * modules/setsockopt (Depends-on): Likewise.
4456         * modules/shutdown (Depends-on): Likewise.
4457         * modules/socket (Depends-on): Likewise.
4458         * modules/execute (Depends-on): Likewise.
4459         * modules/spawn-pipe (Depends-on): Likewise.
4460         * modules/flock (Depends-on): Likewise.
4461         * modules/fsync (Depends-on): Likewise.
4462         * modules/isapipe (Depends-on): Likewise.
4463         * tests/test-cloexec.c: Include msvc-nothrow.h.
4464         * tests/test-dup-safer.c: Likewise.
4465         * tests/test-dup2.c: Likewise.
4466         * tests/test-dup3.c: Likewise.
4467         * tests/test-fcntl.c: Likewise.
4468         * tests/test-pipe.c: Likewise.
4469         * tests/test-pipe2.c: Likewise.
4470         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
4471         * modules/unistd-safer-tests (Depends-on): Likewise.
4472         * modules/dup2-tests (Depends-on): Likewise.
4473         * modules/dup3-tests (Depends-on): Likewise.
4474         * modules/fcntl-tests (Depends-on): Likewise.
4475         * modules/pipe-posix-tests (Depends-on): Likewise.
4476         * modules/pipe2-tests (Depends-on): Likewise.
4477
4478 2011-09-23  Bruno Haible  <bruno@clisp.org>
4479
4480         dup2: Make code more maintainable.
4481         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
4482         (rpl_dup2): Use it.
4483         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
4484         * modules/dup2 (configure.ac): Invoke it.
4485         Reported by Paul Eggert.
4486
4487 2011-09-23  Bruno Haible  <bruno@clisp.org>
4488
4489         msvc-inval: Fix compilation error.
4490         * lib/msvc-inval.h: Include <excpt.h>.
4491
4492 2011-09-23  Bruno Haible  <bruno@clisp.org>
4493
4494         mkdir: Tweak for MSVC 9.
4495         * lib/sys_stat.in.h: Update comments.
4496         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
4497
4498         Tests for module 'chdir'.
4499         * modules/chdir-tests: New file.
4500         * tests/test-chdir.c: New file.
4501
4502         New module 'chdir'.
4503         * modules/chdir: New file.
4504         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
4505         (chdir): New declaration.
4506         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
4507         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
4508         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
4509         * tests/test-unistd-c++.cc: Check signature of chdir.
4510         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
4511         * modules/chdir-long (Depends-on): Add chdir.
4512         * modules/fchdir (Depends-on): Likewise.
4513         * modules/rename (Depends-on): Likewise.
4514         * modules/savewd (Depends-on): Likewise.
4515
4516         rmdir: Support for mingw, MSVC 9.
4517         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
4518         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
4519
4520         getcwd: Tweak for MSVC 9.
4521         * lib/unistd.in.h: Update comments.
4522         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
4523
4524 2011-09-22  Bruno Haible  <bruno@clisp.org>
4525
4526         strerror_r-posix: Avoid a link error on MSVC.
4527         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
4528         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
4529
4530 2011-09-22  Bruno Haible  <bruno@clisp.org>
4531
4532         select: Avoid link errors on MSVC.
4533         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
4534         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
4535         * modules/pselect (Link): Likewise.
4536         * NEWS: Mention the change.
4537         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
4538         test-select-stdin against $(LIB_SELECT).
4539         * modules/pselect-tests (Makefile.am): Link test-pselect against
4540         $(LIB_SELECT).
4541
4542 2011-09-22  Bruno Haible  <bruno@clisp.org>
4543
4544         select: Avoid compilation error on MSVC.
4545         * lib/select.c: Don't include <stdbool.h>.
4546
4547 2011-09-21  Bruno Haible  <bruno@clisp.org>
4548
4549         Consolidate all uses of PATH_MAX in *.m4 files.
4550         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
4551         macros.
4552         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
4553         and gl_PATHMAX_SNIPPET.
4554         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4555         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4556         * modules/chdir-long (Files): Add m4/pathmax.m4.
4557         * modules/getcwd (Files): Likewise.
4558
4559 2011-09-21  Bruno Haible  <bruno@clisp.org>
4560
4561         ftruncate: Un-deprecate, concentrate on Win32 support.
4562         * modules/ftruncate (Status, Notice): Remove sections.
4563         (Depends-on): Add largefile.
4564         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
4565         non-mingw platforms.
4566         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
4567         include <io.h>.
4568         * modules/perror-tests (Depends-on): Add ftruncate.
4569         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
4570         'ftruncate' module.
4571
4572 2011-09-21  Bruno Haible  <bruno@clisp.org>
4573
4574         Add dependencies to new dirent related modules.
4575         * modules/opendir (Depends-on): Add closedir.
4576         * modules/getcwd (Depends-on): Add opendir, closedir.
4577         * modules/dirent-safer-tests (Depends-on): Likewise.
4578         * modules/fdopendir-tests (Depends-on): Likewise.
4579         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
4580         * modules/renameat-tests (Depends-on): Likewise.
4581
4582 2011-09-21  Bruno Haible  <bruno@clisp.org>
4583
4584         opendir: Avoid compilation error on mingw.
4585         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
4586         * modules/opendir (Depends-on): Add unistd.
4587
4588 2011-09-21  Bruno Haible  <bruno@clisp.org>
4589
4590         ftruncate tests: Avoid a test failure on mingw.
4591         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
4592
4593 2011-09-21  Bruno Haible  <bruno@clisp.org>
4594
4595         select tests: Avoid test failures on OSF/1 5.1 and mingw.
4596         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
4597         native Windows.
4598
4599 2011-09-21  Bruno Haible  <bruno@clisp.org>
4600
4601         New module 'fdopen'.
4602         * lib/stdio.in.h (fdopen): New declaration.
4603         * lib/fdopen.c: New file.
4604         * m4/fdopen.m4: New file.
4605         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
4606         REPLACE_FDOPEN.
4607         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
4608         REPLACE_FDOPEN.
4609         * modules/fdopen: New file.
4610         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
4611         * tests/test-stdio-c++.cc: Check signature of fdopen.
4612         * doc/posix-functions/fdopen.texi: Mention the new module.
4613
4614 2011-09-21  Bruno Haible  <bruno@clisp.org>
4615
4616         unlockpt tests: Avoid test failure on NetBSD 5.1.
4617         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
4618         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
4619
4620 2011-09-21  Bruno Haible  <bruno@clisp.org>
4621
4622         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
4623         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
4624         * tests/test-getlogin_r.c (main): Likewise.
4625
4626 2011-09-20  Bruno Haible  <bruno@clisp.org>
4627
4628         time tests: Don't require pid_t.
4629         * doc/posix-headers/time.texi: Revert last change.
4630         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
4631         * tests/test-time.c: Comment out the check for pid_t.
4632
4633 2011-09-20  Bruno Haible  <bruno@clisp.org>
4634
4635         fsync tests: Avoid a test failure on mingw.
4636         * tests/test-fsync.c (main): Allow a failure with EIO.
4637
4638 2011-09-20  Bruno Haible  <bruno@clisp.org>
4639
4640         euidaccess: Update comments.
4641         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
4642
4643 2011-09-20  Bruno Haible  <bruno@clisp.org>
4644
4645         Ensure EBADF returns for socket functions on mingw.
4646         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
4647         descriptor is invalid.
4648         * lib/bind.c (rpl_bind): Likewise.
4649         * lib/connect.c (rpl_connect): Likewise.
4650         * lib/getpeername.c (rpl_getpeername): Likewise.
4651         * lib/getsockname.c (rpl_getsockname): Likewise.
4652         * lib/getsockopt.c (rpl_getsockopt): Likewise.
4653         * lib/listen.c (rpl_listen): Likewise.
4654         * lib/recv.c (rpl_recv): Likewise.
4655         * lib/recvfrom.c (rpl_recvfrom): Likewise.
4656         * lib/send.c (rpl_send): Likewise.
4657         * lib/sendto.c (rpl_sendto): Likewise.
4658         * lib/setsockopt.c (rpl_setsockopt): Likewise.
4659         * lib/shutdown.c (rpl_shutdown): Likewise.
4660
4661 2011-09-20  Bruno Haible  <bruno@clisp.org>
4662
4663         select tests: EBADF tests.
4664         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
4665         test_bad_fd): New functions.
4666         (test_function): Invoke also test_bad_fd.
4667
4668 2011-09-20  Bruno Haible  <bruno@clisp.org>
4669
4670         Tests for module 'posix_spawn_file_actions_addopen.
4671         * modules/posix_spawn_file_actions_addopen-tests: New file.
4672         * tests/test-posix_spawn_file_actions_addopen.c: New file.
4673
4674         Tests for module 'posix_spawn_file_actions_adddup2'.
4675         * modules/posix_spawn_file_actions_adddup2-tests: New file.
4676         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
4677
4678         Tests for module 'posix_spawn_file_actions_addclose'.
4679         * modules/posix_spawn_file_actions_addclose-tests: New file.
4680         * tests/test-posix_spawn_file_actions_addclose.c: New file.
4681
4682 2011-09-20  Bruno Haible  <bruno@clisp.org>
4683
4684         Tests for module 'unlockpt'.
4685         * modules/unlockpt-tests: New file.
4686         * tests/test-unlockpt.c: New file.
4687         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
4688
4689         Tests for module 'grantpt'.
4690         * modules/grantpt-tests: New file.
4691         * tests/test-grantpt.c: New file.
4692         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
4693
4694 2011-09-20  Bruno Haible  <bruno@clisp.org>
4695
4696         freopen tests: EBADF tests.
4697         * tests/test-freopen.c: Include errno.h, unistd.h.
4698         (main): Add tests for EBADF, commented out for the moment.
4699
4700         fclose tests: EBADF tests.
4701         * tests/test-fclose.c (main): Add tests for EBADF.
4702
4703         fflush tests: EBADF tests.
4704         * tests/test-fflush.c: Include errno.h, macros.h.
4705         (main): Add tests for EBADF.
4706
4707         ftello tests: EBADF tests.
4708         * tests/test-ftello4.sh: New file.
4709         * tests/test-ftello4.c: New file.
4710         * modules/ftello-tests (Files): Add them.
4711         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
4712
4713         fseeko tests: EBADF tests.
4714         * tests/test-fseeko4.sh: New file.
4715         * tests/test-fseeko4.c: New file.
4716         * modules/fseeko-tests (Files): Add them.
4717         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
4718
4719         Tests for function fputc().
4720         * modules/fputc-tests: New file.
4721         * tests/test-fputc.c: New file.
4722         * modules/stdio-tests (Depends-on): Add fputc-tests.
4723
4724         Tests for function fgetc().
4725         * modules/fgetc-tests: New file.
4726         * tests/test-fgetc.c: New file.
4727         * modules/stdio-tests (Depends-on): Add fgetc-tests.
4728
4729         Tests for function fdopen().
4730         * modules/fdopen-tests: New file.
4731         * tests/test-fdopen.c: New file.
4732         * modules/stdio-tests (Depends-on): Add fdopen-tests.
4733
4734         Tests for module 'vdprintf'.
4735         * modules/vdprintf-tests: New file.
4736         * tests/test-vdprintf.c: New file.
4737
4738         Tests for module 'dprintf'.
4739         * modules/dprintf-tests: New file.
4740         * tests/test-dprintf.c: New file.
4741
4742 2011-09-20  Bruno Haible  <bruno@clisp.org>
4743
4744         Tests for module 'ioctl'.
4745         * modules/ioctl-tests: New file.
4746         * tests/test-ioctl.c: New file.
4747
4748 2011-09-20  Bruno Haible  <bruno@clisp.org>
4749
4750         fcntl tests: EBADF tests.
4751         * tests/test-fcntl.c (main): Add more tests for EBADF.
4752
4753 2011-09-20  Bruno Haible  <bruno@clisp.org>
4754
4755         utimensat tests: EBADF tests.
4756         * tests/test-utimensat.c (main): Add tests for EBADF.
4757
4758         renameat tests: EBADF tests.
4759         * tests/test-renameat.c (main): Add tests for EBADF.
4760
4761         mkfifoat tests: EBADF tests.
4762         * tests/test-mkfifoat.c (main): Add tests for EBADF.
4763
4764         readlinkat tests: EBADF tests.
4765         * tests/test-readlinkat.c (main): Add tests for EBADF.
4766
4767         symlinkat tests: EBADF tests.
4768         * tests/test-symlinkat.c (main): Add tests for EBADF.
4769
4770         linkat tests: EBADF tests.
4771         * tests/test-linkat.c (main): Add tests for EBADF.
4772
4773         Tests for module 'faccessat'.
4774         * modules/faccessat-tests: New file.
4775         * tests/test-faccessat.c: New file.
4776
4777         fdopendir tests: EBADF tests.
4778         * tests/test-fdopendir.c (main): Add more tests for EBADF.
4779
4780         openat tests: EBADF tests.
4781         * tests/test-fchownat.c (main): Add tests for EBADF.
4782         * tests/test-fstatat.c (main): Likewise.
4783         * tests/test-mkdirat.c (main): Likewise.
4784         * tests/test-openat.c (main): Likewise.
4785         * tests/test-unlinkat.c (main): Likewise.
4786         * tests/test-fchmodat.c: New file.
4787         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
4788         (Makefile.am): Also run 'test-fchmodat'.
4789
4790 2011-09-20  Bruno Haible  <bruno@clisp.org>
4791
4792         utimens, futimens, fdutimensat tests: EBADF tests.
4793         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
4794
4795         Tests for function fstat().
4796         * modules/fstat-tests: New file.
4797         * tests/test-fstat.c: New file.
4798         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
4799
4800 2011-09-20  Bruno Haible  <bruno@clisp.org>
4801
4802         test-ttyname_r tests: EBADF tests.
4803         * tests/test-ttyname_r.c (main): Add tests for EBADF.
4804
4805         Tests for module 'isatty'.
4806         * modules/isatty-tests: New file.
4807         * tests/test-isatty.c: New file.
4808
4809         Tests for module 'write'.
4810         * modules/write-tests: New file.
4811         * tests/test-write.c: New file.
4812
4813         Tests for module 'read'.
4814         * modules/read-tests: New file.
4815         * tests/test-read.c: New file.
4816
4817         pwrite tests: EBADF tests.
4818         * tests/test-pwrite.c (main): Add tests for EBADF.
4819
4820         pread tests: EBADF tests.
4821         * tests/test-pread.c (main): Add tests for EBADF.
4822
4823         lseek tests: EBADF tests.
4824         * tests/test-lseek.c (main): Add more tests for EBADF.
4825
4826         Tests for module 'ftruncate'.
4827         * modules/ftruncate-tests: New file.
4828         * tests/test-ftruncate.sh: New file.
4829         * tests/test-ftruncate.c: New file.
4830
4831         fsync tests: EBADF tests.
4832         * tests/test-fsync.c (main): Add more tests for EBADF.
4833
4834         fdatasync tests: EBADF tests.
4835         * tests/test-fdatasync.c (main): Add more tests for EBADF.
4836
4837         Tests for module 'fchown'.
4838         * modules/fchown-tests: New file.
4839         * tests/test-fchown.c: New file.
4840
4841         Tests for module 'fchmod'.
4842         * modules/fchmod-tests: New file.
4843         * tests/test-fchmod.c: New file.
4844
4845         fchdir tests: EBADF tests.
4846         * tests/test-fchdir.c (main): Add more tests for EBADF.
4847
4848         dup2 tests: EBADF tests.
4849         * tests/test-dup2.c (main): Add more tests for EBADF.
4850
4851         Tests for module 'dup'.
4852         * modules/dup-tests: New file.
4853         * tests/test-dup.c: New file.
4854
4855         Tests for module 'close'.
4856         * modules/close-tests: New file.
4857         * tests/test-close.c: New file.
4858
4859 2011-09-20  Bruno Haible  <bruno@clisp.org>
4860
4861         Tests for module 'shutdown'.
4862         * modules/shutdown-tests: New file.
4863         * tests/test-shutdown.c: New file.
4864
4865         Tests for module 'setsockopt'.
4866         * modules/setsockopt-tests: New file.
4867         * tests/test-setsockopt.c: New file.
4868
4869         Tests for module 'sendto'.
4870         * modules/sendto-tests: New file.
4871         * tests/test-sendto.c: New file.
4872
4873         Tests for module 'send'.
4874         * modules/send-tests: New file.
4875         * tests/test-send.c: New file.
4876
4877         Tests for module 'recvfrom'.
4878         * modules/recvfrom-tests: New file.
4879         * tests/test-recvfrom.c: New file.
4880
4881         Tests for module 'recv'.
4882         * modules/recv-tests: New file.
4883         * tests/test-recv.c: New file.
4884
4885         Tests for module 'listen'.
4886         * modules/listen-tests: New file.
4887         * tests/test-listen.c: New file.
4888
4889         Tests for module 'getsockopt'.
4890         * modules/getsockopt-tests: New file.
4891         * tests/test-getsockopt.c: New file.
4892
4893         Tests for module 'getsockname'.
4894         * modules/getsockname-tests: New file.
4895         * tests/test-getsockname.c: New file.
4896
4897         Tests for module 'getpeername'.
4898         * modules/getpeername-tests: New file.
4899         * tests/test-getpeername.c: New file.
4900
4901         Tests for module 'connect'.
4902         * modules/connect-tests: New file.
4903         * tests/test-connect.c: New file.
4904
4905         Tests for module 'bind'.
4906         * modules/bind-tests: New file.
4907         * tests/test-bind.c: New file.
4908
4909         accept4 tests: Fix for native Windows.
4910         * tests/test-accept4.c: Include sockets.h.
4911         (main): Invoke gl_sockets_startup.
4912         * modules/accept4-tests (Depends-on): Add sockets.
4913
4914         accept tests: Fix for native Windows.
4915         * tests/test-accept.c: Include sockets.h.
4916         (main): Invoke gl_sockets_startup.
4917         * modules/accept-tests (Depends-on): Add sockets.
4918
4919 2011-09-19  Bruno Haible  <bruno@clisp.org>
4920
4921         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
4922         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
4923         do...while(0).
4924         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
4925         Suggested by Paul Eggert.
4926
4927 2011-09-19  Bruno Haible  <bruno@clisp.org>
4928
4929         sched: Ensure pid_t is defined.
4930         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
4931         not define pid_t.
4932         * lib/sched.in.h: Include <sys/types.h>.
4933         * doc/posix-headers/sched.texi: Mention the pid_t problem.
4934         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4935
4936 2011-09-19  Bruno Haible  <bruno@clisp.org>
4937
4938         msvc-inval: Ensure the entire expansion is a single statement.
4939         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
4940         of braces.
4941
4942 2011-09-19  Jim Meyering  <meyering@redhat.com>
4943
4944         tests: use printf, not echo in init.sh's warn_ function
4945         * tests/init.sh (warn_): Use printf, not echo.  The latter would
4946         misbehave when given strings containing a backslash or starting
4947         with e.g., -n.  James Youngman suggested setting IFS.
4948
4949 2011-09-19  Eric Blake  <eblake@redhat.com>
4950
4951         futimens: enhance test
4952         * tests/test-futimens.h (test_futimens): Also check for EBADF on
4953         closed non-negative fd.
4954
4955         date: accept 'hence' as opposite of 'ago'
4956         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
4957         * tests/test-parse-datetime.c (main): Enhance test.
4958         Suggested by Jesse Wilson.
4959
4960 2011-09-19  Jim Meyering  <meyering@redhat.com>
4961
4962         getcwd: don't fail in a deep directory on a system without openat
4963         Before this change, getcwd would fail when called from a directory
4964         of depth PATH_MAX / 3 or greater.  That was due to the fact that
4965         the non-openat implementation used "..", "../..", "../../..", etc.
4966         to access ancestor directories.  With too many, that string would
4967         be longer than PATH_MAX.
4968         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
4969         using gnulib's openat replacement.
4970         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
4971         we're using the replacement function.
4972
4973 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
4974
4975         maint.mk: avoid warnings from perl about missing files
4976         * top/maint.mk (def_sym_regex): Ignore files listed in
4977         $(gl_other_headers_) that do not exist, say because a project
4978         does not use a corresponding module.
4979
4980 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4981
4982         stat: use pathmax.h only if needed
4983         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
4984         This is better for Emacs, which does not have a mingw port and
4985         therefore can avoid the pathmax module.
4986
4987         utimens: remove dependency on dup2
4988         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
4989         to work around the Linux kernel bug.
4990         * modules/utimens (Depends-on): Remove dup2.
4991
4992 2011-09-18  Bruno Haible  <bruno@clisp.org>
4993
4994         inet_ntop, inet_pton: Look for it also in libresolv.
4995         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
4996         libnsl, search for it in libresolv.
4997         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4998         Needed on Solaris 7.
4999
5000 2011-09-18  Bruno Haible  <bruno@clisp.org>
5001
5002         accept, accept4 tests: Avoid link error on Solaris.
5003         * modules/accept-tests (Makefile.am): Link test-accept against
5004         $(LIBSOCKET).
5005         * modules/accept4-tests (Makefile.am): Link test-accept4 against
5006         $(LIBSOCKET).
5007
5008         accept4: Avoid link error on Solaris.
5009         * modules/accept4 (Link): New section.
5010
5011         socket functions: Avoid link errors on Solaris.
5012         * modules/accept (Depends-on): Add socketlib.
5013         (Link): New section.
5014         * modules/bind (Depends-on): Add socketlib.
5015         (Link): New section.
5016         * modules/connect (Depends-on): Add socketlib.
5017         (Link): New section.
5018         * modules/getpeername (Depends-on): Add socketlib.
5019         (Link): New section.
5020         * modules/getsockname (Depends-on): Add socketlib.
5021         (Link): New section.
5022         * modules/getsockopt (Depends-on): Add socketlib.
5023         (Link): New section.
5024         * modules/listen (Depends-on): Add socketlib.
5025         (Link): New section.
5026         * modules/recv (Depends-on): Add socketlib.
5027         (Link): New section.
5028         * modules/recvfrom (Depends-on): Add socketlib.
5029         (Link): New section.
5030         * modules/send (Depends-on): Add socketlib.
5031         (Link): New section.
5032         * modules/sendto (Depends-on): Add socketlib.
5033         (Link): New section.
5034         * modules/setsockopt (Depends-on): Add socketlib.
5035         (Link): New section.
5036         * modules/shutdown (Depends-on): Add socketlib.
5037         (Link): New section.
5038         * modules/socket (Depends-on): Add socketlib.
5039         (Link): New section.
5040
5041 2011-09-18  Bruno Haible  <bruno@clisp.org>
5042
5043         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
5044         * tests/test-ptsname.c (main): Terminate the test if it takes longer
5045         than 5 seconds.
5046         * modules/ptsname-tests (configure.ac): Test for alarm.
5047
5048 2011-09-18  Bruno Haible  <bruno@clisp.org>
5049
5050         posix_spawn_file_actions_add*: Fix module dependencies.
5051         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
5052         posix_spawn_file_actions_init.
5053         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
5054         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
5055
5056 2011-09-18  Bruno Haible  <bruno@clisp.org>
5057
5058         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
5059         * tests/test-rename.h (test_rename): Allow error code EEXIST.
5060         * tests/test-renameat.c (main): Likewise.
5061
5062 2011-09-18  Bruno Haible  <bruno@clisp.org>
5063
5064         Tests for module 'accept4'.
5065         * modules/accept4-tests: New file.
5066         * tests/test-accept4.c: New file.
5067
5068 2011-09-18  Bruno Haible  <bruno@clisp.org>
5069
5070         Tests for module 'accept'.
5071         * modules/accept-tests: New file.
5072         * tests/test-accept.c: New file.
5073
5074 2011-09-18  Bruno Haible  <bruno@clisp.org>
5075
5076         dup2: Support for MSVC.
5077         * lib/dup2.c: Include msvc-inval.h.
5078         (rpl_dup2): Handle invalid parameter notifications during dup2 and
5079         _get_osfhandle calls.
5080         * modules/dup2 (Depends-on): Add msvc-inval.
5081         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
5082
5083         New module 'msvc-inval'.
5084         * lib/msvc-inval.h: New file.
5085         * lib/msvc-inval.c: New file.
5086         * m4/msvc-inval.m4: New file.
5087         * modules/msvc-inval: New file.
5088
5089 2011-09-17  Bruno Haible  <bruno@clisp.org>
5090
5091         Tests for module 'pclose'.
5092         * modules/pclose-tests: New file.
5093
5094         New module 'pclose'.
5095         * lib/stdio.in.h (pclose): New declaration.
5096         * lib/pclose.c: New file.
5097         * m4/pclose.m4: New file.
5098         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
5099         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
5100         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
5101         * modules/pclose: New file.
5102         * modules/popen-tests (Depends-on): Add pclose.
5103         * modules/popen-safer-tests (Depends-on): Likewise.
5104         * doc/posix-functions/pclose.texi: Mention the new module.
5105
5106 2011-09-17  Bruno Haible  <bruno@clisp.org>
5107
5108         popen: Support for MSVC.
5109         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
5110         * lib/popen.c (popen): Provide alternate definition for native Windows.
5111         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
5112         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
5113         * modules/popen (Depends-on, configure.ac): Update condition.
5114         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
5115         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
5116         fixed.
5117
5118 2011-09-17  Bruno Haible  <bruno@clisp.org>
5119
5120         isnanl, isnand, isnanf: Work around MSVC bug.
5121         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
5122
5123 2011-09-17  Bruno Haible  <bruno@clisp.org>
5124
5125         sys_socket tests: Fix recent mistake.
5126         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
5127
5128 2011-09-17  Bruno Haible  <bruno@clisp.org>
5129
5130         putenv: Support for MSVC.
5131         * modules/putenv (Depends-on): Add environ.
5132         * lib/putenv.c (environ): Disable declaration.
5133         * lib/unistd.in.h: Update comment.
5134
5135 2011-09-17  Bruno Haible  <bruno@clisp.org>
5136
5137         math: Avoid macro redefinition warnings on MSVC.
5138         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
5139         Undefine before redefining.
5140
5141 2011-09-17  Bruno Haible  <bruno@clisp.org>
5142
5143         doc: Mention functions which are declared as macros.
5144         * doc/posix-functions/*[fl].texi: Mention that some functions are
5145         defined as macros with arguments only.
5146
5147 2011-09-17  Bruno Haible  <bruno@clisp.org>
5148
5149         Add dependencies to new dirent related modules.
5150         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
5151         * modules/fts (Depends-on): Likewise.
5152         * modules/glob (Depends-on): Likewise.
5153         * modules/savedir (Depends-on): Likewise.
5154         * modules/scandir (Depends-on): Likewise.
5155         * modules/dirent-safer (Depends-on): Add opendir, closedir.
5156         * modules/fdopendir (Depends-on): Add opendir.
5157
5158 2011-09-17  Bruno Haible  <bruno@clisp.org>
5159
5160         inet_pton: Support for MSVC on Windows Vista or newer.
5161         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
5162         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
5163         HAVE_DECL_INET_PTON is defined.
5164         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5165         On platforms with <winsock2.h>, test whether inet_pton is declared in
5166         <ws2tcpip.h>. If so, arrange to replace it.
5167         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5168         REPLACE_INET_PTON.
5169         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
5170         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
5171         (Depends-on, configure.ac): Update condition.
5172         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
5173
5174 2011-09-17  Bruno Haible  <bruno@clisp.org>
5175
5176         inet_ntop: Support for MSVC on Windows Vista or newer.
5177         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
5178         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
5179         HAVE_DECL_INET_NTOP is defined.
5180         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5181         On platforms with <winsock2.h>, test whether inet_ntop is declared in
5182         <ws2tcpip.h>. If so, arrange to replace it.
5183         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5184         REPLACE_INET_NTOP.
5185         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
5186         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
5187         (Depends-on, configure.ac): Update condition.
5188         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
5189
5190 2011-09-16  Eric Blake  <eblake@redhat.com>
5191
5192         test-fsync: yet another enhancement
5193         * tests/test-fsync.c (main): Also test behavior on read-only text
5194         file.
5195
5196 2011-09-16  Bruno Haible  <bruno@clisp.org>
5197
5198         Enhance fsync, fdatasync tests.
5199         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
5200         * tests/test-fdatasync.c (main): Likewise.
5201
5202 2011-09-16  Bruno Haible  <bruno@clisp.org>
5203
5204         Support for MSVC compiler: Ensure mode_t gets defined.
5205         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
5206         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5207         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
5208         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
5209         * tests/test-fcntl-h.c: Check that mode_t is defined.
5210         * tests/test-sys_stat.c: Likewise.
5211         * tests/test-sys_types.c: Likewise.
5212         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
5213         * doc/posix-headers/sys_stat.texi: Likewise.
5214         * doc/posix-headers/sys_types.texi: Likewise.
5215
5216 2011-09-16  Bruno Haible  <bruno@clisp.org>
5217
5218         sys_stat: Support for MSVC.
5219         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
5220         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
5221         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
5222         MSVC.
5223
5224 2011-09-16  Bruno Haible  <bruno@clisp.org>
5225
5226         Support for MSVC compiler: Ensure off_t gets defined.
5227         * lib/unistd.in.h: Include <sys/types.h>.
5228         * tests/test-fcntl-h.c: Check that off_t is defined.
5229         * tests/test-sys_stat.c: Likewise.
5230         * tests/test-sys_types.c: Likewise.
5231
5232 2011-09-16  Eric Blake  <eblake@redhat.com>
5233
5234         fdatasync: port to Solaris
5235         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
5236         * modules/fdatasync (Link): Document it.
5237         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
5238
5239         fdatasync: port to MacOS X 10.7
5240         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
5241         declared.
5242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
5243         * modules/unistd (Makefile.am): Substitute it.
5244         * lib/unistd.in.h (fdatasync): Declare on MacOS.
5245         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
5246
5247         fdatasync: minor improvements
5248         * modules/fdatasync (Depends-on): Add condition for fsync.
5249         * lib/fdatasync.c (fdatasync): Add comment.
5250         * tests/test-unistd-c++.cc: Test fdatasync.
5251
5252         unistd: update refs to newer POSIX
5253         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
5254         Suggested by Bruno Haible.
5255
5256         fdatasync: new module
5257         * modules/fsync (Description): Document difference to fdatasync.
5258         * modules/fdatasync: New module.
5259         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
5260         * lib/fdatasync.c (fdatasync): Likewise.
5261         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
5262         defaults.
5263         * modules/unistd (Makefile.am): Set witnesses.
5264         * lib/unistd.in.h (fdatasync): Declare.
5265         * MODULES.html.sh: Document it.
5266         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
5267         * modules/fdatasync-tests: New test.
5268         * tests/test-fdatasync.c: Likewise.
5269
5270 2011-09-16  Eric Blake  <eblake@redhat.com>
5271
5272         test-fsync: enhance tests
5273         * modules/fsync-tests (Depends-on): Add errno, for mingw.
5274         * tests/test-fsync.c (main): Enhance test.
5275
5276 2011-09-15  Bruno Haible  <bruno@clisp.org>
5277
5278         Support for MSVC compiler: Ensure ssize_t gets defined.
5279         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
5280         * doc/posix-headers/stdio.texi: Likewise.
5281         * modules/stdio (Depends-on): Add ssize_t.
5282         * modules/sys_socket (Depends-on): Likewise.
5283         * modules/sys_types (Depends-on): Likewise.
5284         * modules/sys_uio (Depends-on): Likewise.
5285         * modules/unistd (Depends-on): Likewise.
5286         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
5287         * tests/test-sys_types.c: Check that ssize_t is defined.
5288
5289 2011-09-14  Bruno Haible  <bruno@clisp.org>
5290
5291         Avoid using #, the m4 comment starter character, near brackets.
5292         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
5293         delimiter character in sed expressions.
5294         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
5295         Suggested by Eric Blake.
5296
5297         Properly quote AC_CHECK_DECLS' 4th argument.
5298         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
5299         argument.
5300         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5301         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5302         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5303         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
5304         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
5305         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
5306         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
5307         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
5308         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
5309         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
5310         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
5311         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5312         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
5313         * m4/isinf.m4 (gl_ISINF): Likewise.
5314         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5315         * m4/readutmp.m4 (gl_READUTMP): Likewise.
5316         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5317         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5318         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5319         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5320         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5321         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
5322         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
5323         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5324         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5325         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5326         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
5327         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5328         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5329         Reported by Eric Blake.
5330
5331         Properly quote AC_CHECK_DECL's 4th argument.
5332         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
5333         argument.
5334         * m4/argp.m4 (gl_ARGP): Likewise.
5335         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5336         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5337         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5338         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5339         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
5340         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
5341         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5342         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5343         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
5344         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5345         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5346         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5347         Reported by Eric Blake.
5348
5349 2011-09-14  Eric Blake  <eblake@redhat.com>
5350
5351         opendir: avoid compile warning
5352         * lib/opendir.c (includes): Always include errno.h.
5353         Reported by Tatsuro MATSUOKA.
5354
5355 2011-09-14  Jim Meyering  <meyering@redhat.com>
5356
5357         maint.mk: sc_tight_scope: propagate failure from sub-make
5358         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
5359         Reported by Martin von Gagern.
5360
5361 2011-09-13  Bruno Haible  <bruno@clisp.org>
5362
5363         tempname: Support for MSVC.
5364         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
5365         MSVC.
5366         * modules/tempname (Depends-on): Add fcntl-h.
5367
5368 2011-09-13  Bruno Haible  <bruno@clisp.org>
5369
5370         sys_time: Support for MSVC.
5371         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
5372         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
5373         include <winsock2.h>.
5374         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
5375         function declarations that collide with POSIX.
5376         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
5377         (Makefile.am): Substitute HAVE_WINSOCK2_H.
5378
5379 2011-09-13  Bruno Haible  <bruno@clisp.org>
5380
5381         stat: Support for MSVC.
5382         * lib/stat.c: Include pathmax.h.
5383         * modules/stat (Depends-on): Add pathmax.
5384
5385         pathmax: Support for native Windows.
5386         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
5387
5388 2011-09-12  Bruno Haible  <bruno@clisp.org>
5389
5390         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
5391         * lib/dirent.in.h (struct dirent): New type.
5392         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
5393         DT_WHT): New macros.
5394         (DIR): New type.
5395         (opendir, closedir): Declare only if the module 'opendir' is enabled.
5396         (readdir, rewinddir): New declarations.
5397         * lib/dirent-private.h: New file.
5398         * lib/opendir.c: New file.
5399         * lib/readdir.c: New file.
5400         * lib/rewinddir.c: New file.
5401         * lib/closedir.c: New file.
5402         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
5403         * m4/opendir.m4: New file.
5404         * m4/readdir.m4: New file.
5405         * m4/rewinddir.m4: New file.
5406         * m4/closedir.m4: New file.
5407         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
5408         REPLACE_CLOSEDIR here.
5409         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
5410         readdir, rewinddir are declared.
5411         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
5412         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
5413         HAVE_REWINDDIR, HAVE_CLOSEDIR.
5414         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
5415         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
5416         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
5417         * modules/opendir: New file.
5418         * modules/readdir: New file.
5419         * modules/rewinddir: New file.
5420         * modules/closedir: New file.
5421         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
5422         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
5423         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
5424         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
5425         * NEWS: Mention the 'fchdir' change.
5426
5427 2011-09-11  Bruno Haible  <bruno@clisp.org>
5428
5429         asm-underscore.m4: Support for MSVC.
5430         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
5431         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
5432
5433 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
5434
5435         Doc about crypt functions.
5436         * doc/posix-functions/crypt.texi: Expand range of glibc versions
5437         needing for _GNU_SOURCE to get crypt.
5438         * doc/posix-functions/encrypt.texi: Likewise.
5439         * doc/posix-functions/setkey.texi: Likewise.
5440
5441 2011-09-11  Bruno Haible  <bruno@clisp.org>
5442
5443         doc: Update regarding MSVC 9.
5444         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
5445         tested".
5446         * doc/posix-functions/*.texi: Update with info about MSVC 9.
5447         * doc/posix-headers/*.texi: Likewise.
5448         * doc/pastposix-functions/*.texi: Likewise.
5449         * doc/glibc-functions/*.texi: Likewise.
5450         * doc/glibc-headers/*.texi: Likewise.
5451
5452 2011-09-11  Bruno Haible  <bruno@clisp.org>
5453
5454         unistd et al.: Don't assume <unistd.h> exists.
5455         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
5456         does not exist.
5457         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
5458         exist. But include <stdlib.h>.
5459         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
5460         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
5461         symlink() does not exist.
5462         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
5463         include <io.h> instead.
5464         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
5465         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
5466         include <direct.h> instead.
5467         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5468         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5469         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
5470         <io.h> instead.
5471         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
5472         correctly if the system does not have hard links.
5473         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
5474         <direct.h> instead.
5475         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
5476         it when looking for function declarations.
5477         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
5478         <direct.h> and <io.h> instead.
5479         * doc/posix-headers/unistd.texi: More details about MSVC problem.
5480
5481 2011-09-11  Bruno Haible  <bruno@clisp.org>
5482
5483         strcase: Support for MSVC.
5484         * modules/strcase (Status, Notice): Remove obsoletion mark.
5485         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
5486         * doc/posix-functions/strncasecmp.texi: Likewise.
5487
5488         strings: Don't assume <strings.h> exists.
5489         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
5490         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
5491         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
5492         * doc/posix-headers/strings.texi: Mention the MSVC problem.
5493
5494 2011-09-11  Bruno Haible  <bruno@clisp.org>
5495
5496         dirent: Don't assume <dirent.h> exists.
5497         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
5498         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
5499         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
5500         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
5501
5502 2011-09-11  Bruno Haible  <bruno@clisp.org>
5503
5504         Fix wint_t on MSVC.
5505         * lib/wchar.in.h (wint_t): On MSVC, override it.
5506         * lib/wctype.in.h (wint_t): Likewise.
5507         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
5508         MSVC.
5509         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
5510         * doc/posix-headers/wctype.texi: Likewise.
5511
5512 2011-09-11  Bruno Haible  <bruno@clisp.org>
5513
5514         sys_types: Fix typo.
5515         * lib/sys_types.in.h: Fix typo in comment.
5516         Reported by Paul Eggert.
5517
5518         Support for MSVC compiler: Ensure size_t gets defined.
5519         * modules/strings (Depends-on): Add 'sys_types'.
5520         * modules/sys_uio (Depends-on): Likewise.
5521         * lib/sys_uio.in.h: Update comment.
5522
5523         C++ tests for module 'sys_types'.
5524         * modules/sys_types-c++-tests: New file.
5525         * tests/test-sys_types-c++.cc: New file.
5526
5527         Tests for module 'sys_types'.
5528         * modules/sys_types-tests: New file.
5529         * tests/test-sys_types.c: New file.
5530
5531         New module 'sys_types'.
5532         * lib/sys_types.in.h: New file.
5533         * m4/sys_types_h.m4: New file.
5534         * modules/sys_types: New file.
5535         * doc/posix-headers/sys_types.texi: Mention the new module and the
5536         size_t problem on MSVC 9.
5537
5538 2011-09-11  Bruno Haible  <bruno@clisp.org>
5539
5540         Support for MSVC compiler: Avoid division by a literal 0.
5541         * lib/math.in.h (NAN): Define through a function call also on MSVC.
5542         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
5543         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
5544         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
5545         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
5546         * tests/infinity.h: New file.
5547         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
5548         on MSVC.
5549         * tests/test-ceilf1.c: Include infinity.h.
5550         (main): Use Infinityf.
5551         * tests/test-ceil1.c: Include infinity.h.
5552         (main): Use Infinityd.
5553         * tests/test-ceill.c: Include infinity.h.
5554         (main): Use Infinityl.
5555         * tests/test-dprintf-posix.c: Include infinity.h.
5556         (test_function): Use Infinityd.
5557         * tests/test-floorf1.c: Include infinity.h.
5558         (main): Use Infinityf.
5559         * tests/test-floor1.c: Include infinity.h.
5560         (main): Use Infinityd.
5561         * tests/test-floorl.c: Include infinity.h.
5562         (main): Use Infinityl.
5563         * tests/test-fprintf-posix.c: Include infinity.h.
5564         (test_function): Use Infinityd.
5565         * tests/test-frexp.c: Include infinity.h.
5566         (main): Use Infinityd.
5567         * tests/test-frexpl.c: Include infinity.h.
5568         (main): Use Infinityl.
5569         * tests/test-isfinite.c: Include infinity.h.
5570         (test_isfinitef): Use Infinityf.
5571         (test_isfinited): Use Infinityd.
5572         (test_isfinitel): Use Infinityl.
5573         * tests/test-isinf.c: Include infinity.h.
5574         (test_isinff): Use Infinityf.
5575         (test_isinfd): Use Infinityd.
5576         (test_isinfl): Use Infinityl.
5577         * tests/test-isnan.c: Include infinity.h.
5578         (test_float): Use Infinityf.
5579         (test_double): Use Infinityd.
5580         (test_long_double): Use Infinityl.
5581         * tests/test-isnanf.h: Include infinity.h.
5582         (main): Use Infinityf.
5583         * tests/test-isnand.h: Include infinity.h.
5584         (main): Use Infinityd.
5585         * tests/test-isnanl.h: Include infinity.h.
5586         (main): Use Infinityl.
5587         * tests/test-ldexpl.c: Include infinity.h.
5588         (main): Use Infinityl.
5589         * tests/test-printf-posix.h: Include infinity.h.
5590         (test_function): Use Infinityd.
5591         * tests/test-roundf1.c: Include infinity.h.
5592         (main): Use Infinityf.
5593         * tests/test-round1.c: Include infinity.h.
5594         (main): Use Infinityd.
5595         * tests/test-roundl.c: Include infinity.h.
5596         (main): Use Infinityl.
5597         * tests/test-signbit.c: Include infinity.h.
5598         (test_signbitf): Use Infinityf.
5599         (test_signbitd): Use Infinityd.
5600         (test_signbitl): Use Infinityl.
5601         * tests/test-snprintf-posix.h: Include infinity.h.
5602         (test_function): Use Infinityd, Infinityl.
5603         * tests/test-sprintf-posix.h: Include infinity.h.
5604         (test_function): Use Infinityd, Infinityl.
5605         * tests/test-truncf1.c: Include infinity.h.
5606         (main): Use Infinityf.
5607         * tests/test-trunc1.c: Include infinity.h.
5608         (main): Use Infinityd.
5609         * tests/test-truncl.c: Include infinity.h.
5610         (main): Use Infinityl.
5611         * tests/test-vasnprintf-posix.c: Include infinity.h.
5612         (test_function): Use Infinityd, Infinityl.
5613         * tests/test-vasprintf-posix.c: Include infinity.h.
5614         (test_function): Use Infinityd, Infinityl.
5615         * modules/ceilf-tests (Files): Add tests/infinity.h.
5616         * modules/ceil-tests (Files): Likewise.
5617         * modules/ceill-tests (Files): Likewise.
5618         * modules/dprintf-posix-tests (Files): Likewise.
5619         * modules/floorf-tests (Files): Likewise.
5620         * modules/floor-tests (Files): Likewise.
5621         * modules/floorl-tests (Files): Likewise.
5622         * modules/fprintf-posix-tests (Files): Likewise.
5623         * modules/frexp-tests (Files): Likewise.
5624         * modules/frexp-nolibm-tests (Files): Likewise.
5625         * modules/frexpl-tests (Files): Likewise.
5626         * modules/frexpl-nolibm-tests (Files): Likewise.
5627         * modules/isfinite-tests (Files): Likewise.
5628         * modules/isinf-tests (Files): Likewise.
5629         * modules/isnan-tests (Files): Likewise.
5630         * modules/isnanf-tests (Files): Likewise.
5631         * modules/isnanf-nolibm-tests (Files): Likewise.
5632         * modules/isnand-tests (Files): Likewise.
5633         * modules/isnand-nolibm-tests (Files): Likewise.
5634         * modules/isnanl-tests (Files): Likewise.
5635         * modules/isnanl-nolibm-tests (Files): Likewise.
5636         * modules/ldexpl-tests (Files): Likewise.
5637         * modules/printf-posix-tests (Files): Likewise.
5638         * modules/roundf-tests (Files): Likewise.
5639         * modules/round-tests (Files): Likewise.
5640         * modules/roundl-tests (Files): Likewise.
5641         * modules/signbit-tests (Files): Likewise.
5642         * modules/snprintf-posix-tests (Files): Likewise.
5643         * modules/sprintf-posix-tests (Files): Likewise.
5644         * modules/truncf-tests (Files): Likewise.
5645         * modules/trunc-tests (Files): Likewise.
5646         * modules/truncl-tests (Files): Likewise.
5647         * modules/vasnprintf-posix-tests (Files): Likewise.
5648         * modules/vasprintf-posix-tests (Files): Likewise.
5649         * modules/vdprintf-posix-tests (Files): Likewise.
5650         * modules/vfprintf-posix-tests (Files): Likewise.
5651         * modules/vprintf-posix-tests (Files): Likewise.
5652         * modules/vsnprintf-posix-tests (Files): Likewise.
5653         * modules/vsprintf-posix-tests (Files): Likewise.
5654         * modules/xprintf-posix-tests (Files): Likewise.
5655
5656 2011-09-11  Bruno Haible  <bruno@clisp.org>
5657
5658         Ensure pid_t gets defined.
5659         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
5660         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5661         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
5662         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5663         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
5664         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5665         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
5666         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5667         * tests/test-fcntl-h.c: Check that pid_t is defined.
5668         * tests/test-sched.c: Likewise.
5669         * tests/test-termios.c: Likewise.
5670         * tests/test-time.c: Likewise.
5671         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
5672         * doc/posix-headers/signal.texi: Likewise.
5673         * doc/posix-headers/sys_types.texi: Likewise.
5674         * doc/posix-headers/time.texi: Likewise.
5675
5676 2011-09-11  Bruno Haible  <bruno@clisp.org>
5677
5678         acl: Fix compilation on Solaris 10 (older version).
5679         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
5680         of ACE_EVERYONE.
5681         * lib/set-mode-acl.c (qset_acl): Likewise.
5682         Reported by Christian Jullien <eligis@orange.fr>.
5683
5684 2011-09-10  Bruno Haible  <bruno@clisp.org>
5685
5686         iconv, unsetenv: Add support for MSVC compiler.
5687         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
5688         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
5689
5690 2011-09-10  Bruno Haible  <bruno@clisp.org>
5691
5692         *printf: Add support for MSVC compiler.
5693         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
5694         handles the exception caused by the %n directive. When cross-compiling,
5695         guess no on native Windows.
5696         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5697         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
5698         emulate it through vsnprintf.
5699         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
5700         * doc/posix-functions/dprintf.texi: Update documentation regarding
5701         MSVC 9.
5702         * doc/posix-functions/fprintf.texi: Likewise.
5703         * doc/posix-functions/printf.texi: Likewise.
5704         * doc/posix-functions/snprintf.texi: Likewise.
5705         * doc/posix-functions/sprintf.texi: Likewise.
5706         * doc/posix-functions/swprintf.texi: Likewise.
5707         * doc/posix-functions/vdprintf.texi: Likewise.
5708         * doc/posix-functions/vfprintf.texi: Likewise.
5709         * doc/posix-functions/vprintf.texi: Likewise.
5710         * doc/posix-functions/vsnprintf.texi: Likewise.
5711         * doc/posix-functions/vsprintf.texi: Likewise.
5712         * doc/glibc-functions/asprintf.texi: Likewise.
5713         * doc/glibc-functions/obstack_printf.texi: Likewise.
5714         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5715         * doc/glibc-functions/vasprintf.texi: Likewise.
5716
5717 2011-09-10  Bruno Haible  <bruno@clisp.org>
5718
5719         nocrash: Add support for native Windows.
5720         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
5721
5722 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
5723             Bruno Haible  <bruno@clisp.org>
5724
5725         absolute-header, include-next: Add support for MSVC compiler.
5726         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
5727         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
5728         directory separator in #line directives.
5729         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
5730         recognize also backslash as directory separator in #line directives.
5731
5732 2011-09-08  Jim Meyering  <meyering@redhat.com>
5733
5734         maint.mk: mark the post-release commit log with "maint: " prefix
5735         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
5736         one-line commit-log summary.
5737
5738 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
5739             Bruno Haible  <bruno@clisp.org>
5740
5741         Doc about crypt functions.
5742         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
5743         systems.
5744         * doc/posix-functions/encrypt.texi: Likewise.
5745         * doc/posix-functions/setkey.texi: Likewise.
5746
5747 2011-09-08  Simon Josefsson  <simon@josefsson.org>
5748
5749         * lib/gc.h: Fix copyright header.
5750
5751 2011-09-07  Bruno Haible  <bruno@clisp.org>
5752
5753         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
5754         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
5755         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
5756
5757 2011-09-07  Bruno Haible  <bruno@clisp.org>
5758
5759         openat: Work around compilation error with OSF/1 5.1 DTK cc.
5760         * lib/fopen.c: Use different syntax for include of <stdio.h>.
5761         * lib/freopen.c: Likewise.
5762         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
5763         * lib/lstat.c: Likewise.
5764         * lib/stat.c: Likewise.
5765         * lib/open.c: Use different syntax for include of <fcntl.h>.
5766         * lib/openat.c: Include fcntl.h again, explicitly.
5767
5768 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
5769
5770         parse-datetime: document the newly accepted format
5771         * doc/parse-datetime.texi (Combined date and time of day items):
5772         New section.
5773
5774 2011-09-06  Bruno Haible  <bruno@clisp.org>
5775
5776         acl: Fix a test failure on newer Solaris 10 with ZFS.
5777         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
5778         ENOSYS as no ACL.
5779         Reported by Jim Meyering.
5780
5781 2011-09-06  Bruno Haible  <bruno@clisp.org>
5782
5783         acl: Update for AIX >= 5.3 with NFS.
5784         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
5785         ENOSYS as no ACL.
5786
5787         acl: Fix a test failure on AIX >= 5.3 with NFS.
5788         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
5789         as no ACL.
5790
5791 2011-09-06  Bruno Haible  <bruno@clisp.org>
5792
5793         acl: Fix a test failure on IRIX 6.5 with NFS.
5794         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
5795         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
5796         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
5797         * lib/copy-acl.c (qcopy_acl): Likewise.
5798
5799 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5800
5801         openat: port to AIX 7.1 with large files
5802         AIX 7.1 does a "#define openat open64at" if large files are in use,
5803         so we can't simply #undef openat.  Use the orig_openat trick (similar
5804         to orig_open in lib/open.c) to work around the problem.  Problem
5805         reported by Kevin Brott for GNU tar, in the thread containing
5806         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
5807         * lib/openat.c (__need_system_fcntl_h): Define first.
5808         Include <fcntl.h> and <sys/types.h> before undefining.
5809         (orig_openat) [HAVE_OPENAT]: New inline function.
5810         (openat) [HAVE_OPENAT]: Do not undef.
5811         (rpl_openat): Use orig_openat, not openat.
5812
5813 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
5814             Bruno Haible  <bruno@clisp.org>
5815
5816         acl: Avoid errors on NonStop Kernel.
5817         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
5818         ENOTSUP errors.
5819
5820 2011-09-05  Bruno Haible  <bruno@clisp.org>
5821
5822         acl: Clean up Solaris code.
5823         * lib/acl-internal.h: Remove no-op #if.
5824         * lib/file-has-acl.c: Likewise.
5825         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
5826         * lib/copy-acl.c (qcopy_acl): Likewise.
5827
5828 2011-09-05  Bruno Haible  <bruno@clisp.org>
5829
5830         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
5831         binaries built on the original Solaris 10.
5832         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
5833         trivial.
5834
5835 2011-09-05  Bruno Haible  <bruno@clisp.org>
5836
5837         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5838         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
5839         10.
5840         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
5841         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
5842         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
5843         instead of acl_get, facl_get, acl_set, facl_set.
5844
5845 2011-09-05  Bruno Haible  <bruno@clisp.org>
5846
5847         copy-file: Try unit tests on more file systems.
5848         * tests/test-copy-file-1.sh: New file.
5849         * tests/test-copy-file-2.sh: New file.
5850         * modules/copy-file-tests (Files): Add them.
5851         (Makefile.am): Add them to TESTS.
5852
5853         acl: Try unit tests on more file systems.
5854         * tests/test-file-has-acl-1.sh: New file.
5855         * tests/test-file-has-acl-2.sh: New file.
5856         * tests/test-set-mode-acl-1.sh: New file.
5857         * tests/test-set-mode-acl-2.sh: New file.
5858         * tests/test-copy-acl-1.sh: New file.
5859         * tests/test-copy-acl-2.sh: New file.
5860         * modules/acl-tests (Files): Add them.
5861         (Makefile.am): Add them to TESTS.
5862
5863 2011-09-04  Bruno Haible  <bruno@clisp.org>
5864
5865         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5866         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
5867         10.
5868         (OLD_ALLOW, OLD_DENY): New macros.
5869         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
5870         ACE_ACCESS_ALLOWED_ACE_TYPE.
5871         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
5872         ACE_ACCESS_DENIED_ACE_TYPE.
5873         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
5874         (NEW_ACE_EXECUTE): Fix value.
5875         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
5876         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
5877         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
5878         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
5879         NEW_ACE_SYNCHRONIZE): New macros.
5880         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
5881         instead of acl_fromtext, acl_set, facl_set.
5882         Fixes a coreutils/tests/cp/perm failure.
5883
5884 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
5885
5886         openat: test for fstatat (..., 0) bug
5887         Further testing with tar suggests that fstatat (..., 0)
5888         does not work in general, on AIX 7.1; see
5889         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
5890         So, give up entirely on AIX 7.1's fstatat, and fall back on our
5891         replacement fstatat (which is what older AIX releases were using
5892         anyway).
5893         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
5894         use is now changed to orig_fstatat.  This was probably the right
5895         thing to do anyway.
5896         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
5897         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
5898         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
5899         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
5900         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
5901         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
5902         if the bug is found.
5903
5904         openat: test for fstatat (AT_FDCWD, ..., 0) bug
5905         This tests for another fstatat bug on AIX 7.1:
5906         fstatat (AT_FDCWD, ..., 0) does not work.  See
5907         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
5908         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
5909         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
5910         (rpl_fstatat): Adjust so that it works around either (or both)
5911         bugs if present.
5912         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
5913
5914 2011-09-03  Karl Berry  <karl@gnu.org>
5915
5916         * doc/regex.texi (Character Class Operators): Avoid literal ":"
5917         in index entries.
5918
5919 2011-09-02  Bruno Haible  <bruno@clisp.org>
5920
5921         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
5922         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
5923         values of AR, ARFLAGS, RANLIB.
5924         Reported by John W. Eaton <jwe@gnu.org> for Octave.
5925
5926 2011-09-02  Bruno Haible  <bruno@clisp.org>
5927
5928         Find 'ar' program that fits with --host argument.
5929         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
5930
5931 2011-09-02  Bruno Haible  <bruno@clisp.org>
5932
5933         tests: init.sh: Support any non-GNU diff.
5934         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
5935         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
5936         Solaris 8.
5937
5938 2011-09-02  Bruno Haible  <bruno@clisp.org>
5939
5940         tests: init.sh: work also with any non-GNU diff that supports -u
5941         * tests/init.sh: Relax check for diff -u support.
5942         Rather than checking for GNU diff via --version, simply check
5943         for support for -u itself.  Useful at least on OpenBSD 4.9,
5944         AIX 7.1, IRIX 6.5, and Solaris 10.
5945
5946 2011-09-01  Bruno Haible  <bruno@clisp.org>
5947
5948         strtoimax, strtoumax: Document problem on HP-UX 11.
5949         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
5950         * doc/posix-functions/strtoumax.texi: Likewise.
5951
5952 2011-09-01  Bruno Haible  <bruno@clisp.org>
5953
5954         strtoumax: Avoid link error on OSF/1 with DTK cc.
5955         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
5956         defined as a function.
5957         * modules/strtoumax (Depends-on, configure.ac): Test only whether
5958         strtoumax is defined, not whether it is declared.
5959
5960 2011-09-01  Bruno Haible  <bruno@clisp.org>
5961
5962         strtoimax: Avoid link error on OSF/1 with DTK cc.
5963         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
5964         defined as a function.
5965         * modules/strtoimax (Depends-on, configure.ac): Test only whether
5966         strtoimax is defined, not whether it is declared.
5967
5968 2011-09-01  Bruno Haible  <bruno@clisp.org>
5969
5970         imaxdiv: Avoid link error on OSF/1 with DTK cc.
5971         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
5972         as a function.
5973         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
5974         whether it is declared.
5975
5976 2011-09-01  Bruno Haible  <bruno@clisp.org>
5977
5978         imaxabs: Avoid link error on OSF/1 with DTK cc.
5979         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
5980         as a function.
5981         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
5982         whether it is declared.
5983
5984 2011-09-01  Bruno Haible  <bruno@clisp.org>
5985
5986         Tests for module 'strtoumax'.
5987         * modules/strtoumax-tests: New file.
5988         * tests/test-strtoumax.c: New file.
5989
5990         Tests for module 'strtoimax'.
5991         * modules/strtoimax-tests: New file.
5992         * tests/test-strtoimax.c: New file.
5993
5994         Tests for module 'imaxdiv'.
5995         * modules/imaxdiv-tests: New file.
5996         * tests/test-imaxdiv.c: New file.
5997
5998         Tests for module 'imaxabs'.
5999         * modules/imaxabs-tests: New file.
6000         * tests/test-imaxabs.c: New file.
6001
6002 2011-09-01  Bruno Haible  <bruno@clisp.org>
6003
6004         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
6005         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
6006         pthread_create.
6007
6008 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
6009
6010         openat: work around AIX 7.1 fstatat issue
6011         This should fix the problem that was not properly fixed
6012         in the previous change, dated 2011-08-30.
6013         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
6014         __need_system_stat_h defined.
6015         (orig_fstatat) [HAVE_FSTATAT]: New function.
6016         (rpl_fstatat): Go back to the old way of doing things,
6017         except call orig_fstatat instead of fstatat.
6018         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
6019         Remove unnecessary check whether fstatat fills in st_size etc.
6020
6021 2011-09-01  Bruno Haible  <bruno@clisp.org>
6022
6023         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
6024         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
6025         just include the system's header.
6026
6027 2011-08-31  Jim Meyering  <meyering@redhat.com>
6028
6029         tests: avoid spurious assertion failure in test-float.c on ppc64
6030         * tests/test-float.c (test_long_double): Comment out an assertion,
6031         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
6032         with gcc-4.4.4.
6033
6034         maint: indent with spaces, not TABs
6035         I need to get in the habit of running gnulib's "make check".
6036         Both of these would have been caught.
6037         * m4/largefile.m4: Indent with spaces, not TABs.
6038         * lib/parse-datetime.y (iso_8601_time): Likewise.
6039         Spotted by Pádraig Brady.
6040
6041         test-parse-datetime.c: accommodate a relatively strict gcc warning
6042         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
6043         to avoid a warning from gcc's -Werror=missing-declarations.
6044         Insert a few spaces-before-funcall-parenthesis.
6045
6046 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
6047
6048         parse-datetime: accept ISO 8601 date and time rep with "T" separator
6049         The parser now accepts ISO 8601 date-time strings with "T" as the
6050         separator.  It has long parsed dates like "2004-02-29 16:21:42"
6051         with a space between the date and time strings.  Now it also parses
6052         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
6053         variants like "2004-02-29T16:21:42.333-07:00"
6054         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
6055         of day representation using the 'T' separator character.
6056         * doc/parse-datetime.texi (General date syntax): replace use of
6057         deprecated --iso-8601 option with --rfc-3339 in example of date
6058         command output formats that can be parsed.
6059         * tests/test-parse-datetime.c (tm_diff): New function, taken from
6060         lib/parse-datetime.y.
6061         (gmt_offset): New function.
6062         (main): Add additional test cases to validate ISO8601 extended
6063         date and time of day parsing.
6064
6065 2011-08-31  Bruno Haible  <bruno@clisp.org>
6066
6067         freopen: Documentation.
6068         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
6069         name.
6070         Reported by Claudio Bley <claudio.bley@gmail.com>.
6071
6072 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
6073
6074         freopen: Don't crash if the filename argument is NULL.
6075         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
6076         NULL.
6077
6078 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
6079
6080         openat: work around AIX 7.1 fstatat bug
6081         Problem reported by Kevin Brott for GNU tar, in the thread containing
6082         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
6083         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
6084         FSTATAT_ST_SIZE_ETC_BROKEN.
6085         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
6086         rpl_fstatat.
6087         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
6088         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
6089         AC_CHECK_FUNCS_ONCE for fstatat.
6090         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
6091         fchmodat, mkdirat, openat and unlinkat.
6092
6093 2011-08-30  Bruno Haible  <bruno@clisp.org>
6094
6095         Avoid endless recursions if config.h includes some header files.
6096         * lib/fopen.c (__need_FILE): Define already before including config.h.
6097         * lib/freopen.c (__need_FILE): Likewise.
6098         * lib/open.c (__need_system_fcntl_h): Likewise.
6099         * lib/stat.c (__need_system_sys_stat_h): Likewise.
6100         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
6101         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6102
6103 2011-08-25  Karl Berry  <karl@gnu.org>
6104
6105         * config/srclist.txt (ylwrap): new try.
6106         * build-aux/ylwrap: new file.
6107
6108 2011-08-23  Bruno Haible  <bruno@clisp.org>
6109
6110         tmpdir: Use a good default directory on native Windows.
6111         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
6112         (P_tmpdir): Default to _P_tmpdir on native Windows.
6113         (path_search): On native Windows, try the value returned by GetTempPath
6114         before trying P_tmpdir.
6115         * modules/tmpdir (Depends-on): Add pathmax.
6116         Suggested by John Darrington <john@darrington.wattle.id.au>.
6117
6118 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
6119
6120         doc: fix typo in README-release
6121         * top/README-release: Capitalize first word of a sentence.
6122
6123 2011-08-19  Jim Meyering  <meyering@redhat.com>
6124
6125         fts: do not exhaust memory when processing million-entry directories
6126         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
6127         directory would require about 256*N bytes of memory.  Thus, it was
6128         easy to construct a directory too large to be processed by any of
6129         those tools.  With this change, fts' maximum memory utilization is
6130         now limited to around 30MB.
6131         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
6132         (fts_read): When we've processed the final entry (i.e., when
6133         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
6134         using the parent entry to read any remaining entries.  Dispatch
6135         depending on what fts_build returns:
6136         - NULL+stop, aka failure: stop
6137         - NULL otherwise: move up in the dir hierarchy
6138         - non-NULL: handle this new entry
6139         (fts_build): Declare and use new local, continue_readdir.
6140         Prepare to be called from fts_read, when the entries
6141         from a partially-read directory have just been exhausted.
6142         In that case, we'll skip the opendir and instead use the parent's
6143         fts_dirp and derive dir_fd from that.
6144         Finally, in the readdir loop, if we read max_entries entries,
6145         exit the loop ensuring *not* to call closedir.  This is required
6146         so that fts_dirp can be reused on a subsequent call.
6147         Prompted by Ben England's report of memory exhaustion in find
6148         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
6149
6150         maint: fts: move decl of `dp' down into while loop; split a long line
6151         * lib/fts.c (fts_build): No semantic change.
6152
6153         fts: add/use new struct member, fts_dirp
6154         We are about to use this to manage any directory with
6155         too many entries to read all of them into memory at once.
6156         To do that, we'll need to save the DIR* pointer in each
6157         affected FTSENT struct.
6158         * lib/fts_.h: Include <dirent.h>.
6159         (struct FTSENT) [fts_dirp]: New member.
6160         * lib/fts.c (closedir_and_clear): Define.
6161         Use it in place of closedir so that we are sure to
6162         clear the new fts_dirp member when done with it.
6163         (fts_alloc): Initialize the new member.
6164         (fts_lfree): Free, if needed.
6165
6166         maint: fts: give __opendir2 a new parameter and rename
6167         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
6168         than surreptitiously using sole caller's "dir_fd".
6169         (fts_opendir): Rename from __opendir2.
6170
6171         maint: fts.c: remove __opendir2's now-unused parameter, oflag
6172         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
6173
6174         maint: fts.c: correct off-by-one indentation
6175         * lib/fts.c (fts_build): Correct indentation, change style
6176         of a couple of block comments, and bracing style.
6177
6178         maint: fts.c: move __opendir2 #define "up" out of function body
6179         * lib/fts.c (__opendir2): Move "up".  No semantic change.
6180
6181         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
6182         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
6183         out for a long time and besides was useful only on BSD systems.
6184
6185 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
6186
6187         regex: port to Stratus OpenVOS
6188         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
6189         define to empty, rather than attempting nonportable optimizations.
6190         Problem reported by Paul Green in:
6191         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
6192         and fix suggested by Eric Blake in:
6193         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
6194
6195 2011-08-17  Eric Blake  <eblake@redhat.com>
6196
6197         getcwd: fix test failures on mingw
6198         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
6199         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
6200         test if long directory cannot be created, and allow mingw errno.
6201
6202         getcwd-lgpl: fix m4 to match relaxed test for BSD
6203         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
6204         (gl_FUNC_GETCWD_SIGNATURE): New macro.
6205         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
6206         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
6207         signature problem.
6208
6209         getcwd: fix compilation on mingw64
6210         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
6211         getcwd.
6212         Reported by Marc-André Lureau.
6213
6214         pipe2: silence compiler warning
6215         * lib/pipe2.c (pipe2): Hide label if it is not used.
6216
6217 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
6218
6219         relocatable-prog: fix link error
6220         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
6221         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
6222         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
6223         into modules/relocatable-lib without noticing that
6224         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
6225         also needs to build relocatable.c.
6226
6227 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
6228
6229         getaddrinfo: fix sh typo in gai_strerrorA decl checking
6230         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
6231         shell code: it contained a 'break' that was not in a loop.
6232         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
6233         via a shell-language loop; this may have been true in old Autoconf
6234         versions, but it's not true in Autoconf 2.68.  I found this bug
6235         when testing coreutils git on Solaris 8, whose shell complains
6236         about the syntax error.
6237
6238 2011-08-12  Simon Josefsson  <simon@josefsson.org>
6239
6240         * lib/base64.c: Fix comment to reference RFC 4648.
6241         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
6242         <gvtulder@gmail.com>.
6243
6244 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
6245
6246         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
6247
6248         po/Makefile.in.in: fix make -q problem
6249         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
6250         rule, since there's no file named 'check-macro-version' and its
6251         use as a file breaks make -q.
6252         (all): Don't depend on check-macro-version.
6253         (CHECK_MACRO_VERSION): New macro.
6254         (stamp-po): Use it.
6255
6256         configmake: fix make -q problem
6257         * modules/configmake (configmake.h): Update configmake.h's time stamp
6258         even if the file does not change.  Otherwise, 'make -q' fails.
6259         Problem reported by Simon Josefsson in
6260         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
6261
6262 2011-08-11  Jim Meyering  <meyering@redhat.com>
6263
6264         git-version-gen: correct the advice in a comment
6265         * build-aux/git-version-gen: Correct comment.
6266         Don't recommend to list .tarball-version in .gitignore.
6267
6268 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6269
6270         base64: fix off-by-one buffer size bug
6271         Problem and (trivial) fix reported by Gijs van Tulder in
6272         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
6273         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
6274         * tests/test-base64.c (main): Catch the bug.
6275
6276 2011-08-10  Eric Blake  <eblake@redhat.com>
6277
6278         closein: correct comments
6279         * lib/closein.c (close_stdin): Improve comments.
6280
6281 2011-08-09  Bruno Haible  <bruno@clisp.org>
6282
6283         More tests for 'fseeko'.
6284         * tests/test-fseeko3.c: New file, from Eric Blake.
6285         * tests/test-fseeko3.sh: New file.
6286         * modules/fseeko-tests (Files): Add them.
6287         (TESTS): Add test-fseeko3.sh.
6288         (check_PROGRAMS): Add test-fseeko3.
6289
6290 2011-08-09  Eric Blake  <eblake@redhat.com>
6291
6292         fseeko: remove unneeded hack
6293         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
6294
6295         fseeko: fix bug on glibc
6296         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
6297         Reported by John W. Eaton.
6298
6299 2011-08-08  Bruno Haible  <bruno@clisp.org>
6300
6301         unictype/base: Fix interoperability with preinstalled libunistring.
6302         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
6303         Reported by Simon Josefsson.
6304
6305 2011-08-08  Bruno Haible  <bruno@clisp.org>
6306
6307         iswblank: Detect declaration correctly.
6308         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
6309         AC_CHECK_DECLS invocation.
6310
6311 2011-08-08  Bruno Haible  <bruno@clisp.org>
6312
6313         tcgetsid: Detect declaration correctly.
6314         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
6315         AC_CHECK_DECLS invocation.
6316         Reported by Simon Josefsson.
6317
6318 2011-08-08  Eric Blake  <eblake@redhat.com>
6319
6320         largefile: fix typo that regressed large file support
6321         * modules/largefile (configure.ac-early): Fix section name.
6322
6323 2011-08-06  Karl Berry  <karl@gnu.org>
6324
6325         * MODULES.html.sh (func_all_files): _Noreturn is no longer
6326         a separate module.
6327
6328 2011-08-05  Simon Josefsson  <simon@josefsson.org>
6329
6330         openat: Fix warnings and commens when building unlinkat.c on Hurd.
6331         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
6332         get prototype for free.
6333
6334 2011-08-04  Bruno Haible  <bruno@clisp.org>
6335
6336         Tests for module 'pathmax'.
6337         * modules/pathmax-tests: New file.
6338         * tests/test-pathmax.c: New file.
6339
6340         canonicalize-lgpl: Support larger filenames on the Hurd.
6341         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
6342         Reported by Paul Eggert.
6343
6344         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
6345         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
6346         * lib/chdir-long.h: Include pathmax.h.
6347         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
6348         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
6349         (PATH_MAX): Remove code that is done by pathmax.h.
6350         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
6351         * lib/tmpfile.c: Add a comment.
6352         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
6353         * modules/chdir-long (Depends-on): Add pathmax.
6354         * modules/getcwd (Depends-on): Add pathmax.
6355         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
6356         is not defined.
6357         * doc/posix-headers/limits.texi: Mention the pathmax module.
6358         * NEWS: Mention the change.
6359
6360 2011-08-02  Bruno Haible  <bruno@clisp.org>
6361
6362         pthread_sigmask: Actually use results of gl_THREADLIB.
6363         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
6364         gl_THREADLIB, not gl_[]THREADLIB.
6365         Reported by Eric Blake.
6366
6367 2011-08-02  Jim Meyering  <meyering@redhat.com>
6368
6369         maint.mk: relax the default _gl_TS_function_match regexp
6370         * top/maint.mk (_gl_TS_function_match): Don't require at least one
6371         space between function name and "(" in an "extern" declaration.
6372         That would fail to match a decl with no space there: extern void foo();
6373
6374 2011-07-31  Iain Nicol  <iain@thenicols.net>
6375
6376         git-version-gen: document that EXTRA_DIST must include .version
6377         * build-aux/git-version-gen: In the how-to-use comment, document
6378         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
6379         will fail when run from an unpacked distribution tarball.
6380
6381 2011-08-01  Bruno Haible  <bruno@clisp.org>
6382
6383         wctype-h: Fix last change.
6384         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
6385         REPLACE_TOWLOWER to 0.
6386         Reported by Sam Steingold <sds@gnu.org>.
6387
6388 2011-07-31  Bruno Haible  <bruno@clisp.org>
6389
6390         frexpl: Update autoconf test.
6391         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
6392         according to changes of 2011-06-20.
6393
6394 2011-07-31  Bruno Haible  <bruno@clisp.org>
6395
6396         sys_utsname: Add support for Minix.
6397         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
6398         <sys/utsname.h>.
6399         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6400         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
6401
6402 2011-07-31  Bruno Haible  <bruno@clisp.org>
6403
6404         strings: Add support for Minix.
6405         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
6406         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6407         * doc/posix-headers/strings.texi: Document the Minix problem.
6408
6409 2011-07-31  Bruno Haible  <bruno@clisp.org>
6410
6411         wctype-h: Add support for Minix.
6412         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
6413         REPLACE_TOWLOWER.
6414         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
6415         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
6416         REPLACE_ISWCNTRL.
6417
6418 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
6419
6420         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
6421         This is a performance improvement for 64-bit hosts: it causes the
6422         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
6423
6424 2011-07-31  Bruno Haible  <bruno@clisp.org>
6425
6426         stdioext: Add support for Minix.
6427         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
6428         * lib/fpurge.c (fpurge): Likewise.
6429         * lib/freadahead.c (freadahead): Likewise.
6430         * lib/freadable.c (freadable): Likewise.
6431         * lib/freading.c (freading): Likewise.
6432         * lib/freadptr.c (freadptr): Likewise.
6433         * lib/freadseek.c (freadptrinc): Likewise.
6434         * lib/fseeko.c (rpl_fseeko): Likewise.
6435         * lib/fseterr.c (fseterr): Likewise.
6436         * lib/fwritable.c (fwritable): Likewise.
6437         * lib/fwriting.c (fwriting): Likewise.
6438         * lib/fflush.c (clear_ungetc_buffer): Update comment.
6439         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
6440
6441 2011-07-31  Bruno Haible  <bruno@clisp.org>
6442
6443         errno: Port to Minix.
6444         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
6445         ECONNABORTED are defined.
6446         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
6447         GNULIB_defined_ECONNABORTED): New macros.
6448         * lib/strerror-override.h (strerror_override): Test also
6449         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
6450         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
6451         ECONNABORTED.
6452         * doc/posix-headers/errno.texi: Mention the Minix problem.
6453
6454 2011-07-31  Bruno Haible  <bruno@clisp.org>
6455
6456         Work around declaration collisions on Minix.
6457         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
6458         defined, set REPLACE_MBSINIT.
6459         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
6460         defined, set REPLACE_MBRTOWC.
6461         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
6462         set REPLACE_MBRLEN.
6463         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
6464         defined, set REPLACE_MBSRTOWCS.
6465         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
6466         defined, set REPLACE_WCRTOMB.
6467         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
6468         defined, set REPLACE_WCSRTOMBS.
6469
6470 2011-07-31  Bruno Haible  <bruno@clisp.org>
6471
6472         Add support for Minix with ACK compiler.
6473         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
6474         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
6475         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
6476
6477 2011-07-31  Bruno Haible  <bruno@clisp.org>
6478
6479         Documentation about Minix.
6480         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
6481         * doc/glibc-headers/*.texi: Likewise.
6482         * doc/posix-functions/*.texi: Likewise.
6483         * doc/glibc-functions/*.texi: Likewise.
6484
6485 2011-07-31  Bruno Haible  <bruno@clisp.org>
6486
6487         snippet/warn-on-use: Fix indentation.
6488         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
6489
6490 2011-07-25  Jim Meyering  <meyering@redhat.com>
6491
6492         tests: test-update-copyright.sh: remove unnecessary "rm" commands
6493         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
6494         commands.
6495
6496 2011-07-27  Jim Meyering  <meyering@redhat.com>
6497
6498         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
6499         * top/maint.mk (gl_extract_significant_defines_): Now that
6500         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
6501         gnulib/lib/signal.in.h, and now that we recommend to
6502         define-if-undefined those two symbols in application code,
6503         we must filter them out of the "significant" list.
6504         This avoids a "make syntax-check" failure in coreutils.
6505
6506 2011-07-26  Eric Blake  <eblake@redhat.com>
6507
6508         warnings: add comments about previous patch
6509         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
6510         * m4/include_next.m4: Likewise.
6511         * m4/warn-on-use.m4: Likewise.
6512         * m4/warnings.m4: Likewise, and simplify use.
6513         Suggested by Stefano Lattarini.
6514
6515         include-next, warnings: support older autoconf
6516         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
6517         AS_VAR_PUSHDEF in a way that works with older autoconf.
6518         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
6519         Reported by Daniel P. Berrange.
6520
6521 2011-07-25  Bruno Haible  <bruno@clisp.org>
6522
6523         fseek, ftell: Fix doc.
6524         * doc/posix-functions/fseek.texi: Reword statement about
6525         AC_SYS_LARGEFILE.
6526         * doc/posix-functions/ftell.texi: Likewise.
6527
6528 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6529             Bruno Haible  <bruno@clisp.org>
6530
6531         Add dependencies to the 'largefile' module.
6532         * modules/fopen (Depends-on): Add 'largefile'.
6533         * modules/freopen (Depends-on): Likewise.
6534         * modules/fseeko (Depends-on): Likewise.
6535         * modules/ftello (Depends-on): Likewise.
6536         * modules/glob (Depends-on): Likewise.
6537         * modules/lseek (Depends-on): Likewise.
6538         * modules/lstat (Depends-on): Likewise.
6539         * modules/mkostemp (Depends-on): Likewise.
6540         * modules/mkostemps (Depends-on): Likewise.
6541         * modules/mkstemp (Depends-on): Likewise.
6542         * modules/mkstemps (Depends-on): Likewise.
6543         * modules/open (Depends-on): Likewise.
6544         * modules/openat (Depends-on): Likewise.
6545         * modules/pread (Depends-on): Likewise.
6546         * modules/pwrite (Depends-on): Likewise.
6547         * modules/scandir (Depends-on): Likewise.
6548         * modules/stat (Depends-on): Likewise.
6549         * modules/tmpfile (Depends-on): Likewise.
6550         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
6551         since the containing module now depends on the largefile module.
6552         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
6553         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
6554         off_t is fixed by gnulib.
6555         * doc/posix-functions/freopen.texi: Likewise.
6556         * doc/posix-functions/fseeko.texi: Likewise.
6557         * doc/posix-functions/fstatat.texi: Likewise.
6558         * doc/posix-functions/ftello.texi: Likewise.
6559         * doc/posix-functions/glob.texi: Likewise.
6560         * doc/posix-functions/lseek.texi: Likewise.
6561         * doc/posix-functions/lstat.texi: Likewise.
6562         * doc/posix-functions/mkstemp.texi: Likewise.
6563         * doc/posix-functions/open.texi: Likewise.
6564         * doc/posix-functions/openat.texi: Likewise.
6565         * doc/posix-functions/pread.texi: Likewise.
6566         * doc/posix-functions/pwrite.texi: Likewise.
6567         * doc/posix-functions/scandir.texi: Likewise.
6568         * doc/posix-functions/stat.texi: Likewise.
6569         * doc/posix-functions/tmpfile.texi: Likewise.
6570         * doc/glibc-functions/mkostemp.texi: Likewise.
6571         * doc/glibc-functions/mkostemps.texi: Likewise.
6572         * doc/glibc-functions/mkstemps.texi: Likewise.
6573
6574 2011-07-25  Bruno Haible  <bruno@clisp.org>
6575
6576         fcntl: Move AC_LIBOBJ invocation to module description.
6577         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
6578         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
6579
6580         fcntl: Remove call-in from fchdir.m4.
6581         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
6582         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
6583
6584         dup3: Remove potential call-in from fchdir.m4.
6585         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
6586         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
6587
6588         dup2: Move AC_LIBOBJ invocation to module description.
6589         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
6590         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
6591         Don't invoke AC_LIBOBJ.
6592         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
6593
6594         dup2: Remove call-in from fchdir.m4.
6595         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
6596         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
6597
6598         fclose: Move AC_LIBOBJ invocation to module description.
6599         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
6600         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
6601         to 1.
6602         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
6603
6604         fclose: Remove call-in from close.m4.
6605         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
6606         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
6607
6608         close: Move AC_LIBOBJ invocation to module description.
6609         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
6610         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
6611         1.
6612         * modules/close (configure.ac): Invoke AC_LIBOBJ.
6613
6614         close: Remove call-in from fchdir.m4.
6615         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
6616         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
6617
6618         open: Move AC_LIBOBJ invocation to module description.
6619         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
6620         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
6621         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
6622
6623         open: Remove call-in from fchdir.m4.
6624         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
6625         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
6626
6627         fchdir: Start to remove gl_REPLACE_* idiom.
6628         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
6629         (gl_FUNC_FCHDIR): Invoke it.
6630
6631 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6632
6633         * lib/ftell.c (ftell): Comment out cast.
6634
6635         close: use gl_REPLACE_FCLOSE only if defined
6636         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
6637         is defined.  The close module doesn't depend on the fclose module
6638         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
6639         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
6640         I reproduced the problem with "./gnulib-tool --test close sys_socket".
6641
6642 2011-07-24  Jim Meyering  <meyering@redhat.com>
6643
6644         test-select.h: avoid warning when using gcc's -Wmissing-declarations
6645         * tests/test-select.h (test_function): Declare as "static".
6646
6647 2011-07-24  Bruno Haible  <bruno@clisp.org>
6648
6649         doc: Mention the effects of AC_SYS_LARGEFILE.
6650         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
6651         on this function.
6652         * doc/posix-functions/aio_error.texi: Likewise.
6653         * doc/posix-functions/aio_fsync.texi: Likewise.
6654         * doc/posix-functions/aio_read.texi: Likewise.
6655         * doc/posix-functions/aio_return.texi: Likewise.
6656         * doc/posix-functions/aio_suspend.texi: Likewise.
6657         * doc/posix-functions/aio_write.texi: Likewise.
6658         * doc/posix-functions/fgetpos.texi: Likewise.
6659         * doc/posix-functions/fopen.texi: Likewise.
6660         * doc/posix-functions/freopen.texi: Likewise.
6661         * doc/posix-functions/fsetpos.texi: Likewise.
6662         * doc/posix-functions/fstatvfs.texi: Likewise.
6663         * doc/posix-functions/ftruncate.texi: Likewise.
6664         * doc/posix-functions/ftw.texi: Likewise.
6665         * doc/posix-functions/getrlimit.texi: Likewise.
6666         * doc/posix-functions/glob.texi: Likewise.
6667         * doc/posix-functions/lio_listio.texi: Likewise.
6668         * doc/posix-functions/lockf.texi: Likewise.
6669         * doc/posix-functions/mkstemp.texi: Likewise.
6670         * doc/posix-functions/mmap.texi: Likewise.
6671         * doc/posix-functions/nftw.texi: Likewise.
6672         * doc/posix-functions/openat.texi: Likewise.
6673         * doc/posix-functions/opendir.texi: Likewise.
6674         * doc/posix-functions/posix_fadvise.texi: Likewise.
6675         * doc/posix-functions/posix_fallocate.texi: Likewise.
6676         * doc/posix-functions/pread.texi: Likewise.
6677         * doc/posix-functions/pwrite.texi: Likewise.
6678         * doc/posix-functions/readdir.texi: Likewise.
6679         * doc/posix-functions/readdir_r.texi: Likewise.
6680         * doc/posix-functions/rewinddir.texi: Likewise.
6681         * doc/posix-functions/scandir.texi: Likewise.
6682         * doc/posix-functions/seekdir.texi: Likewise.
6683         * doc/posix-functions/setrlimit.texi: Likewise.
6684         * doc/posix-functions/statvfs.texi: Likewise.
6685         * doc/posix-functions/telldir.texi: Likewise.
6686         * doc/posix-functions/tmpfile.texi: Likewise.
6687         * doc/posix-functions/truncate.texi: Likewise.
6688         * doc/glibc-functions/fallocate.texi: Likewise.
6689         * doc/glibc-functions/fstatfs.texi: Likewise.
6690         * doc/glibc-functions/fts_children.texi: Likewise.
6691         * doc/glibc-functions/fts_read.texi: Likewise.
6692         * doc/glibc-functions/getdirentries.texi: Likewise.
6693         * doc/glibc-functions/mkostemp.texi: Likewise.
6694         * doc/glibc-functions/mkostemps.texi: Likewise.
6695         * doc/glibc-functions/mkstemps.texi: Likewise.
6696         * doc/glibc-functions/preadv.texi: Likewise.
6697         * doc/glibc-functions/pwritev.texi: Likewise.
6698         * doc/glibc-functions/sendfile.texi: Likewise.
6699         * doc/glibc-functions/statfs.texi: Likewise.
6700
6701 2011-07-24  Bruno Haible  <bruno@clisp.org>
6702
6703         doc: Fix typo.
6704         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
6705
6706 2011-07-24  Bruno Haible  <bruno@clisp.org>
6707
6708         doc: Mention fsusage.
6709         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
6710
6711 2011-07-24  Bruno Haible  <bruno@clisp.org>
6712
6713         doc: Mention new glibc headers and functions.
6714         * doc/glibc-headers/gshadow.texi: New file.
6715         * doc/glibc-functions/endsgent.texi: New file.
6716         * doc/glibc-functions/fgetsgent.texi: New file.
6717         * doc/glibc-functions/fgetsgent_r.texi: New file.
6718         * doc/glibc-functions/getsgent.texi: New file.
6719         * doc/glibc-functions/getsgent_r.texi: New file.
6720         * doc/glibc-functions/getsgnam.texi: New file.
6721         * doc/glibc-functions/getsgnam_r.texi: New file.
6722         * doc/glibc-functions/putsgent.texi: New file.
6723         * doc/glibc-functions/setsgent.texi: New file.
6724         * doc/glibc-functions/sgetsgent.texi: New file.
6725         * doc/glibc-functions/sgetsgent_r.texi: New file.
6726         * doc/glibc-functions/malloc_info.texi: New file.
6727         * doc/glibc-functions/preadv.texi: New file.
6728         * doc/glibc-functions/pwritev.texi: New file.
6729         * doc/glibc-functions/register_printf_modifier.texi: New file.
6730         * doc/glibc-functions/register_printf_specifier.texi: New file.
6731         * doc/glibc-functions/register_printf_type.texi: New file.
6732         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
6733         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
6734         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
6735         * doc/glibc-functions/pthread_getname_np.texi: New file.
6736         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
6737         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
6738         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
6739         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
6740         * doc/glibc-functions/pthread_setname_np.texi: New file.
6741         * doc/glibc-functions/pthread_sigqueue.texi: New file.
6742         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
6743         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
6744         * doc/glibc-functions/qsort_r.texi: New file.
6745         * doc/glibc-functions/quick_exit.texi: New file.
6746         * doc/glibc-functions/syncfs.texi: New file.
6747         * doc/gnulib.texi: Include them.
6748         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
6749         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
6750         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
6751         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
6752         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
6753         * doc/glibc-functions/execvpe.texi: Likewise.
6754
6755 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6756
6757         ftell: don't include <unistd.h>
6758         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
6759         guaranteed to define off_t, and the ftell module depends on the
6760         stdio module.
6761
6762         ftell: do not assume wraparound signed arithmetic
6763         * lib/ftell.c: Include <limits.h>.
6764         (ftell): Don't assume wraparound signed arithmetic.
6765
6766 2011-07-24  Bruno Haible  <bruno@clisp.org>
6767
6768         close: No longer depend on module 'fclose'.
6769         * modules/close (Depends-on): Remove fclose.
6770         * NEWS: Mention the change.
6771         Suggested by Sam Steingold <sds@gnu.org>.
6772
6773 2011-07-24  Bruno Haible  <bruno@clisp.org>
6774
6775         fsusage: Enable large volume support on AIX >= 5.2.
6776         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
6777         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
6778         instead of STAT_STATVFS.
6779         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
6780
6781         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
6782         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
6783         f_blocks field only on MacOS X.
6784
6785         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
6786         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
6787         * modules/fsusage (Depends-on): Add largefile.
6788
6789 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6790
6791         * README: Modernize discussion of signed integers.
6792         Assuming overflow wraparound is no longer safe.
6793         Mention ones' complement and signed magnitude.
6794
6795 2011-07-22  Bruno Haible  <bruno@clisp.org>
6796
6797         select tests, pselect tests: Refactor.
6798         * tests/test-select.h: New file, extracted from tests/test-select.c.
6799         (select_fn): New type.
6800         (test, do_select, do_select_nowait, do_select_wait, test_tty,
6801         test_connect_first, test_accept_first, test_pair, test_socket_pair,
6802         test_pipe): Add my_select argument.
6803         (test_function): Renamed from main. Add my_select argument.
6804         * tests/test-select.c: Move most code to tests/test-select.h. Include
6805         test-select.h.
6806         * modules/select-tests (Files): Add tests/test-select.h.
6807         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
6808         (my_select, main): New functions.
6809         * modules/pselect-tests (Files): Add tests/test-select.h,
6810         tests/macros.h, tests/signature.h.
6811         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
6812         (configure.ac): Check for <sys/wait.h>.
6813
6814 2011-07-22  Bruno Haible  <bruno@clisp.org>
6815
6816         sys_select tests: Check the signature of FD_*.
6817         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
6818         signature tests from here...
6819         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
6820         here.
6821         * modules/sys_select-tests (Files): Add tests/signature.h.
6822
6823 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6824
6825         largefile: new module, replacing large-inode
6826         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
6827         * MODULES.html.sh: Add largefile, remove large-inode.
6828         * modules/largefile, m4/largefile.m4: New files.
6829         * modules/large-inode, m4/large-inode.m4: Remove.
6830
6831         fsusage: port to MacOS X 10.7 with 4 TiB file systems
6832         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
6833         implementations that use only 32 bits to count blocks.
6834         On typical hosts with 1024-byte blocks, this fails with file
6835         systems as small as 4 TiB.  Problem reported by Herb Wartens
6836         <http://debbugs.gnu.org/9140> and this should also fix a similar
6837         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
6838
6839         large-inode: New module
6840         * MODULES.html.sh: Add it.
6841         * modules/large-inode, m4/large-inode.m4: New files.
6842
6843         extensions: Enable extensions on MacOS X 10.5 and later.
6844         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
6845
6846 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
6847
6848         file-has-acl: use acl_extended_file_nofollow if available
6849         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
6850         (acl_extended_file): New macro.
6851         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
6852         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
6853
6854 2011-07-21  Bruno Haible  <bruno@clisp.org>
6855
6856         Declare system functions in a way that works with C++.
6857         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
6858         declare fdopendir as extern "C".
6859         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
6860         declare frexpl as extern "C".
6861         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
6862         declare gai_strerror as extern "C".
6863         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
6864         programs, declare gai_strerror as extern "C".
6865         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
6866         declare getlogin_r as extern "C".
6867         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
6868         as extern "C".
6869         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
6870         declare ldexpl as extern "C".
6871         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
6872         as extern "C".
6873         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
6874         program, declare getmntinfo as extern "C".
6875         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
6876         stpncpy as extern "C".
6877         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
6878         program, declare __xpg_strerror_r as extern "C".
6879         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
6880         strndup as extern "C".
6881         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
6882         declare memset and bzero as extern "C".
6883         Reported by Sam Steingold <sds@gnu.org>.
6884
6885 2011-07-12  Jim Meyering  <meyering@redhat.com>
6886
6887         maint.mk: prohibit inclusion of "verify.h" without use
6888         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
6889
6890 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6891
6892         timer-time: A new module to check for timer_settime()
6893         * m4/timer_time.m4: Check for the posix function.
6894         * modules/timer-time: Add the new module.
6895         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
6896         Mention it.
6897
6898 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
6899             Bruno Haible  <bruno@clisp.org>
6900
6901         pthread_sigmask: assume POSIX threads if --avoid=threadlib
6902         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
6903         not defined, assume POSIX threads and look for pthread_sigmask in
6904         $LIBS, without changing $CPPFLAGS.
6905
6906 2011-07-19  Bruno Haible  <bruno@clisp.org>
6907
6908         strstr: Update cross-compilation guess.
6909         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
6910         CPUs, guess no, in view of glibc
6911         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
6912         Suggested by Eric Blake. Reported by Reuben Thomas.
6913
6914 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6915
6916         getopt-gnu: suppress core dumps from detection code
6917         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
6918         to suppress core dumps that may well occur on glibc systems.
6919         * modules/getopt-gnu: Depend on nocrash.
6920
6921 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6922
6923         pthread_sigmask: ensure usleep is declared
6924         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
6925         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
6926
6927 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
6928
6929         doc: Document NonStop portability issues.
6930         * doc/posix-functions/sigaction.texi (sigaction):
6931         * doc/posix-headers/signal.texi (signal.h):
6932         Document NonStop.  See Joachim Schmitz in
6933         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
6934
6935 2011-07-15  Bruno Haible  <bruno@clisp.org>
6936
6937         ffsl, ffsll: Avoid unportable behaviour.
6938         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
6939
6940 2011-07-15  Bruno Haible  <bruno@clisp.org>
6941
6942         ffs: More tests.
6943         * tests/test-ffs.c (NBITS): New macro.
6944         (main): Add more tests.
6945         * tests/test-ffsl.c (NBITS): New macro.
6946         (main): Add more tests.
6947         * tests/test-ffsll.c (NBITS): New macro.
6948         (main): Add more tests.
6949
6950 2011-07-15  Eric Blake  <eblake@redhat.com>
6951
6952         ffsl, ffsll: new modules
6953         * modules/ffsl: New file.
6954         * modules/ffsll: Likewise.
6955         * m4/ffsl.m4: Likewise.
6956         * m4/ffsll.m4: Likewise.
6957         * lib/ffsl.c: Likewise.
6958         * lib/ffsl.h: Likewise.
6959         * lib/ffsll.c: Likewise.
6960         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
6961         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
6962         * modules/string (Makefile.am): Substitute witnesses.
6963         * lib/strings.in.h (ffsl, ffsll): Declare.
6964         * modules/ffsl-tests: New test file.
6965         * modules/ffsll-tests: Likewise.
6966         * tests/test-ffsl.c: Likewise.
6967         * tests/test-ffsll.c: Likewise.
6968         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6969         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
6970         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
6971
6972         ffs: fix m4 prerequisite
6973         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
6974
6975         ffs: avoid undefined behavior
6976         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
6977         * tests/test-ffs.c (naive, main): Avoid signed shifts.
6978         Reported by Bruno Haible.
6979
6980 2011-07-12  Bruno Haible  <bruno@clisp.org>
6981
6982         pthread_sigmask: Rely on module 'threadlib'.
6983         * modules/pthread_sigmask (Depends-on): Add threadlib.
6984         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
6985         is defined.
6986
6987 2011-07-12  Bruno Haible  <bruno@clisp.org>
6988
6989         regex: Depend on module 'strcase'.
6990         * modules/regex (Depends-on): Add strcase, for strcasecmp().
6991
6992 2011-07-12  Jim Meyering  <meyering@redhat.com>
6993
6994         warn-on-use: fix typo in file name
6995         * modules/snippet/warn-on-use (Files): Correct file name:
6996         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
6997
6998 2011-07-12  Bruno Haible  <bruno@clisp.org>
6999
7000         strings: Document module.
7001         * doc/posix-headers/strings.texi: Mention module 'strings'.
7002
7003 2011-07-12  Bruno Haible  <bruno@clisp.org>
7004
7005         Rename module '_Noreturn' to 'snippet/_Noreturn'.
7006         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
7007         (Files, Makefile.am): Update.
7008         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
7009         * modules/stdlib (Depends-on): Update.
7010
7011 2011-07-12  Bruno Haible  <bruno@clisp.org>
7012
7013         * NEWS: Mention the changes.
7014
7015         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
7016         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
7017         (Files, Makefile.am): Update.
7018         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
7019         * modules/arpa_inet (Depends-on): Update.
7020         * modules/ctype (Depends-on): Update.
7021         * modules/dirent (Depends-on): Update.
7022         * modules/fcntl-h (Depends-on): Update.
7023         * modules/glob (Depends-on): Update.
7024         * modules/iconv-h (Depends-on): Update.
7025         * modules/inttypes-incomplete (Depends-on): Update.
7026         * modules/langinfo (Depends-on): Update.
7027         * modules/locale (Depends-on): Update.
7028         * modules/math (Depends-on): Update.
7029         * modules/netdb (Depends-on): Update.
7030         * modules/poll-h (Depends-on): Update.
7031         * modules/pty (Depends-on): Update.
7032         * modules/search (Depends-on): Update.
7033         * modules/signal (Depends-on): Update.
7034         * modules/spawn (Depends-on): Update.
7035         * modules/stdio (Depends-on): Update.
7036         * modules/stdlib (Depends-on): Update.
7037         * modules/string (Depends-on): Update.
7038         * modules/strings (Depends-on): Update.
7039         * modules/sys_file (Depends-on): Update.
7040         * modules/sys_ioctl (Depends-on): Update.
7041         * modules/sys_select (Depends-on): Update.
7042         * modules/sys_socket (Depends-on): Update.
7043         * modules/sys_stat (Depends-on): Update.
7044         * modules/sys_time (Depends-on): Update.
7045         * modules/sys_times (Depends-on): Update.
7046         * modules/sys_utsname (Depends-on): Update.
7047         * modules/sys_wait (Depends-on): Update.
7048         * modules/termios (Depends-on): Update.
7049         * modules/time (Depends-on): Update.
7050         * modules/unistd (Depends-on): Update.
7051         * modules/wchar (Depends-on): Update.
7052         * modules/wctype-h (Depends-on): Update.
7053         * MODULES.html.sh (Support for building libraries and executables):
7054         Update.
7055
7056         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
7057         * modules/snippet/unused-parameter: Renamed from
7058         modules/unused-parameter.
7059         (Files, Makefile.am): Update.
7060         * build-aux/snippet/unused-parameter.h: Renamed from
7061         build-aux/unused-parameter.h.
7062         * modules/selinux-h (Depends-on): Update.
7063         * modules/unistr/base (Depends-on): Update.
7064         * MODULES.html.sh (Core language properties): Update.
7065
7066         Rename module 'link-warning' to 'snippet/link-warning'.
7067         * modules/snippet/link-warning: Renamed from modules/link-warning.
7068         (Files, Makefile.am): Update.
7069         * build-aux/snippet/link-warning.h: Renamed from
7070         build-aux/link-warning.h.
7071         * MODULES.html.sh (Support for building libraries and executables):
7072         Update.
7073
7074         Rename module 'c++defs' to 'snippet/c++defs'.
7075         * modules/snippet/c++defs: Renamed from modules/c++defs.
7076         (Files, Makefile.am): Update.
7077         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
7078         * modules/arpa_inet (Depends-on): Update.
7079         * modules/ctype (Depends-on): Update.
7080         * modules/dirent (Depends-on): Update.
7081         * modules/fcntl-h (Depends-on): Update.
7082         * modules/glob (Depends-on): Update.
7083         * modules/iconv-h (Depends-on): Update.
7084         * modules/langinfo (Depends-on): Update.
7085         * modules/locale (Depends-on): Update.
7086         * modules/math (Depends-on): Update.
7087         * modules/netdb (Depends-on): Update.
7088         * modules/poll-h (Depends-on): Update.
7089         * modules/pty (Depends-on): Update.
7090         * modules/search (Depends-on): Update.
7091         * modules/signal (Depends-on): Update.
7092         * modules/spawn (Depends-on): Update.
7093         * modules/stdio (Depends-on): Update.
7094         * modules/stdlib (Depends-on): Update.
7095         * modules/string (Depends-on): Update.
7096         * modules/strings (Depends-on): Update.
7097         * modules/sys_ioctl (Depends-on): Update.
7098         * modules/sys_select (Depends-on): Update.
7099         * modules/sys_socket (Depends-on): Update.
7100         * modules/sys_stat (Depends-on): Update.
7101         * modules/sys_time (Depends-on): Update.
7102         * modules/sys_wait (Depends-on): Update.
7103         * modules/termios (Depends-on): Update.
7104         * modules/time (Depends-on): Update.
7105         * modules/unistd (Depends-on): Update.
7106         * modules/wchar (Depends-on): Update.
7107         * modules/wctype-h (Depends-on): Update.
7108
7109         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
7110         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
7111         (Files, Makefile.am): Update.
7112         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
7113         * modules/argv-iter (Depends-on): Update.
7114         * modules/arpa_inet (Depends-on): Update.
7115         * modules/dirent (Depends-on): Update.
7116         * modules/fcntl-h (Depends-on): Update.
7117         * modules/fnmatch (Depends-on): Update.
7118         * modules/getopt-posix (Depends-on): Update.
7119         * modules/glob (Depends-on): Update.
7120         * modules/iconv-h (Depends-on): Update.
7121         * modules/inttypes-incomplete (Depends-on): Update.
7122         * modules/locale (Depends-on): Update.
7123         * modules/math (Depends-on): Update.
7124         * modules/netdb (Depends-on): Update.
7125         * modules/search (Depends-on): Update.
7126         * modules/signal (Depends-on): Update.
7127         * modules/spawn (Depends-on): Update.
7128         * modules/stdio (Depends-on): Update.
7129         * modules/stdlib (Depends-on): Update.
7130         * modules/string (Depends-on): Update.
7131         * modules/strings (Depends-on): Update.
7132         * modules/sys_socket (Depends-on): Update.
7133         * modules/sys_stat (Depends-on): Update.
7134         * modules/sys_time (Depends-on): Update.
7135         * modules/sys_times (Depends-on): Update.
7136         * modules/sys_utsname (Depends-on): Update.
7137         * modules/time (Depends-on): Update.
7138         * modules/unistd (Depends-on): Update.
7139         * modules/wchar (Depends-on): Update.
7140         * MODULES.html.sh (Support for building libraries and executables):
7141         Update.
7142
7143 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7144
7145         Improvements on _Noreturn and related modules.
7146
7147         modules/_Exit-tests: test _Noreturn too
7148         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
7149         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
7150         (main): Use them.
7151
7152         stdnoreturn, stdnoreturn-tests: remove modules
7153         They're not needed here and a bit premature for use elsewhere.  See
7154         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
7155         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7156         * tests/test-stdnoreturn.c: Remove files.
7157         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
7158         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
7159         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
7160         and using noreturn.
7161         * modules/openat, modules/sigpipe-die, modules/xalloc:
7162         * modules/xmemdup0, modules/xstrtol:
7163         Remove dependency on stdnoreturn.
7164
7165         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
7166         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
7167         Reparenthesize to avoid GCC warning.
7168         Support Microsoft's syntax.
7169         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
7170
7171         _Noreturn-tests: remove module
7172         * modules/_Noreturn-tests: Remove.
7173         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
7174         * tests/test-_Noreturn.c: Remove.
7175         * tests/test-stdnoreturn.c: Merge from the old
7176         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
7177
7178 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7179
7180         _Noreturn, stdnoreturn, and related modules.
7181
7182         * top/maint.mk: Adjust to new noreturn support.
7183         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
7184         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
7185
7186         xalloc: use stdnoreturn.h
7187         * lib/xalloc.h: Include <stdnoreturn.h>.
7188         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7189         * modules/xalloc (Depends-on): Add stdnoreturn.
7190
7191         xstrtol: use stdnoreturn.h
7192         * lib/xstrtol.h: Include <stdnoreturn.h>.
7193         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7194         * modules/xstrtol (Depends-on): Add stdnoreturn.
7195
7196         xmemdup0: use stdnoreturn.h
7197         * lib/xmemdup0.h: Include <stdnoreturn.h>.
7198         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7199         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
7200
7201         sigpipe-die: use stdnoreturn.h
7202         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
7203         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7204         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
7205
7206         openat: use stdnoreturn.h
7207         * lib/openat.h: Include <stdnoreturn.h>.
7208         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7209         * modules/openat (Depends-on): Add stdnoreturn.
7210
7211         * lib/openat-die.c (openat_save_fail): Modernize comment.
7212
7213         * lib/xalloc-die.c (xalloc_die): Modernize comment.
7214
7215         * lib/glthread/thread.h: Modernize comment.
7216
7217         obstack: use _Noreturn
7218         * lib/obstack.c (__attribute__): Remove macro.
7219         (print_and_abort): Use _Noreturn.
7220
7221         c-stack: use _Noreturn
7222         * lib/c-stack.c (die, overflow_handler, segv_handler):
7223         Use _Noreturn rather than __attribute__((noreturn)).
7224
7225         argmatch-tests, exclude_tests: use _Noreturn
7226         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
7227         Remove.
7228         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
7229
7230         stdlib: use _Noreturn
7231         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
7232         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
7233         * modules/stdlib (Depends-on): Add _Noreturn.
7234         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
7235
7236         stdnoreturn-tests: new module
7237         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
7238
7239         stdnoreturn: new module
7240         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
7241         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
7242
7243         _Noreturn-tests: new module
7244         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
7245
7246         _Noreturn: new module
7247         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
7248         New section, mentioning it.
7249         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
7250
7251         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
7252
7253 2011-07-11  Eric Blake  <eblake@redhat.com>
7254
7255         ffs: new module
7256         * modules/ffs: New file.
7257         * m4/ffs.m4: Likewise.
7258         * lib/ffs.c: Likewise.
7259         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
7260         * modules/strings (Makefile.am): Substitute witness.
7261         (Depends-on): Add c++defs.
7262         * lib/strings.in.h (ffs): Declare.
7263         * modules/ffs-tests: New test file.
7264         * tests/test-ffs.c: Test new module.
7265         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7266         * doc/posix-functions/ffs.texi (ffs): Likewise.
7267
7268         regex: avoid compiler warning
7269         * lib/regex.c (includes): Include <strings.h>, for use of
7270         strcasecmp in regcomp.c.
7271         Reported by Joachim Schmitz.
7272
7273 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7274
7275         stdint: respect system's intmax_t if INTMAX_MAX
7276         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
7277         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
7278         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
7279         long but int64_t is long long, and where we will clash with the
7280         system intmax_t if we override it.  See
7281         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
7282         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
7283         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
7284         similarly for UINTMAX_C.
7285
7286 2011-07-08  Bruno Haible  <bruno@clisp.org>
7287
7288         pthread_sigmask tests: Avoid a compiler warning.
7289         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
7290         non-zero.
7291
7292         sigprocmask tests: A better way to avoid a compiler warning.
7293         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
7294         (main): Complain if system() returns non-zero.
7295         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
7296
7297 2011-07-08  Bruno Haible  <bruno@clisp.org>
7298
7299         pthread_sigmask: Work around IRIX bug.
7300         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
7301         bug.
7302         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
7303         there may be unblocked pending signals.
7304         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
7305
7306 2011-07-08  Bruno Haible  <bruno@clisp.org>
7307
7308         pthread_sigmask: Work around Cygwin bug.
7309         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
7310         bug.
7311         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
7312         the system's pthread_sigmask function.
7313         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
7314
7315 2011-07-08  Bruno Haible  <bruno@clisp.org>
7316
7317         pthread_sigmask: Work around bug in single-threaded implementation.
7318         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
7319         FreeBSD, HP-UX, Solaris bug.
7320         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
7321         * lib/pthread_sigmask.c: Include <stddef.h>.
7322         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
7323         the system's pthread_sigmask function.
7324         * modules/pthread_sigmask (configure.ac): Invoke
7325         gl_PREREQ_PTHREAD_SIGMASK.
7326         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
7327         HP-UX, Solaris.
7328
7329 2011-07-08  Eric Blake  <eblake@redhat.com>
7330
7331         test-sigprocmask: avoid compiler warning
7332         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
7333         * tests/test-sigprocmask.c (main): Use it to silence warning.
7334         Reported by Jim Meyering.
7335
7336         test-snprintf: avoid compiler warning
7337         * tests/test-snprintf.c (main): Avoid shadowed declaration.
7338         * tests/test-vsnprintf.c (main): Likewise.
7339         Reported by Jim Meyering.
7340
7341 2011-07-08  Bruno Haible  <bruno@clisp.org>
7342
7343         Tests for module 'pthread_sigmask'.
7344         * modules/pthread_sigmask-tests: New file.
7345         * tests/test-pthread_sigmask1.c: New file, based on
7346         tests/test-sigprocmask.c.
7347         * tests/test-pthread_sigmask2.c: New file.
7348
7349 2011-07-08  Jim Meyering  <meyering@redhat.com>
7350
7351         test-getopt.h: avoid warning about an unused variable
7352         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
7353
7354 2011-07-07  Jim Meyering  <meyering@redhat.com>
7355
7356         maint: reduce list of files exempt from sc_prohibit_leading_TABs
7357         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
7358         now that it no longer contains leading TABs.
7359         Remove unused "url=FIXME" statement.
7360
7361 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7362
7363         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
7364         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7365         When gl_THREADLIB is not in use, assume that the POSIX sematics
7366         are desired.  This is better for Emacs, which uses POSIX semantics
7367         on GNUish and/or POSIXish platforms, and does not use threads at
7368         all otherwise.
7369
7370         pthread_sigmask: fix typo when testing for libraries
7371         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7372         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
7373
7374 2011-07-08  Eric Blake  <eblake@redhat.com>
7375
7376         fts: introduce FTS_NOATIME
7377         * lib/fts_.h (FTS_NOATIME): New bit flag.
7378         (FTS_OPTIONMASK): Adjust.
7379         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
7380         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
7381
7382 2011-07-08  Bruno Haible  <bruno@clisp.org>
7383
7384         Tests for module 'thread'.
7385         * modules/thread-tests: New file.
7386         * tests/test-thread_self.c: New file.
7387         * tests/test-thread_create.cc: New file.
7388
7389 2011-07-08  Bruno Haible  <bruno@clisp.org>
7390
7391         thread: Avoid gcc warnings when using gl_thread_self().
7392         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
7393         'void *'.
7394         (gl_thread_self_pointer): Update.
7395
7396 2011-07-07  Bruno Haible  <bruno@clisp.org>
7397
7398         signal-c++-tests: Check declaration of pthread_sigmask.
7399         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
7400         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
7401         $(LIB_PTHREAD_SIGMASK).
7402
7403 2011-07-07  Bruno Haible  <bruno@clisp.org>
7404
7405         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
7406         * lib/signal.in.h (pthread_sigmask): Override if
7407         REPLACE_PTHREAD_SIGMASK is 1.
7408         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7409         REPLACE_PTHREAD_SIGMASK.
7410         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
7411         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
7412         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
7413         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7414         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
7415
7416 2011-07-07  Bruno Haible  <bruno@clisp.org>
7417
7418         pthread_sigmask: Ensure declaration in <signal.h>.
7419         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
7420         include <pthread.h>.
7421         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
7422         problem.
7423
7424 2011-07-07  Bruno Haible  <bruno@clisp.org>
7425
7426         pthread_sigmask: Document the module.
7427         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
7428
7429 2011-07-07  Bruno Haible  <bruno@clisp.org>
7430
7431         pthread_sigmask: Follow gnulib conventions.
7432         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
7433         gl_PTHREAD_SIGMASK.
7434         * modules/pthread_sigmask (configure.ac): Update.
7435
7436 2011-07-07  Bruno Haible  <bruno@clisp.org>
7437
7438         pthread_sigmask: Make declaration C++ safe.
7439         * lib/signal.in.h: In two special conditions, just do an #include_next.
7440         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7441         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
7442         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7443         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7444         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
7445         not REPLACE_PTHREAD_MASK.
7446         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
7447         not REPLACE_PTHREAD_MASK.
7448         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7449
7450 2011-07-07  Bruno Haible  <bruno@clisp.org>
7451
7452         pthread_sigmask: Fix return value.
7453         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
7454         * lib/pthread_sigmask.c: New file.
7455         * modules/pthread_sigmask (Files): Add it.
7456         (configure.ac): Invoke AC_LIBOBJ.
7457
7458 2011-07-07  Eric Blake  <eblake@redhat.com>
7459
7460         getopt: more portable argv creation
7461         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
7462         const, use char arrays rather than strings.
7463         Suggested by Paul Eggert.
7464
7465 2011-07-07  Bruno Haible  <bruno@clisp.org>
7466
7467         Tests for module 'sigprocmask'.
7468         * modules/sigprocmask-tests: New file.
7469         * tests/test-sigprocmask.c: New file.
7470
7471 2011-07-07  Bruno Haible  <bruno@clisp.org>
7472
7473         float tests: Tweak.
7474         * tests/test-float.c (main): Tweak skip message.
7475
7476 2011-07-07  Eric Blake  <eblake@redhat.com>
7477
7478         getopt: avoid compiler warning during configure
7479         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
7480         assigning string literals to non-const pointer.
7481
7482         getopt-gnu: avoid crash in glibc getopt
7483         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
7484         * tests/test-getopt.h (test_getopt): Enhance test.
7485         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7486         * doc/posix-functions/getopt.texi (getopt): Document it.
7487         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7488         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7489         Likewise.
7490
7491 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
7492
7493         getopt: handle W; without long options in getopt [BZ #12922]
7494         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
7495         but no long options are defined, just return 'W'.
7496
7497 2011-07-07  Bruno Haible  <bruno@clisp.org>
7498
7499         Avoid literal tabs.
7500         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
7501         variable containing a tab instead of a literal tab.
7502         Reported by Jim Meyering.
7503
7504 2011-07-07  Bruno Haible  <bruno@clisp.org>
7505
7506         Comments.
7507         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
7508
7509 2011-07-06  Bruno Haible  <bruno@clisp.org>
7510
7511         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
7512         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
7513         <winsock2.h>.
7514         (rpl_fd_isset, FD_ISSET): New definitions, copied from
7515         lib/sys_socket.in.h.
7516         (close, gethostname): Hide declarations from <winsock2.h>.
7517         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7518         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
7519         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
7520         (select): Don't override if gnulib's <sys/select.h> was already
7521         included.
7522         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7523         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7524         setsockopt, shutdown, select): Tweak indentation.
7525
7526 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7527
7528         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
7529         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
7530         in an application that does not use the sys_select module.
7531
7532 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
7533
7534         poll: do not return 0 on timeout=-1
7535         * lib/poll.c: Loop with yield if no events occured
7536
7537 2011-07-06  Eric Blake  <eblake@redhat.com>
7538
7539         pthread_sigmask: always replace when not using pthread
7540         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
7541         replacement when using some threading other than pthread.  Fix
7542         logic bug.
7543
7544 2011-07-06  Bruno Haible  <bruno@clisp.org>
7545
7546         Comments.
7547         * m4/printf.m4: Update comments about mingw.
7548
7549 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7550
7551         sys_select: define sigset_t more portably
7552         * lib/sys_select.in.h: Always include <sys/types.h>, since
7553         we now need sigset_t and mingw defines it there.
7554         Include <signal.h> before split inclusion guard, to avoid
7555         mishaps on Solaris, whose <signal.h> eventually includes us.
7556         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
7557         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
7558         which come from ...
7559         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
7560         gl_CHECK_TYPE_SIGSET_T.
7561         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
7562         does the real work.
7563         * modules/sys_select (Depends-on): Add 'signal'.
7564
7565         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
7566         Suggested by Bruno Haible.
7567
7568         pselect: Use pthread_sigmask, not sigprocmask.
7569         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
7570         multithreaded apps better than sigprocmask does.
7571         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
7572         sigprocmask directly.
7573
7574 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7575
7576         * lib/pselect.c (pselect): Use plain name, without "rpl_".
7577         Don't #undef,  since we don't need any underlying pselect.
7578         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
7579         (Depends-on): Add select.
7580         (Link): Add $(LIBSOCKET).
7581         These changes suggested by Bruno Haible.
7582
7583         pselect: document better
7584         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7585         * doc/posix-functions/pselect.texi (pselect): Document new module.
7586
7587         pthread_sigmask: new module
7588         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7589         * doc/posix-functions/pthread_sigmask.texi: Document new module.
7590         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
7591         This is done only as a macro; I don't know how well that'll
7592         work for C++.  Move <sys/types.h> include before the include_next,
7593         to avoid mishap on Solaris.
7594         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
7595         * modules/signal (Makefile.am): Substitute the check's results.
7596         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
7597
7598         test-pselect: new module
7599         * modules/pselect-tests, tests/test-pselect.c: New files.
7600         * tests/test-select.c, tests/test-sys_select-c++.cc:
7601         If TEST_PSELECT is defined, test pselect instead of testing select.
7602
7603         * tests/test-sys_select.c (sigset_t): Test for it, too.
7604         Suggested by Bruno Haible.
7605
7606 2011-07-05  Eric Blake  <eblake@redhat.com>
7607
7608         snprintf: guarantee %1$d, for libintl
7609         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
7610         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
7611         * doc/posix-functions/snprintf.texi (snprintf): Update.
7612         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7613         * tests/test-snprintf.c (main): Enhance test.
7614         * tests/test-vsnprintf.c (main): Likewise.
7615
7616 2011-07-05  Jim Meyering  <meyering@redhat.com>
7617
7618         maint: exempt stdio-read.c and stdio-write.c from the cppi check
7619         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
7620         per Bruno's request, to accommodate this idiom (no space after "#")
7621         even when the function is inside an #if block:
7622         char *
7623         gets (char *s)
7624         #undef gets
7625         {
7626           ...
7627         }
7628
7629 2011-07-04  Jim Meyering  <meyering@redhat.com>
7630
7631         maint: indent with spaces, not TABs, and add a rule to check this
7632         * tests/test-userspec.c: Indent with spaces, not TABs.
7633         * tests/test-argp.c: Likewise.
7634         * tests/test-c-stack2.sh: Likewise.
7635         * tests/test-parse-duration.sh: Likewise
7636         * m4/strtod.m4: Likewise.
7637         * m4/alloca.m4: Likewise.
7638         * m4/pselect.m4: Likewise.
7639         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
7640
7641 2011-07-03  Jim Meyering  <meyering@redhat.com>
7642
7643         maint.mk: correct omissions in prohibit_argmatch_without_use check
7644         This rule would mistakenly report that argmatch.h is included without
7645         use even when both the argmatch and invalid_arg macro were used.
7646         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
7647         of argmatch and invalid_arg.
7648
7649 2011-07-03  Bruno Haible  <bruno@clisp.org>
7650
7651         Comments about EINTR.
7652         * lib/safe-read.h: Explain the purpose of this module.
7653         * lib/safe-write.h: Likewise.
7654         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
7655         module.
7656         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
7657         module.
7658         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7659
7660 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7661
7662         xnanosleep: Rewrite to use new dtotimespec module.
7663         It has the conversion code that used to be in xnanosleep.
7664         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
7665         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
7666         (TIME_T_MAX): Remove.
7667         (xnanosleep): Rewrite in terms of dtotimespec.
7668         * modules/xnanosleep (Depends-on): Add dtotimespec.
7669         Remove intprops, stdbool.
7670
7671         timespec-add, timespec-sub: new modules
7672         * lib/timespec.h (timespec_add, timespec_sub): New decls.
7673         * lib/timespec-add.c, lib/timespec-sub.c:
7674         * modules/timespec-add, modules/timespec-sub: New files.
7675
7676         dtotimespec: new module
7677         * lib/timespec.h (dtotimespec): New decl.
7678         * lib/dtotimespec.c, modules/dtotimespec: New files.
7679
7680         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
7681
7682         pselect: new module
7683         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
7684         (pselect): New decls.
7685         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
7686         since the standard pselect decl uses 'restrict'.
7687         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
7688         HAVE_PSELECT, REPLACE_PSELECT.
7689         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
7690         HAVE_PSELECT, REPLACE_PSELECT.
7691         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
7692
7693         sys_select: don't depend on sys_socket
7694         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
7695         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
7696         This fix works on GNU and GNU-like platforms, but has not been tested
7697         on native Windows.
7698         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
7699         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
7700         gl_HEADER_SYS_SOCKET.
7701         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
7702         gl_PREREQ_SYS_H_WINSOCK2.
7703
7704 2011-06-29  Eric Blake  <eblake@redhat.com>
7705
7706         pipe2: fix C89 compile problem
7707         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
7708         Reported by Bruno Haible.
7709
7710         pipe, pipe2: don't corrupt fd on error
7711         * lib/pipe.c (pipe): Leave fd unchanged on error.
7712         * lib/pipe2.c (pipe2): Likewise.
7713         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
7714         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
7715
7716 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
7717
7718         mmap-anon: do not use regular expressions inadvertently
7719         * m4/mmap-anon.m4: Remove trailing period from strings sought
7720         in the output.
7721
7722 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
7723
7724         nanosleep: fix integer overflow problem
7725         * lib/nanosleep.c (my_usleep): Don't assume signed integer
7726         arithmetic wraps around on overflow.
7727
7728         nanosleep: simplify carrying
7729         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
7730         first call to the underyling nanosleep, not for the last one.
7731         This doesn't fix any bugs, but it simplifies the computation of
7732         the remaining delay.  Found while auditing integer overflow issues.
7733
7734         dup2: remove test for existence of fcntl
7735         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
7736         "#if HAVE_FCNTL", in the configure-time test program.
7737         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
7738         and therefore speeds up "configure" a bit.  Found while
7739         adding the dup2 module to Emacs.
7740
7741 2011-06-24  Eric Blake  <eblake@redhat.com>
7742
7743         maint.mk: enhance useless header checks
7744         * top/maint.mk (_sc_header_without_use): Check both include
7745         styles.
7746         (sc_prohibit_assert_without_use)
7747         (sc_prohibit_close_stream_without_use)
7748         (sc_prohibit_getopt_without_use)
7749         (sc_prohibit_quotearg_without_use)
7750         (sc_prohibit_quote_without_use)
7751         (sc_prohibit_long_options_without_use)
7752         (sc_prohibit_inttostr_without_use)
7753         (sc_prohibit_ignore_value_without_use)
7754         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
7755         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
7756         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
7757         (sc_prohibit_hash_pjw_without_use)
7758         (sc_prohibit_safe_read_without_use)
7759         (sc_prohibit_argmatch_without_use)
7760         (sc_prohibit_canonicalize_without_use)
7761         (sc_prohibit_root_dev_ino_without_use)
7762         (sc_prohibit_openat_without_use)
7763         (sc_prohibit_c_ctype_without_use)
7764         (sc_prohibit_signal_without_use)
7765         (sc_prohibit_stdio--_without_use)
7766         (sc_prohibit_stdio-safer_without_use)
7767         (sc_prohibit_strings_without_use)
7768         (sc_prohibit_intprops_without_use)
7769         (sc_prohibit_stddef_without_use)
7770         (sc_prohibit_xfreopen_without_use): Update clients.
7771
7772 2011-06-24  Jim Meyering  <meyering@redhat.com>
7773
7774         syntax-check: keep one maint.mk rule in sync with its header
7775         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
7776         of the bug Eric has just fixed, with today's commit 25e4c2ec.
7777         I prefer to avoid temporary files here, so use <(...), but that
7778         is not supported by /bin/sh, so...
7779         (SHELL): Define to /bin/bash.
7780
7781 2011-06-24  Eric Blake  <eblake@redhat.com>
7782
7783         maint.mk: update sc_prohibit_intprops_without_use
7784         * top/maint.mk (_intprops_names): Match recent changes.
7785
7786 2011-06-24  Bruno Haible  <bruno@clisp.org>
7787
7788         strerror-override: No-op tweak.
7789         * lib/strerror-override.h (strerror_override): Reorder conditions,
7790         for consistency with lib/strerror-override.c.
7791
7792 2011-06-23  Eric Blake  <eblake@redhat.com>
7793
7794         maint.mk: test further PATH_MAX issues
7795         * top/maint.mk (sc_prohibit_path_max_array): Rename...
7796         (sc_prohibit_path_max_allocation): ...and also test alloca.
7797         Suggested by Jim Meyering.
7798
7799 2011-06-22  Eric Blake  <eblake@redhat.com>
7800
7801         maint.mk: add syntax-check to avoid char[PATH_MAX]
7802         * top/maint.mk (sc_prohibit_path_max_array): New rule.
7803
7804         stat: be robust to PATH_MAX definition
7805         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
7806         * modules/stat (Depends-on): Add verify.
7807
7808         link: work around IRIX bug
7809         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
7810         * lib/link.c (rpl_link): Work around it.
7811         * tests/test-link.h (test_link): Enhance test.
7812         * doc/posix-functions/link.texi (link): Document the bug.
7813
7814         getopt: silence clang warning
7815         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
7816         dereference.
7817         Reported by Gustavo Martin Domato.
7818
7819 2011-06-22  Jim Meyering  <meyering@redhat.com>
7820
7821         bootstrap: do not insert a blank line into each .gitignore file
7822         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
7823
7824 2011-06-21  Eric Blake  <eblake@redhat.com>
7825
7826         perror: test for output mismatch
7827         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
7828         perror on IRIX.
7829
7830         strerror_r: fix OpenBSD behavior on out-of-range
7831         * lib/strerror_r.c (strerror_r): Always use maximal string.
7832         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7833
7834         strerror_r: fix OpenBSD behavior on 0
7835         * lib/strerror-override.c (strerror_override): Also override 0
7836         when needed.
7837         * lib/strerror-override.h (strerror_override): Likewise.
7838         * lib/strerror.c (strerror): Simplify, now that 0 override is done
7839         earlier.
7840         * lib/strerror_r.c (strerror_r): Likewise.
7841         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
7842         behavior...
7843         (gl_FUNC_STRERROR_0): ...into new macro.
7844         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
7845         is overridden.
7846         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
7847         * modules/strerror-override (Files): Add strerror.m4.
7848         (configure.ac): Also provide override for 0 when needed.
7849         * doc/posix-functions/strerror.texi (strerror): Document this.
7850         * doc/posix-functions/perror.texi (perror): Likewise.
7851
7852         perror: adjust array size
7853         * modules/perror (Depends-on): Add strerror-override.
7854         * lib/perror.c (perror): Use it to avoid magic number.
7855
7856         strerror-override: reduce size
7857         * lib/strerror-override.c (strerror_override): Use fewer lines.
7858
7859 2011-06-20  Bruno Haible  <bruno@clisp.org>
7860
7861         pathmax: Ensure correct value for PATH_MAX on HP-UX.
7862         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
7863
7864 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7865
7866         alloca: port to compilers that can optimize like GCC 4.6.0
7867         * lib/alloca.c (find_stack_direction): New signature, taken from
7868         Autoconf git.  This works with GCC 4.6.0.  This code should never
7869         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
7870         be used with other compilers that optimize as well as GCC 4.6.0 does.
7871         (alloca): Adjust to new signature.
7872         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
7873         New macro, which patches Autoconf in a similar way.
7874
7875         c-stack: stop worrying about stack direction
7876         * lib/c-stack.c (find_stack_direction): Remove.
7877         (segv_handler): Don't worry about stack direction growth, as it's
7878         too much of a pain to configure this correctly, given how compilers
7879         are optimizing-away our stack-growth detection code.  Instead, assume
7880         that any access to just before or just after the stack is OK.
7881         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
7882         Don't require AC_FUNC_ALLOCA; no longer needed.
7883
7884 2011-06-20  Eric Blake  <eblake@redhat.com>
7885
7886         test-stat: don't allocate PATH_MAX bytes
7887         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
7888         PATH_MAX-sized buffer.
7889         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
7890         * modules/stat-tests (Depends-on): Likewise.
7891         * tests/test-fstatat.c (includes): Drop pathmax.h.
7892         * tests/test-stat.c (includes): Likewise.
7893         Reported by Bruno Haible.
7894
7895 2011-06-20  Bruno Haible  <bruno@clisp.org>
7896
7897         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
7898         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
7899         * lib/float.c: New file.
7900         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
7901         REPLACE_FLOAT_LDBL.
7902         * modules/float (Files): Add lib/float.c.
7903         (configure.ac): Invoke AC_LIBOBJ.
7904         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
7905
7906 2011-06-20  Bruno Haible  <bruno@clisp.org>
7907
7908         Tests for module 'float'.
7909         * modules/float-tests: New file.
7910         * tests/test-float.c: New file.
7911
7912 2011-06-19  Bruno Haible  <bruno@clisp.org>
7913
7914         isinf: Coding style.
7915         * lib/isinf.c: Use GNU coding style.
7916
7917 2011-06-19  Bruno Haible  <bruno@clisp.org>
7918
7919         linkat test: Avoid test failure on AIX 7.1.
7920         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
7921         * tests/test-link.h (test_link): Likewise.
7922
7923 2011-06-19  Bruno Haible  <bruno@clisp.org>
7924
7925         pread test: Avoid test failure on OpenBSD 4.9.
7926         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
7927
7928 2011-06-19  Bruno Haible  <bruno@clisp.org>
7929
7930         sprintf-posix: Fix test failure on AIX 7.1.
7931         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
7932         * doc/posix-functions/dprintf.texi: Mention limited precision problem
7933         on AIX.
7934         * doc/posix-functions/fprintf.texi: Likewise.
7935         * doc/posix-functions/printf.texi: Likewise.
7936         * doc/posix-functions/snprintf.texi: Likewise.
7937         * doc/posix-functions/sprintf.texi: Likewise.
7938         * doc/posix-functions/vdprintf.texi: Likewise.
7939         * doc/posix-functions/vfprintf.texi: Likewise.
7940         * doc/posix-functions/vprintf.texi: Likewise.
7941         * doc/posix-functions/vsnprintf.texi: Likewise.
7942         * doc/posix-functions/vsprintf.texi: Likewise.
7943
7944 2011-06-19  Bruno Haible  <bruno@clisp.org>
7945
7946         roundl-ieee: Fix test failure on AIX 7.1.
7947         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
7948         * doc/posix-functions/roundl.texi: Mention problem with negative
7949         arguments.
7950
7951 2011-06-19  Bruno Haible  <bruno@clisp.org>
7952
7953         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7954         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
7955         * doc/posix-functions/round.texi: Mention problem with negative
7956         arguments.
7957         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
7958
7959 2011-06-19  Bruno Haible  <bruno@clisp.org>
7960
7961         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7962         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
7963         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
7964         * doc/posix-functions/roundf.texi: Mention problem with negative
7965         arguments.
7966         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
7967
7968 2011-06-19  Bruno Haible  <bruno@clisp.org>
7969
7970         ceilf-ieee: Work around bug on MacOS X 10.5.
7971         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
7972
7973         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
7974         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
7975         IEEE compliant, avoid compiler optimizations.
7976         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
7977         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7978         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
7979         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7980         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7981         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7982         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7983         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7984         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7985         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7986
7987 2011-06-19  Bruno Haible  <bruno@clisp.org>
7988
7989         ceilf-ieee: Work around bug on AIX 7.1.
7990         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
7991         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
7992
7993 2011-06-19  Bruno Haible  <bruno@clisp.org>
7994
7995         ceil-ieee: Work around bug on AIX 7.1.
7996         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
7997         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
7998
7999 2011-06-18  Bruno Haible  <bruno@clisp.org>
8000
8001         fsync test: Avoid test failure on MacOS X and AIX.
8002         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
8003         EINVAL.
8004
8005 2011-06-18  Bruno Haible  <bruno@clisp.org>
8006
8007         openat, fdopendir tests: Fix link errors.
8008         * modules/openat-tests (Depends-on): Add progname.
8009         * modules/fdopendir-tests (Depends-on): Likewise.
8010         * tests/test-fchownat.c: Include progname.h.
8011         (main): Call set_program_name.
8012         * tests/test-fstatat.c: Include progname.h.
8013         (main): Call set_program_name.
8014         * tests/test-mkdirat.c: Include progname.h.
8015         (main): Call set_program_name.
8016         * tests/test-openat.c: Include progname.h.
8017         (main): Call set_program_name.
8018         * tests/test-unlinkat.c: Include progname.h.
8019         (main): Call set_program_name.
8020         * tests/test-fdopendir.c: Include progname.h.
8021         (main): Call set_program_name.
8022
8023 2011-06-18  Bruno Haible  <bruno@clisp.org>
8024
8025         Doc update.
8026         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
8027         HP-UX.
8028         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
8029
8030 2011-06-18  Bruno Haible  <bruno@clisp.org>
8031
8032         getcwd tests: Avoid compilation error on HP-UX 11.31.
8033         * modules/getcwd-tests (Depends-on): Add pathmax.
8034         * tests/test-getcwd.c: Include pathmax.h.
8035
8036 2011-06-18  Bruno Haible  <bruno@clisp.org>
8037
8038         isfinite, isinf: Fix link error on AIX 6 and 7.
8039         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
8040         needed, also test the macro with a 'float' argument.
8041         * m4/isinf.m4 (gl_ISINF): Likewise.
8042
8043 2011-06-18  Bruno Haible  <bruno@clisp.org>
8044
8045         getloadavg: Don't clobber LIBS. Regression from previous commit.
8046         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
8047         AC_CHECK_LIB from here...
8048         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
8049         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
8050         gl_func_getloadavg_done.
8051         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8052
8053 2011-06-18  Bruno Haible  <bruno@clisp.org>
8054
8055         clean-temp: Improve documentation.
8056         * lib/clean-temp.h: Explain better how to use this module.
8057         Reported by John Darrington <john@darrington.wattle.id.au>.
8058
8059 2011-06-17  Bruno Haible  <bruno@clisp.org>
8060
8061         pread, pwrite: Avoid cc warning on AIX.
8062         * lib/unistd.in.h (pread): Undefine before defining as a macro.
8063         (pwrite): Likewise.
8064
8065 2011-06-17  Bruno Haible  <bruno@clisp.org>
8066
8067         spawn-pipe tests: Fix link error.
8068         * tests/test-spawn-pipe-child.c: Undefine fprintf.
8069         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8070
8071 2011-06-17  Bruno Haible  <bruno@clisp.org>
8072
8073         Tests: Remove unnecessary dependency.
8074         * modules/canonicalize-tests (Depends-on): Remove progname.
8075         * modules/chown-tests (Depends-on): Likewise.
8076         * modules/dirname-tests (Depends-on): Likewise.
8077         * modules/fdopendir-tests (Depends-on): Likewise.
8078         * modules/fdutimensat-tests (Depends-on): Likewise.
8079         * modules/hash-tests (Depends-on): Likewise.
8080         * modules/lchown-tests (Depends-on): Likewise.
8081         * modules/linkat-tests (Depends-on): Likewise.
8082         * modules/renameat-tests (Depends-on): Likewise.
8083         * modules/spawn-pipe-tests (Depends-on): Likewise.
8084         * modules/utimensat-tests (Depends-on): Likewise.
8085
8086 2011-06-17  Bruno Haible  <bruno@clisp.org>
8087
8088         spawn-pipe tests: Fix link error.
8089         * tests/test-spawn-pipe-child.c: Undefine fflush.
8090
8091 2011-06-17  Bruno Haible  <bruno@clisp.org>
8092
8093         Fix tests link errors.
8094         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
8095         * modules/chown-tests (Makefile.am): Don't link test-chown with
8096         LIBINTL.
8097         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
8098         LIBINTL.
8099         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
8100         LIBINTL.
8101         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
8102         LIBINTL.
8103
8104 2011-06-16  Bruno Haible  <bruno@clisp.org>
8105
8106         crypto/gc-sha1: Fix recent regression.
8107         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
8108         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
8109
8110         crypto/gc-md5: Fix recent regression.
8111         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
8112
8113         crypto/gc-md4: Fix recent regression.
8114         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
8115         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
8116
8117         crypto/gc-arctwo: Fix recent regression.
8118         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
8119         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
8120
8121         crypto/gc-rijndael: Fix recent regression.
8122         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
8123         (configure.ac): Invoke AC_LIBOBJ here.
8124         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
8125         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8126
8127         crypto/gc-hmac-sha1: Fix recent regression.
8128         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
8129         (configure.ac): Invoke AC_LIBOBJ here.
8130         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
8131         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8132
8133         crypto/gc-hmac-md5: Fix recent regression.
8134         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
8135         (configure.ac): Invoke AC_LIBOBJ here.
8136         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
8137         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8138
8139         crypto/gc-des: Fix recent regression.
8140         * modules/crypto/gc-des (Files): Remove m4/des.m4.
8141         (configure.ac): Invoke AC_LIBOBJ here.
8142         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
8143         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8144
8145         crypto/gc-arcfour: Fix recent regression.
8146         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
8147         (configure.ac): Invoke AC_LIBOBJ here.
8148         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
8149         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8150
8151 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
8152
8153         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
8154         After the 2011-05-21 change, this macro requires
8155         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
8156         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
8157
8158 2011-06-16  Bruno Haible  <bruno@clisp.org>
8159
8160         fprintftime: Move AC_LIBOBJ invocations to module description.
8161         * m4/fprintftime.m4: Remove file.
8162         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
8163         (configure.ac): Remove gl_FPRINTFTIME call.
8164         (Makefile.am): Augment lib_SOURCES.
8165         Reported by Jim Meyering.
8166
8167 2011-06-16  Bruno Haible  <bruno@clisp.org>
8168
8169         tmpfile-safer: Finish 2011-05-23 commit.
8170         * m4/stdio-safer.m4: Really remove file.
8171         Reported by Jim Meyering.
8172
8173 2011-06-16  Bruno Haible  <bruno@clisp.org>
8174
8175         syntax-check: Fix typo.
8176         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
8177         printf-posix.m4.
8178         Reported by Jim Meyering.
8179
8180 2011-06-13  Jim Meyering  <meyering@redhat.com>
8181
8182         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
8183         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
8184
8185 2011-05-23  Bruno Haible  <bruno@clisp.org>
8186
8187         yesno: Move AC_LIBOBJ invocations to module description.
8188         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
8189         * modules/yesno (Makefile.am): Augment lib_SOURCES.
8190
8191 2011-05-23  Bruno Haible  <bruno@clisp.org>
8192
8193         xstrtol: Move AC_LIBOBJ invocations to module description.
8194         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
8195         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
8196
8197 2011-05-23  Bruno Haible  <bruno@clisp.org>
8198
8199         xstrtold: Move AC_LIBOBJ invocations to module description.
8200         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
8201         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
8202
8203 2011-05-23  Bruno Haible  <bruno@clisp.org>
8204
8205         xstrtod: Move AC_LIBOBJ invocations to module description.
8206         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
8207         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
8208
8209 2011-05-23  Bruno Haible  <bruno@clisp.org>
8210
8211         xnanosleep: Move AC_LIBOBJ invocations to module description.
8212         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
8213         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
8214
8215 2011-05-23  Bruno Haible  <bruno@clisp.org>
8216
8217         xgetcwd: Move AC_LIBOBJ invocations to module description.
8218         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
8219         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
8220
8221 2011-05-23  Bruno Haible  <bruno@clisp.org>
8222
8223         xalloc: Move AC_LIBOBJ invocations to module description.
8224         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
8225         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
8226
8227 2011-05-23  Bruno Haible  <bruno@clisp.org>
8228
8229         write-any-file: Move AC_LIBOBJ invocations to module description.
8230         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
8231         invocation.
8232         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
8233
8234 2011-05-23  Bruno Haible  <bruno@clisp.org>
8235
8236         utimens: Move AC_LIBOBJ invocations to module description.
8237         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
8238         * modules/utimens (Makefile.am): Augment lib_SOURCES.
8239
8240 2011-05-23  Bruno Haible  <bruno@clisp.org>
8241
8242         utimecmp: Move AC_LIBOBJ invocations to module description.
8243         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
8244         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
8245
8246 2011-05-23  Bruno Haible  <bruno@clisp.org>
8247
8248         userspec: Move AC_LIBOBJ invocations to module description.
8249         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
8250         * modules/userspec (Makefile.am): Augment lib_SOURCES.
8251
8252 2011-05-23  Bruno Haible  <bruno@clisp.org>
8253
8254         unlinkdir: Move AC_LIBOBJ invocations to module description.
8255         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
8256         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
8257
8258 2011-05-23  Bruno Haible  <bruno@clisp.org>
8259
8260         unistd-safer: Move AC_LIBOBJ invocations to module description.
8261         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
8262         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
8263
8264 2011-05-23  Bruno Haible  <bruno@clisp.org>
8265
8266         tempname: Move AC_LIBOBJ invocations to module description.
8267         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
8268         * modules/tempname (Makefile.am): Augment lib_SOURCES.
8269
8270 2011-05-23  Bruno Haible  <bruno@clisp.org>
8271
8272         strftime: Move AC_LIBOBJ invocations to module description.
8273         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
8274         * modules/strftime (Makefile.am): Augment lib_SOURCES.
8275
8276 2011-05-23  Bruno Haible  <bruno@clisp.org>
8277
8278         stdlib-safer: Move AC_LIBOBJ invocations to module description.
8279         * m4/stdlib-safer.m4: Remove file.
8280         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
8281         (configure.ac): Remove gl_STDLIB_SAFER call.
8282         (Makefile.am): Augment lib_SOURCES.
8283
8284 2011-05-23  Bruno Haible  <bruno@clisp.org>
8285
8286         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
8287         * m4/stdio-safer.m4: Remove file.
8288         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
8289         (configure.ac): Remove gl_TMPFILE_SAFER call.
8290         (Makefile.am): Augment lib_SOURCES.
8291
8292 2011-05-23  Bruno Haible  <bruno@clisp.org>
8293
8294         popen-safer: Move AC_LIBOBJ invocations to module description.
8295         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
8296         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
8297         (configure.ac): Remove gl_POPEN_SAFER call.
8298         (Makefile.am): Augment lib_SOURCES.
8299
8300 2011-05-23  Bruno Haible  <bruno@clisp.org>
8301
8302         freopen-safer: Move AC_LIBOBJ invocations to module description.
8303         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
8304         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
8305         (configure.ac): Remove gl_FREOPEN_SAFER call.
8306         (Makefile.am): Augment lib_SOURCES.
8307
8308 2011-05-23  Bruno Haible  <bruno@clisp.org>
8309
8310         fopen-safer: Move AC_LIBOBJ invocations to module description.
8311         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
8312         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
8313         (configure.ac): Remove gl_FOPEN_SAFER call.
8314         (Makefile.am): Augment lib_SOURCES.
8315
8316 2011-05-23  Bruno Haible  <bruno@clisp.org>
8317
8318         crypto/sha512: Move AC_LIBOBJ invocations to module description.
8319         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
8320         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
8321
8322 2011-05-23  Bruno Haible  <bruno@clisp.org>
8323
8324         crypto/sha256: Move AC_LIBOBJ invocations to module description.
8325         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
8326         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
8327
8328 2011-05-23  Bruno Haible  <bruno@clisp.org>
8329
8330         crypto/sha1: Move AC_LIBOBJ invocations to module description.
8331         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
8332         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
8333
8334 2011-05-23  Bruno Haible  <bruno@clisp.org>
8335
8336         settime: Move AC_LIBOBJ invocations to module description.
8337         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
8338         * modules/settime (Makefile.am): Augment lib_SOURCES.
8339
8340 2011-05-23  Bruno Haible  <bruno@clisp.org>
8341
8342         savedir: Move AC_LIBOBJ invocations to module description.
8343         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
8344         * modules/savedir (Makefile.am): Augment lib_SOURCES.
8345
8346 2011-05-23  Bruno Haible  <bruno@clisp.org>
8347
8348         save-cwd: Move AC_LIBOBJ invocations to module description.
8349         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
8350         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
8351
8352 2011-05-23  Bruno Haible  <bruno@clisp.org>
8353
8354         same: Move AC_LIBOBJ invocations to module description.
8355         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
8356         * modules/same (Makefile.am): Augment lib_SOURCES.
8357
8358 2011-05-23  Bruno Haible  <bruno@clisp.org>
8359
8360         safe-write: Move AC_LIBOBJ invocations to module description.
8361         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
8362         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
8363         instead of gl_SAFE_WRITE.
8364         (Makefile.am): Augment lib_SOURCES.
8365
8366 2011-05-23  Bruno Haible  <bruno@clisp.org>
8367
8368         safe-read: Move AC_LIBOBJ invocations to module description.
8369         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
8370         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
8371         of gl_SAFE_READ.
8372         (Makefile.am): Augment lib_SOURCES.
8373
8374 2011-05-23  Bruno Haible  <bruno@clisp.org>
8375
8376         safe-alloc: Move AC_LIBOBJ invocations to module description.
8377         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
8378         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
8379
8380 2011-05-23  Bruno Haible  <bruno@clisp.org>
8381
8382         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
8383         * m4/rijndael.m4: Remove file.
8384         * modules/crypto/rijndael (Files): Remove it.
8385         (configure.ac): Remove gl_RIJNDAEL call.
8386         (Makefile.am): Augment lib_SOURCES.
8387
8388 2011-05-23  Bruno Haible  <bruno@clisp.org>
8389
8390         readtokens: Move AC_LIBOBJ invocations to module description.
8391         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
8392         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
8393
8394 2011-05-23  Bruno Haible  <bruno@clisp.org>
8395
8396         read-file: Move AC_LIBOBJ invocations to module description.
8397         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
8398         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
8399         of gl_FUNC_READ_FILE.
8400         (Makefile.am): Augment lib_SOURCES.
8401
8402 2011-05-23  Bruno Haible  <bruno@clisp.org>
8403
8404         quotearg: Move AC_LIBOBJ invocations to module description.
8405         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
8406         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
8407
8408 2011-05-23  Bruno Haible  <bruno@clisp.org>
8409
8410         quote: Move AC_LIBOBJ invocations to module description.
8411         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
8412         * modules/quote (Makefile.am): Augment lib_SOURCES.
8413
8414 2011-05-23  Bruno Haible  <bruno@clisp.org>
8415
8416         posixver: Move AC_LIBOBJ invocations to module description.
8417         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
8418         * modules/posixver (Makefile.am): Augment lib_SOURCES.
8419
8420 2011-05-23  Bruno Haible  <bruno@clisp.org>
8421
8422         posixtm: Move AC_LIBOBJ invocations to module description.
8423         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
8424         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
8425
8426 2011-05-23  Bruno Haible  <bruno@clisp.org>
8427
8428         physmem: Move AC_LIBOBJ invocations to module description.
8429         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
8430         * modules/physmem (Makefile.am): Augment lib_SOURCES.
8431
8432 2011-05-23  Bruno Haible  <bruno@clisp.org>
8433
8434         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
8435         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
8436         invocation.
8437         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
8438
8439 2011-05-23  Bruno Haible  <bruno@clisp.org>
8440
8441         mpsort: Move AC_LIBOBJ invocations to module description.
8442         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
8443         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
8444
8445 2011-05-23  Bruno Haible  <bruno@clisp.org>
8446
8447         modechange: Move AC_LIBOBJ invocations to module description.
8448         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
8449         * modules/modechange (Makefile.am): Augment lib_SOURCES.
8450
8451 2011-05-23  Bruno Haible  <bruno@clisp.org>
8452
8453         mkdir-p: Move AC_LIBOBJ invocations to module description.
8454         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
8455         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
8456
8457 2011-05-23  Bruno Haible  <bruno@clisp.org>
8458
8459         mkancesdirs: Move AC_LIBOBJ invocations to module description.
8460         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
8461         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
8462
8463 2011-05-23  Bruno Haible  <bruno@clisp.org>
8464
8465         mgetgroups: Move AC_LIBOBJ invocations to module description.
8466         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
8467         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
8468
8469 2011-05-23  Bruno Haible  <bruno@clisp.org>
8470
8471         memxor: Move AC_LIBOBJ invocations to module description.
8472         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
8473         * modules/memxor (Makefile.am): Augment lib_SOURCES.
8474
8475 2011-05-23  Bruno Haible  <bruno@clisp.org>
8476
8477         memcoll: Move AC_LIBOBJ invocations to module description.
8478         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
8479         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
8480
8481 2011-05-23  Bruno Haible  <bruno@clisp.org>
8482
8483         memcasecmp: Move AC_LIBOBJ invocations to module description.
8484         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
8485         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
8486
8487 2011-05-23  Bruno Haible  <bruno@clisp.org>
8488
8489         crypto/md5: Move AC_LIBOBJ invocations to module description.
8490         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
8491         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
8492
8493 2011-05-23  Bruno Haible  <bruno@clisp.org>
8494
8495         crypto/md4: Move AC_LIBOBJ invocations to module description.
8496         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
8497         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
8498
8499 2011-05-23  Bruno Haible  <bruno@clisp.org>
8500
8501         crypto/md2: Move AC_LIBOBJ invocations to module description.
8502         * m4/md2.m4: Remove file.
8503         * modules/crypto/md2 (Files): Remove it.
8504         (configure.ac): Remove gl_MD2 call.
8505         (Makefile.am): Augment lib_SOURCES.
8506
8507 2011-05-23  Bruno Haible  <bruno@clisp.org>
8508
8509         long-options: Move AC_LIBOBJ invocations to module description.
8510         * m4/long-options.m4: Remove file.
8511         * modules/long-options (Files): Remove it.
8512         (configure.ac): Remove gl_LONG_OPTIONS call.
8513         (Makefile.am): Augment lib_SOURCES.
8514
8515 2011-05-23  Bruno Haible  <bruno@clisp.org>
8516
8517         i-ring: Move AC_LIBOBJ invocations to module description.
8518         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
8519         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
8520
8521 2011-05-23  Bruno Haible  <bruno@clisp.org>
8522
8523         idcache: Move AC_LIBOBJ invocations to module description.
8524         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
8525         * modules/idcache (Makefile.am): Augment lib_SOURCES.
8526
8527 2011-05-23  Bruno Haible  <bruno@clisp.org>
8528
8529         human: Move AC_LIBOBJ invocations to module description.
8530         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
8531         * modules/human (Makefile.am): Augment lib_SOURCES.
8532
8533 2011-05-23  Bruno Haible  <bruno@clisp.org>
8534
8535         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
8536         * m4/hmac-sha1.m4: Remove file.
8537         * modules/crypto/hmac-sha1 (Files): Remove it.
8538         (configure.ac): Remove gl_HMAC_SHA1 call.
8539         (Makefile.am): Augment lib_SOURCES.
8540
8541 2011-05-23  Bruno Haible  <bruno@clisp.org>
8542
8543         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
8544         * m4/hmac-md5.m4: Remove file.
8545         * modules/crypto/hmac-md5 (Files): Remove it.
8546         (configure.ac): Remove gl_HMAC_MD5 call.
8547         (Makefile.am): Augment lib_SOURCES.
8548
8549 2011-05-23  Bruno Haible  <bruno@clisp.org>
8550
8551         hash: Move AC_LIBOBJ invocations to module description.
8552         * m4/hash.m4: Remove file.
8553         * modules/hash (Files): Remove it.
8554         (configure.ac): Remove gl_HASH call.
8555         (Makefile.am): Augment lib_SOURCES.
8556
8557 2011-05-23  Bruno Haible  <bruno@clisp.org>
8558
8559         hard-locale: Move AC_LIBOBJ invocations to module description.
8560         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
8561         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
8562
8563 2011-05-23  Bruno Haible  <bruno@clisp.org>
8564
8565         getugroups: Move AC_LIBOBJ invocations to module description.
8566         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
8567         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
8568
8569 2011-05-23  Bruno Haible  <bruno@clisp.org>
8570
8571         gettime: Move AC_LIBOBJ invocations to module description.
8572         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
8573         * modules/gettime (Makefile.am): Augment lib_SOURCES.
8574
8575 2011-05-23  Bruno Haible  <bruno@clisp.org>
8576
8577         getndelim2: Move AC_LIBOBJ invocations to module description.
8578         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
8579         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
8580
8581 2011-05-23  Bruno Haible  <bruno@clisp.org>
8582
8583         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
8584         * m4/gc-pbkdf2-sha1.m4: Remove file.
8585         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
8586         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
8587         (Makefile.am): Augment lib_SOURCES.
8588
8589 2011-05-23  Bruno Haible  <bruno@clisp.org>
8590
8591         fts: Move AC_LIBOBJ invocations to module description.
8592         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
8593         * modules/fts (configure.ac): ... to here.
8594
8595 2011-05-23  Bruno Haible  <bruno@clisp.org>
8596
8597         file-type: Move AC_LIBOBJ invocations to module description.
8598         * m4/file-type.m4: Remove file.
8599         * modules/file-type (Files): Remove it.
8600         (configure.ac): Remove gl_FILE_TYPE call.
8601         (Makefile.am): Augment lib_SOURCES.
8602
8603 2011-05-23  Bruno Haible  <bruno@clisp.org>
8604
8605         filenamecat*: Respect rules for use of AC_LIBOBJ.
8606         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
8607         Remove AC_LIBOBJ invocation.
8608         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
8609         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
8610
8611 2011-05-23  Bruno Haible  <bruno@clisp.org>
8612
8613         filemode: Move AC_LIBOBJ invocations to module description.
8614         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
8615         * modules/filemode (Makefile.am): Augment lib_SOURCES.
8616
8617 2011-05-23  Bruno Haible  <bruno@clisp.org>
8618
8619         openat-safer: Move AC_LIBOBJ invocations to module description.
8620         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
8621         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
8622
8623 2011-05-23  Bruno Haible  <bruno@clisp.org>
8624
8625         fcntl-safer: Move AC_LIBOBJ invocations to module description.
8626         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
8627         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
8628
8629 2011-05-23  Bruno Haible  <bruno@clisp.org>
8630
8631         exclude: Move AC_LIBOBJ invocations to module description.
8632         * m4/exclude.m4: Remove file.
8633         * modules/exclude (Files): Remove it.
8634         (configure.ac): Remove gl_EXCLUDE call.
8635         (Makefile.am): Augment lib_SOURCES.
8636
8637 2011-05-23  Bruno Haible  <bruno@clisp.org>
8638
8639         dirname*: Respect rules for use of AC_LIBOBJ.
8640         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
8641         invocations.
8642         * modules/dirname (Makefile.am): Augment lib_SOURCES.
8643         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
8644
8645 2011-05-23  Bruno Haible  <bruno@clisp.org>
8646
8647         dirent-safer: Move AC_LIBOBJ invocations to module description.
8648         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
8649         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
8650
8651 2011-05-23  Bruno Haible  <bruno@clisp.org>
8652
8653         crypto/des: Move AC_LIBOBJ invocations to module description.
8654         * m4/des.m4: Remove file.
8655         * modules/crypto/des (Files): Remove it.
8656         (configure.ac): Remove gl_DES call.
8657         (Makefile.am): Augment lib_SOURCES.
8658
8659 2011-05-23  Bruno Haible  <bruno@clisp.org>
8660
8661         cycle-check: Move AC_LIBOBJ invocations to module description.
8662         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
8663         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
8664
8665 2011-05-23  Bruno Haible  <bruno@clisp.org>
8666
8667         c-strtold: Move AC_LIBOBJ invocations to module description.
8668         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
8669         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
8670
8671 2011-05-23  Bruno Haible  <bruno@clisp.org>
8672
8673         c-strtod: Move AC_LIBOBJ invocations to module description.
8674         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
8675         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
8676
8677 2011-05-23  Bruno Haible  <bruno@clisp.org>
8678
8679         crc: Move AC_LIBOBJ invocations to module description.
8680         * m4/crc.m4: Remove file.
8681         * modules/crc (Files): Remove it.
8682         (configure.ac): Remove gl_CRC call.
8683         (Makefile.am): Augment lib_SOURCES.
8684
8685 2011-05-23  Bruno Haible  <bruno@clisp.org>
8686
8687         close-stream: Move AC_LIBOBJ invocations to module description.
8688         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
8689         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
8690
8691 2011-05-23  Bruno Haible  <bruno@clisp.org>
8692
8693         closeout: Move AC_LIBOBJ invocations to module description.
8694         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
8695         * modules/closeout (Makefile.am): Augment lib_SOURCES.
8696
8697 2011-05-23  Bruno Haible  <bruno@clisp.org>
8698
8699         closein: Move AC_LIBOBJ invocations to module description.
8700         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
8701         * modules/closein (Makefile.am): Augment lib_SOURCES.
8702
8703 2011-05-23  Bruno Haible  <bruno@clisp.org>
8704
8705         cloexec: Move AC_LIBOBJ invocations to module description.
8706         * m4/cloexec.m4: Remove file.
8707         * modules/cloexec (Files): Remove it.
8708         (configure.ac): Remove gl_CLOEXEC call.
8709         (Makefile.am): Augment lib_SOURCES.
8710
8711 2011-05-23  Bruno Haible  <bruno@clisp.org>
8712
8713         check-version: Move AC_LIBOBJ invocations to module description.
8714         * m4/check-version.m4: Remove file.
8715         * modules/check-version (Files): Remove it.
8716         (configure.ac): Remove gl_CHECK_VERSION call.
8717         (Makefile.am): Augment lib_SOURCES.
8718
8719 2011-05-23  Bruno Haible  <bruno@clisp.org>
8720
8721         chdir-safer: Move AC_LIBOBJ invocations to module description.
8722         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
8723         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
8724
8725 2011-05-23  Bruno Haible  <bruno@clisp.org>
8726
8727         canonicalize: Move AC_LIBOBJ invocations to module description.
8728         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
8729         AC_LIBOBJ invocation.
8730         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
8731
8732 2011-05-23  Bruno Haible  <bruno@clisp.org>
8733
8734         canon-host: Move AC_LIBOBJ invocations to module description.
8735         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
8736         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
8737         instead of gl_CANON_HOST.
8738         (Makefile.am): Augment lib_SOURCES.
8739
8740 2011-05-23  Bruno Haible  <bruno@clisp.org>
8741
8742         backupfile: Move AC_LIBOBJ invocations to module description.
8743         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
8744         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
8745
8746 2011-05-23  Bruno Haible  <bruno@clisp.org>
8747
8748         argmatch: Move AC_LIBOBJ invocations to module description.
8749         * m4/argmatch.m4: Remove file.
8750         * modules/argmatch (Files): Remove it.
8751         (configure.ac): Remove gl_ARGMATCH call.
8752         (Makefile.am): Augment lib_SOURCES.
8753
8754 2011-05-23  Bruno Haible  <bruno@clisp.org>
8755
8756         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
8757         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
8758         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
8759
8760 2011-05-23  Bruno Haible  <bruno@clisp.org>
8761
8762         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
8763         * m4/arcfour.m4: Remove file.
8764         * modules/crypto/arcfour (Files): Remove it.
8765         (configure.ac): Remove gl_ARCFOUR call.
8766         (Makefile.am): Augment lib_SOURCES.
8767
8768 2011-05-22  Bruno Haible  <bruno@clisp.org>
8769
8770         write: Move AC_LIBOBJ invocations to module description.
8771         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
8772         * modules/write (configure.ac): ... to here.
8773
8774 2011-05-22  Bruno Haible  <bruno@clisp.org>
8775
8776         wmemset: Move AC_LIBOBJ invocations to module description.
8777         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
8778         here...
8779         * modules/wmemset (configure.ac): ... to here.
8780
8781 2011-05-22  Bruno Haible  <bruno@clisp.org>
8782
8783         wmemmove: Move AC_LIBOBJ invocations to module description.
8784         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
8785         here...
8786         * modules/wmemmove (configure.ac): ... to here.
8787
8788 2011-05-22  Bruno Haible  <bruno@clisp.org>
8789
8790         wmemcpy: Move AC_LIBOBJ invocations to module description.
8791         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
8792         here...
8793         * modules/wmemcpy (configure.ac): ... to here.
8794
8795 2011-05-22  Bruno Haible  <bruno@clisp.org>
8796
8797         wmemcmp: Move AC_LIBOBJ invocations to module description.
8798         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
8799         here...
8800         * modules/wmemcmp (configure.ac): ... to here.
8801
8802 2011-05-22  Bruno Haible  <bruno@clisp.org>
8803
8804         wmemchr: Move AC_LIBOBJ invocations to module description.
8805         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
8806         here...
8807         * modules/wmemchr (configure.ac): ... to here.
8808
8809 2011-05-22  Bruno Haible  <bruno@clisp.org>
8810
8811         wcswidth: Move AC_LIBOBJ invocations to module description.
8812         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
8813         here...
8814         * modules/wcswidth (configure.ac): ... to here.
8815
8816 2011-05-22  Bruno Haible  <bruno@clisp.org>
8817
8818         wcwidth: Respect rules for use of AC_LIBOBJ.
8819         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
8820         invocation from here...
8821         * modules/wcwidth (configure.ac): ... to here.
8822         (Depends-on): Update conditions.
8823
8824 2011-05-22  Bruno Haible  <bruno@clisp.org>
8825
8826         wctype: Move AC_LIBOBJ invocations to module description.
8827         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
8828         invocation from here...
8829         * modules/wctype (configure.ac): ... to here.
8830         (Depends-on): Update conditions.
8831
8832 2011-05-22  Bruno Haible  <bruno@clisp.org>
8833
8834         wctrans: Move AC_LIBOBJ invocations to module description.
8835         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
8836         invocation from here...
8837         * modules/wctrans (configure.ac): ... to here.
8838
8839 2011-05-22  Bruno Haible  <bruno@clisp.org>
8840
8841         wctomb: Move AC_LIBOBJ invocations to module description.
8842         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
8843         invocations from here...
8844         * modules/wctomb (configure.ac): ... to here.
8845
8846 2011-05-22  Bruno Haible  <bruno@clisp.org>
8847
8848         wctob: Move AC_LIBOBJ invocations to module description.
8849         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
8850         gl_PREREQ_WCTOB invocations from here...
8851         * modules/wctob (configure.ac): ... to here.
8852         (Depends-on): Update conditions.
8853
8854 2011-05-22  Bruno Haible  <bruno@clisp.org>
8855
8856         wcsxfrm: Move AC_LIBOBJ invocations to module description.
8857         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
8858         here...
8859         * modules/wcsxfrm (configure.ac): ... to here.
8860
8861 2011-05-22  Bruno Haible  <bruno@clisp.org>
8862
8863         wcstok: Move AC_LIBOBJ invocations to module description.
8864         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
8865         * modules/wcstok (configure.ac): ... to here.
8866
8867 2011-05-22  Bruno Haible  <bruno@clisp.org>
8868
8869         wcsstr: Move AC_LIBOBJ invocations to module description.
8870         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
8871         * modules/wcsstr (configure.ac): ... to here.
8872
8873 2011-05-22  Bruno Haible  <bruno@clisp.org>
8874
8875         wcsspn: Move AC_LIBOBJ invocations to module description.
8876         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
8877         * modules/wcsspn (configure.ac): ... to here.
8878
8879 2011-05-22  Bruno Haible  <bruno@clisp.org>
8880
8881         wcsrtombs: Move AC_LIBOBJ invocations to module description.
8882         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
8883         gl_PREREQ_WCSRTOMBS invocations from here...
8884         * modules/wcsrtombs (configure.ac): ... to here.
8885
8886 2011-05-22  Bruno Haible  <bruno@clisp.org>
8887
8888         wcsrchr: Move AC_LIBOBJ invocations to module description.
8889         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
8890         here...
8891         * modules/wcsrchr (configure.ac): ... to here.
8892
8893 2011-05-22  Bruno Haible  <bruno@clisp.org>
8894
8895         wcspbrk: Move AC_LIBOBJ invocations to module description.
8896         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
8897         here...
8898         * modules/wcspbrk (configure.ac): ... to here.
8899
8900 2011-05-22  Bruno Haible  <bruno@clisp.org>
8901
8902         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
8903         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
8904         gl_PREREQ_WCSNRTOMBS invocations from here...
8905         * modules/wcsnrtombs (configure.ac): ... to here.
8906
8907 2011-05-22  Bruno Haible  <bruno@clisp.org>
8908
8909         wcsnlen: Move AC_LIBOBJ invocations to module description.
8910         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
8911         here...
8912         * modules/wcsnlen (configure.ac): ... to here.
8913
8914 2011-05-22  Bruno Haible  <bruno@clisp.org>
8915
8916         wcsncpy: Move AC_LIBOBJ invocations to module description.
8917         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
8918         here...
8919         * modules/wcsncpy (configure.ac): ... to here.
8920
8921 2011-05-22  Bruno Haible  <bruno@clisp.org>
8922
8923         wcsncmp: Move AC_LIBOBJ invocations to module description.
8924         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
8925         here...
8926         * modules/wcsncmp (configure.ac): ... to here.
8927
8928 2011-05-22  Bruno Haible  <bruno@clisp.org>
8929
8930         wcsncat: Move AC_LIBOBJ invocations to module description.
8931         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
8932         here...
8933         * modules/wcsncat (configure.ac): ... to here.
8934
8935 2011-05-22  Bruno Haible  <bruno@clisp.org>
8936
8937         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
8938         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
8939         from here...
8940         * modules/wcsncasecmp (configure.ac): ... to here.
8941
8942 2011-05-22  Bruno Haible  <bruno@clisp.org>
8943
8944         wcslen: Move AC_LIBOBJ invocations to module description.
8945         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
8946         * modules/wcslen (configure.ac): ... to here.
8947
8948 2011-05-22  Bruno Haible  <bruno@clisp.org>
8949
8950         wcsdup: Move AC_LIBOBJ invocations to module description.
8951         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
8952         * modules/wcsdup (configure.ac): ... to here.
8953
8954 2011-05-22  Bruno Haible  <bruno@clisp.org>
8955
8956         wcscspn: Move AC_LIBOBJ invocations to module description.
8957         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
8958         here...
8959         * modules/wcscspn (configure.ac): ... to here.
8960
8961 2011-05-22  Bruno Haible  <bruno@clisp.org>
8962
8963         wcscpy: Move AC_LIBOBJ invocations to module description.
8964         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
8965         * modules/wcscpy (configure.ac): ... to here.
8966
8967 2011-05-22  Bruno Haible  <bruno@clisp.org>
8968
8969         wcscoll: Move AC_LIBOBJ invocations to module description.
8970         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
8971         here...
8972         * modules/wcscoll (configure.ac): ... to here.
8973
8974 2011-05-22  Bruno Haible  <bruno@clisp.org>
8975
8976         wcscmp: Move AC_LIBOBJ invocations to module description.
8977         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
8978         * modules/wcscmp (configure.ac): ... to here.
8979
8980 2011-05-22  Bruno Haible  <bruno@clisp.org>
8981
8982         wcschr: Move AC_LIBOBJ invocations to module description.
8983         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
8984         * modules/wcschr (configure.ac): ... to here.
8985
8986 2011-05-22  Bruno Haible  <bruno@clisp.org>
8987
8988         wcscat: Move AC_LIBOBJ invocations to module description.
8989         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
8990         * modules/wcscat (configure.ac): ... to here.
8991
8992 2011-05-22  Bruno Haible  <bruno@clisp.org>
8993
8994         wcscasecmp: Move AC_LIBOBJ invocations to module description.
8995         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
8996         here...
8997         * modules/wcscasecmp (configure.ac): ... to here.
8998
8999 2011-05-22  Bruno Haible  <bruno@clisp.org>
9000
9001         wcrtomb: Move AC_LIBOBJ invocations to module description.
9002         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
9003         invocations from here...
9004         * modules/wcrtomb (configure.ac): ... to here.
9005
9006 2011-05-22  Bruno Haible  <bruno@clisp.org>
9007
9008         wcpncpy: Move AC_LIBOBJ invocations to module description.
9009         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
9010         here...
9011         * modules/wcpncpy (configure.ac): ... to here.
9012
9013 2011-05-22  Bruno Haible  <bruno@clisp.org>
9014
9015         wcpcpy: Move AC_LIBOBJ invocations to module description.
9016         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
9017         * modules/wcpcpy (configure.ac): ... to here.
9018
9019 2011-05-22  Bruno Haible  <bruno@clisp.org>
9020
9021         waitpid: Move AC_LIBOBJ invocations to module description.
9022         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
9023         invocation from here...
9024         * modules/waitpid (configure.ac): ... to here.
9025
9026 2011-05-22  Bruno Haible  <bruno@clisp.org>
9027
9028         utimensat: Move AC_LIBOBJ invocations to module description.
9029         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
9030         here...
9031         * modules/utimensat (configure.ac): ... to here.
9032
9033 2011-05-22  Bruno Haible  <bruno@clisp.org>
9034
9035         usleep: Move AC_LIBOBJ invocations to module description.
9036         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
9037         here...
9038         * modules/usleep (configure.ac): ... to here.
9039
9040 2011-05-22  Bruno Haible  <bruno@clisp.org>
9041
9042         unlockpt: Move AC_LIBOBJ invocations to module description.
9043         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
9044         gl_PREREQ_UNLOCKPT invocations from here...
9045         * modules/unlockpt (configure.ac): ... to here.
9046
9047 2011-05-22  Bruno Haible  <bruno@clisp.org>
9048
9049         unlink: Respect rules for use of AC_LIBOBJ.
9050         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
9051         * modules/unlink (configure.ac): ... to here.
9052
9053 2011-05-22  Bruno Haible  <bruno@clisp.org>
9054
9055         uname: Move AC_LIBOBJ invocations to module description.
9056         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
9057         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
9058         here...
9059         * modules/uname (configure.ac): ... to here.
9060
9061 2011-05-22  Bruno Haible  <bruno@clisp.org>
9062
9063         ttyname_r: Move AC_LIBOBJ invocations to module description.
9064         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
9065         gl_PREREQ_TTYNAME_R invocations from here...
9066         * modules/ttyname_r (configure.ac): ... to here.
9067
9068 2011-05-22  Bruno Haible  <bruno@clisp.org>
9069
9070         tsearch: Move AC_LIBOBJ invocations to module description.
9071         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
9072         invocations from here...
9073         * modules/tsearch (configure.ac): ... to here.
9074
9075 2011-05-22  Bruno Haible  <bruno@clisp.org>
9076
9077         towctrans: Move AC_LIBOBJ invocations to module description.
9078         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
9079         AC_LIBOBJ invocation from here...
9080         * modules/towctrans (configure.ac): ... to here.
9081
9082 2011-05-22  Bruno Haible  <bruno@clisp.org>
9083
9084         tmpfile: Move AC_LIBOBJ invocations to module description.
9085         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
9086         invocations from here...
9087         * modules/tmpfile (configure.ac): ... to here.
9088
9089 2011-05-22  Bruno Haible  <bruno@clisp.org>
9090
9091         times: Move AC_LIBOBJ invocations to module description.
9092         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
9093         * modules/times (configure.ac): ... to here.
9094
9095 2011-05-22  Bruno Haible  <bruno@clisp.org>
9096
9097         time_r: Move AC_LIBOBJ invocations to module description.
9098         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
9099         invocations from here...
9100         * modules/time_r (configure.ac): ... to here.
9101
9102 2011-05-22  Bruno Haible  <bruno@clisp.org>
9103
9104         timegm: Move AC_LIBOBJ invocations to module description.
9105         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
9106         invocations from here...
9107         * modules/timegm (configure.ac): ... to here.
9108
9109 2011-05-22  Bruno Haible  <bruno@clisp.org>
9110
9111         tcgetsid: Move AC_LIBOBJ invocations to module description.
9112         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
9113         and gl_PREREQ_TCGETSID invocations from here...
9114         * modules/tcgetsid (configure.ac): ... to here.
9115         (Depends-on): Update conditions.
9116
9117 2011-05-22  Bruno Haible  <bruno@clisp.org>
9118
9119         symlinkat: Move AC_LIBOBJ invocations to module description.
9120         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
9121         here...
9122         * modules/symlinkat (configure.ac): ... to here.
9123
9124 2011-05-22  Bruno Haible  <bruno@clisp.org>
9125
9126         symlink: Move AC_LIBOBJ invocations to module description.
9127         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
9128         here...
9129         * modules/symlink (configure.ac): ... to here.
9130
9131 2011-05-22  Bruno Haible  <bruno@clisp.org>
9132
9133         strverscmp: Move AC_LIBOBJ invocations to module description.
9134         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
9135         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
9136         from here...
9137         * modules/strverscmp (configure.ac): ... to here.
9138
9139 2011-05-22  Bruno Haible  <bruno@clisp.org>
9140
9141         strtok_r: Move AC_LIBOBJ invocations to module description.
9142         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
9143         and gl_PREREQ_STRTOK_R invocations from here...
9144         * modules/strtok_r (configure.ac): ... to here.
9145         (Depends-on): Update conditions.
9146
9147 2011-05-22  Bruno Haible  <bruno@clisp.org>
9148
9149         strtoumax: Move AC_LIBOBJ invocations to module description.
9150         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
9151         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
9152         from here...
9153         * modules/strtoumax (configure.ac): ... to here.
9154
9155 2011-05-22  Bruno Haible  <bruno@clisp.org>
9156
9157         strtoimax: Move AC_LIBOBJ invocations to module description.
9158         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
9159         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
9160         from here...
9161         * modules/strtoimax (configure.ac): ... to here.
9162
9163 2011-05-22  Bruno Haible  <bruno@clisp.org>
9164
9165         strtoull: Move AC_LIBOBJ invocations to module description.
9166         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
9167         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
9168         from here...
9169         * modules/strtoull (configure.ac): ... to here.
9170
9171 2011-05-22  Bruno Haible  <bruno@clisp.org>
9172
9173         strtoll: Move AC_LIBOBJ invocations to module description.
9174         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
9175         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
9176         here...
9177         * modules/strtoll (configure.ac): ... to here.
9178
9179 2011-05-22  Bruno Haible  <bruno@clisp.org>
9180
9181         strtoul: Move AC_LIBOBJ invocations to module description.
9182         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
9183         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9184         * modules/strtoul (configure.ac): ... to here.
9185
9186 2011-05-22  Bruno Haible  <bruno@clisp.org>
9187
9188         strtol: Move AC_LIBOBJ invocations to module description.
9189         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
9190         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9191         * modules/strtol (configure.ac): ... to here.
9192
9193 2011-05-22  Bruno Haible  <bruno@clisp.org>
9194
9195         strtod: Move AC_LIBOBJ invocations to module description.
9196         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
9197         invocations from here...
9198         * modules/strtod (configure.ac): ... to here.
9199
9200 2011-05-22  Bruno Haible  <bruno@clisp.org>
9201
9202         strstr*: Move AC_LIBOBJ invocations to module description.
9203         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
9204         invocations from here...
9205         * modules/strstr-simple (configure.ac): ... to here.
9206         * modules/strstr (configure.ac): ... and here.
9207
9208 2011-05-22  Bruno Haible  <bruno@clisp.org>
9209
9210         strsignal: Move AC_LIBOBJ invocations to module description.
9211         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
9212         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
9213         * modules/strsignal (configure.ac): ... to here.
9214         (Depends-on): Update conditions.
9215
9216 2011-05-22  Bruno Haible  <bruno@clisp.org>
9217
9218         strsep: Move AC_LIBOBJ invocations to module description.
9219         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
9220         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
9221         here...
9222         * modules/strsep (configure.ac): ... to here.
9223
9224 2011-05-22  Bruno Haible  <bruno@clisp.org>
9225
9226         strptime: Move AC_LIBOBJ invocations to module description.
9227         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
9228         gl_PREREQ_STRPTIME invocations from here...
9229         * modules/strptime (configure.ac): ... to here.
9230
9231 2011-05-22  Bruno Haible  <bruno@clisp.org>
9232
9233         strpbrk: Move AC_LIBOBJ invocations to module description.
9234         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
9235         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
9236         here...
9237         * modules/strpbrk (configure.ac): ... to here.
9238
9239 2011-05-22  Bruno Haible  <bruno@clisp.org>
9240
9241         strnlen: Move AC_LIBOBJ invocations to module description.
9242         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
9243         invocations from here...
9244         * modules/strnlen (configure.ac): ... to here.
9245
9246 2011-05-22  Bruno Haible  <bruno@clisp.org>
9247
9248         strndup: Move AC_LIBOBJ invocations to module description.
9249         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
9250         invocations from here...
9251         * modules/strndup (configure.ac): ... to here.
9252         (Depends-on): Update conditions.
9253
9254 2011-05-22  Bruno Haible  <bruno@clisp.org>
9255
9256         strncat: Move AC_LIBOBJ invocations to module description.
9257         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
9258         invocations from here...
9259         * modules/strncat (configure.ac): ... to here.
9260
9261 2011-05-22  Bruno Haible  <bruno@clisp.org>
9262
9263         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
9264         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
9265         invocations from here...
9266         * modules/strdup (configure.ac): ... to here.
9267         * modules/strdup-posix (configure.ac): ... and here.
9268
9269 2011-05-22  Bruno Haible  <bruno@clisp.org>
9270
9271         strcspn: Move AC_LIBOBJ invocations to module description.
9272         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
9273         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
9274         here...
9275         * modules/strcspn (configure.ac): ... to here.
9276
9277 2011-05-22  Bruno Haible  <bruno@clisp.org>
9278
9279         strchrnul: Move AC_LIBOBJ invocations to module description.
9280         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
9281         gl_PREREQ_STRCHRNUL invocations from here...
9282         * modules/strchrnul (configure.ac): ... to here.
9283
9284 2011-05-22  Bruno Haible  <bruno@clisp.org>
9285
9286         strcasestr*: Move AC_LIBOBJ invocations to module description.
9287         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9288         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
9289         * modules/strcasestr-simple (configure.ac): ... to here.
9290         * modules/strcasestr (configure.ac): ... and here.
9291
9292 2011-05-22  Bruno Haible  <bruno@clisp.org>
9293
9294         strcase: Move AC_LIBOBJ invocations to module description.
9295         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
9296         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
9297         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
9298         gl_PREREQ_STRNCASECMP invocations from here...
9299         * modules/strcase (configure.ac): ... to here.
9300
9301 2011-05-22  Bruno Haible  <bruno@clisp.org>
9302
9303         stpncpy: Move AC_LIBOBJ invocations to module description.
9304         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
9305         here...
9306         * modules/stpncpy (configure.ac): ... to here.
9307
9308 2011-05-22  Bruno Haible  <bruno@clisp.org>
9309
9310         stpcpy: Move AC_LIBOBJ invocations to module description.
9311         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
9312         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
9313         here...
9314         * modules/stpcpy (configure.ac): ... to here.
9315
9316 2011-05-21  Bruno Haible  <bruno@clisp.org>
9317
9318         stat: Move AC_LIBOBJ invocations to module description.
9319         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
9320         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
9321         here...
9322         * modules/stat (configure.ac): ... to here.
9323
9324 2011-05-21  Bruno Haible  <bruno@clisp.org>
9325
9326         sleep: Move AC_LIBOBJ invocations to module description.
9327         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
9328         * modules/sleep (configure.ac): ... to here.
9329
9330 2011-05-21  Bruno Haible  <bruno@clisp.org>
9331
9332         signbit: Move AC_LIBOBJ invocations to module description.
9333         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
9334         * modules/signbit (configure.ac): ... to here.
9335
9336 2011-05-21  Bruno Haible  <bruno@clisp.org>
9337
9338         sigprocmask: Move AC_LIBOBJ invocations to module description.
9339         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
9340         gl_PREREQ_SIGPROMASK invocations from here...
9341         * modules/sigprocmask (configure.ac): ... to here.
9342
9343 2011-05-21  Bruno Haible  <bruno@clisp.org>
9344
9345         sigaction: Move AC_LIBOBJ invocations to module description.
9346         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
9347         gl_PREREQ_SIGACTION invocations from here...
9348         * modules/sigaction (configure.ac): ... to here.
9349
9350 2011-05-21  Bruno Haible  <bruno@clisp.org>
9351
9352         sig2str: Move AC_LIBOBJ invocations to module description.
9353         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
9354         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
9355         here...
9356         * modules/sig2str (configure.ac): ... to here.
9357
9358 2011-05-21  Bruno Haible  <bruno@clisp.org>
9359
9360         setlocale: Move AC_LIBOBJ invocations to module description.
9361         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
9362         gl_PREREQ_SETLOCALE invocations from here...
9363         * modules/setlocale (configure.ac): ... to here.
9364
9365 2011-05-21  Bruno Haible  <bruno@clisp.org>
9366
9367         unsetenv: Move AC_LIBOBJ invocations to module description.
9368         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
9369         and gl_PREREQ_UNSETENV invocations from here...
9370         * modules/unsetenv (configure.ac): ... to here.
9371         (Depends-on): Update.
9372
9373 2011-05-21  Bruno Haible  <bruno@clisp.org>
9374
9375         setenv: Move AC_LIBOBJ invocations to module description.
9376         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
9377         here...
9378         * modules/setenv (configure.ac): ... to here.
9379
9380 2011-05-21  Bruno Haible  <bruno@clisp.org>
9381
9382         selinux-h: Move AC_LIBOBJ invocations to module description.
9383         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
9384         AC_LIBOBJ invocation from here...
9385         * modules/selinux-h (configure.ac): ... to here.
9386
9387 2011-05-21  Bruno Haible  <bruno@clisp.org>
9388
9389         select: Respect rules for use of AC_LIBOBJ.
9390         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
9391         here...
9392         * modules/select (configure.ac): ... to here.
9393
9394 2011-05-21  Bruno Haible  <bruno@clisp.org>
9395
9396         scandir: Move AC_LIBOBJ invocations to module description.
9397         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
9398         invocations from here...
9399         * modules/scandir (configure.ac): ... to here.
9400
9401 2011-05-21  Bruno Haible  <bruno@clisp.org>
9402
9403         rpmatch: Move AC_LIBOBJ invocations to module description.
9404         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
9405         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
9406         here...
9407         * modules/rpmatch (configure.ac): ... to here.
9408
9409 2011-05-21  Bruno Haible  <bruno@clisp.org>
9410
9411         rmdir: Respect rules for use of AC_LIBOBJ.
9412         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
9413         * modules/rmdir (configure.ac): ... to here.
9414
9415 2011-05-21  Bruno Haible  <bruno@clisp.org>
9416
9417         renameat: Move AC_LIBOBJ invocations to module description.
9418         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
9419         here...
9420         * modules/renameat (configure.ac): ... to here.
9421
9422 2011-05-21  Bruno Haible  <bruno@clisp.org>
9423
9424         rename: Respect rules for use of AC_LIBOBJ.
9425         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
9426         here...
9427         * modules/rename (configure.ac): ... to here.
9428
9429 2011-05-21  Bruno Haible  <bruno@clisp.org>
9430
9431         remove: Move AC_LIBOBJ invocations to module description.
9432         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
9433         here...
9434         * modules/remove (configure.ac): ... to here.
9435
9436 2011-05-21  Bruno Haible  <bruno@clisp.org>
9437
9438         relocatable-lib: Move AC_LIBOBJ invocations to module description.
9439         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
9440         macro.
9441         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
9442         * modules/relocatable-lib (configure.ac): ... to here.
9443         * modules/relocatable-prog-wrapper (configure.ac): Invoke
9444         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
9445
9446 2011-05-21  Bruno Haible  <bruno@clisp.org>
9447
9448         relocatable-prog: Move AC_LIBOBJ invocations to module description.
9449         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
9450         here...
9451         * modules/relocatable-prog (configure.ac): ... to here.
9452
9453 2011-05-21  Bruno Haible  <bruno@clisp.org>
9454
9455         regex: Move AC_LIBOBJ invocations to module description.
9456         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
9457         invocations from here...
9458         * modules/regex (configure.ac): ... to here.
9459
9460 2011-05-21  Bruno Haible  <bruno@clisp.org>
9461
9462         realloc-*: Move AC_LIBOBJ invocations to module description.
9463         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
9464         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
9465         AC_LIBOBJ invocations from here...
9466         * modules/realloc-gnu (configure.ac): ... to here.
9467         * modules/realloc-posix (configure.ac): ... and here.
9468
9469 2011-05-21  Bruno Haible  <bruno@clisp.org>
9470
9471         readutmp: Move AC_LIBOBJ invocations to module description.
9472         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
9473         * modules/readutmp (configure.ac): ... to here.
9474
9475 2011-05-21  Bruno Haible  <bruno@clisp.org>
9476
9477         readlinkat: Move AC_LIBOBJ invocations to module description.
9478         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
9479         here...
9480         * modules/readlinkat (configure.ac): ... to here.
9481
9482 2011-05-21  Bruno Haible  <bruno@clisp.org>
9483
9484         readlink: Move AC_LIBOBJ invocations to module description.
9485         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
9486         gl_PREREQ_READLINK invocations from here...
9487         * modules/readlink (configure.ac): ... to here.
9488
9489 2011-05-21  Bruno Haible  <bruno@clisp.org>
9490
9491         readline: Move AC_LIBOBJ invocations to module description.
9492         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
9493         gl_PREREQ_READLINE invocations from here...
9494         * modules/readline (configure.ac): ... to here.
9495
9496 2011-05-21  Bruno Haible  <bruno@clisp.org>
9497
9498         read: Move AC_LIBOBJ invocations to module description.
9499         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
9500         * modules/read (configure.ac): ... to here.
9501
9502 2011-05-21  Bruno Haible  <bruno@clisp.org>
9503
9504         rawmemchr: Move AC_LIBOBJ invocations to module description.
9505         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
9506         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
9507         from here...
9508         * modules/rawmemchr (configure.ac): ... to here.
9509
9510 2011-05-21  Bruno Haible  <bruno@clisp.org>
9511
9512         random_r: Move AC_LIBOBJ invocations to module description.
9513         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
9514         gl_PREREQ_RANDOM_R invocations from here...
9515         * modules/random_r (configure.ac): ... to here.
9516
9517 2011-05-21  Bruno Haible  <bruno@clisp.org>
9518
9519         pwrite: Move AC_LIBOBJ invocations to module description.
9520         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
9521         * modules/pwrite (configure.ac): ... to here.
9522
9523 2011-05-21  Bruno Haible  <bruno@clisp.org>
9524
9525         putenv: Move AC_LIBOBJ invocations to module description.
9526         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
9527         * modules/putenv (configure.ac): ... to here.
9528
9529 2011-05-21  Bruno Haible  <bruno@clisp.org>
9530
9531         login_tty: Move AC_LIBOBJ invocations to module description.
9532         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
9533         * modules/login_tty (configure.ac): ... to here.
9534
9535 2011-05-21  Bruno Haible  <bruno@clisp.org>
9536
9537         openpty: Move AC_LIBOBJ invocations to module description.
9538         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
9539         * modules/openpty (configure.ac): ... to here.
9540
9541 2011-05-21  Bruno Haible  <bruno@clisp.org>
9542
9543         forkpty: Move AC_LIBOBJ invocations to module description.
9544         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
9545         * modules/forkpty (configure.ac): ... to here.
9546
9547 2011-05-21  Bruno Haible  <bruno@clisp.org>
9548
9549         ptsname: Move AC_LIBOBJ invocations to module description.
9550         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
9551         invocations from here...
9552         * modules/ptsname (configure.ac): ... to here.
9553
9554 2011-05-21  Bruno Haible  <bruno@clisp.org>
9555
9556         pread: Move AC_LIBOBJ invocations to module description.
9557         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
9558         * modules/pread (configure.ac): ... to here.
9559
9560 2011-05-21  Bruno Haible  <bruno@clisp.org>
9561
9562         posix_spawn*: Move AC_LIBOBJ invocations to module description.
9563         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
9564         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
9565         * modules/posix_spawn (configure.ac): ... to here.
9566         * modules/posix_spawnp (configure.ac): ... and here.
9567
9568 2011-05-21  Bruno Haible  <bruno@clisp.org>
9569
9570         popen: Move AC_LIBOBJ invocations to module description.
9571         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
9572         invocations from here...
9573         * modules/popen (configure.ac): ... to here.
9574
9575 2011-05-21  Bruno Haible  <bruno@clisp.org>
9576
9577         poll: Move AC_LIBOBJ invocations to module description.
9578         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
9579         invocations from here...
9580         * modules/poll (configure.ac): ... to here.
9581
9582 2011-05-21  Bruno Haible  <bruno@clisp.org>
9583
9584         pipe-posix: Move AC_LIBOBJ invocations to module description.
9585         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
9586         * modules/pipe-posix (configure.ac): ... to here.
9587
9588 2011-05-21  Bruno Haible  <bruno@clisp.org>
9589
9590         openat: Respect rules for use of AC_LIBOBJ.
9591         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
9592         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9593         * modules/openat (configure.ac): ... to here.
9594
9595 2011-05-21  Bruno Haible  <bruno@clisp.org>
9596
9597         obstack-printf*: Move AC_LIBOBJ invocations to module description.
9598         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
9599         invocation from here...
9600         * modules/obstack-printf (configure.ac): ... to here.
9601         * modules/obstack-printf-posix (configure.ac): ... and here.
9602
9603 2011-05-21  Bruno Haible  <bruno@clisp.org>
9604
9605         nl_langinfo: Move AC_LIBOBJ invocations to module description.
9606         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
9607         from here...
9608         * modules/nl_langinfo (configure.ac): ... to here.
9609
9610 2011-05-21  Bruno Haible  <bruno@clisp.org>
9611
9612         nanosleep: Move AC_LIBOBJ invocations to module description.
9613         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
9614         gl_PREREQ_NANOSLEEP invocations from here...
9615         * modules/nanosleep (configure.ac): ... to here.
9616
9617 2011-05-21  Bruno Haible  <bruno@clisp.org>
9618
9619         mountlist: Move AC_LIBOBJ invocations to module description.
9620         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
9621         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
9622         * modules/mountlist (configure.ac): ... to here.
9623
9624 2011-05-21  Bruno Haible  <bruno@clisp.org>
9625
9626         mktime: Respect rules for use of AC_LIBOBJ.
9627         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
9628         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
9629         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
9630         (gl_FUNC_MKTIME_INTERNAL): ... and here...
9631         * modules/mktime (configure.ac): ... to here.
9632         * modules/mktime-internal (configure.ac): ... and here.
9633         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
9634
9635 2011-05-21  Bruno Haible  <bruno@clisp.org>
9636
9637         mkstemps: Move AC_LIBOBJ invocations to module description.
9638         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
9639         here...
9640         * modules/mkstemps (configure.ac): ... to here.
9641
9642 2011-05-21  Bruno Haible  <bruno@clisp.org>
9643
9644         mkstemp: Move AC_LIBOBJ invocations to module description.
9645         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
9646         gl_PREREQ_MKSTEMP invocations from here...
9647         * modules/mkstemp (configure.ac): ... to here.
9648
9649 2011-05-21  Bruno Haible  <bruno@clisp.org>
9650
9651         mkostemps: Move AC_LIBOBJ invocations to module description.
9652         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
9653         here...
9654         * modules/mkostemps (configure.ac): ... to here.
9655
9656 2011-05-21  Bruno Haible  <bruno@clisp.org>
9657
9658         mkostemp: Move AC_LIBOBJ invocations to module description.
9659         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
9660         gl_PREREQ_MKOSTEMP invocations from here...
9661         * modules/mkostemp (configure.ac): ... to here.
9662
9663 2011-05-21  Bruno Haible  <bruno@clisp.org>
9664
9665         mknod: Move AC_LIBOBJ invocations to module description.
9666         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
9667         * modules/mknod (configure.ac): ... to here.
9668
9669 2011-05-21  Bruno Haible  <bruno@clisp.org>
9670
9671         mkfifoat: Move AC_LIBOBJ invocations to module description.
9672         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
9673         here...
9674         * modules/mkfifoat (configure.ac): ... to here.
9675
9676 2011-05-21  Bruno Haible  <bruno@clisp.org>
9677
9678         mkfifo: Respect rules for use of AC_LIBOBJ.
9679         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
9680         here...
9681         * modules/mkfifo (configure.ac): ... to here.
9682
9683 2011-05-21  Bruno Haible  <bruno@clisp.org>
9684
9685         mkdtemp: Move AC_LIBOBJ invocations to module description.
9686         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
9687         invocations from here...
9688         * modules/mkdtemp (configure.ac): ... to here.
9689
9690 2011-05-21  Bruno Haible  <bruno@clisp.org>
9691
9692         mkdir: Move AC_LIBOBJ invocations to module description.
9693         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
9694         * modules/mkdir (configure.ac): ... to here.
9695
9696 2011-05-21  Bruno Haible  <bruno@clisp.org>
9697
9698         memset: Move AC_LIBOBJ invocations to module description.
9699         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
9700         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
9701         here...
9702         * modules/memset (configure.ac): ... to here.
9703
9704 2011-05-21  Bruno Haible  <bruno@clisp.org>
9705
9706         memrchr: Move AC_LIBOBJ invocations to module description.
9707         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
9708         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
9709         here...
9710         * modules/memrchr (configure.ac): ... to here.
9711
9712 2011-05-21  Bruno Haible  <bruno@clisp.org>
9713
9714         mempcpy: Move AC_LIBOBJ invocations to module description.
9715         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
9716         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
9717         here...
9718         * modules/mempcpy (configure.ac): ... to here.
9719
9720 2011-05-21  Bruno Haible  <bruno@clisp.org>
9721
9722         memmove: Move AC_LIBOBJ invocations to module description.
9723         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
9724         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
9725         here...
9726         * modules/memmove (configure.ac): ... to here.
9727
9728 2011-05-21  Bruno Haible  <bruno@clisp.org>
9729
9730         memmem*: Move AC_LIBOBJ invocations to module description.
9731         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
9732         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
9733         here...
9734         (gl_FUNC_MEMMEM): ... and here...
9735         * modules/memmem-simple (configure.ac): ... to here.
9736         * modules/memmem (configure.ac): ... and here.
9737
9738 2011-05-21  Bruno Haible  <bruno@clisp.org>
9739
9740         memcpy: Move AC_LIBOBJ invocations to module description.
9741         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
9742         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
9743         here...
9744         * modules/memcpy (configure.ac): ... to here.
9745
9746 2011-05-21  Bruno Haible  <bruno@clisp.org>
9747
9748         memcmp: Simplify autoconf macro.
9749         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
9750         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
9751         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
9752
9753 2011-05-21  Bruno Haible  <bruno@clisp.org>
9754
9755         memcmp: Move AC_LIBOBJ invocations to module description.
9756         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
9757         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
9758         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
9759         * modules/memcmp (configure.ac): ... to here.
9760         (Depends-on): Update conditions.
9761
9762 2011-05-21  Bruno Haible  <bruno@clisp.org>
9763
9764         memchr: Respect rules for use of AC_LIBOBJ.
9765         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
9766         invocations from here...
9767         * modules/memchr (configure.ac): ... to here.
9768
9769 2011-05-21  Bruno Haible  <bruno@clisp.org>
9770
9771         mbtowc: Move AC_LIBOBJ invocations to module description.
9772         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
9773         invocations from here...
9774         * modules/mbtowc (configure.ac): ... to here.
9775
9776 2011-05-21  Bruno Haible  <bruno@clisp.org>
9777
9778         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
9779         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
9780         gl_PREREQ_MBSRTOWCS invocations from here...
9781         * modules/mbsrtowcs (configure.ac): ... to here.
9782
9783 2011-05-21  Bruno Haible  <bruno@clisp.org>
9784
9785         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
9786         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
9787         gl_PREREQ_MBSNRTOWCS invocations from here...
9788         * modules/mbsnrtowcs (configure.ac): ... to here.
9789
9790 2011-05-21  Bruno Haible  <bruno@clisp.org>
9791
9792         mbsinit: Move AC_LIBOBJ invocations to module description.
9793         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
9794         invocations from here...
9795         * modules/mbsinit (configure.ac): ... to here.
9796
9797 2011-05-21  Bruno Haible  <bruno@clisp.org>
9798
9799         mbrlen: Move AC_LIBOBJ invocations to module description.
9800         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
9801         invocations from here...
9802         * modules/mbrlen (configure.ac): ... to here.
9803
9804 2011-05-21  Bruno Haible  <bruno@clisp.org>
9805
9806         mbrtowc: Respect rules for use of AC_LIBOBJ.
9807         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
9808         invocations from here...
9809         * modules/mbrtowc (configure.ac): ... to here.
9810
9811 2011-05-21  Bruno Haible  <bruno@clisp.org>
9812
9813         malloc-*: Move AC_LIBOBJ invocations to module description.
9814         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
9815         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
9816         AC_LIBOBJ invocations from here...
9817         * modules/malloc-gnu (configure.ac): ... to here.
9818         * modules/malloc-posix (configure.ac): ... and here.
9819
9820 2011-05-21  Bruno Haible  <bruno@clisp.org>
9821
9822         lstat, openat: Respect rules for use of AC_LIBOBJ.
9823         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
9824         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
9825         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
9826         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
9827         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
9828         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
9829         here.
9830         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
9831
9832 2011-05-21  Bruno Haible  <bruno@clisp.org>
9833
9834         lseek: Move AC_LIBOBJ invocations to module description.
9835         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
9836         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9837         * modules/lseek (configure.ac): ... to here.
9838
9839 2011-05-21  Bruno Haible  <bruno@clisp.org>
9840
9841         linkat: Move AC_LIBOBJ invocations to module description.
9842         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
9843         here...
9844         * modules/linkat (configure.ac): ... to here.
9845
9846 2011-05-21  Bruno Haible  <bruno@clisp.org>
9847
9848         link: Respect rules for use of AC_LIBOBJ.
9849         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
9850         * modules/link (configure.ac): ... to here.
9851
9852 2011-05-21  Bruno Haible  <bruno@clisp.org>
9853
9854         lchown: Move AC_LIBOBJ invocations to module description.
9855         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9856         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9857         * modules/lchown (configure.ac): ... to here.
9858
9859 2011-05-21  Bruno Haible  <bruno@clisp.org>
9860
9861         iswctype: Move AC_LIBOBJ invocations to module description.
9862         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
9863         here...
9864         * modules/iswctype (configure.ac): ... to here.
9865
9866 2011-05-21  Bruno Haible  <bruno@clisp.org>
9867
9868         iswblank: Move AC_LIBOBJ invocations to module description.
9869         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
9870         here...
9871         * modules/iswblank (configure.ac): ... to here.
9872
9873 2011-05-21  Bruno Haible  <bruno@clisp.org>
9874
9875         atanl: Move AC_LIBOBJ invocations to module description.
9876         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
9877         * modules/atanl (configure.ac): ... to here.
9878
9879 2011-05-21  Bruno Haible  <bruno@clisp.org>
9880
9881         acosl: Move AC_LIBOBJ invocations to module description.
9882         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
9883         * modules/acosl (configure.ac): ... to here.
9884
9885 2011-05-21  Bruno Haible  <bruno@clisp.org>
9886
9887         asinl: Respect rules for use of AC_LIBOBJ.
9888         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
9889         * modules/asinl (configure.ac): ... to here.
9890
9891 2011-05-21  Bruno Haible  <bruno@clisp.org>
9892
9893         tanl: Move AC_LIBOBJ invocations to module description.
9894         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
9895         * modules/tanl (configure.ac): ... to here.
9896
9897 2011-05-21  Bruno Haible  <bruno@clisp.org>
9898
9899         cosl: Move AC_LIBOBJ invocations to module description.
9900         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
9901         * modules/cosl (configure.ac): ... to here.
9902
9903 2011-05-21  Bruno Haible  <bruno@clisp.org>
9904
9905         sinl: Move AC_LIBOBJ invocations to module description.
9906         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
9907         * modules/sinl (configure.ac): ... to here.
9908
9909 2011-05-21  Bruno Haible  <bruno@clisp.org>
9910
9911         logl: Move AC_LIBOBJ invocations to module description.
9912         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
9913         * modules/logl (configure.ac): ... to here.
9914
9915 2011-05-21  Bruno Haible  <bruno@clisp.org>
9916
9917         expl: Move AC_LIBOBJ invocations to module description.
9918         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
9919         * modules/expl (configure.ac): ... to here.
9920
9921 2011-05-21  Bruno Haible  <bruno@clisp.org>
9922
9923         roundl: Move AC_LIBOBJ invocations to module description.
9924         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
9925         * modules/roundl (configure.ac): ... to here.
9926
9927 2011-05-21  Bruno Haible  <bruno@clisp.org>
9928
9929         round: Move AC_LIBOBJ invocations to module description.
9930         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
9931         * modules/round (configure.ac): ... to here.
9932
9933 2011-05-21  Bruno Haible  <bruno@clisp.org>
9934
9935         roundf: Move AC_LIBOBJ invocations to module description.
9936         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
9937         * modules/roundf (configure.ac): ... to here.
9938
9939 2011-05-21  Bruno Haible  <bruno@clisp.org>
9940
9941         truncl: Move AC_LIBOBJ invocations to module description.
9942         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
9943         * modules/truncl (configure.ac): ... to here.
9944
9945 2011-05-21  Bruno Haible  <bruno@clisp.org>
9946
9947         trunc: Move AC_LIBOBJ invocations to module description.
9948         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
9949         * modules/trunc (configure.ac): ... to here.
9950
9951 2011-05-21  Bruno Haible  <bruno@clisp.org>
9952
9953         truncf: Move AC_LIBOBJ invocations to module description.
9954         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
9955         * modules/truncf (configure.ac): ... to here.
9956
9957 2011-05-21  Bruno Haible  <bruno@clisp.org>
9958
9959         ceill: Move AC_LIBOBJ invocations to module description.
9960         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
9961         * modules/ceill (configure.ac): ... to here.
9962
9963 2011-05-21  Bruno Haible  <bruno@clisp.org>
9964
9965         ceil: Move AC_LIBOBJ invocations to module description.
9966         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
9967         * modules/ceil (configure.ac): ... to here.
9968
9969 2011-05-21  Bruno Haible  <bruno@clisp.org>
9970
9971         ceilf: Move AC_LIBOBJ invocations to module description.
9972         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
9973         * modules/ceilf (configure.ac): ... to here.
9974
9975 2011-05-21  Bruno Haible  <bruno@clisp.org>
9976
9977         floorl: Respect rules for use of AC_LIBOBJ.
9978         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
9979         * modules/floorl (configure.ac): ... to here.
9980
9981 2011-05-21  Bruno Haible  <bruno@clisp.org>
9982
9983         floor: Respect rules for use of AC_LIBOBJ.
9984         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
9985         * modules/floor (configure.ac): ... to here.
9986
9987 2011-05-21  Bruno Haible  <bruno@clisp.org>
9988
9989         floorf: Move AC_LIBOBJ invocations to module description.
9990         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
9991         * modules/floorf (configure.ac): ... to here.
9992
9993 2011-05-20  Bruno Haible  <bruno@clisp.org>
9994
9995         sqrtl: Respect rules for use of AC_LIBOBJ.
9996         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
9997         * modules/sqrtl (configure.ac): ... to here.
9998
9999 2011-05-20  Bruno Haible  <bruno@clisp.org>
10000
10001         ldexpl: Respect rules for use of AC_LIBOBJ.
10002         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
10003         * modules/ldexpl (configure.ac): ... to here.
10004
10005 2011-05-20  Bruno Haible  <bruno@clisp.org>
10006
10007         frexpl*: Respect rules for use of AC_LIBOBJ.
10008         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
10009         invocation from here...
10010         * modules/frexpl (configure.ac): ... to here.
10011         * modules/frexpl-nolibm (configure.ac): ... and here.
10012
10013 2011-05-20  Bruno Haible  <bruno@clisp.org>
10014
10015         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
10016         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
10017         invocation from here...
10018         * modules/frexp (configure.ac): ... to here.
10019         * modules/frexp-nolibm (configure.ac): ... and here.
10020
10021 2011-05-20  Bruno Haible  <bruno@clisp.org>
10022
10023         isnan: Respect rules for use of AC_LIBOBJ.
10024         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
10025         invocations here.
10026         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
10027         REPLACE_ISNAN.
10028         * modules/isnand (configure.ac): Likewise.
10029         * modules/isnanl (configure.ac): Likewise.
10030
10031 2011-05-20  Bruno Haible  <bruno@clisp.org>
10032
10033         isnanl*: Respect rules for use of AC_LIBOBJ.
10034         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
10035         invocation from here...
10036         * modules/isnanl (configure.ac): ... to here.
10037         * modules/isnanl-nolibm (configure.ac): ... and here.
10038
10039 2011-05-20  Bruno Haible  <bruno@clisp.org>
10040
10041         isnand*: Move AC_LIBOBJ invocations to module description.
10042         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
10043         invocation from here...
10044         * modules/isnand (configure.ac): ... to here.
10045         * modules/isnand-nolibm (configure.ac): ... and here.
10046
10047 2011-05-20  Bruno Haible  <bruno@clisp.org>
10048
10049         isnanf*: Move AC_LIBOBJ invocations to module description.
10050         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
10051         invocation from here...
10052         * modules/isnanf (configure.ac): ... to here.
10053         * modules/isnanf-nolibm (configure.ac): ... and here.
10054
10055 2011-05-20  Bruno Haible  <bruno@clisp.org>
10056
10057         isnan*: Separate the AC_LIBOBJ invocations.
10058         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
10059         AC_LIBOBJ invocation.
10060         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
10061         here.
10062         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
10063         AC_LIBOBJ invocation.
10064         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
10065         here.
10066         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
10067         AC_LIBOBJ invocation.
10068         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
10069         here.
10070         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
10071
10072 2011-05-08  Bruno Haible  <bruno@clisp.org>
10073
10074         isinf: Move AC_LIBOBJ invocations to module description.
10075         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
10076         * modules/isinf (configure.ac): ... to here.
10077
10078 2011-05-08  Bruno Haible  <bruno@clisp.org>
10079
10080         isfinite: Move AC_LIBOBJ invocations to module description.
10081         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
10082         * modules/isfinite (configure.ac): ... to here.
10083
10084 2011-05-08  Bruno Haible  <bruno@clisp.org>
10085
10086         isblank: Move AC_LIBOBJ invocations to module description.
10087         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
10088         here...
10089         * modules/isblank (configure.ac): ... to here.
10090
10091 2011-05-08  Bruno Haible  <bruno@clisp.org>
10092
10093         isapipe: Move AC_LIBOBJ invocations to module description.
10094         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
10095         gl_PREREQ_ISAPIPE invocations from here...
10096         * modules/isapipe (configure.ac): ... to here.
10097         (Depends-on): Update condition.
10098
10099 2011-05-08  Bruno Haible  <bruno@clisp.org>
10100
10101         ioctl: Move AC_LIBOBJ invocations to module description.
10102         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
10103         invocations from here...
10104         * modules/ioctl (configure.ac): ... to here.
10105         (Depends-on): Update condition.
10106
10107 2011-05-08  Bruno Haible  <bruno@clisp.org>
10108
10109         imaxdiv: Move AC_LIBOBJ invocations to module description.
10110         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
10111         invocations from here...
10112         * modules/imaxdiv (configure.ac): ... to here.
10113
10114 2011-05-08  Bruno Haible  <bruno@clisp.org>
10115
10116         imaxabs: Move AC_LIBOBJ invocations to module description.
10117         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
10118         invocations from here...
10119         * modules/imaxabs (configure.ac): ... to here.
10120
10121 2011-05-08  Bruno Haible  <bruno@clisp.org>
10122
10123         getaddrinfo: Move AC_LIBOBJ invocations to module description.
10124         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
10125         AC_LIBOBJ invocations from here...
10126         * modules/getaddrinfo (configure.ac): ... to here.
10127         (Depends-on): Add conditions.
10128
10129 2011-05-08  Bruno Haible  <bruno@clisp.org>
10130
10131         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10132         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
10133         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10134         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
10135         (gl_PREREQ_INET_PTON): ... from here.
10136         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
10137         gl_PREREQ_INET_PTON here.
10138         (Depends-on): Update condition.
10139
10140 2011-05-08  Bruno Haible  <bruno@clisp.org>
10141
10142         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10143         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
10144         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10145         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
10146         (gl_PREREQ_INET_NTOP): ... from here.
10147         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
10148         gl_PREREQ_INET_NTOP here.
10149         (Depends-on): Update condition.
10150
10151 2011-05-08  Bruno Haible  <bruno@clisp.org>
10152
10153         iconv_open: Move AC_LIBOBJ invocations to module description.
10154         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
10155         AC_LIBOBJ invocations from here...
10156         * modules/iconv_open (configure.ac): ... to here.
10157
10158 2011-05-08  Bruno Haible  <bruno@clisp.org>
10159
10160         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
10161         If module 'iconv_open' is among the main modules and module
10162         'iconv_open-utf' is among the tests dependencies, then
10163         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
10164         return the special iconv_t values. Therefore iconv() and iconv_close()
10165         must support these special iconv_t values, already in lib, not only in
10166         tests.
10167         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
10168         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
10169         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
10170         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
10171         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
10172         (Depends-on): Add the dependencies of iconv_open-utf.
10173         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
10174         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
10175         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
10176
10177 2011-05-08  Bruno Haible  <bruno@clisp.org>
10178
10179         group-member: Move AC_LIBOBJ invocations to module description.
10180         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
10181         gl_PREREQ_GROUP_MEMBER invocations from here...
10182         * modules/group-member (configure.ac): ... to here.
10183
10184 2011-05-08  Bruno Haible  <bruno@clisp.org>
10185
10186         grantpt: Move AC_LIBOBJ invocations to module description.
10187         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
10188         invocations from here...
10189         * modules/grantpt (configure.ac): ... to here.
10190
10191 2011-05-08  Bruno Haible  <bruno@clisp.org>
10192
10193         glob: Move AC_LIBOBJ invocations to module description.
10194         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
10195         from here...
10196         * modules/glob (configure.ac): ... to here.
10197
10198 2011-05-08  Bruno Haible  <bruno@clisp.org>
10199
10200         getusershell: Move AC_LIBOBJ invocations to module description.
10201         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
10202         Move AC_LIBOBJ invocation from here...
10203         * modules/getusershell (configure.ac): ... to here.
10204         (Depends-on): Update condition.
10205
10206 2011-05-08  Bruno Haible  <bruno@clisp.org>
10207
10208         gettimeofday: Move AC_LIBOBJ invocations to module description.
10209         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
10210         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
10211         gl_PREREQ_GETTIMEOFDAY invocations from here...
10212         * modules/gettimeofday (configure.ac): ... to here.
10213
10214 2011-05-08  Bruno Haible  <bruno@clisp.org>
10215
10216         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
10217         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
10218         just gl_FUNC_TZSET.
10219         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
10220         (gl_FUNC_TZSET_CLOBBER): Remove actions.
10221         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
10222         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
10223
10224 2011-05-08  Bruno Haible  <bruno@clisp.org>
10225
10226         getsubopt: Move AC_LIBOBJ invocations to module description.
10227         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
10228         gl_PREREQ_GETSUBOPT invocations from here...
10229         * modules/getsubopt (configure.ac): ... to here.
10230
10231 2011-05-08  Bruno Haible  <bruno@clisp.org>
10232
10233         getpass-gnu: Move AC_LIBOBJ invocations to module description.
10234         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
10235         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
10236         * modules/getpass-gnu (configure.ac): ... to here.
10237
10238 2011-05-08  Bruno Haible  <bruno@clisp.org>
10239
10240         getpass: Move AC_LIBOBJ invocations to module description.
10241         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
10242         gl_PREREQ_GETPASS invocations from here...
10243         * modules/getpass (configure.ac): ... to here.
10244
10245 2011-05-08  Bruno Haible  <bruno@clisp.org>
10246
10247         getpagesize: Move AC_LIBOBJ invocations to module description.
10248         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
10249         from here...
10250         * modules/getpagesize (configure.ac): ... to here.
10251
10252 2011-05-08  Bruno Haible  <bruno@clisp.org>
10253
10254         getopt: Move AC_LIBOBJ invocations to module description.
10255         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
10256         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
10257         invocations from here...
10258         * modules/getopt-gnu (configure.ac): ... to here.
10259         * modules/getopt-posix (configure.ac): ... and here.
10260         (Depends-on): Update condition.
10261
10262 2011-05-08  Bruno Haible  <bruno@clisp.org>
10263
10264         getopt, argp: Respect rules for use of AC_LIBOBJ.
10265         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
10266         (gl_REPLACE_GETOPT_ALWAYS): New macro.
10267         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
10268         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
10269
10270 2011-05-08  Bruno Haible  <bruno@clisp.org>
10271
10272         getlogin_r: Move AC_LIBOBJ invocations to module description.
10273         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
10274         gl_PREREQ_GETLOGIN_R invocations from here...
10275         * modules/getlogin_r (configure.ac): ... to here.
10276
10277 2011-05-08  Bruno Haible  <bruno@clisp.org>
10278
10279         getlogin: Move AC_LIBOBJ invocations to module description.
10280         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
10281         here...
10282         * modules/getlogin (configure.ac): ... to here.
10283
10284 2011-05-08  Bruno Haible  <bruno@clisp.org>
10285
10286         getloadavg: Move AC_LIBOBJ invocations to module description.
10287         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
10288         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
10289         * modules/getloadavg (configure.ac): ... to here.
10290
10291 2011-05-08  Bruno Haible  <bruno@clisp.org>
10292
10293         gethrxtime: Move AC_LIBOBJ invocations to module description.
10294         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
10295         LIB_GETHRXTIME from here...
10296         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
10297         invocations from here...
10298         * modules/gethrxtime (configure.ac): ... to here.
10299
10300 2011-05-08  Bruno Haible  <bruno@clisp.org>
10301
10302         gethostname: Move AC_LIBOBJ invocations to module description.
10303         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
10304         gl_PREREQ_GETHOSTNAME invocations from here...
10305         * modules/gethostname (configure.ac): ... to here.
10306
10307 2011-05-08  Bruno Haible  <bruno@clisp.org>
10308
10309         getgroups: Move AC_LIBOBJ invocations to module description.
10310         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
10311         here...
10312         * modules/getgroups (configure.ac): ... to here.
10313
10314 2011-05-08  Bruno Haible  <bruno@clisp.org>
10315
10316         getdtablesize: Move AC_LIBOBJ invocations to module description.
10317         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
10318         invocation from here...
10319         * modules/getdtablesize (configure.ac): ... to here.
10320
10321 2011-05-08  Bruno Haible  <bruno@clisp.org>
10322
10323         getdomainname: Move AC_LIBOBJ invocations to module description.
10324         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
10325         gl_PREREQ_GETDOMAINNAME invocations from here...
10326         * modules/getdomainname (configure.ac): ... to here.
10327
10328 2011-05-08  Bruno Haible  <bruno@clisp.org>
10329
10330         getline: Move AC_LIBOBJ invocations to module description.
10331         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
10332         invocations from here...
10333         * modules/getline (configure.ac): ... to here.
10334
10335 2011-05-08  Bruno Haible  <bruno@clisp.org>
10336
10337         getline: Simplify.
10338         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
10339         It's already handled through the module dependency.
10340
10341 2011-05-08  Bruno Haible  <bruno@clisp.org>
10342
10343         getdelim: Move AC_LIBOBJ invocations to module description.
10344         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
10345         and gl_PREREQ_GETDELIM invocations from here...
10346         * modules/getdelim (configure.ac): ... to here.
10347         (Depends-on): Fix condition.
10348
10349 2011-05-08  Bruno Haible  <bruno@clisp.org>
10350
10351         getcwd: Move AC_LIBOBJ invocations to module description.
10352         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
10353         invocations from here...
10354         * modules/getcwd (configure.ac): ... to here.
10355
10356 2011-05-08  Bruno Haible  <bruno@clisp.org>
10357
10358         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
10359         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
10360         here...
10361         * modules/getcwd-lgpl (configure.ac): ... to here.
10362
10363 2011-05-07  Bruno Haible  <bruno@clisp.org>
10364
10365         crypto/gc: Move AC_LIBOBJ invocations to module description.
10366         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
10367         * modules/crypto/gc (configure.ac): ... to here.
10368
10369 2011-05-07  Bruno Haible  <bruno@clisp.org>
10370
10371         fwriting: Move AC_LIBOBJ invocations to module description.
10372         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
10373         here...
10374         * modules/fwriting (configure.ac): ... to here.
10375
10376 2011-05-07  Bruno Haible  <bruno@clisp.org>
10377
10378         fwritable: Move AC_LIBOBJ invocations to module description.
10379         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
10380         here...
10381         * modules/fwritable (configure.ac): ... to here.
10382
10383 2011-05-07  Bruno Haible  <bruno@clisp.org>
10384
10385         futimens: Move AC_LIBOBJ invocations to module description.
10386         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
10387         here...
10388         * modules/futimens (configure.ac): ... to here.
10389
10390 2011-05-07  Bruno Haible  <bruno@clisp.org>
10391
10392         ftruncate: Move AC_LIBOBJ invocations to module description.
10393         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
10394         gl_PREREQ_FTRUNCATE invocations from here...
10395         * modules/ftruncate (configure.ac): ... to here.
10396
10397 2011-05-07  Bruno Haible  <bruno@clisp.org>
10398
10399         fsync: Move AC_LIBOBJ invocations to module description.
10400         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
10401         invocations from here...
10402         * modules/fsync (configure.ac): ... to here.
10403
10404 2011-05-07  Bruno Haible  <bruno@clisp.org>
10405
10406         fsusage: Move AC_LIBOBJ invocations to module description.
10407         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
10408         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
10409         * modules/fsusage (configure.ac): ... to here.
10410
10411 2011-05-07  Bruno Haible  <bruno@clisp.org>
10412
10413         freopen: Move AC_LIBOBJ invocations to module description.
10414         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
10415         invocations from here...
10416         * modules/freopen (configure.ac): ... to here.
10417
10418 2011-05-07  Bruno Haible  <bruno@clisp.org>
10419
10420         free: Move AC_LIBOBJ invocations to module description.
10421         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
10422         invocations from here...
10423         * modules/free (configure.ac): ... to here.
10424
10425 2011-05-07  Bruno Haible  <bruno@clisp.org>
10426
10427         freadable: Move AC_LIBOBJ invocations to module description.
10428         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
10429         here...
10430         * modules/freadable (configure.ac): ... to here.
10431
10432 2011-05-07  Bruno Haible  <bruno@clisp.org>
10433
10434         fpurge: Move AC_LIBOBJ invocations to module description.
10435         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
10436         invocations from here...
10437         * modules/fpurge (configure.ac): ... to here.
10438
10439 2011-05-07  Bruno Haible  <bruno@clisp.org>
10440
10441         fpending: Move AC_LIBOBJ invocations to module description.
10442         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
10443         gl_FUNC_FPENDING.
10444         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
10445         invocations from here...
10446         * modules/fpending (configure.ac): ... to here.
10447
10448 2011-05-07  Bruno Haible  <bruno@clisp.org>
10449
10450         fopen: Move AC_LIBOBJ invocations to module description.
10451         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
10452         invocations from here...
10453         * modules/fopen (configure.ac): ... to here.
10454
10455 2011-05-07  Bruno Haible  <bruno@clisp.org>
10456
10457         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
10458         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
10459         gl_FUNC_FNMATCH_POSIX.
10460         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
10461         invocations from here...
10462         * modules/fnmatch (configure.ac): ... to here.
10463         * modules/fnmatch-gnu (configure.ac): ... and here.
10464
10465 2011-05-07  Bruno Haible  <bruno@clisp.org>
10466
10467         flock: Move AC_LIBOBJ invocations to module description.
10468         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
10469         invocations from here...
10470         * modules/flock (configure.ac): ... to here.
10471
10472 2011-05-07  Bruno Haible  <bruno@clisp.org>
10473
10474         fileblocks: Move AC_LIBOBJ invocations to module description.
10475         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
10476         gl_PREREQ_FILEBLOCKS invocations from here...
10477         * modules/fileblocks (configure.ac): ... to here.
10478
10479 2011-05-06  Bruno Haible  <bruno@clisp.org>
10480
10481         fflush: Move AC_LIBOBJ invocations to module description.
10482         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
10483         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
10484         invocations from here...
10485         * modules/fflush (configure.ac): ... to here.
10486
10487 2011-05-06  Bruno Haible  <bruno@clisp.org>
10488
10489         fdopendir: Move AC_LIBOBJ invocations to module description.
10490         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
10491         here...
10492         * modules/fdopendir (configure.ac): ... to here.
10493         (Depends-on): Improve conditions.
10494
10495 2011-05-06  Bruno Haible  <bruno@clisp.org>
10496
10497         _Exit: Move AC_LIBOBJ invocations to module description.
10498         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
10499         invocations from here...
10500         * modules/_Exit (configure.ac): ... to here.
10501
10502 2011-05-21  Bruno Haible  <bruno@clisp.org>
10503
10504         euidaccess: Respect rules for use of AC_LIBOBJ.
10505         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10506         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
10507         from here...
10508         * modules/euidaccess (configure.ac): ... to here.
10509
10510 2011-05-06  Bruno Haible  <bruno@clisp.org>
10511
10512         error: Move AC_LIBOBJ invocations to module description.
10513         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
10514         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
10515         invocations from here...
10516         * modules/error (configure.ac): ... to here.
10517
10518 2011-05-06  Bruno Haible  <bruno@clisp.org>
10519
10520         duplocale: Move AC_LIBOBJ invocations to module description.
10521         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
10522         gl_PREREQ_DUPLOCALE invocations from here...
10523         * modules/duplocale (configure.ac): ... to here.
10524
10525 2011-05-05  Bruno Haible  <bruno@clisp.org>
10526
10527         dirfd: Move AC_LIBOBJ invocations to module description.
10528         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
10529         gl_FUNC_DIRFD.
10530         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
10531         here...
10532         * modules/dirfd (configure.ac): ... to here.
10533         (Depends-on): Fix condition.
10534
10535 2011-05-05  Bruno Haible  <bruno@clisp.org>
10536
10537         chown: Respect rules for use of AC_LIBOBJ.
10538         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
10539         * modules/chown (configure.ac): ... to here.
10540
10541 2011-05-05  Bruno Haible  <bruno@clisp.org>
10542
10543         chdir-long: Move AC_LIBOBJ invocations to module description.
10544         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
10545         gl_PREREQ_CHDIR_LONG invocations from here...
10546         * modules/chdir-long (configure.ac): ... to here.
10547
10548 2011-05-05  Bruno Haible  <bruno@clisp.org>
10549
10550         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
10551         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
10552         from here...
10553         * modules/canonicalize-lgpl (configure.ac): ... to here.
10554
10555 2011-05-05  Bruno Haible  <bruno@clisp.org>
10556
10557         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
10558         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
10559         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
10560         REPLACE_CALLOC.
10561         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
10562         * modules/calloc-gnu (configure.ac): Likewise.
10563
10564 2011-05-05  Bruno Haible  <bruno@clisp.org>
10565
10566         btowc: Move AC_LIBOBJ invocations to module description.
10567         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
10568         invocations from here...
10569         * modules/btowc (configure.ac): ... to here.
10570
10571 2011-05-21  Bruno Haible  <bruno@clisp.org>
10572
10573         atexit: Move AC_LIBOBJ invocations to module description.
10574         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
10575         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
10576         here...
10577         * modules/atexit (configure.ac): ... to here.
10578
10579 2011-05-05  Bruno Haible  <bruno@clisp.org>
10580
10581         atoll: Move AC_LIBOBJ invocations to module description.
10582         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
10583         invocations from here...
10584         * modules/atoll (configure.ac): ... to here.
10585
10586 2011-05-05  Bruno Haible  <bruno@clisp.org>
10587
10588         argz: Move AC_LIBOBJ invocations to module description.
10589         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
10590         * modules/argz (configure.ac): ... to here.
10591
10592 2011-05-05  Bruno Haible  <bruno@clisp.org>
10593
10594         alphasort: Move AC_LIBOBJ invocations to module description.
10595         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
10596         gl_PREREQ_ALPHASORT invocations from here...
10597         * modules/alphasort (configure.ac): ... to here.
10598
10599 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
10600
10601         verify: new macro verify_expr; verify_true deprecated
10602         * NEWS: Mention this.
10603         * doc/verify.texi (Compile-time Assertions): Document this.
10604         * lib/verify.h (verify_true): Deprecate.
10605         (verify_expr): New macro.
10606         * tests/test-verify.c (function): Test verify_expr.
10607
10608 2011-06-14  Jim Meyering  <meyering@redhat.com>
10609
10610         init.sh: give more portable redirection-related advice in a comment
10611         * tests/init.sh (stderr_fileno_): Update the advice in comments.
10612         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
10613         for lots of discussion.  Stefano Lattarini suggested the solution
10614         of putting "9>&2" after the command.  Reported by Bruno Haible.
10615
10616 2011-06-13  Bruno Haible  <bruno@clisp.org>
10617
10618         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
10619         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
10620         'none'.
10621
10622 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10623
10624         ftoastr: use strtof only if HAVE_STRTOF
10625         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
10626         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
10627         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
10628         * modules/ftoastr (configure.ac): Check for strtof.
10629
10630 2011-06-13  Bruno Haible  <bruno@clisp.org>
10631
10632         gnulib-tool: Addendum to 2011-06-08 commit.
10633         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
10634         and --witness-c-macro have been given, augment AM_CPPFLAGS.
10635
10636 2011-06-13  Bruno Haible  <bruno@clisp.org>
10637
10638         fseeko: Provide a non-inline replacement of fseek().
10639         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
10640         * modules/fseeko (Depends-on): Add fseek.
10641         * modules/fseek (License): Change to LGPLv2+.
10642
10643 2011-06-13  Bruno Haible  <bruno@clisp.org>
10644
10645         ftello: Provide a non-inline replacement of ftell().
10646         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
10647         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
10648         not have ftello() (such as on mingw).
10649         * modules/ftello (Depends-on): Add ftell.
10650         * modules/ftell (License): Change to LGPLv2+.
10651
10652 2011-05-07  Bruno Haible  <bruno@clisp.org>
10653
10654         ftell: Move AC_LIBOBJ invocations to module description.
10655         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
10656         * modules/ftell (configure.ac): ... to here.
10657
10658 2011-05-07  Bruno Haible  <bruno@clisp.org>
10659
10660         ftello: Respect rules for use of AC_LIBOBJ.
10661         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
10662         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
10663         here...
10664         * modules/ftello (configure.ac): ... to here.
10665
10666 2011-05-07  Bruno Haible  <bruno@clisp.org>
10667
10668         fseeko: Simplify.
10669         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
10670         (gl_FUNC_FSEEKO): Inline it here.
10671
10672 2011-05-07  Bruno Haible  <bruno@clisp.org>
10673
10674         fseek: Move AC_LIBOBJ invocations to module description.
10675         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
10676         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10677         * modules/fseek (configure.ac): ... to here.
10678
10679 2011-05-07  Bruno Haible  <bruno@clisp.org>
10680
10681         fseek: Respect rules for use of AC_LIBOBJ.
10682         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
10683         here...
10684         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
10685
10686 2011-05-07  Bruno Haible  <bruno@clisp.org>
10687
10688         fseeko: Respect rules for use of AC_LIBOBJ.
10689         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
10690         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
10691         here...
10692         * modules/fseeko (configure.ac): ... to here.
10693
10694 2011-06-13  Bruno Haible  <bruno@clisp.org>
10695
10696         gnulib-tool: Allow comments in the 'Depends-on' section.
10697         * doc/gnulib.texi (Module description): Mention comment syntax in the
10698         Depends-on section.
10699         * gnulib-tool (func_get_dependencies): Filter out comment lines.
10700
10701 2011-06-13  Bruno Haible  <bruno@clisp.org>
10702
10703         file-set.h: guard __attibute__ use, now that it's not always defined
10704         * lib/file-set.h (record_file): Use __attribute__ only with compiler
10705         versions that support it.  This fixes a coreutils build failure with
10706         the vendor cc on HP-UX 11.31.
10707
10708 2011-06-12  Bruno Haible  <bruno@clisp.org>
10709
10710         acl: Add support for HP-UX >= 11.11 JFS ACLs.
10711         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
10712         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
10713         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
10714         (acl, aclsort): New declarations.
10715         (aclv_nontrivial): New declaration.
10716         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
10717         (file_has_acl): Read also the second kind of HP-UX ACLs.
10718         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
10719         kind of HP-UX ACLs if the first kind fails.
10720         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
10721         second kind of HP-UX ACLs.
10722         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
10723         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
10724         agree.
10725         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10726         hpuxjfs.
10727         Handle hpuxjfs.
10728         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10729         hpuxjfs.
10730         Handle hpuxjfs.
10731         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10732         (func_test_same_acls): Use both lsacl and getacl.
10733         Handle hpuxjfs.
10734         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10735         (func_test_same_acls): Use both lsacl and getacl.
10736         Handle hpuxjfs.
10737
10738 2011-06-12  Bruno Haible  <bruno@clisp.org>
10739
10740         acl: Complete the 2010-08-10 fix.
10741         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
10742         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
10743         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
10744         explicitly.
10745         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
10746         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
10747
10748 2011-06-12  Bruno Haible  <bruno@clisp.org>
10749
10750         spawn-pipe tests: Comments.
10751         * tests/test-spawn-pipe-child.c (main): Update comment.
10752         Reported by James Youngman <jay@gnu.org>.
10753
10754 2011-06-11  James Youngman  <jay@gnu.org>
10755
10756         New module 'stat-size'.
10757         * modules/stat-size: New module.  Provides macros for accessing
10758         file size information in instances of struct stat.  Depends on the
10759         fileblocks module because it calls st_blocks.
10760         * lib/stat-size.h: New file, adapted from coreutils' system.h.
10761         * doc/gnulib.texi: Include stat-size.texi.
10762         * doc/stat-size.texi: Documentation for this module.
10763         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
10764         * m4/fileblocks.m4: Mention that stat-size depends on the call to
10765         AC_STRUCT_ST_BLOCKS.
10766
10767 2011-06-09  Bruno Haible  <bruno@clisp.org>
10768
10769         thread: Support pthreads-win32.
10770         * lib/glthread/thread.h (gl_thread_self): Define differently on
10771         pthreads-win32.
10772         (gl_null_thread): New declaration.
10773         (gl_thread_self_pointer): New macro.
10774         * lib/glthread/thread.c (gl_null_thread): New constant.
10775         * tests/test-lock.c: Use gl_thread_self_pointer instead of
10776         gl_thread_self.
10777         * tests/test-tls.c: Likewise.
10778         Suggested by Paul Eggert. Reported by Eric Blake.
10779
10780 2011-06-09  Bruno Haible  <bruno@clisp.org>
10781
10782         thread: Fix confusion between NULL and 0.
10783         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
10784         Reported by Paul Eggert.
10785
10786 2011-06-09  Bruno Haible  <bruno@clisp.org>
10787
10788         spawn-pipe tests: Avoid test failure on HP-UX 11.
10789         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
10790         is closed.
10791
10792 2011-06-09  Bruno Haible  <bruno@clisp.org>
10793
10794         acl tests: Fix compilation error on HP-UX 11.
10795         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
10796
10797 2011-06-09  Bruno Haible  <bruno@clisp.org>
10798
10799         rmdir: Avoid test failure on HP-UX 10.20.
10800         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
10801         EEXIST.
10802
10803 2011-06-08  Eric Blake  <eblake@redhat.com>
10804
10805         perror: fix test on mingw
10806         * modules/perror-tests (Depends-on): Add dup2.
10807
10808         strerror_r-posix: fix on MacOS
10809         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
10810         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
10811         logic bug.
10812         * lib/strerror_r.c (strerror_r): Fix the bug.
10813         * lib/strerror.c (strerror): Likewise.
10814         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10815         problem.
10816         * doc/posix-functions/strerror.texi (strerror): Likewise.
10817         * doc/posix-functions/perror.texi (perror): Likewise.
10818         * tests/test-strerror.c (main): Enhance test.
10819         * tests/test-strerror_r.c (main): Likewise.
10820
10821 2011-06-08  Bruno Haible  <bruno@clisp.org>
10822
10823         gnulib-tool: Better isolation between different gnulib-tool invocations.
10824         * gnulib-tool: New option --witness-c-macro.
10825         (witness_c_macro): New variable.
10826         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
10827         AM_CPPFLAGS define it as a C macro.
10828         (func_emit_tests_Makefile_am): Likewise.
10829         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
10830         read it from there.
10831         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
10832         m4_define, not AC_DEFUN.
10833         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
10834         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
10835         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
10836         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
10837         s|...|...|, to substitute the values of the GNULIB_* module indicator
10838         variables.
10839         * modules/dirent (Makefile.am): Likewise.
10840         * modules/fcntl-h (Makefile.am): Likewise.
10841         * modules/iconv-h (Makefile.am): Likewise.
10842         * modules/langinfo (Makefile.am): Likewise.
10843         * modules/locale (Makefile.am): Likewise.
10844         * modules/math (Makefile.am): Likewise.
10845         * modules/netdb (Makefile.am): Likewise.
10846         * modules/poll-h (Makefile.am): Likewise.
10847         * modules/pty (Makefile.am): Likewise.
10848         * modules/search (Makefile.am): Likewise.
10849         * modules/signal (Makefile.am): Likewise.
10850         * modules/spawn (Makefile.am): Likewise.
10851         * modules/stdio (Makefile.am): Likewise.
10852         * modules/stdlib (Makefile.am): Likewise.
10853         * modules/string (Makefile.am): Likewise.
10854         * modules/sys_ioctl (Makefile.am): Likewise.
10855         * modules/sys_select (Makefile.am): Likewise.
10856         * modules/sys_socket (Makefile.am): Likewise.
10857         * modules/sys_stat (Makefile.am): Likewise.
10858         * modules/sys_times (Makefile.am): Likewise.
10859         * modules/sys_utsname (Makefile.am): Likewise.
10860         * modules/sys_wait (Makefile.am): Likewise.
10861         * modules/termios (Makefile.am): Likewise.
10862         * modules/time (Makefile.am): Likewise.
10863         * modules/unistd (Makefile.am): Likewise.
10864         * modules/wchar (Makefile.am): Likewise.
10865
10866 2011-06-08  Eric Blake  <eblake@redhat.com>
10867
10868         strerror: simplify replacement
10869         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
10870         * modules/strerror (configure.ac): No prereqs needed here...
10871         * modules/strerror-override (configure.ac): ...but this needs it.
10872         (Files): Add file for needed prereq macro.
10873
10874 2011-06-08  Bruno Haible  <bruno@clisp.org>
10875
10876         strerror_r-posix: Tweaks.
10877         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
10878         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
10879         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
10880         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
10881         (gl_FUNC_STRERROR_R): ... to here.
10882         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
10883
10884 2011-06-07  Eric Blake  <eblake@redhat.com>
10885
10886         perror: document fixed bugs
10887         * doc/posix-functions/perror.texi (perror): Document recent
10888         patches.
10889
10890 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10891
10892         stat-time: get_stat_birthtime failure is better-defined
10893         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
10894         return a timestamp whose tv_sec and tv_nsec values are both -1.
10895         Previously, the spec said only that the tv_nsec value was negative.
10896         This upward-compatible change simplifies GNU tar a bit.
10897
10898 2011-06-07  Eric Blake  <eblake@redhat.com>
10899
10900         strerror_r-posix: work around cygwin 1.7.9
10901         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
10902         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
10903         bug without replacing strerror_r.
10904         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
10905         strerror_r is buggy, but without requiring strerror_r compilation.
10906         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
10907
10908         test-perror: relax test to ignore cygwin bug
10909         * tests/test-perror2.c (main): Relax test on requiring detection
10910         of stream errors, and use unbuffered stream.
10911         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
10912         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
10913         * doc/posix-functions/fputc.texi (fputc): Likewise.
10914         * doc/posix-functions/fputs.texi (fputs): Likewise.
10915         * doc/posix-functions/fputws.texi (fputws): Likewise.
10916         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
10917         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
10918         * doc/posix-functions/getopt.texi (getopt): Likewise.
10919         * doc/posix-functions/perror.texi (perror): Likewise.
10920         * doc/posix-functions/printf.texi (printf): Likewise.
10921         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
10922         * doc/posix-functions/psignal.texi (psignal): Likewise.
10923         * doc/posix-functions/putc.texi (putc): Likewise.
10924         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
10925         Likewise.
10926         * doc/posix-functions/putchar.texi (putchar): Likewise.
10927         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
10928         Likewise.
10929         * doc/posix-functions/puts.texi (puts): Likewise.
10930         * doc/posix-functions/putwc.texi (putwc): Likewise.
10931         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
10932         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
10933         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10934         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
10935         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10936         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
10937         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10938         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
10939
10940 2011-05-22  Bruno Haible  <bruno@clisp.org>
10941
10942         strerror: Move AC_LIBOBJ invocations to module description.
10943         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
10944         gl_PREREQ_STRERROR invocations from here...
10945         * modules/strerror (configure.ac): ... to here.
10946
10947 2011-05-21  Bruno Haible  <bruno@clisp.org>
10948
10949         perror: Use common idiom.
10950         * modules/perror (configure.ac): Reorder statements.
10951
10952 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10953
10954         tests: fix usage message in 'mktempd_'
10955         * tests/init.sh (mktempd_): In the usage message, use literal
10956         'mktempd_', not '$ME' (which is even undefined), as the name of
10957         the subroutine.
10958
10959 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10960
10961         tests init: new function 'fatal_', for hard errors
10962         Before this patch, the only way offered by tests/init.sh to
10963         properly signal a hard error was the `framework_failure_'
10964         function.  But the error message issued by that function,
10965         as its name would suggest, refers to a set-up failure in the
10966         testsuite, while hard errors can obviously also be due to
10967         other reasons.  The best way to fix this inconsistency is to
10968         introduce a new function with a more general error message.
10969         * tests/init.sh (fatal_): New function.
10970
10971 2011-06-06  Eric Blake  <eblake@redhat.com>
10972
10973         canonicalize-lgpl: use common idiom
10974         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
10975         over newer POSIX -Rf.
10976         Reported by Bruno Haible.
10977
10978         canonicalize-lgpl: work around AIX realpath bug
10979         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
10980         * doc/posix-functions/realpath.texi (realpath): Document it.
10981         Reported by Bruno Haible.
10982
10983         strerror: work around FreeBSD bug
10984         * lib/strerror.c (strerror): Special case 0.
10985         Reported by Bruno Haible.
10986
10987         strerror-override: avoid bloating errno module
10988         * modules/errno (Files, configure.ac): Move replacement strings...
10989         * modules/strerror-override: ...to new module.
10990         * modules/strerror (Depends-on): Add strerror-override.
10991         * modules/strerror_r-posix (Depends-on): Likewise.
10992         * MODULES.html.sh: Document new module.
10993         Reported by Bruno Haible.
10994
10995 2011-06-06  Bruno Haible  <bruno@clisp.org>
10996
10997         spawn-pipe tests: Rename program.
10998         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
10999         * tests/test-spawn-pipe-child.c: Update comment.
11000         * tests/test-spawn-pipe.sh: Update.
11001         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
11002
11003         spawn-pipe tests: Link the child program only against libc.
11004         * tests/test-spawn-pipe-child.c: New file, extracted from
11005         tests/test-spawn-pipe.c.
11006         (main): Expect only one argument.
11007         (is_open): New function, copied from tests/test-pipe.c.
11008         * tests/test-spawn-pipe.c: Don't include <errno.h>.
11009         (child_main): Remove function.
11010         (test_pipe): Pass only one argument to the child program.
11011         (main): Remove child process code. Expect the child program's name as
11012         first argument.
11013         * tests/test-spawn-pipe.sh: Pass the child program's name as first
11014         argument.
11015         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
11016         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
11017         test-spawn-pipe-child against no libraries.
11018
11019 2011-06-06  Bruno Haible  <bruno@clisp.org>
11020
11021         careadlinkat: Avoid mismatch between ssize_t and int.
11022         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
11023         * lib/careadlinkat.c (careadlinkatcwd): Define always.
11024
11025 2011-06-06  Jim Meyering  <meyering@redhat.com>
11026
11027         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
11028         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
11029         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
11030
11031 2011-06-05  Bruno Haible  <bruno@clisp.org>
11032
11033         ansi-c++-opt: Interoperability with libtool.
11034         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
11035         set the variable to "no", not to ":".
11036         * NEWS: Mention the change.
11037
11038 2011-06-05  Bruno Haible  <bruno@clisp.org>
11039
11040         acl: Fix test failure on AIX 7.
11041         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
11042         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
11043
11044 2011-06-05  Bruno Haible  <bruno@clisp.org>
11045
11046         pipe-filter-ii: Fix test failure on AIX and IRIX.
11047         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
11048         with EAGAIN, retry with a smaller buffer size.
11049
11050 2011-06-05  Bruno Haible  <bruno@clisp.org>
11051
11052         localename: Fix link dependencies.
11053         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
11054         * modules/localename-tests (Makefile.am): Link test-localename with
11055         $(LIBTHREAD).
11056
11057 2011-06-05  Bruno Haible  <bruno@clisp.org>
11058
11059         error: Avoid gcc warning.
11060         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
11061
11062 2011-06-05  Bruno Haible  <bruno@clisp.org>
11063
11064         unsetenv: Avoid gcc warning.
11065         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
11066
11067 2011-06-05  Bruno Haible  <bruno@clisp.org>
11068
11069         setenv: Avoid gcc warning.
11070         * lib/setenv.c (setenv): Provide declaration if system lacks it.
11071
11072 2011-06-05  Bruno Haible  <bruno@clisp.org>
11073
11074         sys_select: Ensure memset is declared also on AIX 7.
11075         * lib/sys_select.in.h: Include <string.h> also on AIX.
11076         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
11077         self-contained also on AIX 7.1.
11078
11079 2011-06-04  Jim Meyering  <meyering@redhat.com>
11080
11081         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
11082         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
11083         function name, "error".
11084         (_gl_translatable_diag_func_re): New configurable variable.
11085
11086 2011-06-04  Bruno Haible  <bruno@clisp.org>
11087
11088         getopt: Avoid gcc warning.
11089         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
11090
11091 2011-06-04  Bruno Haible  <bruno@clisp.org>
11092
11093         strerror_r: Fix comments.
11094         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
11095         commit.
11096
11097 2011-06-04  Bruno Haible  <bruno@clisp.org>
11098
11099         perror: Fix compilation error.
11100         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
11101         Undefine fprintf, not sprintf.
11102         * modules/perror (Depends-on): Remove intprops, verify.
11103
11104 2011-06-04  Bruno Haible  <bruno@clisp.org>
11105
11106         setlocale: Enable replacement on Cygwin 1.5.
11107         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
11108         Cygwin 1.5.x.
11109         * doc/posix-functions/setlocale.texi: Mention that the problem with the
11110         LC_CTYPE category also exists on Cygwin 1.5.x.
11111
11112 2011-06-04  Bruno Haible  <bruno@clisp.org>
11113
11114         strerror-override: Don't disable symbol renamings.
11115         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
11116         * lib/strerror-override.c: Include config.h.
11117         (strerror_override): Don't undefine.
11118
11119 2011-06-03  Bruno Haible  <bruno@clisp.org>
11120
11121         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
11122         * lib/localename.h: Update copyright header.
11123         * lib/localename.c: Likewise.
11124         * lib/relocatable.h: Likewise.
11125         * lib/relocatable.c: Likewise.
11126
11127 2011-06-02  Bruno Haible  <bruno@clisp.org>
11128
11129         doc: Fix a module name.
11130         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
11131
11132 2011-06-02  Bruno Haible  <bruno@clisp.org>
11133
11134         pipe2: Remove dependency on 'nonblocking' module.
11135         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
11136         O_NONBLOCK is defined by gnulib.
11137         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
11138         is zero.
11139         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
11140         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
11141         defined by gnulib.
11142         (get_nonblocking_flag): New function.
11143         (main): Test O_NONBLOCK flag only if it is nonzero.
11144         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
11145
11146 2011-06-03  Jim Meyering  <meyering@redhat.com>
11147
11148         maint: three new prohibit-header-without-use rules
11149         Prohibit use of cloexec.h, posixver.h, same.h without use.
11150         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
11151         (sc_prohibit_posixver_without_use): Likewise.
11152         (sc_prohibit_same_without_use): Likewise.
11153
11154 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
11155
11156         allocator: 'die' routine is now given requested size
11157         * lib/allocator.h (struct allocator.die): New size arg.
11158         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
11159         If the actual problem is an ssize_t limitation, not a size_t or
11160         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
11161
11162 2011-06-01  Eric Blake  <eblake@redhat.com>
11163
11164         strerror: drop strerror_r dependency
11165         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
11166         * lib/strerror-override.c (strerror_override): ...to new file.
11167         * lib/strerror-override.h: Add prototype.
11168         * lib/strerror-impl.h: Delete.
11169         * lib/strerror.c (strerror): New implementation.
11170         * modules/errno (Files): Add new files.
11171         (configure.ac): Compile new file as appropriate.
11172         * modules/strerror (Files): Drop unused file.
11173         (Depends-on): Drop strerror_r-posix.
11174         * MODULES.html.sh: Document strerror_r-posix.
11175         Requested by Sam Steingold.
11176
11177         perror: call strerror_r directly
11178         * modules/perror (Files): Drop strerror-impl.h.
11179         * lib/perror.c (perror): Use our own stack buffer, rather than
11180         calling a wrapper that uses static storage.
11181         * doc/posix-functions/perror.texi (perror): Document a limitation
11182         of our replacement.
11183
11184         strerror_r: fix includes for FreeBSD
11185         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
11186         since we use abort on some platforms.
11187         Reported by Matthias Bolte.
11188
11189 2011-05-31  Bruno Haible  <bruno@clisp.org>
11190
11191         Fix link errors in tests: openat-die uses gettext-h.
11192         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
11193         against $(LIBINTL).
11194         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
11195         against $(LIBINTL).
11196         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
11197         $(LIBINTL).
11198         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
11199         against $(LIBINTL).
11200         * modules/linkat-tests (Makefile.am): Link test-linkat against
11201         $(LIBINTL).
11202         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
11203         $(LIBINTL).
11204         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
11205         against $(LIBINTL).
11206         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
11207         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
11208         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
11209         $(LIBINTL).
11210         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
11211         $(LIBINTL).
11212         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
11213         $(LIBINTL).
11214         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11215
11216 2011-05-31  Bruno Haible  <bruno@clisp.org>
11217
11218         Fix link errors in tests: wait-process uses gettext-h.
11219         * modules/nonblocking-pipe-tests (Makefile.am): Set
11220         test_nonblocking_pipe_main_LDADD.
11221         * modules/nonblocking-socket-tests (Makefile.am): Link
11222         test-nonblocking-socket-main against $(LIBINTL).
11223         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11224
11225 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
11226
11227         assert-h: work around 'verify' incompatibility
11228         * lib/verify.h: Use @...@ directives, not ifdef.
11229         * modules/assert-h (assert.h): Implement the directives.
11230         (assert.h): Substitute the symbol-prefix more consistently.
11231
11232 2011-05-29  Jim Meyering  <meyering@redhat.com>
11233
11234         trim: remove three superfluous assignments
11235         * lib/trim.c (trim2): Remove three superfluous assignments
11236         and correct brace positioning.
11237
11238 2011-05-29  Bruno Haible  <bruno@clisp.org>
11239
11240         wctype-h: Avoid namespace pollution on Solaris 2.6.
11241         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
11242         identifiers.
11243         * doc/posix-headers/wctype.texi: Mention the problem.
11244         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11245
11246 2011-05-28  Jim Meyering  <meyering@redhat.com>
11247
11248         parse-datetime.y: accommodate -Wstrict-overflow
11249         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
11250         placate -Wstrict-overflow.
11251
11252         trim: avoid a warning from -O2 -Wstrict-overflow
11253         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
11254
11255 2011-05-29  Bruno Haible  <bruno@clisp.org>
11256
11257         gnulib-tool: Fix bug in yesterday's commit.
11258         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
11259         twice.
11260
11261 2011-05-29  Bruno Haible  <bruno@clisp.org>
11262
11263         Allow multiple gnulib generated include files to be combined.
11264         * gnulib-tool (func_compute_include_guard_prefix): New function.
11265         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
11266         ${gl_include_guard_prefix} references.
11267         (func_import, func_create_testdir): Invoke
11268         func_compute_include_guard_prefix.
11269         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
11270         * lib/ctype.in.h: Likewise.
11271         * lib/dirent.in.h: Likewise.
11272         * lib/errno.in.h: Likewise.
11273         * lib/fcntl.in.h: Likewise.
11274         * lib/float.in.h: Likewise.
11275         * lib/getopt.in.h: Likewise.
11276         * lib/iconv.in.h: Likewise.
11277         * lib/langinfo.in.h: Likewise.
11278         * lib/locale.in.h: Likewise.
11279         * lib/math.in.h: Likewise.
11280         * lib/netdb.in.h: Likewise.
11281         * lib/netinet_in.in.h: Likewise.
11282         * lib/poll.in.h: Likewise.
11283         * lib/pthread.in.h: Likewise.
11284         * lib/pty.in.h: Likewise.
11285         * lib/sched.in.h: Likewise.
11286         * lib/se-selinux.in.h: Likewise.
11287         * lib/search.in.h: Likewise.
11288         * lib/signal.in.h: Likewise.
11289         * lib/spawn.in.h: Likewise.
11290         * lib/stdarg.in.h: Likewise.
11291         * lib/stddef.in.h: Likewise.
11292         * lib/stdint.in.h: Likewise.
11293         * lib/stdio.in.h: Likewise.
11294         * lib/stdlib.in.h: Likewise.
11295         * lib/string.in.h: Likewise.
11296         * lib/strings.in.h: Likewise.
11297         * lib/sys_file.in.h: Likewise.
11298         * lib/sys_ioctl.in.h: Likewise.
11299         * lib/sys_select.in.h: Likewise.
11300         * lib/sys_socket.in.h: Likewise.
11301         * lib/sys_stat.in.h: Likewise.
11302         * lib/sys_time.in.h: Likewise.
11303         * lib/sys_times.in.h: Likewise.
11304         * lib/sys_uio.in.h: Likewise.
11305         * lib/sys_utsname.in.h: Likewise.
11306         * lib/sys_wait.in.h: Likewise.
11307         * lib/sysexits.in.h: Likewise.
11308         * lib/termios.in.h: Likewise.
11309         * lib/time.in.h: Likewise.
11310         * lib/unistd.in.h: Likewise.
11311         * lib/wchar.in.h: Likewise.
11312         * lib/wctype.in.h: Likewise.
11313         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
11314         * modules/ctype (Makefile.am): Likewise.
11315         * modules/dirent (Makefile.am): Likewise.
11316         * modules/errno (Makefile.am): Likewise.
11317         * modules/fcntl-h (Makefile.am): Likewise.
11318         * modules/float (Makefile.am): Likewise.
11319         * modules/getopt-posix (Makefile.am): Likewise.
11320         * modules/iconv-h (Makefile.am): Likewise.
11321         * modules/langinfo (Makefile.am): Likewise.
11322         * modules/locale (Makefile.am): Likewise.
11323         * modules/math (Makefile.am): Likewise.
11324         * modules/netdb (Makefile.am): Likewise.
11325         * modules/netinet_in (Makefile.am): Likewise.
11326         * modules/poll-h (Makefile.am): Likewise.
11327         * modules/pthread (Makefile.am): Likewise.
11328         * modules/pty (Makefile.am): Likewise.
11329         * modules/sched (Makefile.am): Likewise.
11330         * modules/search (Makefile.am): Likewise.
11331         * modules/selinux-h (Makefile.am): Likewise.
11332         * modules/signal (Makefile.am): Likewise.
11333         * modules/spawn (Makefile.am): Likewise.
11334         * modules/stdarg (Makefile.am): Likewise.
11335         * modules/stddef (Makefile.am): Likewise.
11336         * modules/stdint (Makefile.am): Likewise.
11337         * modules/stdio (Makefile.am): Likewise.
11338         * modules/stdlib (Makefile.am): Likewise.
11339         * modules/string (Makefile.am): Likewise.
11340         * modules/strings (Makefile.am): Likewise.
11341         * modules/sys_file (Makefile.am): Likewise.
11342         * modules/sys_ioctl (Makefile.am): Likewise.
11343         * modules/sys_select (Makefile.am): Likewise.
11344         * modules/sys_socket (Makefile.am): Likewise.
11345         * modules/sys_stat (Makefile.am): Likewise.
11346         * modules/sys_time (Makefile.am): Likewise.
11347         * modules/sys_times (Makefile.am): Likewise.
11348         * modules/sys_uio (Makefile.am): Likewise.
11349         * modules/sys_utsname (Makefile.am): Likewise.
11350         * modules/sys_wait (Makefile.am): Likewise.
11351         * modules/sysexits (Makefile.am): Likewise.
11352         * modules/termios (Makefile.am): Likewise.
11353         * modules/time (Makefile.am): Likewise.
11354         * modules/unistd (Makefile.am): Likewise.
11355         * modules/wchar (Makefile.am): Likewise.
11356         * modules/wctype-h (Makefile.am): Likewise.
11357         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
11358
11359 2011-05-29  Bruno Haible  <bruno@clisp.org>
11360
11361         assert-h: Allow multiple gnulib generated replacements to coexist.
11362         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
11363
11364 2011-05-29  Bruno Haible  <bruno@clisp.org>
11365
11366         argp: Allow coexistence with strerror_r-posix module.
11367         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
11368         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
11369         by gnulib's <string.h> replacement), assume it has the POSIX signature,
11370         not the glibc signature.
11371
11372 2011-05-28  Bruno Haible  <bruno@clisp.org>
11373
11374         gnulib-tool: Alternative structure of testdirs, similar to --import.
11375         * gnulib-tool: New option --single-configure.
11376         (func_usage): Document it.
11377         (single_configure): New variable.
11378         (func_modules_transitive_closure_separately,
11379         func_modules_transitive_closure_separately,
11380         func_determine_use_libtests, func_modules_add_dummy_separately,
11381         func_modules_to_filelist_separately): New functions, extracted from
11382         func_import.
11383         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
11384         (func_import): Use the new functions.
11385         (func_create_testdir): Set final_modules. Handle $single_configure =
11386         true case.
11387
11388 2011-05-28  Bruno Haible  <bruno@clisp.org>
11389
11390         getloadavg: Remove an unreliable safety check.
11391         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
11392         getloadavg.c is in place.
11393         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
11394         Reported by Sam Steingold <sds@gnu.org>.
11395
11396 2011-05-28  Bruno Haible  <bruno@clisp.org>
11397
11398         doc: Cleanup yet another file produced by texinfo.tex.
11399         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
11400
11401 2011-05-28  Bruno Haible  <bruno@clisp.org>
11402
11403         Finish the conditional dependencies mechanism.
11404         * gnulib-tool: New option --no-conditional-dependencies.
11405         (func_usage): Document it. Don't mark --conditional-dependencies as
11406         experimental.
11407         (cond_dependencies): The possible values can now be true, false, empty.
11408         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
11409         (func_import): Store setting in gnulib-cache.m4 and read it from there.
11410         * doc/gnulib-tool.texi (Conditional dependencies): New section.
11411
11412 2011-05-28  Bruno Haible  <bruno@clisp.org>
11413
11414         doc: Use a recent texinfo.tex.
11415         * doc/Makefile (tex_opts): New variable.
11416         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
11417
11418 2011-05-28  Jim Meyering  <meyering@redhat.com>
11419
11420         intprops.h: adjust comment to match code change
11421         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
11422         only once, it *may* have side effects.  Also fix an unrelated typo.
11423         (_GL_INT_SIGNED): Likewise.
11424
11425 2011-05-26  Simon Josefsson  <simon@josefsson.org>
11426
11427         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
11428
11429 2011-05-26  Bruno Haible  <bruno@clisp.org>
11430
11431         mbsrchr: Avoid collision with system function on Interix.
11432         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
11433         Reported by Markus Duft <mduft@gentoo.org>.
11434
11435 2011-05-15  James Youngman  <jay@gnu.org>
11436
11437         getopt: for ambiguous options, enumerate the possibilities.
11438         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
11439         the ambiguous options when an ambiguous prefix is given. This was
11440         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
11441         glibc change was
11442         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
11443
11444 2011-05-25  Eric Blake  <eblake@redhat.com>
11445
11446         getcwd: work around mingw bug
11447         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
11448         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11449         Reported by Matthias Bolte.
11450
11451 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
11452
11453         test-intprops: disable -Wtype-limits diagnostics
11454         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
11455         diagnostics.  Otherwise, the integer overflow macros generate many
11456         diagnostics.  Reported by Jim Meyering in
11457         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11458
11459         intprops: shorten, to pacify gcc -Woverlength-strings
11460         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
11461         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
11462         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
11463         likely to run afoul of C compiler limits for string constant lengths.
11464         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11465
11466 2011-05-24  Eric Blake  <eblake@redhat.com>
11467
11468         docs: document recently fixed glibc printf bug
11469         * doc/posix-functions/fprintf.texi (fprintf): Document it.
11470         * doc/posix-functions/printf.texi (printf): Likewise.
11471         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11472         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11473
11474         closein-tests: convert to init.sh
11475         * modules/closein-tests (Files): Add init.sh
11476         * tests/test-closein.sh Use it.
11477
11478         yesno-tests: convert to init.sh
11479         * modules/yesno-tests (Files): Add init.sh.
11480         * tests/test-yesno.sh: Use it.
11481
11482         atexit-tests: ensure reliable exit status
11483         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
11484         Reported by Bruno Haible.
11485
11486 2011-05-24  Bruno Haible  <bruno@clisp.org>
11487
11488         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
11489         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
11490         gl_PREREQ_STRERROR_R invocations from here...
11491         * modules/strerror_r-posix (configure.ac): ... to here.
11492
11493 2011-05-24  Eric Blake  <eblake@redhat.com>
11494
11495         strerror_r: fix missing header
11496         * lib/strerror_r.c: Avoid compiler warning about snprintf.
11497
11498         strerror_r: fix AIX test failures
11499         * lib/strerror_r.c (strerror_r): Convert silent truncation to
11500         ERANGE failure.
11501
11502         strerror_r: fix Solaris test failures
11503         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
11504         failures.
11505         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11506
11507         strerror_r: enforce POSIX recommendations
11508         * lib/strerror_r.c (safe_copy): New helper method.
11509         (strerror_r): Guarantee a non-empty string.
11510         * tests/test-strerror_r.c (main): Enhance tests to incorporate
11511         recent POSIX rulings and to match our strerror guarantees.
11512         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11513
11514 2011-05-24  Jim Meyering  <meyering@redhat.com>
11515
11516         test-perror2.c: avoid warning about unused variable
11517         * tests/test-perror2.c (main): Remove declaration of unused "fp".
11518
11519 2011-05-24  Eric Blake  <eblake@redhat.com>
11520
11521         perror: avoid spurious test failure on HP-UX
11522         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
11523
11524         tests: fix logic bug in init.sh
11525         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
11526         shell.
11527
11528 2011-05-24  Jim Meyering  <meyering@redhat.com>
11529
11530         utimensat: do not reference an out-of-scope buffer
11531         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
11532         declared in an inner scope, yet "times" would be dereferenced outside
11533         the scope in which "ts" was valid.
11534         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
11535         of ts[2] "out/up", so that the use of aliased "times" (via
11536         "times = ts;") does not end up referencing an out-of-scope "ts"
11537
11538         opendir-safer.c: don't clobber errno; don't close negative FD
11539         * lib/opendir-safer.c (opendir_safer):
11540         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
11541         file descriptor, and more importantly, don't clobber the
11542         offending errno value with EINVAL.  Before, upon failure
11543         of dup_safer, we would pass the negative file descriptor to
11544         fdopendir, which would clobber errno.
11545
11546 2011-05-23  Bruno Haible  <bruno@clisp.org>
11547
11548         idcache: Fix module description.
11549         * modules/idcache (Include): Set to "idcache.h".
11550
11551 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11552
11553         gnulib-tool: fix portability problem with MacOS sed
11554         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
11555         before the "}".  Problem reported by Leo in
11556         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
11557         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
11558         sed_extract_condition1, sed_extract_condition2.
11559
11560 2011-05-23  Bruno Haible  <bruno@clisp.org>
11561
11562         hash: Simplify autoconf macro.
11563         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
11564
11565 2011-05-23  Bruno Haible  <bruno@clisp.org>
11566
11567         getugroups: Fix module description.
11568         * modules/getugroups (Include): Set to "getugroups.h".
11569
11570 2011-05-23  Bruno Haible  <bruno@clisp.org>
11571
11572         linkat: Simplify autoconf macro.
11573         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
11574
11575 2011-05-23  Bruno Haible  <bruno@clisp.org>
11576             Eric Blake  <eblake@redhat.com>
11577
11578         linkat, renameat: Update dependencies.
11579         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
11580         * modules/linkat (Depends-on): Likewise. Remove also readlink,
11581         symlinkat.
11582
11583 2011-05-23  Jim Meyering  <meyering@redhat.com>
11584
11585         maint.mk: more tight_scope improvements
11586         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
11587         (_gl_TS_headers): Define only in if-0'd block.
11588         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
11589         sometimes we must *not* use it.  Adjust uses accordingly.
11590         (sc_tight_scope): Use much simpler grep-based test to determine
11591         whether we skip this rule.
11592
11593         maint.mk: generalize/improve the tight-scope rule
11594         * top/maint.mk: Emit a warning when the test is skipped.
11595         (_gl_TS_dir): Add $(srcdir)/ prefix.
11596         (_gl_TS_function_match): Simplify, rather than trying
11597         to enumerate common types.  Otherwise, it would fail to match an
11598         "extern unsigned char const *" declaration in idutils.
11599         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
11600         a way to support use of that type of macro.
11601         (_gl_TS_var_match): Simplify regexp.
11602         (_gl_TS_obj_files): New configurable variable.
11603         (_gl_TS_headers): Likewise.
11604
11605 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11606
11607         verify: fix bug when gnulib <assert.h> is also included
11608         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
11609         is defined, not if _GL_STATIC_ASSERT_H is not defined.
11610         Perhaps there's a better way, but this fixes the immediate problem.
11611         Problem reported by Bruno Haible in
11612         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
11613
11614 2011-05-22  Bruno Haible  <bruno@clisp.org>
11615
11616         xgetcwd: Simplify autoconf macro.
11617         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
11618
11619 2011-05-22  Bruno Haible  <bruno@clisp.org>
11620
11621         New module 'mktime-internal'.
11622         * modules/mktime-internal: New file.
11623         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
11624         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
11625         mktime_internal as a C macro if libc has __mktime_internal.
11626         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
11627         conditions.
11628         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
11629
11630 2011-05-22  Bruno Haible  <bruno@clisp.org>
11631
11632         timegm: Correct mktime replacement statements.
11633         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
11634         defining mktime as a C macro. This completes a 2009-07-28 commit.
11635
11636 2011-05-22  Bruno Haible  <bruno@clisp.org>
11637
11638         timegm: Simplify autoconf macro.
11639         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
11640
11641 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11642
11643         clock-time: change to LGPLv2+.
11644         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
11645         BSD-like but we have no mark for that; this is good enough for now.
11646
11647 2011-05-21  Bruno Haible  <bruno@clisp.org>
11648
11649         strerror_r: Fix comments.
11650         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
11651
11652 2011-05-21  Bruno Haible  <bruno@clisp.org>
11653
11654         relocatable-prog-wrapper: Fix possible link error.
11655         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
11656         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
11657         (gl_FUNC_SETENV): ... to here.
11658         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
11659         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
11660
11661 2011-05-21  Bruno Haible  <bruno@clisp.org>
11662
11663         relocatable-prog-wrapper: Assume strerror() exists.
11664         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
11665         m4/strerror.m4.
11666         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
11667         * lib/relocwrapper.c: Remove mention of strerror module.
11668         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
11669         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
11670         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
11671         C macro.
11672
11673 2011-05-21  Bruno Haible  <bruno@clisp.org>
11674
11675         select: Simplify replacement idiom.
11676         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
11677         Win32 platforms.
11678         * lib/sys_select.in.h (select): Simplify accordingly.
11679         * modules/select (Depends-on): Likewise.
11680
11681 2011-05-21  Bruno Haible  <bruno@clisp.org>
11682
11683         mkdir-p: Simplify autoconf macro.
11684         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
11685         gl_FUNC_LCHOWN.
11686
11687 2011-05-21  Eric Blake  <eblake@redhat.com>
11688
11689         strerror_r: avoid clobbering strerror on cygwin
11690         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
11691         fall back instead to sys_errlist.
11692         * modules/strerror (configure.ac): Add witness.
11693         * tests/test-strerror_r.c (main): Enhance test.
11694         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11695         * tests/test-perror2.c (main): Free memory before exit.
11696
11697 2011-05-21  Bruno Haible  <bruno@clisp.org>
11698
11699         mkdtemp: Use gnulib naming conventions.
11700         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
11701         * modules/mkdtemp (configure.ac): Update.
11702
11703 2011-05-20  Eric Blake  <eblake@redhat.com>
11704
11705         strerror_r: avoid corrupting errno on Solaris
11706         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
11707         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11708
11709         strerror_r: avoid compiler warning
11710         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
11711
11712         strerror_r: simplify AIX code
11713         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
11714
11715         test-perror: avoid spurious failure on FreeBSD
11716         * modules/perror-tests (Depends-on): Add strerror, now that
11717         strerror_r no longer pulls it in.
11718
11719 2011-05-20  Bruno Haible  <bruno@clisp.org>
11720
11721         strerror_r-posix: Remove unused dependencies.
11722         * modules/strerror_r-posix (Depends-on): Remove strerror.
11723         Reported by Eric Blake.
11724
11725 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11726
11727         intprops: remove assumption about A|B representation
11728         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
11729         is a valid integer if both A and B are.  Although this is true for
11730         all known practical hosts, the C standard doesn't guarantee it,
11731         and the code need not assume it.  Also, this change may work around
11732         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
11733         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
11734
11735 2011-05-20  Eric Blake  <eblake@redhat.com>
11736
11737         perror: work around FreeBSD bug
11738         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
11739         is broken.  Move AC_LIBOBJ...
11740         * modules/perror (configure.ac): Here.
11741         * doc/posix-functions/perror.texi (perror): Document this.
11742         * tests/test-perror2.c (main): Enhance test.
11743
11744         test-perror: check for strerror interactions
11745         * tests/macros.h (STREQ): Add macro.
11746         * modules/perror-tests (Files): Add second test.
11747         * tests/test-perror2.c (main): New file.
11748         * doc/posix-functions/perror.texi (perror): Document glibc bug.
11749
11750         test-perror: rewrite to use init script
11751         * modules/perror-tests (Files): Add init.sh.
11752         * tests/test-perror.sh: Use temporary directory.
11753
11754 2011-05-20  Jim Meyering  <meyering@redhat.com>
11755
11756         maint: replace misused "a" with "an"
11757         * doc/intprops.texi: "a integer"
11758         * doc/regex.texi: "a explanation"
11759         * lib/alignof.h: "a object"
11760         * lib/argmatch.h: "a explanation"
11761         * lib/argp-help.c: "a option" and "a OPTION_DOC"
11762         * lib/stdint.in.h: "a integer"
11763         * lib/userspec.c: "a owner"
11764         * doc/gnulib.texi: Fix "a idea", and reword.
11765
11766 2011-05-19  Jim Meyering  <meyering@redhat.com>
11767
11768         maint: correct misuse of "a" and "an"
11769         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
11770         * lib/argp-help.c: "an docum...": s/an/a/
11771         * lib/argp-parse.c: "An vector": s/An/A/
11772         * lib/execute.c: "an native": s/an/a/
11773         * lib/spawn-pipe.c: Likewise.
11774         * lib/gc.h: "an Gc_rc": s/an/a/
11775         * lib/unigbrk.in.h: "an grapheme": s/an/a/
11776         * lib/fts.c: "an stat.st_dev": s/an/a/
11777
11778 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11779
11780         intprops-tests: work around HP-UX 11.23 cc bug with constants
11781         * tests/test-intprops.c (VERIFY): New macro.
11782         (main): Use it, instead of verify, to work around the compiler bug; see
11783         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11784
11785         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
11786         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
11787         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
11788         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
11789         (_GL_REMAINDER_OVERFLOW): Use it.
11790
11791         intprops-tests: revert unsigned part of previous change
11792         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
11793         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
11794         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
11795         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
11796
11797 2011-05-19  Bruno Haible  <bruno@clisp.org>
11798
11799         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
11800         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
11801         strerror_r() returned without filling the buffer.
11802         Reported by Eric Blake.
11803
11804 2011-05-19  Eric Blake  <eblake@redhat.com>
11805
11806         strerror_r: guarantee unchanged errno
11807         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
11808         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
11809         failure.
11810         * tests/test-strerror_r.c (main): Enhance test.
11811
11812 2011-05-19  Bruno Haible  <bruno@clisp.org>
11813
11814         strerror_r: Reorder #if blocks.
11815         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
11816         for consistency with the previous commit.
11817
11818 2011-05-19  Bruno Haible  <bruno@clisp.org>
11819
11820         perror: Avoid clobbering the strerror buffer when possible.
11821         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
11822         * lib/strerror.c: Include it.
11823         * modules/strerror (Files): Add lib/strerror-impl.h.
11824         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
11825         (my_strerror): New function, defined through lib/strerror-impl.h.
11826         (perror): Use it instead of strerror.
11827         * modules/perror (Files): Add lib/strerror-impl.h.
11828         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
11829
11830 2011-05-19  Eric Blake  <eblake@redhat.com>
11831
11832         strerror_r: fix on newer cygwin
11833         * lib/strerror_r.c (strerror_r): Cygwin now has
11834         __xpg_strerror_r, use it.
11835
11836 2011-05-19  Bruno Haible  <bruno@clisp.org>
11837
11838         strerror_r: Avoid clobbering the strerror buffer when possible.
11839         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
11840         (sys_nerr, sys_errlist): New declarations.
11841         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
11842         HP-UX, native Win32, IRIX, and 32-bit Solaris.
11843         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
11844
11845 2011-05-19  Bruno Haible  <bruno@clisp.org>
11846
11847         strerror_r: Fix test failure on mingw.
11848         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
11849         EXTEND_STRERROR_R.
11850         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
11851         macros from errno.in.h instead.
11852
11853 2011-05-19  Eric Blake  <eblake@redhat.com>
11854
11855         strerror: relax test for Solaris
11856         * tests/test-strerror.c (main): Permit Solaris behavior.
11857         * tests/test-strerror_r.c (main): Likewise.
11858
11859         strerror: enforce POSIX ruling on strerror(0)
11860         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
11861         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11862         * lib/strerror_r.c (rpl_strerror_r): Work around it.
11863         * doc/posix-functions/strerror.texi (strerror): Document it.
11864         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
11865         * tests/test-strerror.c (main): Strengthen test.
11866         * tests/test-strerror_r.c (main): Likewise.
11867
11868 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11869
11870         intprop-tests: port to older and more-pedantic compilers
11871         * modules/intprops-tests (Files): Add tests/macros.h.
11872         * tests/test-intprops.c: Include macros.h.
11873         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
11874         it's no longer documented to expand to an integer constant expression.
11875         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
11876         argument is floating point, as it's no longer documented to expand
11877         to an integer constant expression in that case.
11878         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
11879         compiler bugs reported by Bruno Haible.  See
11880         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11881         (U0, U1): New constants, to work around the same bugs.  Also,
11882         in tests, use e.g., "(unsigned int) 39" rather than "39u".
11883
11884         intprops: work around C compiler bugs
11885         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
11886         bug in Sun C 5.11 2010/08/13 and other compilers; see
11887         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11888
11889         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
11890         * doc/intprops.texi (Integer Type Determination): Fix
11891         documentation for TYPE_IS_INTEGER: it returns an constant
11892         expression, not an integer constant expression.  Fix doc for
11893         TYPE_SIGNED: it returns an integer constant expression only if its
11894         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
11895         hardly worth documented that way....)
11896
11897 2011-05-18  Bruno Haible  <bruno@clisp.org>
11898
11899         strerror_r: Avoid clobbering the strerror buffer when possible.
11900         * lib/strerror_r.c (strerror_r): Merge the three implementations.
11901         Handle gnulib defined errno values here. When strerror() returns NULL
11902         or an empty string, return EINVAL.
11903         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
11904         gnulib defined errno values here.
11905         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
11906
11907 2011-05-18  Eric Blake  <eblake@redhat.com>
11908
11909         fnmatch: avoid compiler warning
11910         * lib/fnmatch_loop.c (FCT): Use correct type.
11911         Reported by Matthias Bolte.
11912
11913 2011-05-13  Jim Meyering  <meyering@redhat.com>
11914
11915         maint.mk: three new prohibit_<HDR>_without_use rules
11916         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
11917         (sc_prohibit_stdio-safer_without_use): Likewise.
11918         (sc_prohibit_xfreopen_without_use): Likewise.
11919
11920 2011-05-17  Jim Meyering  <meyering@redhat.com>
11921
11922         announce-gen: fail if the NEWS delta is empty
11923         If there's nothing noteworthy in NEWS, then either you forgot
11924         or you shouldn't be releasing.
11925         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
11926
11927 2011-05-17  Pádraig Brady <P@draigBrady.com>
11928
11929         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
11930         reserved symbols starting with double underscore from the check.
11931
11932 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
11933
11934         intprops: add doc
11935         * doc/intprops.texi: New file, documenting intprops.
11936         * doc/gnulib.texi (Particular Modules): Include it.
11937
11938         verify: add doc to gnulib manual and fix example
11939         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
11940         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
11941         (Compile-time Assertions): Fix example so it can't overflow.
11942
11943 2011-05-17  Jim Meyering  <meyering@redhat.com>
11944
11945         warnings.m4: don't usurp save_CPPFLAGS variable name
11946         * m4/warnings.m4: Prefix local temporary variable name with gl_.
11947
11948         doc: fix typo
11949         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
11950
11951 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11952             Bruno Haible  <bruno@clisp.org>
11953
11954         doc: Tweak recent change.
11955         * README (Portability guidelines): Tweak new text.
11956         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
11957         Interix 6.1.
11958
11959 2011-05-16  Eric Blake  <eblake@redhat.com>
11960
11961         inttypes: avoid autoconf warning
11962         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
11963         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11964
11965 2011-05-16  Sam Steingold <sds@gnu.org>
11966         and Eric Blake  <eblake@redhat.com>
11967
11968         vc-list-files: accept multiple directory operands
11969         * build-aux/vc-list-files: Iterate over all remaining operands.
11970
11971 2011-05-16  Bruno Haible  <bruno@clisp.org>
11972
11973         Fix confusion regarding deprecated modules.
11974         * modules/calloc (Status, Notice): Mark module as deprecated, not
11975         obsolete.
11976         * modules/fnmatch-posix (Status, Notice): Likewise.
11977         * modules/getdate (Status, Notice): Likewise.
11978         * modules/getopt (Status, Notice): Likewise.
11979         * modules/malloc (Status, Notice): Likewise.
11980         * modules/pipe (Status, Notice): Likewise.
11981         * modules/realloc (Status, Notice): Likewise.
11982         * modules/rename-dest-slash (Status, Notice): Likewise.
11983         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
11984         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
11985         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
11986         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
11987         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
11988
11989 2011-05-16  Bruno Haible  <bruno@clisp.org>
11990
11991         doc: List the target platforms.
11992         * doc/gnulib-intro.texi (Target Platforms): New section.
11993         * doc/gnulib.texi (Introduction): Update menu.
11994         * README (Portability guidelines): Refer to the new section. Update
11995         statement about oldest supported environment. Remove rationale why
11996         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
11997         unportable C89 function.
11998         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
11999         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
12000
12001 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12002
12003         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
12004
12005 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
12006
12007         intprops-tests: new module
12008         * modules/intprops-tests, tests/test-intprops.c: New files.
12009
12010         intprops: add safe, portable integer overflow checking
12011         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
12012         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
12013         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
12014         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
12015         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
12016         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
12017         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
12018         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
12019         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
12020         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
12021         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
12022
12023 2011-05-12  James Youngman  <jay@gnu.org>
12024
12025         Add a test for glibc's Bugzilla bug #12378.
12026         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
12027         doesn't allow the literal matching of a lone "[" (which is
12028         required by POSIX).
12029         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
12030
12031 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
12032
12033         Sync glibc change fixing Bugzilla bug #12378.
12034         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
12035         beginning and fall back to matching as normal character if the
12036         string ends before the matching ']' is found.  This is what POSIX
12037         requires.
12038
12039 2011-05-13  Eric Blake  <eblake@redhat.com>
12040
12041         getcwd-lgpl: relax test for FreeBSD
12042         * doc/posix-functions/getcwd.texi (getcwd): Document portability
12043         issue.
12044         * tests/test-getcwd-lgpl.c (main): Relax test.
12045         Reported by Matthias Bolte.
12046
12047 2011-05-11  Eric Blake  <eblake@redhat.com>
12048
12049         test-fflush: silence compiler warning
12050         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
12051
12052 2011-05-11  Bruno Haible  <bruno@clisp.org>
12053
12054         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
12055         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
12056         * modules/canonicalize (Depends-on): Add 'nocrash'.
12057         * modules/canonicalize-lgpl (Depends-on): Likewise.
12058         * doc/posix-functions/realpath.texi: Update platforms list.
12059         Reported by Ryan Schmidt <ryandesign@macports.org>.
12060
12061 2011-05-11  Bruno Haible  <bruno@clisp.org>
12062
12063         group-member: Declare function in <unistd.h>.
12064         * lib/unistd.in.h (group_member): New declaration.
12065         * lib/group-member.h: Remove file.
12066         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
12067         * tests/test-unistd-c++.cc: Check signature of group_member.
12068         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
12069         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
12070         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
12071         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
12072         HAVE_GROUP_MEMBER.
12073         * modules/group-member (Files): Remove lib/group-member.h.
12074         (Depends-on): Add unistd. Specify conditions.
12075         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12076         (Include): Change to <unistd.h>.
12077         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
12078         HAVE_GROUP_MEMBER.
12079         * NEWS: Mention the change.
12080         * lib/euidaccess.c: Don't include group-member.h.
12081
12082 2011-05-11  Bruno Haible  <bruno@clisp.org>
12083
12084         group-member: Document module.
12085         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
12086         module.
12087
12088 2011-05-11  Bruno Haible  <bruno@clisp.org>
12089
12090         fclose: Fix mistake earlier today.
12091         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
12092
12093 2011-05-11  Eric Blake  <eblake@redhat.com>
12094
12095         fclose: preserve fflush errors
12096         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
12097         Reported by Jim Meyering.
12098
12099         bootstrap: support a prereq of 'rpcgen -' on RHEL5
12100         * build-aux/bootstrap (check_versions): When no specific version
12101         is required, merely check that the app produces an exit status
12102         that indicates its existence.
12103
12104         maint.mk: drop redundant check
12105         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
12106         the same but better.
12107
12108 2011-05-11  Bruno Haible  <bruno@clisp.org>
12109
12110         fclose: Fix possible link error.
12111         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
12112         unregister_shadow_fd. Improve comments.
12113         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
12114         Eric Blake.
12115
12116 2011-05-11  Jim Meyering  <meyering@redhat.com>
12117
12118         maint.mk: improve "can not" detection and generalize rule name
12119         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
12120         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
12121         Use the same technique as in sc_prohibit_doubled_word, so that
12122         we recognize "can not" also when the words are separated by a newline.
12123         Suggested by Eric Blake.
12124         (perl_filename_lineno_text_): Define.  Factored out of...
12125         (prohibit_doubled_word_): ...here.  Use the new definition.
12126         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
12127         (prohibit_undesirable_word_seq_RE_): New overridable variable.
12128         (ignore_undesirable_word_sequence_RE_): New overridable variable.
12129
12130 2011-05-10  Eric Blake  <eblake@redhat.com>
12131
12132         fclose: avoid double close race when possible
12133         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
12134         all but WINDOWS_SOCKETS.
12135
12136 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
12137
12138         openat: correct new comment
12139         * lib/openat-proc.c (openat_proc_name): Correct the comment.
12140
12141 2011-05-10  Jim Meyering  <meyering@redhat.com>
12142
12143         openat: add comments
12144         * lib/openat-proc.c (openat_proc_name): Add comments,
12145         mostly from Eric Blake.
12146
12147 2011-05-09  Eric Blake  <eblake@redhat.com>
12148
12149         openat: reduce syscalls in first probe of /proc
12150         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
12151         be a directory.  Simplify the probe for .. bugs.
12152         * modules/openat (Depends-on): Drop same-inode.
12153         Reported by Bastien ROUCARIES.
12154
12155 2011-05-09  Jim Meyering  <meyering@redhat.com>
12156
12157         maint.mk: change semantics/name of tight_scope variables
12158         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
12159         Rename variables to align with semantics that make them more useful.
12160
12161         maint.mk: tweak new rule's name not to impinge
12162         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
12163         (sc_tight_scope): Use new rule name rather than $@-0.
12164
12165         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
12166         * top/maint.mk (sc_tight_scope): New rule.
12167         (sc_tight_scope-0): New rule, ifdef'd out.
12168         (_gl_TS_dir): Default.
12169         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
12170         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
12171
12172 2011-05-09  Simon Josefsson  <simon@josefsson.org>
12173
12174         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
12175         Haible <bruno@clisp.org>.
12176
12177 2011-05-08  Bruno Haible  <bruno@clisp.org>
12178
12179         Comments.
12180         * m4/isnanf.m4: Add comment.
12181         * m4/isnanl.m4: Likewise.
12182
12183 2011-05-08  Bruno Haible  <bruno@clisp.org>
12184
12185         glob: Remove obsolete macro.
12186         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
12187
12188 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
12189
12190         intprops: Sun C 5.11 supports __typeof__
12191         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
12192         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
12193         which is new.
12194         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
12195
12196         intprops: switch to usual gnulib indenting and naming
12197         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
12198         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
12199
12200         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
12201
12202 2011-05-08  Jim Meyering  <meyering@redhat.com>
12203
12204         maint.mk: suppress "Entering/Leaving directory" diag in announcement
12205         * top/maint.mk (release-prep): Use make's --no-print-directory
12206         option when generating the announcement.  This eliminates the
12207         pesky "make[2]: Entering/Leaving directory" diagnostics in the
12208         generated announcement template.
12209
12210 2011-05-08  Bruno Haible  <bruno@clisp.org>
12211
12212         tzset: Fix gettimeofday wrapper on Solaris 2.6.
12213         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
12214         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
12215
12216 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
12217
12218         ignore-value, verify: Omit include files from lib_SOURCES.
12219         * modules/ignore-value, modules/verify (Makefile.am):
12220         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
12221         that leads Automake to duplicate use of am__objects_... variables
12222         in Makefile.in.  See
12223         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
12224
12225 2011-05-07  Bruno Haible  <bruno@clisp.org>
12226
12227         fclose: Simplify autoconf macro.
12228         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
12229         defined.
12230
12231 2011-05-07  Bruno Haible  <bruno@clisp.org>
12232
12233         canonicalize-lgpl: Fix autoconf macro ordering bug.
12234         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
12235         gl_STDLIB_H_DEFAULTS.
12236
12237 2011-05-06  Eric Blake  <eblake@redhat.com>
12238
12239         maintainer-makefile: make sc_po_check easier to tune
12240         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
12241         to probe for strings, such as an alternate location for gnulib.
12242
12243         fclose: guarantee behavior on seekable stdin
12244         * modules/fclose (Depends-on): Add fflush.
12245         * doc/posix-functions/fclose.texi (fclose): Document this.
12246         * tests/test-fclose.c (main): Make test for this unconditional.
12247
12248 2011-05-06  Bruno Haible  <bruno@clisp.org>
12249
12250         fflush, fpurge: Relicense under LGPLv2+.
12251         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
12252         * modules/fpurge (License): Likewise.
12253         With permission from Eric Blake and Jim Meyering.
12254         Suggested by Eric Blake.
12255
12256 2011-05-06  Karl Berry  <karl@gnu.org>
12257
12258         * MODULES.html.sh (func_all_modules): remove exit.
12259
12260 2011-05-06  Jim Meyering  <meyering@redhat.com>
12261
12262         maint.mk: use info-gnu@ as the default only for a stable release
12263         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
12264         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
12265         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
12266         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
12267
12268 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12269
12270         assert-h: new module, which supports C1X-style static_assert
12271         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
12272         * lib/verify.h: Revamp so that this can be copied into assert.h,
12273         while retaining the ability to use it standalone as before.
12274         Rename private identifiers so as not to encroach on the
12275         standard C namespace, since this is now used by assert.h.
12276         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
12277         the old verify_true.
12278         (_GL_VERIFY_TRUE): New macro, with much of the contents of
12279         the old verify_true.  Use _GL_VERIFY_TYPE.
12280         (_GL_VERIFY): New macro, with much of the contents of the old verify.
12281         (static_assert): New macro, if _GL_STATIC_ASSERT_H
12282         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
12283         defined when this file is copied into the replacement assert.h.
12284         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
12285         and _Static_assert is not built in.
12286         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
12287         defined, and use the new macros mentioned above.
12288         * doc/posix-headers/assert.texi: Document this.
12289
12290 2011-05-05  Bruno Haible  <bruno@clisp.org>
12291
12292         fclose, fflush: Respect rules for use of AC_LIBOBJ.
12293         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
12294         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
12295         gl_REPLACE_FCLOSE here.
12296         * modules/fflush (Depends-on): Remove fclose.
12297         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
12298         combination with module 'fclose'.
12299
12300 2011-05-05  Bruno Haible  <bruno@clisp.org>
12301
12302         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
12303         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
12304         gl_FUNC_FFLUSH.
12305         (gl_FUNC_FFLUSH): Use it.
12306         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
12307         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
12308         gl_REPLACE_FSEEKO here.
12309
12310 2011-05-05  Bruno Haible  <bruno@clisp.org>
12311
12312         tzset: Relicense under LGPL.
12313         * modules/tzset (License): Change to LGPL.
12314         No agreement needed; it's a no-op.
12315
12316         strtoimax, strtoumax: Relicense under LGPL.
12317         * modules/strtoimax (License): Change to LGPL.
12318         * modules/strtoumax (License): Likewise.
12319         With permission from Jim Meyering, Paul Eggert:
12320         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
12321         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
12322
12323         getgroups: Relicense under LGPL.
12324         * modules/getgroups (License): Change to LGPL.
12325         With permission from Jim Meyering, Paul Eggert, Eric Blake:
12326         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12327         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12328         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12329
12330         nanosleep: Relicense under LGPL.
12331         * modules/nanosleep (License): Change to LGPL.
12332         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
12333         Haible:
12334         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12335         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12336         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12337         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12338
12339         futimens: Relicense under LGPL.
12340         * modules/futimens (License): Change to LGPL.
12341         With permission from Eric Blake:
12342         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12343
12344         fflush: Relicense under LGPL.
12345         * modules/fflush (License): Change to LGPL.
12346         With permission from Eric Blake, Bruno Haible, Jim Meyering:
12347         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12348         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12349         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
12350
12351         tmpfile: Relicense under LGPL.
12352         * modules/tmpfile (License): Change to LGPL.
12353         With permission from Ben Pfaff:
12354         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12355
12356         isfinite: Relicense under LGPL.
12357         * modules/isfinite (License): Change to LGPL.
12358         With permission from Ben Pfaff, Bruno Haible:
12359         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12360         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
12361
12362         acosl..tanl: Relicense under LGPL.
12363         * modules/acosl (License): Change to LGPL.
12364         * modules/asinl (License): Likewise.
12365         * modules/atanl (License): Likewise.
12366         * modules/cosl (License): Likewise.
12367         * modules/expl (License): Likewise.
12368         * modules/logl (License): Likewise.
12369         * modules/sinl (License): Likewise.
12370         * modules/sqrtl (License): Likewise.
12371         * modules/tanl (License): Likewise.
12372         Source code originally from glibc and Paolo Bonzini. Agreements:
12373         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
12374         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
12375
12376 2011-05-05  Bruno Haible  <bruno@clisp.org>
12377
12378         signal: Define sighandler_t.
12379         * lib/signal.in.h (sighandler_t): New type.
12380         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
12381         whether sighandler_t is defined.
12382         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
12383         * modules/signal (Depends-on): Add extensions.
12384         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
12385         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
12386         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
12387
12388 2011-05-05  Eric Blake  <eblake@redhat.com>
12389
12390         maint: remove useless REPLACE_*_H macros
12391         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
12392         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12393         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12394         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
12395         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12396         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12397         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
12398         * m4/btowc.m4: Update callers.
12399         * m4/dirfd.m4: Likewise.
12400         * m4/duplocale.m4: Likewise.
12401         * m4/fchdir.m4: Likewise.
12402         * m4/fdopendir.m4: Likewise.
12403         * m4/inet_ntop.m4: Likewise.
12404         * m4/inet_pton.m4: Likewise.
12405         * m4/ioctl.m4: Likewise.
12406         * m4/mbrlen.m4: Likewise.
12407         * m4/mbrtowc.m4: Likewise.
12408         * m4/mbsinit.m4: Likewise.
12409         * m4/mbsnrtowcs.m4: Likewise.
12410         * m4/mbsrtowcs.m4: Likewise.
12411         * m4/poll.m4: Likewise.
12412         * m4/setlocale.m4: Likewise.
12413         * m4/wcrtomb.m4: Likewise.
12414         * m4/wcsnrtombs.m4: Likewise.
12415         * m4/wcsrtombs.m4: Likewise.
12416         * m4/wctob.m4: Likewise.
12417         * m4/wcwidth.m4: Likewise.
12418         * modules/posix_spawn: Likewise.
12419         * modules/posix_spawn_file_actions_addclose: Likewise.
12420         * modules/posix_spawn_file_actions_adddup2: Likewise.
12421         * modules/posix_spawn_file_actions_addopen: Likewise.
12422         * modules/posix_spawn_file_actions_destroy: Likewise.
12423         * modules/posix_spawn_file_actions_init: Likewise.
12424         * modules/posix_spawnattr_destroy: Likewise.
12425         * modules/posix_spawnattr_getflags: Likewise.
12426         * modules/posix_spawnattr_getpgroup: Likewise.
12427         * modules/posix_spawnattr_getschedparam: Likewise.
12428         * modules/posix_spawnattr_getschedpolicy: Likewise.
12429         * modules/posix_spawnattr_getsigdefault: Likewise.
12430         * modules/posix_spawnattr_getsigmask: Likewise.
12431         * modules/posix_spawnattr_init: Likewise.
12432         * modules/posix_spawnattr_setflags: Likewise.
12433         * modules/posix_spawnattr_setpgroup: Likewise.
12434         * modules/posix_spawnattr_setschedparam: Likewise.
12435         * modules/posix_spawnattr_setschedpolicy: Likewise.
12436         * modules/posix_spawnattr_setsigdefault: Likewise.
12437         * modules/posix_spawnattr_setsigmask: Likewise.
12438         * modules/posix_spawnp: Likewise.
12439
12440 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
12441
12442         Add option to do-release-commit-and-tag to specify branch.
12443         * build-aux/do-release-commit-and-tag: Add --branch.
12444
12445 2011-05-03  Bruno Haible  <bruno@clisp.org>
12446
12447         Avoid unnecessary compilation units, through conditional dependencies.
12448         * modules/accept (Depends-on): Add conditions to the dependencies.
12449         * modules/acosl (Depends-on): Likewise.
12450         * modules/argz (Depends-on): Likewise.
12451         * modules/asinl (Depends-on): Likewise.
12452         * modules/atanl (Depends-on): Likewise.
12453         * modules/atoll (Depends-on): Likewise.
12454         * modules/bind (Depends-on): Likewise.
12455         * modules/btowc (Depends-on): Likewise.
12456         * modules/canonicalize-lgpl (Depends-on): Likewise.
12457         * modules/ceil (Depends-on): Likewise.
12458         * modules/ceilf (Depends-on): Likewise.
12459         * modules/ceill (Depends-on): Likewise.
12460         * modules/chdir-long (Depends-on): Likewise.
12461         * modules/chown (Depends-on): Likewise.
12462         * modules/close (Depends-on): Likewise.
12463         * modules/connect (Depends-on): Likewise.
12464         * modules/cosl (Depends-on): Likewise.
12465         * modules/dirfd (Depends-on): Likewise.
12466         * modules/dprintf (Depends-on): Likewise.
12467         * modules/dprintf-posix (Depends-on): Likewise.
12468         * modules/error (Depends-on): Likewise.
12469         * modules/euidaccess (Depends-on): Likewise.
12470         * modules/expl (Depends-on): Likewise.
12471         * modules/faccessat (Depends-on): Likewise.
12472         * modules/fchdir (Depends-on): Likewise.
12473         * modules/fclose (Depends-on): Likewise.
12474         * modules/fcntl (Depends-on): Likewise.
12475         * modules/fdopendir (Depends-on): Likewise.
12476         * modules/fflush (Depends-on): Likewise.
12477         * modules/floor (Depends-on): Likewise.
12478         * modules/floorf (Depends-on): Likewise.
12479         * modules/floorl (Depends-on): Likewise.
12480         * modules/fnmatch (Depends-on): Likewise.
12481         * modules/fopen (Depends-on): Likewise.
12482         * modules/fprintf-posix (Depends-on): Likewise.
12483         * modules/frexp (Depends-on): Likewise.
12484         * modules/frexp-nolibm (Depends-on): Likewise.
12485         * modules/frexpl (Depends-on): Likewise.
12486         * modules/frexpl-nolibm (Depends-on): Likewise.
12487         * modules/fseek (Depends-on): Likewise.
12488         * modules/fsusage (Depends-on): Likewise.
12489         * modules/ftell (Depends-on): Likewise.
12490         * modules/ftello (Depends-on): Likewise.
12491         * modules/futimens (Depends-on): Likewise.
12492         * modules/getcwd (Depends-on): Likewise.
12493         * modules/getcwd-lgpl (Depends-on): Likewise.
12494         * modules/getdelim (Depends-on): Likewise.
12495         * modules/getdomainname (Depends-on): Likewise.
12496         * modules/getgroups (Depends-on): Likewise.
12497         * modules/gethostname (Depends-on): Likewise.
12498         * modules/getline (Depends-on): Likewise.
12499         * modules/getlogin_r (Depends-on): Likewise.
12500         * modules/getopt-posix (Depends-on): Likewise.
12501         * modules/getpeername (Depends-on): Likewise.
12502         * modules/getsockname (Depends-on): Likewise.
12503         * modules/getsockopt (Depends-on): Likewise.
12504         * modules/getsubopt (Depends-on): Likewise.
12505         * modules/getusershell (Depends-on): Likewise.
12506         * modules/glob (Depends-on): Likewise.
12507         * modules/grantpt (Depends-on): Likewise.
12508         * modules/iconv_open (Depends-on): Likewise.
12509         * modules/iconv_open-utf (Depends-on): Likewise.
12510         * modules/inet_ntop (Depends-on): Likewise.
12511         * modules/inet_pton (Depends-on): Likewise.
12512         * modules/ioctl (Depends-on): Likewise.
12513         * modules/isapipe (Depends-on): Likewise.
12514         * modules/isfinite (Depends-on): Likewise.
12515         * modules/isinf (Depends-on): Likewise.
12516         * modules/lchown (Depends-on): Likewise.
12517         * modules/ldexpl (Depends-on): Likewise.
12518         * modules/link (Depends-on): Likewise.
12519         * modules/linkat (Depends-on): Likewise.
12520         * modules/listen (Depends-on): Likewise.
12521         * modules/logl (Depends-on): Likewise.
12522         * modules/lstat (Depends-on): Likewise.
12523         * modules/mbrlen (Depends-on): Likewise.
12524         * modules/mbrtowc (Depends-on): Likewise.
12525         * modules/mbsinit (Depends-on): Likewise.
12526         * modules/mbsnrtowcs (Depends-on): Likewise.
12527         * modules/mbsrtowcs (Depends-on): Likewise.
12528         * modules/mbtowc (Depends-on): Likewise.
12529         * modules/memcmp (Depends-on): Likewise.
12530         * modules/mkdir (Depends-on): Likewise.
12531         * modules/mkdtemp (Depends-on): Likewise.
12532         * modules/mkfifo (Depends-on): Likewise.
12533         * modules/mkfifoat (Depends-on): Likewise.
12534         * modules/mknod (Depends-on): Likewise.
12535         * modules/mkostemp (Depends-on): Likewise.
12536         * modules/mkostemps (Depends-on): Likewise.
12537         * modules/mkstemp (Depends-on): Likewise.
12538         * modules/mkstemps (Depends-on): Likewise.
12539         * modules/mktime (Depends-on): Likewise.
12540         * modules/nanosleep (Depends-on): Likewise.
12541         * modules/open (Depends-on): Likewise.
12542         * modules/openat (Depends-on): Likewise.
12543         * modules/perror (Depends-on): Likewise.
12544         * modules/poll (Depends-on): Likewise.
12545         * modules/popen (Depends-on): Likewise.
12546         * modules/posix_spawn (Depends-on): Likewise.
12547         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
12548         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
12549         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
12550         * modules/posix_spawnp (Depends-on): Likewise.
12551         * modules/pread (Depends-on): Likewise.
12552         * modules/printf-posix (Depends-on): Likewise.
12553         * modules/ptsname (Depends-on): Likewise.
12554         * modules/putenv (Depends-on): Likewise.
12555         * modules/pwrite (Depends-on): Likewise.
12556         * modules/readline (Depends-on): Likewise.
12557         * modules/readlink (Depends-on): Likewise.
12558         * modules/readlinkat (Depends-on): Likewise.
12559         * modules/recv (Depends-on): Likewise.
12560         * modules/recvfrom (Depends-on): Likewise.
12561         * modules/regex (Depends-on): Likewise.
12562         * modules/remove (Depends-on): Likewise.
12563         * modules/rename (Depends-on): Likewise.
12564         * modules/renameat (Depends-on): Likewise.
12565         * modules/rmdir (Depends-on): Likewise.
12566         * modules/round (Depends-on): Likewise.
12567         * modules/roundf (Depends-on): Likewise.
12568         * modules/roundl (Depends-on): Likewise.
12569         * modules/rpmatch (Depends-on): Likewise.
12570         * modules/select (Depends-on): Likewise.
12571         * modules/send (Depends-on): Likewise.
12572         * modules/sendto (Depends-on): Likewise.
12573         * modules/setenv (Depends-on): Likewise.
12574         * modules/setlocale (Depends-on): Likewise.
12575         * modules/setsockopt (Depends-on): Likewise.
12576         * modules/shutdown (Depends-on): Likewise.
12577         * modules/sigaction (Depends-on): Likewise.
12578         * modules/signbit (Depends-on): Likewise.
12579         * modules/sigprocmask (Depends-on): Likewise.
12580         * modules/sinl (Depends-on): Likewise.
12581         * modules/sleep (Depends-on): Likewise.
12582         * modules/snprintf (Depends-on): Likewise.
12583         * modules/snprintf-posix (Depends-on): Likewise.
12584         * modules/socket (Depends-on): Likewise.
12585         * modules/sprintf-posix (Depends-on): Likewise.
12586         * modules/sqrtl (Depends-on): Likewise.
12587         * modules/stat (Depends-on): Likewise.
12588         * modules/strchrnul (Depends-on): Likewise.
12589         * modules/strdup-posix (Depends-on): Likewise.
12590         * modules/strerror (Depends-on): Likewise.
12591         * modules/strerror_r-posix (Depends-on): Likewise.
12592         * modules/strndup (Depends-on): Likewise.
12593         * modules/strnlen (Depends-on): Likewise.
12594         * modules/strptime (Depends-on): Likewise.
12595         * modules/strsep (Depends-on): Likewise.
12596         * modules/strsignal (Depends-on): Likewise.
12597         * modules/strstr-simple (Depends-on): Likewise.
12598         * modules/strtod (Depends-on): Likewise.
12599         * modules/strtoimax (Depends-on): Likewise.
12600         * modules/strtok_r (Depends-on): Likewise.
12601         * modules/strtoumax (Depends-on): Likewise.
12602         * modules/symlink (Depends-on): Likewise.
12603         * modules/symlinkat (Depends-on): Likewise.
12604         * modules/tanl (Depends-on): Likewise.
12605         * modules/tcgetsid (Depends-on): Likewise.
12606         * modules/tmpfile (Depends-on): Likewise.
12607         * modules/trunc (Depends-on): Likewise.
12608         * modules/truncf (Depends-on): Likewise.
12609         * modules/truncl (Depends-on): Likewise.
12610         * modules/uname (Depends-on): Likewise.
12611         * modules/unlink (Depends-on): Likewise.
12612         * modules/unlockpt (Depends-on): Likewise.
12613         * modules/unsetenv (Depends-on): Likewise.
12614         * modules/usleep (Depends-on): Likewise.
12615         * modules/utimensat (Depends-on): Likewise.
12616         * modules/vasprintf (Depends-on): Likewise.
12617         * modules/vdprintf (Depends-on): Likewise.
12618         * modules/vdprintf-posix (Depends-on): Likewise.
12619         * modules/vfprintf-posix (Depends-on): Likewise.
12620         * modules/vprintf-posix (Depends-on): Likewise.
12621         * modules/vsnprintf (Depends-on): Likewise.
12622         * modules/vsnprintf-posix (Depends-on): Likewise.
12623         * modules/vsprintf-posix (Depends-on): Likewise.
12624         * modules/wcrtomb (Depends-on): Likewise.
12625         * modules/wcscasecmp (Depends-on): Likewise.
12626         * modules/wcscspn (Depends-on): Likewise.
12627         * modules/wcsdup (Depends-on): Likewise.
12628         * modules/wcsncasecmp (Depends-on): Likewise.
12629         * modules/wcsnrtombs (Depends-on): Likewise.
12630         * modules/wcspbrk (Depends-on): Likewise.
12631         * modules/wcsrtombs (Depends-on): Likewise.
12632         * modules/wcsspn (Depends-on): Likewise.
12633         * modules/wcsstr (Depends-on): Likewise.
12634         * modules/wcstok (Depends-on): Likewise.
12635         * modules/wcswidth (Depends-on): Likewise.
12636         * modules/wctob (Depends-on): Likewise.
12637         * modules/wctomb (Depends-on): Likewise.
12638         * modules/wctype (Depends-on): Likewise.
12639         * modules/wcwidth (Depends-on): Likewise.
12640         * modules/write (Depends-on): Likewise.
12641
12642 2011-05-03  Bruno Haible  <bruno@clisp.org>
12643
12644         Support for conditional dependencies.
12645         * doc/gnulib.texi (Module description): Document the syntax of
12646         conditional dependencies.
12647         * gnulib-tool: New option --conditional-dependencies.
12648         (func_usage): Document it.
12649         (cond_dependencies): New variable.
12650         (func_get_automake_snippet_conditional,
12651         func_get_automake_snippet_unconditional): New functions, extracted from
12652         func_get_automake_snippet.
12653         (func_get_automake_snippet): Use them.
12654         (sed_first_32_chars): New variable.
12655         (func_module_shellfunc_name): New function.
12656         (func_module_shellvar_name): New function.
12657         (func_module_conditional_name): New function.
12658         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
12659         func_cond_module_condition): New functions.
12660         (func_modules_transitive_closure): Add support for conditional
12661         dependencies.
12662         (func_emit_lib_Makefile_am): For a conditional module, enclose the
12663         conditional automake snippet in an automake conditional.
12664         (func_emit_autoconf_snippets): Emit shell functions that contain the
12665         code for conditional modules.
12666         (func_import, func_create_testdir): Update specification.
12667
12668 2011-05-03  Eric Blake  <eblake@redhat.com>
12669
12670         test-getaddrinfo: report error information
12671         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
12672
12673 2011-05-03  Jim Meyering  <meyering@redhat.com>
12674
12675         bootstrap: avoid build failure when $GZIP is set
12676         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
12677         program name.  If defined at all, it is supposed to list gzip options.
12678         Reported by Alan Curry in http://debbugs.gnu.org/8609
12679
12680 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
12681
12682         readme-release: new module with release instructions
12683         * modules/readme-release: New module.
12684         * top/README-release: New file, from coreutils, grep, diffutils.
12685         * MODULES.html.sh (Support for maintaining and releasing): Add it.
12686
12687 2011-05-02  Eric Blake  <eblake@redhat.com>
12688
12689         fflush: also replace fclose when fixing fflush
12690         * modules/fflush (Depends-on): Add fclose.
12691         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
12692         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
12693         memstreams with no backing fd.
12694         * doc/posix-functions/fclose.texi (fclose): Document the use of
12695         fflush module to fix the bug.
12696         * tests/test-fclose.c (main): Relax test when fclose is used in
12697         isolation.
12698
12699         fclose: add some tests
12700         * modules/fclose-tests: New test module.
12701         * tests/test-fclose.c: New file.
12702         * doc/posix-functions/fclose.texi (fclose): Document the bug.
12703
12704         fclose: reduced dependencies
12705         * modules/fclose (Depends-on): Switch from fflush/fseeko to
12706         simpler lseek.
12707         * lib/fclose.c (rpl_fclose): Likewise.
12708         Reported by Simon Josefsson.
12709
12710         exit: drop remaining clients
12711         * modules/argmatch (Depends-on): Replace exit with stdlib.
12712         * modules/copy-file (Depends-on): Likewise.
12713         * modules/execute (Depends-on): Likewise.
12714         * modules/exitfail (Depends-on): Likewise.
12715         * modules/obstack (Depends-on): Likewise.
12716         * modules/pagealign_alloc (Depends-on): Likewise.
12717         * modules/pipe-filter-gi (Depends-on): Likewise.
12718         * modules/pipe-filter-ii (Depends-on): Likewise.
12719         * modules/savewd (Depends-on): Likewise.
12720         * modules/spawn-pipe (Depends-on): Likewise.
12721         * modules/wait-process (Depends-on): Likewise.
12722         * modules/xsetenv (Depends-on): Likewise.
12723         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
12724         * modules/git-merge-changelog (Depends-on): Likewise.
12725         * modules/long-options (Depends-on): Likewise.
12726         * modules/pt_chown (Depends-on): Likewise.
12727         * modules/sysexits (Depends-on): Likewise.
12728
12729         freading: relax license from LGPLv3+ to LGPLv2+
12730         * modules/freading (License): Relax LGPL version.
12731
12732 2011-05-02  Bruno Haible  <bruno@clisp.org>
12733
12734         fchdir: Remove unused dependencies.
12735         * modules/fchdir (Depends-on): Remove include_next.
12736
12737 2011-05-02  Bruno Haible  <bruno@clisp.org>
12738
12739         gnulib-tool: Refactor.
12740         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
12741         from func_emit_autoconf_snippets.
12742         (func_emit_autoconf_snippets): Use it.
12743
12744 2011-05-02  Simon Josefsson  <simon@josefsson.org>
12745
12746         * NEWS: Document removal of 'exit'.
12747         * modules/exit: Remove file.
12748
12749 2011-05-01  Bruno Haible  <bruno@clisp.org>
12750
12751         Update DEPENDENCIES.
12752         * DEPENDENCIES (gettext): Recommend the newest release.
12753         Reported by Simon Josefsson.
12754
12755 2011-05-01  Bruno Haible  <bruno@clisp.org>
12756
12757         gnulib-tool: Reduce code duplication.
12758         * gnulib-tool (func_emit_autoconf_snippets): New function.
12759         (func_import, func_create_testdir): Use it.
12760
12761 2011-04-30  Eric Blake  <eblake@redhat.com>
12762
12763         fclose: don't fail on non-seekable input stream
12764         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
12765         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
12766         since fflush is allowed to fail in that case.
12767
12768 2011-04-30  Bruno Haible  <bruno@clisp.org>
12769
12770         dup3: cleanup
12771         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
12772
12773 2011-04-30  Bruno Haible  <bruno@clisp.org>
12774
12775         netdb: Make it work in C++ mode.
12776         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
12777         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
12778         module.
12779         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
12780         gl_MODULE_INDICATOR_FOR_TESTS.
12781         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
12782         * modules/netdb-c++-tests: New file.
12783         * tests/test-netdb-c++.cc: New file.
12784
12785 2011-04-30  Bruno Haible  <bruno@clisp.org>
12786
12787         New modules 'vfscanf', 'vscanf'.
12788         * modules/vfscanf: New file.
12789         * modules/vscanf: New file.
12790         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
12791         here.
12792         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
12793         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
12794
12795 2011-04-30  Bruno Haible  <bruno@clisp.org>
12796
12797         passfd: Add comments.
12798         * lib/passfd.c: Add comments about platforms.
12799
12800 2011-04-30  Bruno Haible  <bruno@clisp.org>
12801
12802         sys_uio: Make <sys/uio.h> self-contained.
12803         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
12804         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
12805
12806 2011-04-30  Bruno Haible  <bruno@clisp.org>
12807
12808         sys_socket: Ensure 'struct iovec' definition.
12809         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
12810         <sys/socket.h>.
12811         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
12812
12813 2011-04-30  Bruno Haible  <bruno@clisp.org>
12814
12815         sys_uio: Protect definition of 'struct iovec'.
12816         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
12817         it as a C struct.
12818
12819 2011-04-30  Bruno Haible  <bruno@clisp.org>
12820
12821         manywarnings: fix indentation
12822         * m4/manywarnings.m4: Indent by 2 spaces consistently.
12823
12824 2011-04-30  Pádraig Brady <P@draigBrady.com>
12825
12826         manywarnings: add -Wno-missing-field-initializers if needed.
12827         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
12828         option if it's needed to allow initialization with { 0, }
12829
12830 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
12831
12832         announce-gen: cosmetic improvement
12833         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
12834
12835 2011-04-29  Jim Meyering  <meyering@redhat.com>
12836
12837         vc-list-files: indent with spaces, not TABs
12838         * build-aux/vc-list-files: Convert leading TABs to spaces,
12839         to match the style of most other files in gnulib.
12840
12841         announce-gen: indent with spaces, not TABs
12842         * build-aux/announce-gen: Convert all TABs to spaces, to match
12843         the style of most other files in gnulib.
12844
12845 2011-04-29  Eric Blake  <eblake@redhat.com>
12846
12847         quotearg: avoid uninitialized variable use
12848         * lib/quotearg.c (quoting_options_from_style): Initialize
12849         remaining fields, and ensure that custom styles are only used via
12850         quoting_options rather than quoting_style.
12851
12852 2011-04-29  Jim Meyering  <meyering@redhat.com>
12853
12854         maint.mk: remove unused VC-tag variable
12855         * top/maint.mk (VC-tag): Remove unused variable.
12856
12857 2011-04-29  Bruno Haible  <bruno@clisp.org>
12858
12859         netdb: fix gai_strerror replacements
12860         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
12861         * modules/netdb: Substitute it.
12862
12863 2011-04-29  Jim Meyering  <meyering@redhat.com>
12864
12865         test-getcwd.c: avoid new set-but-not-used warning
12866         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
12867         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
12868         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
12869         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
12870
12871         test-hash.c: avoid a new shadowing warning
12872         * tests/test-hash.c (main): Don't shadow "dup".
12873
12874 2011-04-28  Eric Blake  <eblake@redhat.com>
12875
12876         getaddrinfo: fix gai_strerror signature
12877         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
12878         and work around mingw with UNICODE defined.
12879         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
12880         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
12881         * modules/netdb (Makefile.am): Substitute it.
12882         * lib/netdb.in.h (gai_strerror): Declare replacement.
12883         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
12884         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
12885         the fix.
12886
12887         getsockopt: avoid compiler warning
12888         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
12889         Reported by Matthias Bolte.
12890
12891         tests: drop unused link dependency
12892         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
12893         * modules/dirent-safer-tests (Makefile.am): Likewise.
12894         * modules/fdopendir-tests (Makefile.am): Likewise.
12895         * modules/mkfifoat-tests (Makefile.am): Likewise.
12896         * modules/openat-safer-tests (Makefile.am): Likewise.
12897         * modules/openat-tests (Makefile.am): Likewise.
12898         * modules/readlinkat-tests (Makefile.am): Likewise.
12899         * modules/symlinkat-tests (Makefile.am): Likewise.
12900         * modules/linkat-tests (Makefile.am): Likewise.
12901         (Depends-on): Switch to filenamecat-lgpl.
12902         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
12903         LIBINTL.
12904         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
12905         * tests/test-linkat.c (main): Don't require xalloc.
12906
12907         hash, mgetgroups: drop xalloc dependency
12908         * lib/hash.c (includes): Adjust includes.
12909         * lib/mgetgroups.c (includes): Likewise.
12910         (xgetgroups): Move...
12911         * lib/xgetgroups.c: ...to new file.
12912         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
12913         * modules/xgetgroups: New file, split from...
12914         * modules/mgetgroups: ...here.
12915         (Depends-on): Add xalloc-oversized.
12916         * modules/hash (Depends-on): Likewise.
12917         * modules/hash-tests (Depends-on): Drop xalloc.
12918         (test_hash_LDADD): Drop unused library.
12919         * tests/test-hash.c (main): Break xalloc dependency.
12920         (includes): Drop unused include.
12921
12922         xalloc-oversized: new module
12923         * modules/xalloc-oversized: New module.
12924         * modules/xalloc (Depends-on): Add it.
12925         * lib/xalloc.h (xalloc_oversized): Move...
12926         * lib/xalloc-oversized.h: ...into new file.
12927
12928         utimecmp: drop dependency on xmalloc
12929         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
12930         due to memory pressure.
12931         * modules/utimecmp (Depends-on): Drop xalloc.
12932
12933 2011-04-27  Eric Blake  <eblake@redhat.com>
12934
12935         getcwd: fix mingw bugs
12936         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
12937         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
12938         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
12939
12940 2011-04-27  Bruno Haible  <bruno@clisp.org>
12941
12942         mkstemps: Ensure declaration on MacOS X 10.5.
12943         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
12944         * doc/glibc-functions/mkstemps.texi: Document header file problem on
12945         MacOS X.
12946
12947 2011-04-27  Bruno Haible  <bruno@clisp.org>
12948
12949         mkstemp: More documentation.
12950         * doc/posix-functions/mkstemp.texi: Document header file problem on
12951         MacOS X.
12952
12953 2011-04-27  Bruno Haible  <bruno@clisp.org>
12954
12955         mkstemp: Tweak configure message when cross-compiling.
12956         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
12957         result as a guess.
12958
12959 2011-04-27  Bruno Haible  <bruno@clisp.org>
12960
12961         clean-temp: Clarify what it does.
12962         * lib/clean-temp.h: Add more comments.
12963         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
12964         module.
12965         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
12966         * doc/glibc-functions/mkstemps.texi: Likewise.
12967         * doc/glibc-functions/mkostemps.texi: Likewise.
12968
12969 2011-04-27  Eric Blake  <eblake@redhat.com>
12970
12971         fchdir: avoid extra chdir and fix test
12972         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
12973         getcwd-lgpl.
12974         * lib/fchdir.c (get_name): Any absolute name will do; it does not
12975         have to be canonical.
12976         (canonicalize_file_name): Drop unused macro.
12977         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
12978
12979         filenamecat-lgpl: fix licence
12980         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
12981         when it was first created.
12982
12983         linkat, renameat: add missing dependency
12984         * modules/linkat (Depends-on): Require getcwd-lgpl.
12985         * modules/renameat (Depends-on): Likewise.
12986
12987         tests: reduce dependencies
12988         * tests/test-linkat.c (main): Use lighter-weight getcwd.
12989         * tests/test-renameat.c (main): Likewise.
12990         * modules/linkat-tests (Depends-on): Relax dependency.
12991         * modules/renameat-tests (Depends-on): Likewise.
12992         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
12993         dependency explicit.
12994
12995         save-cwd: reduce default dependency
12996         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
12997         * lib/save-cwd.c: Update comments.
12998         * NEWS: Document the semantic change.
12999
13000         getcwd: enhance tests
13001         * tests/test-getcwd-lgpl.c: New file, taken from...
13002         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
13003         repeat long path stress tests from m4 probe.
13004         * modules/getcwd-lgpl-tests: New module.
13005         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
13006         * m4/getcwd-abort-bug.m4: Update comment.
13007         * m4/getcwd-path-max.m4: Likewise.
13008
13009         getcwd-lgpl: new module
13010         * modules/getcwd-lgpl: New module.
13011         * lib/getcwd-lgpl.c: New file.
13012         * doc/posix-functions/getcwd.texi (getcwd): Document it.
13013         * MODULES.html.sh (lacking POSIX:2008): Likewise.
13014         * modules/getcwd (configure.ac): Set C witness.
13015         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
13016
13017         getcwd: tweak comments
13018         * m4/getcwd-abort-bug.m4: Fix comments.
13019         * m4/getcwd-path-max.m4: Likewise.
13020         * m4/getcwd.m4: Likewise.
13021
13022 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
13023         and Eric Blake  <eblake@redhat.com>
13024
13025         mkstemp: replace if system version uses wrong permissions
13026         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
13027         read/write mode bits set in file created by mkstemp.
13028         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
13029
13030 2011-04-27  Eric Blake  <eblake@redhat.com>
13031
13032         passfd: avoid compiler warning
13033         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
13034         Reported by Laine Stump.
13035
13036 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
13037
13038         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
13039         required by the NetBSD (and perhaps other 4.4BSD derived) join.
13040
13041 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
13042         and Eric Blake  <eblake@redhat.com>
13043
13044         mkstemp: mention clean-temp module
13045         * lib/mkstemp.c: Add comment.
13046         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
13047
13048 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
13049
13050         inttypes: also provide default values for 32-bit tests
13051         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
13052         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
13053
13054 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
13055
13056         strtoumax: remove dependency on strtoimax
13057         This is like the strtoull change of yesterday.
13058         * modules/strtoumax (Files): Add lib/strtoimax.c.
13059         (Depends-on): Remove strtoimax and add verify.
13060
13061         inttypes-incomplete: new module
13062         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
13063         all but the PRI* and SCN* parts of gl_INTTYPES_H.
13064         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
13065         of gl_INTTYPES_H.
13066         (gl_INTTYPES_H): Rewrite in terms of these new macros.
13067         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
13068         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
13069         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
13070         * modules/strtoumax, modules/xstrtol (Depends-on):
13071         Depend on inttypes-incomplete, not inttypes.
13072         * modules/inttypes-incomplete: New module, containing the contents
13073         of the old modules/inttypes module, except that the Files: section
13074         omits m4/inttypes-pri.m4, and the configure.ac section invokes
13075         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
13076         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
13077         (Depends-on): Depend only on inttypes-incomplete.
13078         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
13079
13080         inttypes: omit now-redundant strtoimax and strtoumax work
13081         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
13082         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
13083
13084         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
13085         This supports apps that need pointers to strtoimax and strtoumax,
13086         and ports to HP-UX 11.00 64.bit, which has macros that expand to
13087         nonexistent functions.  See
13088         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
13089         et seq.
13090         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
13091         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
13092         a macro.
13093         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
13094
13095 2011-04-25  Simon Josefsson  <simon@josefsson.org>
13096
13097         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
13098
13099 2011-04-25  Bruno Haible  <bruno@clisp.org>
13100
13101         strtol, strtoul: Mark modules as obsolete.
13102         * modules/strtol (Status, Notice): New sections.
13103         * modules/strtoul (Status, Notice): New sections.
13104
13105 2011-04-25  Bruno Haible  <bruno@clisp.org>
13106
13107         strtod: Remove check for strtod, unless supporting old platforms.
13108         * modules/strtod-obsolete: New file.
13109         * m4/strtod-obsolete.m4: New file.
13110         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
13111         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
13112         * modules/strtod (Depends-on): Add strtod-obsolete.
13113         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
13114
13115 2011-04-25  Bruno Haible  <bruno@clisp.org>
13116
13117         strcase: Make module obsolete.
13118         * modules/strcase (Status, Notice): New sections.
13119
13120 2011-04-25  Bruno Haible  <bruno@clisp.org>
13121
13122         dup2: Remove check for dup2, unless supporting old obsolete platforms.
13123         * modules/dup2-obsolete: New file.
13124         * m4/dup2-obsolete.m4: New file.
13125         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
13126         gl_FUNC_DUP2_OBSOLETE is not also defined.
13127         * modules/dup2 (Depends-on): Add dup2-obsolete.
13128         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
13129
13130 2011-04-25  Bruno Haible  <bruno@clisp.org>
13131
13132         strnlen: Avoid memchr related link error on old obsolete platforms.
13133         * modules/memchr-obsolete: New file.
13134         * m4/memchr-obsolete.m4: New file.
13135         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
13136         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
13137         * modules/memchr (Depends-on): Add memchr-obsolete.
13138         * modules/strnlen (Depends-on): Likewise.
13139         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
13140
13141 2011-04-25  Jim Meyering  <meyering@redhat.com>
13142
13143         maint.mk: makefile_at_at_check extend and clean up
13144         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
13145         in addition to */Makefile.am.
13146         Exempt legitimate uses of @VAR@ notation, e.g.,
13147         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
13148         Remove obsolete coreutils-specific comment.
13149         Prompted by discussion here:
13150         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
13151
13152 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
13153
13154         strtoul: remove dependency on strtol
13155         This is so that 'configure' need not check for strtol merely because
13156         the application needs strtoul.
13157         * modules/strtoul (Files): Add lib/strtol.c.
13158         (Depends-on): Remove strtol.
13159
13160         strtoull: remove dependency on strtoul
13161         This is like the strtoll change.
13162         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
13163         (Depends-on): Remove strtoul.
13164
13165         strtoll: remove dependency on strtol
13166         This is so that 'configure' need not check for strtol merely because
13167         the application needs strtoll.
13168         * modules/strtoll (Files): Add lib/strtol.c.
13169         (Depends-on): Remove strtol.
13170
13171 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13172
13173         inttypes: Move some configure check to module 'imaxdiv'.
13174         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
13175         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
13176         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
13177
13178 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13179
13180         inttypes: Move some configure check to module 'imaxabs'.
13181         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
13182         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
13183         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
13184
13185 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13186
13187         inttypes: Remove configure tests that are not needed since 2009-12-31.
13188         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
13189         gl_cv_header_working_inttypes_h.
13190
13191 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13192
13193         * modules/strnlen (Depends-on): Remove memchr.
13194         The strnlen implementation doesn't need the memchr module's fixes; see
13195         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
13196
13197         strtol: remove dependency on wchar
13198         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
13199         * modules/strtol (Depends-on): Remove wchar.
13200
13201 2011-04-21  Eric Blake  <eblake@redhat.com>
13202
13203         passfd: fix test regression on Linux
13204         * modules/passfd-tests (configure.ac): Correct socketpair check.
13205
13206         passfd: speed up configure and drop unused code
13207         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
13208         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
13209         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
13210         Instead of probing at configure for unix_scm_rights_bsd44_way,
13211         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
13212         check to a struct member probe.
13213         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
13214         (sendfd, recvfd): Update preprocessor checks.
13215         * modules/passfd (Files): Reflect rename, and drop unused file.
13216         (Depends-on): Drop unused dependency.
13217
13218         passfd: allow compilation on mingw
13219         * modules/sys_socket (Depends-on): Add sys_uio.
13220         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
13221         iovec and a minimal struct msghdr.
13222         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
13223         * tests/test-sys_socket.c (main): Enhance test.
13224         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
13225         guaranteed to provide what we need.
13226         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
13227         * modules/passfd-tests (Depends-on): Add sys_wait.
13228         * tests/test-passfd.c (main): Skip test on mingw, for now.
13229         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
13230         partial 'struct msghdr' implementation.
13231
13232         sys_uio: new module
13233         * modules/sys_uio: New module.
13234         * modules/sys_uio-tests: Likewise.
13235         * lib/sys_uio.in.h: New file.
13236         * m4/sys_uio_h.m4: Likewise.
13237         * tests/test-sys_uio.c: Likewise.
13238         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
13239         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
13240
13241 2011-04-20  Jim Meyering  <meyering@redhat.com>
13242
13243         useless-if-before-free: avoid false-positive
13244         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
13245         disjunct so that it too requires a terminating ";".  Without that,
13246         this script would identify as useless one statement from gcc that
13247         was not:
13248           if (aligned_ptr)
13249             free (((void **) aligned_ptr) [-1]);
13250
13251 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
13252
13253         doc: update users.txt.
13254         * users.txt: Add barcode.
13255
13256 2011-04-19  Bruno Haible  <bruno@clisp.org>
13257
13258         ioctl: Remove link dependency on native Windows.
13259         * lib/fd-hook.h: Renamed from lib/close-hook.h.
13260         (gl_close_fn, gl_ioctl_fn): New types.
13261         (struct fd_hook): Renamed from struct close_hook. Change type of
13262         private_close_fn field. Add private_ioctl_fn field.
13263         (close_hook_fn): Add parameter for primary close method.
13264         (execute_close_hooks, execute_all_close_hooks): Likewise.
13265         (ioctl_hook_fn): New type.
13266         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
13267         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13268         argument.
13269         (unregister_fd_hook): Renamed from unregister_close_hook.
13270         * lib/fd-hook.c: Renamed from lib/close-hook.c.
13271         Don't include <unistd.h>.
13272         (close): Remove undef.
13273         (anchor): Update.
13274         (execute_close_hooks): Add argument for primary close method.
13275         (execute_all_close_hooks): Likewise.
13276         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
13277         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13278         argument. Allow each argument to be NULL.
13279         (unregister_fd_hook): Renamed from unregister_close_hook.
13280         * lib/close.c (rpl_close): Pass 'close' function pointer to
13281         execute_all_close_hooks.
13282         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
13283         (primary_ioctl): New function.
13284         (ioctl): Don't call ioctlsocket here. Instead, call
13285         execute_all_ioctl_hooks.
13286         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
13287         close method.
13288         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
13289         (fd_sockets_hook): Renamed from close_sockets_hook.
13290         (gl_sockets_startup, gl_sockets_cleanup): Update.
13291         * modules/fd-hook: Renamed from modules/close-hook. Update.
13292         * modules/close (Depends-on): Add fd-hook, remove close-hook.
13293         * modules/sockets (Depends-on): Likewise.
13294         * modules/ioctl (Depends-on): Add fd-hook.
13295         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
13296         GNULIB_SOCKET.
13297
13298 2011-04-19  Bruno Haible  <bruno@clisp.org>
13299
13300         Move the support of O_NONBLOCK in open() to the 'open' module.
13301         * modules/nonblocking (Depends-on): Remove 'open'.
13302         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
13303         gl_cv_have_open_O_NONBLOCK.
13304         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
13305         O_NONBLOCK support.
13306         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
13307
13308 2011-04-17  Bruno Haible  <bruno@clisp.org>
13309
13310         pipe2: Simplify code.
13311         * lib/pipe2.c (pipe2): Reduce code duplication.
13312
13313 2011-04-17  Bruno Haible  <bruno@clisp.org>
13314
13315         nonblocking: Add comment.
13316         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
13317
13318 2011-04-17  Bruno Haible  <bruno@clisp.org>
13319
13320         nonblocking: Add tests for sockets.
13321         * tests/test-nonblocking-socket.sh: New file.
13322         * tests/test-nonblocking-socket-main.c: New file.
13323         * tests/test-nonblocking-socket-child.c: New file.
13324         * tests/test-nonblocking-socket.h: New file.
13325         * tests/socket-server.h: New file.
13326         * tests/socket-client.h: New file.
13327         * modules/nonblocking-socket-tests: New file.
13328         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
13329
13330 2011-04-17  Bruno Haible  <bruno@clisp.org>
13331
13332         nonblocking: Add tests for pipes.
13333         * tests/test-nonblocking-pipe.sh: New file.
13334         * tests/test-nonblocking-pipe-main.c: New file.
13335         * tests/test-nonblocking-pipe-child.c: New file.
13336         * tests/test-nonblocking-pipe.h: New file.
13337         * tests/test-nonblocking-writer.h: New file.
13338         * tests/test-nonblocking-reader.h: New file.
13339         * tests/test-nonblocking-misc.h: New file.
13340         * modules/nonblocking-pipe-tests: New file.
13341         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
13342
13343 2011-04-16  Bruno Haible  <bruno@clisp.org>
13344
13345         gettext: Clarify the needed programmer actions.
13346         * modules/gettext (Notice): New field.
13347         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
13348
13349 2011-04-16  Bruno Haible  <bruno@clisp.org>
13350
13351         strchrnul: Tweak last commit.
13352         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
13353         bug.
13354         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
13355         as in _GL_FUNCDECL_SYS.
13356         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
13357         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
13358
13359 2011-04-15  Eric Blake  <eblake@redhat.com>
13360
13361         strchrnul: work around cygwin bug
13362         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
13363         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
13364         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
13365         * modules/string (Makefile.am): Substitute it.
13366         * lib/string.in.h (strchrnul): Use it.
13367
13368 2011-04-15  Bruno Haible  <bruno@clisp.org>
13369
13370         Don't require lib/stdio-write.c when only module 'stdio' is used.
13371         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
13372         invocation.
13373         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
13374
13375 2011-04-14  Bruno Haible  <bruno@clisp.org>
13376
13377         Support non-blocking pipe I/O in read() on native Windows.
13378         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
13379         (read): New declaration.
13380         * lib/read.c: New file.
13381         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
13382         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
13383         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
13384         vscanf): New declarations.
13385         * lib/stdio-read.c: New file.
13386         * m4/read.m4: New file.
13387         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
13388         REPLACE_READ.
13389         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
13390         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13391         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
13392         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
13393         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
13394         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13395         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13396         * modules/read: New file.
13397         * modules/nonblocking (Files): Add lib/stdio-read.c.
13398         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
13399         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
13400         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13401         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13402         * modules/pread (Depends-on): Add read.
13403         * modules/safe-read (Depends-on): Likewise.
13404         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
13405         gets, scanf, vfscanf, vscanf): Verify signatures.
13406         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
13407         problem with non-blocking pipes.
13408         * doc/posix-functions/fgetc.texi: Likewise.
13409         * doc/posix-functions/fgets.texi: Likewise.
13410         * doc/posix-functions/fread.texi: Likewise.
13411         * doc/posix-functions/fscanf.texi: Likewise.
13412         * doc/posix-functions/getc.texi: Likewise.
13413         * doc/posix-functions/getchar.texi: Likewise.
13414         * doc/posix-functions/gets.texi: Likewise.
13415         * doc/posix-functions/scanf.texi: Likewise.
13416         * doc/posix-functions/vfscanf.texi: Likewise.
13417         * doc/posix-functions/vscanf.texi: Likewise.
13418
13419 2011-04-14  Bruno Haible  <bruno@clisp.org>
13420
13421         Support non-blocking pipe I/O in write() on native Windows.
13422         * lib/write.c (rpl_write): Split a write request that failed merely
13423         because the byte count was larger than the pipe buffer's size.
13424         * doc/posix-functions/write.texi: Mention the problem with large byte
13425         counts.
13426
13427 2011-04-14  Bruno Haible  <bruno@clisp.org>
13428
13429         wchar: Ensure that wchar_t gets defined on uClibc.
13430         * lib/wchar.in.h: On uClibc, include <stddef.h>.
13431         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
13432
13433 2011-04-13  Bruno Haible  <bruno@clisp.org>
13434
13435         safe-write, full-read: Avoid unnecessary compilation units.
13436         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
13437         (Depends-on): Remove safe-read. Add ssize_t.
13438         * modules/full-read (Files): Add lib/full-write.c.
13439         (Depends-on): Add full-write.
13440
13441 2011-04-13  Bruno Haible  <bruno@clisp.org>
13442
13443         Support non-blocking pipe I/O and SIGPIPE in pwrite().
13444         * modules/pwrite (Depends-on): Add 'write'.
13445
13446 2011-04-13  Bruno Haible  <bruno@clisp.org>
13447
13448         Support non-blocking pipe I/O in write() on native Windows.
13449         * lib/unistd.in.h (write): Enable replacement also if
13450         GNULIB_UNISTD_H_NONBLOCKING is 1.
13451         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
13452         (rpl_write): When failing to write on a non-blocking pipe, change
13453         errno from ENOSPC to EAGAIN.
13454         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
13455         putchar, puts, vfprintf, vprintf): Enable replacement also if
13456         GNULIB_STDIO_H_NONBLOCKING is 1.
13457         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
13458         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
13459         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
13460         CALL_WITH_SIGPIPE_EMULATION.
13461         (CALL_WITH_SIGPIPE_EMULATION): Use them.
13462         * m4/nonblocking.m4: New file.
13463         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
13464         for non-blocking I/O support.
13465         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13466         GNULIB_UNISTD_H_NONBLOCKING.
13467         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
13468         required for non-blocking I/O support.
13469         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
13470         * modules/nonblocking (Files): Add m4/nonblocking.m4,
13471         lib/stdio-write.c, m4/asm-underscore.m4.
13472         (Depends-on): Add stdio, unistd.
13473         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
13474         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
13475         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
13476         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
13477         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
13478         problem with non-blocking pipes.
13479         * doc/posix-functions/fputc.texi: Likewise.
13480         * doc/posix-functions/fputs.texi: Likewise.
13481         * doc/posix-functions/fwrite.texi: Likewise.
13482         * doc/posix-functions/printf.texi: Likewise.
13483         * doc/posix-functions/putc.texi: Likewise.
13484         * doc/posix-functions/putchar.texi: Likewise.
13485         * doc/posix-functions/puts.texi: Likewise.
13486         * doc/posix-functions/vfprintf.texi: Likewise.
13487         * doc/posix-functions/vprintf.texi: Likewise.
13488         * doc/posix-functions/write.texi: Likewise.
13489
13490 2011-04-10  Jim Meyering  <meyering@redhat.com>
13491
13492         maint.mk: prohibit doubled words
13493         Detect them also when they're separated by a newline.
13494         There are 3 ways to customize it:
13495           - disable the test on a per file basis, as usual with rules using
13496             $(VC_LIST_EXCEPT)
13497           - replace the default doubled-word-selecting regexp (affects all files)
13498           - ignore a particular file-vs-doubled-word match
13499         I nearly used that last one to ignore the "is is" match in
13500         coreutils' NEWS file, since the text was "ls -is is ..."
13501         To do that, I would have added this line to cfg.mk:
13502           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
13503         but it would have ignored any "is is" match in NEWS.
13504         Low probability, but still...
13505         Instead, I changed the text, slightly:
13506           -  ls -is is now consistent with ls -lis in ignoring values returned
13507           +  "ls -is" is now consistent with ls -lis in ignoring values returned
13508         * top/maint.mk (prohibit_double_word_RE_): Provide default.
13509         (prohibit_doubled_word_): Define.
13510         (sc_prohibit_doubled_word): New rule.
13511         (sc_prohibit_the_the): Remove.  Subsumed by the above.
13512
13513 2011-04-10  Jim Meyering  <meyering@redhat.com>
13514
13515         maint: fix doubled-word typo in comment
13516         * m4/gethostname.m4: s/is is/it is/
13517         * m4/getdomainname.m4: Likewise.
13518
13519 2011-04-10  Jim Meyering  <meyering@redhat.com>
13520
13521         maint: remove doubled word: s/it it/it/
13522         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
13523
13524 2011-04-10  Jim Meyering  <meyering@redhat.com>
13525
13526         maint.mk: remove useless semicolon and backslash
13527         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
13528         semicolon and backslash.
13529
13530 2011-04-10  Bruno Haible  <bruno@clisp.org>
13531
13532         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
13533         * modules/stdint-tests (Depends-on): Add wchar.
13534
13535 2011-04-10  Jim Meyering  <meyering@redhat.com>
13536
13537         maint: remove doubled words in comments, e.g., s/a a/a/
13538         * lib/strptime.c (day_of_the_week): s/the the/the/
13539         * tests/test-chown.h (test_chown): s/a a/a/
13540
13541         test-chown.h: correct a cast
13542         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
13543         when the destination is a stat.st_gid.
13544
13545 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
13546
13547         getaddrinfo: Fix test for sa_len member.
13548         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
13549         include <sys/types.h> before <sys/socket.h>.
13550
13551 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13552
13553         maint: change "can not" to "cannot"
13554         * doc/posix-functions/iconv.texi (iconv): This one crossed line
13555         boundaries.
13556
13557 2011-04-09  Jim Meyering  <meyering@redhat.com>
13558
13559         maint: change "a a" to "a"
13560         * tests/test-lchown.h (test_lchown): s/a a/a/
13561
13562         maint.mk: prohibit \<the the\>
13563         * top/maint.mk (sc_prohibit_the_the): New rule.
13564
13565         maint: fix "the the" in comment
13566         * lib/count-one-bits.h: s/the the/the/
13567
13568         maint: change "can not" to "cannot"
13569         But do not change the occurrences in maintain.texi or in
13570         build-aux/po/Makefile.in.in, which I presume comes from gettext.
13571         * doc/gnulib-tool.texi: s/can not/cannot/
13572         * doc/posix-functions/accept.texi (accept): Likewise.
13573         * doc/posix-functions/socket.texi (socket): Likewise.
13574         * lib/mbrtowc.c: Likewise.
13575
13576         maint.mk: prohibit use of "can not"
13577         * top/maint.mk (sc_prohibit_can_not): New rule.
13578         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
13579
13580 2011-04-09  Bruno Haible  <bruno@clisp.org>
13581
13582         careadlinkat: Guard against misuse of careadlinkatcwd.
13583         * lib/careadlinkat.c: Include <stdlib.h>.
13584         (careadlinkatcwd): Check that the fd argument is as expected.
13585
13586 2011-04-09  Bruno Haible  <bruno@clisp.org>
13587
13588         careadlinkat: Use common coding style.
13589         * lib/careadlinkat.c: Move gnulib includes after system includes.
13590
13591 2011-04-09  Bruno Haible  <bruno@clisp.org>
13592
13593         careadlinkat: Clarify specification.
13594         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
13595         (careadlinkatcwd): Add comment.
13596         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
13597
13598 2011-04-09  Bruno Haible  <bruno@clisp.org>
13599
13600         areadlinkat: Avoid link error on many platforms.
13601         * modules/areadlinkat (Depends-on): Add areadlink.
13602
13603 2011-04-09  Bruno Haible  <bruno@clisp.org>
13604
13605         allocator, careadlinkat: Fix double-inclusion guard.
13606         * lib/allocator.h: Fix double-inclusion guard.
13607         * lib/careadlinkat.h: Likewise.
13608
13609 2011-04-09  Bruno Haible  <bruno@clisp.org>
13610
13611         relocatable-prog-wrapper: Update after module 'areadlink' changed.
13612         * lib/relocwrapper.c: Update dependencies hierarchy.
13613         * build-aux/install-reloc: Update list of files to be compiled.
13614         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
13615         lib/allocator.[hc].
13616
13617 2011-04-08  Eric Blake  <eblake@redhat.com>
13618
13619         strftime: silence gnulib-tool warning
13620         * modules/strftime-tests (Depends-on): Drop automatic dependency.
13621
13622 2011-04-08  Bruno Haible  <bruno@clisp.org>
13623
13624         verify: Fix syntax error with GCC 4.6 in C++ mode.
13625         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
13626         (HAVE_STATIC_ASSERT): New macro.
13627         (verify_true, verify): Use 'static_assert' if it is supported and
13628         '_Static_assert' is not supported.
13629
13630 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
13631
13632         allocator: New module.
13633         * modules/allocator, lib/allocator.c: New files.
13634         * lib/allocator.h (stdlib_allocator): New decl.
13635         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
13636         Remove.  Do not include <stdlib.h>.
13637         (careadlinkat): Use stdlib_allocator instead of rolling our own.
13638         * modules/careadlinkat (Files): Remove lib/allocator.h.
13639         (Depends-on): Add allocator.
13640
13641         stdlib: let modules use system malloc, realloc
13642         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
13643         if !_GL_USE_STDLIB_ALLOC.
13644         (malloc, realloc): Limit this change to a smaller scope.
13645
13646         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
13647         (malloc, realloc): Don't #undef; no longer needed.
13648         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13649         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13650         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13651         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13652         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13653         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13654         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13655         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13656
13657         careadlinkat: rename members to avoid problem
13658         * lib/allocator.h (struct allocator): Rename members from
13659         malloc/realloc to allocate/reallocate, to avoid problems if malloc
13660         and realloc are #define'd.  Reported by Eric Blake in
13661         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
13662         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
13663
13664 2011-04-08  Eric Blake  <eblake@redhat.com>
13665
13666         nonblocking: reduce dependency
13667         * tests/test-nonblocking.c: Only test sockets when in use.
13668         * modules/nonblocking-tests (Depends-on): Drop socket.
13669         (Makefile.am): Link even if sockets are not present.
13670         * modules/pipe2-tests (Makefile.am): Likewise.
13671         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
13672
13673         pipe2: fix O_NONBLOCK support on mingw
13674         * modules/pipe2 (Depends-on): Add nonblocking.
13675         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
13676         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
13677         * tests/test-nonblocking.c (main): Likewise.
13678         * modules/pipe2-tests (Makefile.am): Avoid link failure.
13679
13680         fcntl-h: fix O_ACCMODE on cygwin
13681         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
13682         * lib/fcntl.in.h (O_ACCMODE): Fix it.
13683
13684         pipe-filter: drop O_NONBLOCK workarounds
13685         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
13686         * modules/pipe-filter-ii (Depends-on): Likewise.
13687         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
13688
13689         nonblocking: provide O_NONBLOCK for mingw
13690         * modules/nonblocking (Depends-on): Add open.
13691         (configure.ac): Set new witness macro.
13692         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
13693         * modules/fcntl-h (Makefile.am): Substitute it.
13694         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
13695         nonblocking module is in use.
13696         * lib/nonblocking.c: Adjust portability test.
13697         * lib/open.c (open): Don't let native open see gnulib flag.
13698         * tests/test-fcntl-h.c (main): Enhance test.
13699         * tests/test-open.h (test_open): Likewise.
13700         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
13701
13702         careadlinkat: fix compilation error on mingw
13703         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
13704         within struct allocator.
13705
13706 2011-04-06  Eric Blake  <eblake@redhat.com>
13707
13708         binary-io: relicense under LGPLv2+
13709         * modules/binary-io (License): Relax to LGPLv2+.
13710         Requested for libvirt, and required by pipe2.
13711
13712 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
13713
13714         verify: use _Static_assert if available
13715         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
13716         (verify_true, verify): Use it if available.  This generates better
13717         diagnostics with GCC 4.6.0 and later.
13718
13719 2011-04-05  Bruno Haible  <bruno@clisp.org>
13720
13721         Remove leftover generated .h files after config.status changed.
13722
13723         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
13724         GL_GENERATE_ALLOCA_H.
13725         * modules/alloca-opt (Makefile.am): Remove alloca.h if
13726         GL_GENERATE_ALLOCA_H evaluates to false.
13727
13728         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
13729         GL_GENERATE_ARGZ_H.
13730         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
13731         evaluates to false.
13732
13733         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
13734         GL_GENERATE_BYTESWAP_H.
13735         * modules/byteswap (Makefile.am): Remove byteswap.h if
13736         GL_GENERATE_BYTESWAP_H evaluates to false.
13737
13738         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
13739         GL_GENERATE_ERRNO_H.
13740         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
13741         evaluates to false.
13742
13743         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
13744         GL_GENERATE_FLOAT_H.
13745         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
13746         evaluates to false.
13747
13748         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
13749         GL_GENERATE_FNMATCH_H.
13750         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
13751         GL_GENERATE_FNMATCH_H evaluates to false.
13752
13753         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
13754         GL_GENERATE_GLOB_H.
13755         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
13756         evaluates to false.
13757
13758         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
13759         automake conditional GL_GENERATE_ICONV_H.
13760         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
13761         evaluates to false.
13762
13763         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
13764         GL_GENERATE_NETINET_IN_H.
13765         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
13766         GL_GENERATE_NETINET_IN_H evaluates to false.
13767
13768         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
13769         conditional GL_GENERATE_PTHREAD_H.
13770         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
13771         * modules/pthread (Makefile.am): Remove pthread.h if
13772         GL_GENERATE_PTHREAD_H evaluates to false.
13773
13774         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
13775         GL_GENERATE_SCHED_H.
13776         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
13777         evaluates to false.
13778
13779         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
13780         conditional GL_GENERATE_SELINUX_CONTEXT_H.
13781         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
13782         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
13783
13784         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
13785         GL_GENERATE_STDARG_H.
13786         * modules/stdarg (Makefile.am): Remove stdarg.h if
13787         GL_GENERATE_STDARG_H evaluates to false.
13788
13789         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
13790         GL_GENERATE_STDBOOL_H.
13791         * modules/stdbool (Makefile.am): Remove stdbool.h if
13792         GL_GENERATE_STDBOOL_H evaluates to false.
13793
13794         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
13795         conditional GL_GENERATE_STDDEF_H.
13796         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
13797         * modules/stddef (Makefile.am): Remove stddef.h if
13798         GL_GENERATE_STDDEF_H evaluates to false.
13799
13800         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
13801         GL_GENERATE_STDINT_H.
13802         * modules/stdint (Makefile.am): Remove stdint.h if
13803         GL_GENERATE_STDINT_H evaluates to false.
13804
13805         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
13806         GL_GENERATE_SYSEXITS_H.
13807         * modules/sysexits (Makefile.am): Remove sysexits.h if
13808         GL_GENERATE_SYSEXITS_H evaluates to false.
13809
13810         Reported by Karl Berry and Ralf Wildenhues.
13811
13812 2011-04-05  Bruno Haible  <bruno@clisp.org>
13813
13814         Ensure to rebuild generated .h files when config.status has changed.
13815         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
13816         config.status.
13817         * modules/ctype (Makefile.am): Likewise.
13818         * modules/dirent (Makefile.am): Likewise.
13819         * modules/errno (Makefile.am): Likewise.
13820         * modules/fcntl-h (Makefile.am): Likewise.
13821         * modules/float (Makefile.am): Likewise.
13822         * modules/getopt-posix (Makefile.am): Likewise.
13823         * modules/glob (Makefile.am): Likewise.
13824         * modules/iconv-h (Makefile.am): Likewise.
13825         * modules/inttypes (Makefile.am): Likewise.
13826         * modules/langinfo (Makefile.am): Likewise.
13827         * modules/locale (Makefile.am): Likewise.
13828         * modules/math (Makefile.am): Likewise.
13829         * modules/netdb (Makefile.am): Likewise.
13830         * modules/netinet_in (Makefile.am): Likewise.
13831         * modules/poll-h (Makefile.am): Likewise.
13832         * modules/pthread (Makefile.am): Likewise.
13833         * modules/pty (Makefile.am): Likewise.
13834         * modules/sched (Makefile.am): Likewise.
13835         * modules/search (Makefile.am): Likewise.
13836         * modules/selinux-h (Makefile.am): Likewise.
13837         * modules/signal (Makefile.am): Likewise.
13838         * modules/spawn (Makefile.am): Likewise.
13839         * modules/stdarg (Makefile.am): Likewise.
13840         * modules/stdbool (Makefile.am): Likewise.
13841         * modules/stddef (Makefile.am): Likewise.
13842         * modules/stdint (Makefile.am): Likewise.
13843         * modules/stdio (Makefile.am): Likewise.
13844         * modules/stdlib (Makefile.am): Likewise.
13845         * modules/string (Makefile.am): Likewise.
13846         * modules/strings (Makefile.am): Likewise.
13847         * modules/sys_file (Makefile.am): Likewise.
13848         * modules/sys_ioctl (Makefile.am): Likewise.
13849         * modules/sys_select (Makefile.am): Likewise.
13850         * modules/sys_socket (Makefile.am): Likewise.
13851         * modules/sys_stat (Makefile.am): Likewise.
13852         * modules/sys_time (Makefile.am): Likewise.
13853         * modules/sys_times (Makefile.am): Likewise.
13854         * modules/sys_utsname (Makefile.am): Likewise.
13855         * modules/sys_wait (Makefile.am): Likewise.
13856         * modules/sysexits (Makefile.am): Likewise.
13857         * modules/termios (Makefile.am): Likewise.
13858         * modules/time (Makefile.am): Likewise.
13859         * modules/unistd (Makefile.am): Likewise.
13860         * modules/wchar (Makefile.am): Likewise.
13861         * modules/wctype-h (Makefile.am): Likewise.
13862         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
13863
13864 2011-04-05  Bruno Haible  <bruno@clisp.org>
13865
13866         pipe2: Relicense under LGPLv2+.
13867         * modules/pipe2 (License): Change to LGPLv2+.
13868         Requested by Eric Blake, for libvirt.
13869
13870 2011-04-05  Bruce Korb  <bkorb@gnu.org>
13871
13872         bootstrap: compute gnulib_extra_files after updating build_aux
13873         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
13874         change build_aux or also supply gnulib_extra_files.  Handle correctly.
13875
13876 2011-04-05  Eric Blake  <eblake@redhat.com>
13877
13878         bootstrap: preserve git whitelist item sorting
13879         * build-aux/bootstrap (sort_patterns): New function.
13880         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
13881
13882 2011-04-05  Simon Josefsson  <simon@josefsson.org>
13883
13884         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
13885         sc_space_tab check.
13886
13887 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
13888
13889         areadlink, areadlinkat: rewrite in terms of careadlinkat
13890         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
13891         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
13892         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
13893         (malloc, realloc): Remove #undefs.
13894         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
13895         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
13896         readlink, ssize_t, stdint, unistd.
13897         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
13898         areadlink, stdint.
13899
13900         careadlinkat: new module
13901         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
13902         * modules/careadlinkat: New files, written by me with
13903         a review and feedback from Ben Pfaff in
13904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
13905
13906 2011-04-01  Bruno Haible  <bruno@clisp.org>
13907
13908         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
13909         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
13910         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
13911         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
13912         Reported by Bruce Korb <bruce.korb@gmail.com>.
13913
13914 2011-04-01  Bruno Haible  <bruno@clisp.org>
13915
13916         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
13917         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
13918         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
13919         * modules/wcpcpy (Depends-on): Add extensions.
13920         * modules/wcpncpy (Depends-on): Likewise.
13921         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
13922         systems.
13923         * doc/posix-functions/wcpncpy.texi: Likewise.
13924         * doc/posix-functions/wcwidth.texi: Likewise.
13925
13926 2011-03-31  Eric Blake  <eblake@redhat.com>
13927
13928         nonblocking: fix mingw test failures
13929         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
13930         non-blocking flag on regular file.
13931         (get_nonblocking_flag): Set errno on invalid fd.
13932         * tests/test-nonblocking.c (main): Avoid test failure on
13933         directories if fchdir is not active.
13934         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
13935
13936 2011-03-31  Bruno Haible  <bruno@clisp.org>
13937
13938         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
13939         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
13940         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
13941         Reported by Simon Josefsson <simon@josefsson.org>.
13942
13943 2011-03-31  Bruno Haible  <bruno@clisp.org>
13944         and Eric Blake  <eblake@redhat.com>
13945
13946         nonblocking: new module
13947         * modules/nonblocking: New module.
13948         * modules/nonblocking-tests: Likewise.
13949         * lib/nonblocking.h: New file.
13950         * lib/nonblocking.c: Likewise.
13951         * tests/test-nonblocking.c: New test.
13952         * lib/ioctl.c (ioctl) [mingw]: Update comment.
13953
13954 2011-03-30  Bruno Haible  <bruno@clisp.org>
13955
13956         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
13957         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
13958         instead of 'printf' format for GCC >= 4.4.
13959         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
13960         (fprintf, printf, vfprintf, vprintf): Declare with
13961         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
13962         the system's vfprintf() function.
13963         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
13964
13965 2011-03-30  Eric Blake  <eblake@redhat.com>
13966
13967         passfd: fix scoping bug
13968         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
13969         before sendmsg/recvmsg.
13970
13971         passfd: standardize coding conventions
13972         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
13973         can be learned at compile time.
13974         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
13975         ifdefs.
13976         (sendfd, recvfd): Follow gnulib code conventions.
13977
13978         passfd: fix incorrect sendmsg arguments
13979         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
13980         incorrect msg_controllen value.
13981         * modules/passfd-tests (Depends-on): Check for alarm.
13982         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
13983         Reported by Bastien ROUCARIES.
13984
13985 2011-03-30  Bruno Haible  <bruno@clisp.org>
13986
13987         c-strcasestr: Relicense under LGPLv2+.
13988         * modules/c-strcasestr (License): Change to LGPLv2+.
13989         Requested by Eric Blake, for libvirt.
13990
13991 2011-03-30  Simon Josefsson  <simon@josefsson.org>
13992
13993         * users.txt: Add libidn2.  Fix libtasn1 link.
13994
13995 2011-03-30  Jim Meyering  <meyering@redhat.com>
13996
13997         tests: readlink* ("",... fails with EINVAL on newer kernels
13998         readlink and readlinkat have typically failed with ENOENT for
13999         the invalid, empty file name,  "".  However, with the advent
14000         of linux-2.6.39, they fail with EINVAL.
14001         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
14002         when operating on the empty file name.
14003         * tests/test-readlink.h (test_readlink): Likewise.
14004
14005 2011-03-29  Bruno Haible  <bruno@clisp.org>
14006
14007         Relicense some modules under LGPLv2+, for libidn2.
14008         * modules/array-mergesort (License): Change to LGPLv2+.
14009         * modules/c-strcaseeq (License): Likewise.
14010         * modules/striconveh (License): Likewise.
14011         * modules/striconveha (License): Likewise.
14012         * modules/uniconv/base (License): Likewise.
14013         * modules/uniconv/u8-conv-from-enc (License): Likewise.
14014         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
14015         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
14016         * modules/unictype/base (License): Likewise.
14017         * modules/unictype/bidiclass-of (License): Likewise.
14018         * modules/unictype/category-M (License): Likewise.
14019         * modules/unictype/category-none (License): Likewise.
14020         * modules/unictype/category-of (License): Likewise.
14021         * modules/unictype/category-test (License): Likewise.
14022         * modules/unictype/category-test-withtable (License): Likewise.
14023         * modules/unictype/combining-class (License): Likewise.
14024         * modules/unictype/joiningtype-of (License): Likewise.
14025         * modules/unictype/scripts (License): Likewise.
14026         * modules/uninorm/base (License): Likewise.
14027         * modules/uninorm/canonical-decomposition (License): Likewise.
14028         * modules/uninorm/composition (License): Likewise.
14029         * modules/uninorm/decompose-internal (License): Likewise.
14030         * modules/uninorm/decomposition-table (License): Likewise.
14031         * modules/uninorm/nfc (License): Likewise.
14032         * modules/uninorm/nfd (License): Likewise.
14033         * modules/uninorm/u32-normalize (License): Likewise.
14034         * modules/unistr/base (License): Likewise.
14035         * modules/unistr/u32-cpy (License): Likewise.
14036         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
14037         * modules/unistr/u32-to-u8 (License): Likewise.
14038         * modules/unistr/u32-uctomb (License): Likewise.
14039         * modules/unistr/u8-check (License): Likewise.
14040         * modules/unistr/u8-mblen (License): Likewise.
14041         * modules/unistr/u8-mbtouc (License): Likewise.
14042         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
14043         * modules/unistr/u8-mbtoucr (License): Likewise.
14044         * modules/unistr/u8-prev (License): Likewise.
14045         * modules/unistr/u8-strlen (License): Likewise.
14046         * modules/unistr/u8-to-u32 (License): Likewise.
14047         * modules/unistr/u8-uctomb (License): Likewise.
14048         * modules/unitypes (License): Likewise.
14049         Requested by Simon Josefsson.
14050
14051 2011-03-29  Simon Josefsson  <simon@josefsson.org>
14052
14053         lib-symbol-visibility: Add a notice.
14054         * modules/lib-symbol-visibility (Notice): New field.
14055
14056 2011-03-29  Bruno Haible  <bruno@clisp.org>
14057
14058         getaddrinfo: Doc fix.
14059         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
14060         section "fixed in Gnulib".
14061
14062 2011-03-28  Simon Josefsson  <simon@josefsson.org>
14063
14064         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
14065         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
14066
14067 2011-03-26  Bruno Haible  <bruno@clisp.org>
14068
14069         unictype/property-byname: Reduce the number of load-time relocations.
14070         * lib/unictype/pr_byname.c: Include <stdlib.h>.
14071         (UC_PROPERTY_INDEX_*): New enumeration values.
14072         (uc_property_byname): Convert an index from the lookup table to an
14073         uc_property_t.
14074         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
14075         values.
14076
14077 2011-03-26  Bruno Haible  <bruno@clisp.org>
14078
14079         unictype/property-byname: Allow omitted word separators and aliases.
14080         * lib/unictype/pr_byname.gperf: Add property names without word
14081         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
14082         for 'space'.
14083
14084 2011-03-26  Bruno Haible  <bruno@clisp.org>
14085
14086         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
14087         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
14088         also hyphens to space.
14089         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
14090         without spaces.
14091         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
14092
14093 2011-03-26  Bruno Haible  <bruno@clisp.org>
14094
14095         unictype/joiningtype-byname: Recognize long names as well.
14096         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
14097         a long name.
14098         * lib/unictype/joiningtype_byname.c: Include <string.h>,
14099         unictype/joiningtype_byname.h.
14100         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
14101         * lib/unictype/joiningtype_byname.gperf: New file.
14102         * modules/unictype/joiningtype-byname (Files): Add
14103         lib/unictype/joiningtype_byname.gperf.
14104         (Depends-on): Add gperf.
14105         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
14106         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
14107         long names.
14108
14109         Tests for module 'unictype/joiningtype-longname'.
14110         * modules/unictype/joiningtype-longname-tests: New file.
14111         * tests/unictype/test-joiningtype_longname.c: New file.
14112
14113         New module 'unictype/joiningtype-longname'.
14114         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
14115         * lib/unictype/joiningtype_longname.c: New file.
14116         * modules/unictype/joiningtype-longname: New file.
14117         * modules/unictype/joiningtype-all (Depends-on): Add
14118         unictype/joiningtype-longname.
14119
14120 2011-03-26  Bruno Haible  <bruno@clisp.org>
14121
14122         unictype/bidiclass-byname: Recognize long names as well.
14123         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
14124         name.
14125         * lib/unictype/bidi_byname.c: Include <string.h>,
14126         unictype/bidi_byname.h.
14127         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
14128         * lib/unictype/bidi_byname.gperf: New file.
14129         * modules/unictype/bidiclass-byname (Files): Add
14130         lib/unictype/bidi_byname.gperf.
14131         (Depends-on): Add gperf.
14132         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
14133         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
14134         long names.
14135
14136         Tests for module 'unictype/bidiclass-longname'.
14137         * modules/unictype/bidiclass-longname-tests: New file.
14138         * tests/unictype/test-bidi_longname.c: New file.
14139
14140         New module 'unictype/bidiclass-longname'.
14141         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
14142         * lib/unictype/bidi_longname.c: New file.
14143         * modules/unictype/bidiclass-longname: New file.
14144         * modules/unictype/bidiclass-all (Depends-on): Add
14145         unictype/bidiclass-longname.
14146
14147 2011-03-26  Bruno Haible  <bruno@clisp.org>
14148
14149         unictype/bidi*: Rename modules.
14150         * modules/unictype/bidiclass-all: Renamed from
14151         modules/unictype/bidicategory-all.
14152         * modules/unictype/bidiclass-name: Renamed from
14153         modules/unictype/bidiclass-name.
14154         (Description): Update.
14155         * modules/unictype/bidiclass-name-tests: Renamed from
14156         modules/unictype/bidicategory-name-tests.
14157         * modules/unictype/bidiclass-byname: Renamed from
14158         modules/unictype/bidicategory-byname.
14159         (Description): Update.
14160         * modules/unictype/bidiclass-byname-tests: Renamed from
14161         modules/unictype/bidicategory-byname-tests.
14162         * modules/unictype/bidiclass-of: Renamed from
14163         modules/unictype/bidicategory-of.
14164         (Description): Update.
14165         * modules/unictype/bidiclass-of-tests: Renamed from
14166         modules/unictype/bidicategory-of-tests.
14167         * modules/unictype/bidiclass-test: Renamed from
14168         modules/unictype/bidicategory-test.
14169         (Description): Update.
14170         * modules/unictype/bidiclass-test-tests: Renamed from
14171         modules/unictype/bidicategory-test-tests.
14172         * modules/unictype/bidicategory-all: New file, a simple redirection.
14173         * modules/unictype/bidicategory-name: Likewise.
14174         * modules/unictype/bidicategory-byname: Likewise.
14175         * modules/unictype/bidicategory-of: Likewise.
14176         * modules/unictype/bidicategory-test: Likewise.
14177         * modules/unictype/property-bidi-* (Dependencies): Update.
14178         * lib/unictype/bidi_*.c: Update comment.
14179
14180 2011-03-26  Bruno Haible  <bruno@clisp.org>
14181
14182         unictype/bidi*: Rename functions, part 2.
14183         * modules/unictype/bidicategory-name (configure.ac): Update required
14184         libunistring version.
14185         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
14186
14187 2011-03-25  Bruno Haible  <bruno@clisp.org>
14188
14189         New module 'unictype/combining-class-all'.
14190         * modules/unictype/combining-class-all: New file.
14191
14192         Tests for module 'unictype/combining-class-byname'.
14193         * modules/unictype/combining-class-byname-tests: New file.
14194         * tests/unictype/test-combiningclass_byname.c: New file.
14195
14196         New module 'unictype/combining-class-byname'.
14197         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
14198         * lib/unictype/combiningclass_byname.c: New file.
14199         * lib/unictype/combiningclass_byname.gperf: New file.
14200         * modules/unictype/combining-class-byname: New file.
14201
14202         Tests for module 'unictype/combining-class-longname'.
14203         * modules/unictype/combining-class-longname-tests: New file.
14204         * tests/unictype/test-combiningclass_longname.c: New file.
14205
14206         New module 'unictype/combining-class-longname'.
14207         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
14208         * lib/unictype/combiningclass_longname.c: New file.
14209         * modules/unictype/combining-class-longname: New file.
14210
14211         Tests for module 'unictype/combining-class-name'.
14212         * modules/unictype/combining-class-name-tests: New file.
14213         * tests/unictype/test-combiningclass_name.c: New file.
14214
14215         New module 'unictype/combining-class-name'.
14216         * lib/unictype.in.h (uc_combining_class_name): New declaration.
14217         * lib/unictype/combiningclass_name.c: New file.
14218         * modules/unictype/combining-class-name: New file.
14219
14220 2011-03-25  Bruno Haible  <bruno@clisp.org>
14221
14222         unictype/combining-class: Rename source files.
14223         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
14224         of unictype/combining.h.
14225         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
14226         Update.
14227         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
14228         * modules/unictype/combining-class (Description): Fix.
14229         (Files, Makefile.am): Update.
14230         * tests/unictype/test-combiningclass.c: Renamed from
14231         tests/unictype/test-combining.c.
14232         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
14233
14234 2011-03-25  Bruno Haible  <bruno@clisp.org>
14235
14236         unictype: Update list of canonical combining classes.
14237         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
14238
14239 2011-03-25  Bruno Haible  <bruno@clisp.org>
14240
14241         unictype/category-byname: Recognize long names as well.
14242         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
14243         a long name.
14244         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
14245         unictype/categ_byname.h.
14246         (UC_CATEGORY_INDEX_*): New enumeration values.
14247         (uc_general_category_byname): Use uc_general_category_lookup and
14248         convert from index to value.
14249         * lib/unictype/categ_byname.gperf: New file.
14250         * modules/unictype/category-byname (Files): Add
14251         lib/unictype/categ_byname.gperf.
14252         (Depends-on): Add gperf.
14253         (Makefile.am): Add rule for generating unictype/categ_byname.h.
14254         * tests/unictype/test-categ_byname.c (main): Test the recognition of
14255         long names.
14256
14257         Tests for module 'unictype/category-longname'.
14258         * modules/unictype/category-longname-tests: New file.
14259         * tests/unictype/test-categ_longname.c: New file.
14260
14261         New module 'unictype/category-longname'.
14262         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
14263         * lib/unictype/categ_longname.c: New file.
14264         * modules/unictype/category-longname: New file.
14265         * modules/unictype/category-all (Depends-on): Add it.
14266
14267 2011-03-25  Bruno Haible  <bruno@clisp.org>
14268
14269         Tests for module 'unictype/category-LC'.
14270         * modules/unictype/category-LC-tests: New file.
14271         * tests/unictype/test-categ_LC.c: New file, automatically generated.
14272
14273         New module 'unictype/category-LC'.
14274         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
14275         (UC_CATEGORY_LC): New declaration.
14276         (UC_CASED_LETTER): New macro.
14277         * lib/gen-uni-tables.c (is_category_LC): New function.
14278         (output_categories): Also handle category LC.
14279         (UC_CATEGORY_MASK_LC): New enumeration value.
14280         (general_category_byname): Also handle category LC.
14281         * lib/unictype/categ_LC.c: New file.
14282         * lib/unictype/categ_LC.h: New file, automatically generated.
14283         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
14284         category LC.
14285         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
14286         * modules/unictype/category-LC: New file.
14287         * modules/unictype/category-byname (Depends-on): Add
14288         unictype/category-LC.
14289         * modules/unictype/category-all (Depends-on): Likewise.
14290
14291 2011-03-25  Eric Blake  <eblake@redhat.com>
14292
14293         xmalloc: revert yesterday's regression
14294         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
14295         realloc's underlying behavior (allowing allocation of zero-size
14296         objects, especially if malloc-gnu is also in use).
14297
14298 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
14299
14300         maint.mk: add missing version to VC-tag
14301         * top/maint.mk: git tag was missing actual tag name; add it.
14302
14303         valgrind: do leak checking, and exit with code 1 on error (not 0)
14304         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
14305         to VALGRIND.
14306
14307 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
14308
14309         posix-modules: say what it does.
14310         * posix-modules: Add a line to the --help output saying what it does.
14311
14312 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
14313
14314         xmalloc: Do not leak if underlying realloc is C99 compatible.
14315         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
14316         This avoids a leak on C99-based systems.  See
14317         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
14318
14319 2011-03-24  Eric Blake  <eblake@redhat.com>
14320
14321         realloc: document portability problem
14322         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
14323         passing 0 size to realloc.
14324
14325 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
14326
14327         doc: update users.txt
14328         * users.txt: Add cvsps, tmpwatch
14329
14330 2011-03-23  Matt Rice  <ratmice@gmail.com>
14331
14332         doc: update users.txt
14333         * users.txt: Add gdb.
14334
14335 2011-03-23  Jim Meyering  <meyering@redhat.com>
14336
14337         doc: update users.txt
14338         Looking through matches up to the following URL (there are still
14339         several more pages), I found several projects that use gnulib:
14340         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
14341         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
14342         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
14343
14344 2011-03-22  Bruno Haible  <bruno@clisp.org>
14345
14346         unictype/bidi*: Rename functions.
14347         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
14348         uc_bidi_class, uc_is_bidi_class): New declarations.
14349         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
14350         uc_bidi_category_byname.
14351         (uc_bidi_category_byname): New function.
14352         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
14353         u_bidi_category_name.
14354         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
14355         (uc_bidi_category_name): New function.
14356         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
14357         uc_bidi_category.
14358         (uc_bidi_category): New function.
14359         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
14360         uc_is_bidi_category. Invoke uc_bidi_class.
14361         (uc_is_bidi_category): New function.
14362         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
14363         instead of uc_bidi_category_byname.
14364         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
14365         instead of uc_bidi_category_name.
14366         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
14367         uc_bidi_category.
14368         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
14369         instead of uc_is_bidi_category.
14370
14371 2011-03-21  Bruno Haible  <bruno@clisp.org>
14372
14373         New module 'unictype/joininggroup-all'.
14374         * modules/unictype/joininggroup-all: New file.
14375
14376         Tests for module 'unictype/joininggroup-of'.
14377         * modules/unictype/joininggroup-of-tests: New file.
14378         * tests/unictype/test-joininggroup_of.c: New file.
14379         * tests/unictype/test-joininggroup_of.h: New file, automatically
14380         generated by gen-uni-tables.
14381
14382         New module 'unictype/joininggroup-of'.
14383         * modules/unictype/joininggroup-of: New file.
14384         * lib/unictype/joininggroup_of.c: New file.
14385         * lib/unictype/joininggroup_of.h: New file, automatically generated by
14386         gen-uni-tables.
14387
14388         Tests for module 'unictype/joininggroup-byname'.
14389         * modules/unictype/joininggroup-byname-tests: New file.
14390         * tests/unictype/test-joininggroup_byname.c: New file.
14391
14392         New module 'unictype/joininggroup-byname'.
14393         * modules/unictype/joininggroup-byname: New file.
14394         * lib/unictype/joininggroup_byname.c: New file.
14395         * lib/unictype/joininggroup_byname.gperf: New file.
14396
14397         Tests for module 'unictype/joininggroup-name'.
14398         * modules/unictype/joininggroup-name-tests: New file.
14399         * tests/unictype/test-joininggroup_name.c: New file.
14400
14401         New module 'unictype/joininggroup-name'.
14402         * modules/unictype/joininggroup-name: New file.
14403         * lib/unictype/joininggroup_name.c: New file.
14404         * lib/unictype/joininggroup_name.h: New file.
14405
14406         New module 'unictype/joiningtype-all'.
14407         * modules/unictype/joiningtype-all: New file.
14408
14409         Tests for module 'unictype/joiningtype-of'.
14410         * modules/unictype/joiningtype-of-tests: New file.
14411         * tests/unictype/test-joiningtype_of.c: New file.
14412         * tests/unictype/test-joiningtype_of.h: New file, automatically
14413         generated by gen-uni-tables.
14414
14415         New module 'unictype/joiningtype-of'.
14416         * modules/unictype/joiningtype-of: New file.
14417         * lib/unictype/joiningtype_of.c: New file.
14418         * lib/unictype/joiningtype_of.h: New file, automatically generated by
14419         gen-uni-tables.
14420
14421         Tests for module 'unictype/joiningtype-byname'.
14422         * modules/unictype/joiningtype-byname-tests: New file.
14423         * tests/unictype/test-joiningtype_byname.c: New file.
14424
14425         New module 'unictype/joiningtype-byname'.
14426         * modules/unictype/joiningtype-byname: New file.
14427         * lib/unictype/joiningtype_byname.c: New file.
14428
14429         Tests for module 'unictype/joiningtype-name'.
14430         * modules/unictype/joiningtype-name-tests: New file.
14431         * tests/unictype/test-joiningtype_name.c: New file.
14432
14433         New module 'unictype/joiningtype-name'.
14434         * modules/unictype/joiningtype-name: New file.
14435         * lib/unictype/joiningtype_name.c: New file.
14436
14437         unictype: Add support for Arabic shaping properties.
14438         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
14439         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
14440         declarations.
14441         (UC_JOINING_GROUP_*): New enumeration values.
14442         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
14443         declarations.
14444         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
14445         (unicode_joining_type): New variable.
14446         (UC_JOINING_GROUP_*): New enumeration values.
14447         (unicode_joining_group): New variable.
14448         (fill_arabicshaping, joining_type_as_c_identifier,
14449         output_joining_type_test, output_joining_type,
14450         joining_group_as_c_identifier, output_joining_group_test,
14451         output_joining_group): New functions.
14452         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
14453         fill_arabicshaping and output_joining_type_test, output_joining_type,
14454         output_joining_group_test, output_joining_group.
14455         Reported by Simon Josefsson.
14456
14457 2011-03-21  Jim Meyering  <meyering@redhat.com>
14458
14459         strftime: fix a bug in yesterday's change
14460         * lib/strftime.c (add): Accommodate width's initial value of -1.
14461         Otherwise, nstrftime would copy uninitialized data into
14462         the result buffer.
14463
14464 2011-03-21  Jim Meyering  <meyering@redhat.com>
14465
14466         tests: add strftime-tests module
14467         * tests/test-strftime.c: New file.
14468         * modules/strftime-tests: New module.
14469
14470 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14471
14472         strftime: don't assume a byte count fits in 'int'
14473         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
14474         found this problem by static analysis, using gcc -Wstrict-overflow
14475         (GCC 4.5.2, x86-64).  This reported an optimization that depended
14476         on an integer overflow having undefined behavior, but it turns out
14477         that the argument is a size, which might not fit in 'int' anyway,
14478
14479 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14480
14481         stdio: don't require ignore_value around fwrite
14482
14483         This patch works around libc bug 11959
14484         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
14485         Without this patch, applications must often write
14486         ignore_value (fwrite (...)) even though the ignore_value is
14487         not helpful here.  It's common to write many objects, using
14488         fwrite/printf/etc., and then use ferror to detect output error.
14489
14490         I considered making this patch optional, but decided against it,
14491         because libc is obviously being inconsistent here: there is no
14492         reason libc should insist that user code must inspect fwrite
14493         return's value without also insisting that it inspect printf's,
14494         putchar's, etc.  If user code wants to have a strict style where
14495         all these functions' values are checked (so that ferror need not
14496         be checked), we could add support for that style in a new gnulib
14497         module, but in the meantime it's better to be consistent and to
14498         support common usage.
14499
14500         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
14501         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
14502         that we are compiling in checking mode, and if not C++, and
14503         if not already wrapping fwrite for some other reason.
14504         (fwrite): #define to rpl_fwrite if the latter is defined.
14505
14506 2011-03-20  Bruno Haible  <bruno@clisp.org>
14507
14508         verror: Fix compilation error introduced on 2011-02-13.
14509         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
14510         instead of __attribute__.
14511         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14512
14513 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14514             Bruno Haible  <bruno@clisp.org>
14515
14516         socklen: do not depend on sys_socket
14517         While trying to modify Emacs to use gnulib's socklen module,
14518         I discovered a circular dependency: socklen depends on sys_socket
14519         and vice versa.  Emacs can use socklen, but it does not need
14520         sys_socket because it has its own substitute for sys/socket.h.
14521         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
14522         gl_TYPE_SOCKLEN_T.
14523         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
14524         gl_PREREQ_SYS_H_SOCKET.
14525         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
14526         gl_PREREQ_SYS_H_SOCKET.
14527         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
14528         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
14529         * modules/socklen (Depends-on): Do not depend on sys_socket.
14530         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
14531
14532 2011-03-20  Jim Meyering  <meyering@redhat.com>
14533
14534         maint.mk: sort file names *after* new transformation
14535         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
14536         prefix would have led to an unwarranted failure in GNU parted.
14537         Sort after that transformation.
14538
14539 2011-03-19  Jim Meyering  <meyering@redhat.com>
14540
14541         maint.mk: fix po-file syntax-check rule
14542         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
14543         Patch by Bruno Haible.
14544
14545 2011-03-19  Bruno Haible  <bruno@clisp.org>
14546
14547         socklen: Update comment.
14548         * m4/socklen.m4: Update comment about platforms.
14549
14550 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14551             Bruno Haible  <bruno@clisp.org>
14552
14553         inet_ntop, inet_pton: Simplify.
14554         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
14555         documented to provide socklen_t and we already depend on sys_socket.
14556         * modules/inet_pton (Depends-on): Likewise.
14557         * lib/arpa_inet.in.h: Adjust comment.
14558
14559 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14560             Bruno Haible  <bruno@clisp.org>
14561
14562         netdb: Simplify.
14563         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
14564         documented to provide socklen_t and we already depend on sys_socket.
14565         * lib/netdb.in.h: Adjust comment.
14566
14567 2011-03-19  Bruno Haible  <bruno@clisp.org>
14568
14569         sys_socket, netdb: Document problem with socklen_t.
14570         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
14571         platforms.
14572         * doc/posix-headers/netdb.texi: Likewise.
14573
14574 2011-03-18  Eric Blake  <eblake@redhat.com>
14575
14576         maint.mk: let po check work in VPATH build
14577         * top/maint.mk (po_file): Allow cfg.mk override.
14578         (sc_po_check): Allow VPATH use.
14579         Reported by Jiri Denemark.
14580
14581 2011-03-16  Jim Meyering  <meyering@redhat.com>
14582
14583         maint.mk: allow fine-grained syntax-check exclusion via Make variables
14584         Before, you would have had to create one .x-sc_ file per rule in order
14585         to exempt offending files.  Now, you may instead use a Make variable --
14586         usually defined in cfg.mk -- whose name identifies the affected rule.
14587         * top/maint.mk (_sc_excl): Define.
14588         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
14589         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
14590
14591 2011-03-13  Bruno Haible  <bruno@clisp.org>
14592
14593         ignore-value tests: Avoid warnings.
14594         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
14595         empty for gcc < 3.4.
14596
14597 2011-03-13  Bruno Haible  <bruno@clisp.org>
14598
14599         passfd: Fix link error on Solaris.
14600         * modules/passfd (Description): Correct.
14601         (Depends-on): Add socketlib.
14602         (Link): New section.
14603         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
14604
14605 2011-03-13  Bruno Haible  <bruno@clisp.org>
14606
14607         passfd: Fix link error on AIX 5.2.
14608         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
14609
14610 2011-03-13  Bruno Haible  <bruno@clisp.org>
14611
14612         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
14613         * lib/sys_socket.in.h: Include <stddef.h>.
14614         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
14615         CMSG_FIRSTHDR. Remove unused variable.
14616
14617 2011-03-13  Bruno Haible  <bruno@clisp.org>
14618
14619         passfd: Fix compilation error on OpenBSD.
14620         * lib/passfd.c: Include <sys/uio.h>.
14621
14622 2011-03-13  Bruno Haible  <bruno@clisp.org>
14623
14624         passfd test: Fix warnings.
14625         * tests/test-passfd.c: Include <sys/wait.h>.
14626         (main): Fix typo.
14627
14628 2011-03-13  Bruno Haible  <bruno@clisp.org>
14629
14630         passfd module, part 4, tweaks.
14631         * tests/test-passfd.c: Reorder includes.
14632         (main): Fix perror and printf calls.
14633
14634 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14635
14636         passfd module, part 4.
14637         * modules/passfd-tests: New file.
14638         * tests/test-passfd.c: New file.
14639
14640 2011-03-13  Jim Meyering  <meyering@redhat.com>
14641
14642         Makefile: rely on GNU make; derive syntax-check rule names
14643         Rather than requiring that each sc_ rule be listed as a dependent
14644         of "check", use features of GNU make to derive the list.
14645         * Makefile (syntax-check-rules): Define.
14646         (check): Depend on the new variable, not the hard-coded list.
14647
14648 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
14649             Bruno Haible  <bruno@clisp.org>
14650
14651         passfd module, part 3.
14652         * lib/passfd.h (recvfd): Add a flags argument.
14653         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
14654         (recvfd): Add a flags argument.
14655         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
14656         exists.
14657         * modules/passfd (Depends-on): Add cloexec.
14658         Suggested by Eric Blake.
14659
14660 2011-03-13  Bruno Haible  <bruno@clisp.org>
14661
14662         passfd module, part 2, tweaks.
14663         * modules/passfd (Files): Reorder.
14664         (Depends-on): Remove errno.
14665         (Include): Remove <sys/socket.h>, <sys/un.h>.
14666         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
14667         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
14668         specification header. Include <sys/socket.h> always. Don't include
14669         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
14670         (sendfd): Clarify that it sets errno when it fails.
14671         (recvfd): Fix specification.
14672
14673 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14674
14675         passfd module, part 2.
14676         * modules/passfd: New file.
14677         * lib/passfd.h: New file.
14678         * lib/passfd.c: New file.
14679
14680 2011-03-12  Bruno Haible  <bruno@clisp.org>
14681
14682         wcswidth, mbswidth: Avoid integer overflow.
14683         * lib/wcswidth.c: Include <limits.h>.
14684         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
14685         * lib/mbswidth.c: Include <limits.h>.
14686         (mbsnwidth): Avoid 'int' overflow.
14687         Reported by Jim Meyering.
14688
14689 2011-03-12  Bruno Haible  <bruno@clisp.org>
14690
14691         futimens, utimensat: Avoid endless recursion on Solaris 10.
14692         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
14693         Solaris.
14694         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
14695         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
14696
14697 2011-03-11  Jim Meyering  <meyering@redhat.com>
14698
14699         maint.mk: relax a regexp to accommodate other formatting styles
14700         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
14701         between "ngettext" and the following "(".
14702
14703 2011-03-11  Pádraig Brady <P@draigBrady.com>
14704
14705         maint.mk: suppress a false positive warning
14706         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
14707         diagnostics are marked with ngettext.
14708
14709 2011-03-10  Eric Blake  <eblake@redhat.com>
14710
14711         wchar: add explicit dependencies, for Tru64
14712         * modules/mbmemcasecoll (Depends-on): Add wchar.
14713         * modules/mbtowc (Depends-on): Likewise.
14714         * modules/vasnprintf (Depends-on): Likewise.
14715         * modules/unistdio/u-printf-args (Depends-on): Likewise.
14716         * modules/wctomb (Depends-on): Likewise.
14717         Reported by Peter O'Gorman.
14718
14719 2011-03-08  Bruno Haible  <bruno@clisp.org>
14720
14721         passfd module, part 1, tweaks.
14722         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
14723         Improve indentation. Improve AC_MSG_CHECKING messages.
14724         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
14725         gl_SOCKET_FAMILIES.
14726
14727 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14728
14729         passfd module, part 1.
14730         * m4/afunix.m4: New file.
14731         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
14732         sockets.
14733
14734 2011-03-08  Bruno Haible  <bruno@clisp.org>
14735
14736         regex-quote: New API.
14737         * lib/regex-quote.h: Include <stdbool.h>.
14738         (struct regex_quote_spec): New type.
14739         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14740         New declarations.
14741         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14742         'const struct regex_quote_spec *' argument.
14743         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
14744         (pcre_special): New constant.
14745         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14746         New functions.
14747         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14748         'const struct regex_quote_spec *' argument.
14749         * modules/regex-quote (Depends-on): Add stdbool.
14750         * tests/test-regex-quote.c (check): Update for new API. Add test for
14751         anchored results.
14752         * NEWS: Mention the API change.
14753         Reported by Reuben Thomas and Eric Blake.
14754
14755 2011-03-06  Bruno Haible  <bruno@clisp.org>
14756
14757         regex-quote: Fix creation of POSIX extended regular expressions.
14758         * lib/regex-quote.c (ere_special): Add grouping and alternation
14759         operators.
14760
14761 2011-03-05  Bruno Haible  <bruno@clisp.org>
14762
14763         doc: Improve doc regarding autopoint vs. gnulib.
14764         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
14765         disable autopoint while running autoreconf.
14766         Suggested by Ralf Wildenhues.
14767
14768 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14769
14770         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
14771         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
14772
14773 2011-03-03  Bruce Korb  <bkorb@gnu.org>
14774
14775         parse-duration: remove xalloc.h dependency
14776         * lib/parse-duration.c (parse_period): handle NULL return from
14777         strdup instead of calling xstrdup().
14778         * modules/parse-duration: remove "xalloc" dependency
14779
14780 2011-03-03  Matthew Booth  <mbooth@redhat.com>
14781
14782         bootstrap: honor m4_base when running aclocal
14783         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
14784
14785 2011-03-02  Jim Meyering  <meyering@redhat.com>
14786
14787         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
14788         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
14789         on request from Matt Booth.
14790
14791 2011-03-01  Eric Blake  <eblake@redhat.com>
14792
14793         test-link: work on Hurd
14794         * tests/test-link.h (test_link): Hurd rejects linking directories
14795         with EISDIR instead of the POSIX-mandated EPERM.
14796
14797 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
14798
14799         stdio: simplify by moving files to printf-posix, sigpipe
14800         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
14801         since this symbol is needed only if printf is replaced.
14802         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
14803         Require gl_ASM_SYMBOL_PREFIX.
14804         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
14805         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
14806         (Depends-on): Add 'raise'.
14807         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
14808         * modules/stdio (Files): Remove lib/stdio-write.c,
14809         m4/asm-underscore.m4.
14810         (Depends-on): Remove 'raise'.
14811
14812         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
14813         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
14814         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
14815         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
14816
14817 2011-02-28  Bruno Haible  <bruno@clisp.org>
14818
14819         localcharset: Assume ANSI C behaviour of free().
14820         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
14821         calling free().
14822         Suggested by Simon Josefsson <simon@josefsson.org>.
14823
14824 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
14825             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
14826             Bruno Haible  <bruno@clisp.org>  (tiny change)
14827
14828         On Cygwin, use /proc file system instead of win32 API.
14829         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
14830         Win32 file names.
14831         (DllMain): Simplify by removing Cygwin specific code.
14832         (find_shared_library_fullname): Use Linux specific implementation also
14833         for Cygwin.
14834         (get_shared_library_fullname): Update accordingly.
14835         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
14836         Win32 file names.
14837         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
14838         Cygwin specific code.
14839
14840 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
14841             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
14842
14843         Fix OpenMP flag detection for various Fortran compilers.
14844         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
14845         OpenMP-conditional compilation construct, to force compile
14846         failure with missing OpenMP flag.
14847         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
14848
14849 2011-02-25  Eric Blake  <eblake@redhat.com>
14850
14851         strstr: expand test coverage
14852         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
14853         compilation.
14854         * tests/test-memmem.c (main): Duplicate tests.
14855         * tests/test-strcasestr.c (main): Likewise.
14856         * tests/test-c-strcasestr.c (main): Likewise.
14857
14858 2011-02-25  Jim Meyering  <meyering@redhat.com>
14859
14860         maint.mk: detect missing-NL-at-EOF, too
14861         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
14862         it also detects when a file lacks a newline at EOF.
14863         (require_exactly_one_NL_at_EOF_): Renamed from
14864         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
14865         since people may well have .x-sc_... file names tied to the
14866         existing name.  Suggested by Eric Blake.
14867
14868 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14869
14870         dirname: move m4/dos.m4 functionality into lib/dosname.h
14871
14872         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
14873         extracts symbols from it, puts them into config.h; but it's much
14874         easier to use the symbols directly.  filename.h already does this,
14875         but it disagrees with dos.m4 in some respects.  This patch
14876         introduces a different include file dosname.h that packages up
14877         dos.m4, and then later we can work on merging filename.h and
14878         dosname.h.  Applications that need only the easy-to-configure
14879         symbols should consider including dosname.h rather than dirname.h.
14880         * NEWS: Mention incompatible changes.
14881         * m4/dos.m4: Remove.
14882         * lib/dosname.h, modules/dosname: New files.
14883         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
14884         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
14885         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
14886         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
14887         Include dosname.h, not dirname.h.
14888         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
14889         Include dosname.h, for definitions of symbols like ISSLASH
14890         that used to be in config.h.
14891         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
14892         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14893         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14894         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14895         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
14896         * modules/rmdir (Files): Likewise.
14897         * modules/stat (Files): Likewise.
14898         * modules/unlink (Files): Likewise.
14899         * modules/dirname-lgpl (Depends-on): Add dosname.
14900         * modules/lstat (Depends-on): Likewise.
14901         * modules/openat (Depends-on): Likewise.
14902         * modules/rmdir (Depends-on): Likewise.
14903         * modules/savewd (Depends-on): Likewise.
14904         * modules/stat (Depends-on): Likewise.
14905         * modules/unlink (Depends-on): Likewise.
14906         * modules/openat (Depends-on): Remove dirname-lgpl.
14907         * modules/savewd (Depends-on): Likewise.
14908         * tests/test-dirname.c: Do not use removed symbols like
14909         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
14910         the remaining symbols, e.g., ISSLASH ('\\').
14911
14912 2011-02-25  Eric Blake  <eblake@redhat.com>
14913
14914         strstr: revert patches that introduced bug and pessimization
14915         * lib/str-two-way.h: Add another reference.
14916         (two_way_short_needle, two_way_long_needle): Revert changes from
14917         2011-02-24; they pessimize search speed.
14918         (critical_factorization): Partially revert changes from
14919         2010-06-22; they violate the requirement that the left half of the
14920         needle be smaller than the period of the needle.
14921
14922 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14923
14924         filenamecat: remove unnecessary dependency on dirname-lgpl
14925         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
14926         is no direct dependency, just an indirect one via filenamecat-lgpl.
14927
14928         remove: remove unnecessary use of m4/dos.m4
14929         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
14930         * modules/remove (FILES): Remove m4/dos.m4.
14931
14932         * lib/openat-proc.c: Don't include dirname.h; not needed.
14933
14934         backupfile: remove unnecessary use of m4/dos.m4
14935         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
14936         of its symbols are used by the backupfile code.  backupfile.c does
14937         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
14938         for the rare case of programs that want all their backup file
14939         names to live within 8+3 limits, and dos.m4 doesn't address that.
14940         * modules/backupfile (Files): Remove m4/dos.m4.
14941
14942 2011-02-24  Jim Meyering  <meyering@redhat.com>
14943
14944         strstr: fix a bug whereby strstr would mistakenly return NULL
14945         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
14946         in period calculation.
14947         (two_way_long_needle): Likewise.
14948         The original problem was reported by Mike Stump in
14949         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
14950         Ralf Wildenhues provided the short needle and haystack.
14951         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
14952         Add a more involved test to trigger the bug in two_way_long_needle.
14953
14954 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14955
14956         gnulib-tool: remove use of bold display in help screen
14957         * gnulib-tool (func_usage): Do not use bold display anymore in the
14958         help screen.  That was just meant to be a temporary emphasis for a
14959         backward-incompatible change.
14960
14961 2011-02-23  Bruno Haible  <bruno@clisp.org>
14962
14963         Fix misindentation of preprocessor directives.
14964         * lib/argp-namefrob.h: Reindent preprocessor directives.
14965         * lib/getopt_int.h (struct _getopt_data): Likewise.
14966         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
14967         * lib/vasnprintf.c (decode_long_double): Likewise.
14968         * tests/test-argmatch.c: Insert blank lines, for clarity.
14969         * tests/test-exclude.c: Likewise.
14970
14971 2011-02-22  Bruno Haible  <bruno@clisp.org>
14972
14973         ioctl: Fix for MacOS X in 64-bit mode.
14974         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
14975         value.
14976         Suggested by Eric Blake.
14977         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
14978
14979 2011-02-22  Jim Meyering  <meyering@redhat.com>
14980
14981         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
14982         * Makefile (sc_cpp_indent_check): Don't limit the check to files
14983         in lib/.
14984
14985 2011-02-22  Eric Blake  <eblake@redhat.com>
14986
14987         maint: avoid any CDPATH issue
14988         * Makefile (sc_cpp_indent_check): Anchor cd argument.
14989
14990         maint: adjust cpp indentation for my modules, as well
14991         * Makefile (sc_cpp_indent_check): Add my name.
14992         * lib/fbufmode.c: Filter through cppi.
14993         * lib/fpurge.c: Likewise.
14994         * lib/freadable.c: Likewise.
14995         * lib/freading.c: Likewise.
14996         * lib/fwritable.c: Likewise.
14997         * lib/fwriting.c: Likewise.
14998         * lib/sigaction.c: Likewise.
14999
15000 2011-02-22  Jim Meyering  <meyering@redhat.com>
15001
15002         maint: adjust cpp indentation to reflect nesting depth
15003         I.e., in a block of code that begins with an unnested "#if",
15004         put one space between the "#" in column 1 and following token.
15005         For example,
15006         -#include <sys/vfs.h>
15007         +# include <sys/vfs.h>
15008         Do this only in .c files that are part of a module I maintain.
15009         * lib/linkat.c: Filter through cppi.
15010         * lib/nanosleep.c: Likewise.
15011         * lib/openat.c: Likewise.
15012         * lib/openat-die.c: Likewise.
15013         * lib/dup3.c: Likewise.
15014         * lib/fchownat.c: Likewise.
15015         * lib/flock.c: Likewise.
15016         * lib/fsync.c: Likewise.
15017         * lib/fts.c: Likewise.
15018         * lib/getpass.c: Likewise.
15019         * lib/gettimeofday.c: Likewise.
15020         * lib/userspec.c: Likewise.
15021         * Makefile (sc_cpp_indent_check): New rule, to check this.
15022
15023 2011-02-22  Bruno Haible  <bruno@clisp.org>
15024
15025         New module 'wctomb'.
15026         * lib/stdlib.in.h (wctomb): New declaration.
15027         * lib/wctomb.c: New file.
15028         * lib/wctomb-impl.h: New file.
15029         * m4/wctomb.m4: New file.
15030         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
15031         REPLACE_WCTOMB.
15032         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
15033         REPLACE_WCTOMB.
15034         * modules/wctomb: New file.
15035         * tests/test-stdlib-c++.cc: Test signature of wctomb.
15036         * doc/posix-functions/wctomb.texi: Mention the new module.
15037         * modules/wctob (Depends-on): Add wctomb.
15038
15039 2011-02-22  Bruno Haible  <bruno@clisp.org>
15040
15041         New module 'mbtowc'.
15042         * lib/stdlib.in.h (mbtowc): New declaration.
15043         * lib/mbtowc.c: New file.
15044         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
15045         * m4/mbtowc.m4: New file.
15046         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
15047         REPLACE_MBTOWC.
15048         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
15049         REPLACE_MBTOWC.
15050         * modules/mbtowc: New file.
15051         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
15052         * doc/posix-functions/mbtowc.texi: Mention the new module.
15053         * modules/btowc (Depends-on): Add mbtowc.
15054
15055 2011-02-22  Bruno Haible  <bruno@clisp.org>
15056
15057         wcrtomb: Add more tests for native Windows platforms.
15058         * tests/test-wcrtomb-w32-1.sh: New file.
15059         * tests/test-wcrtomb-w32-2.sh: New file.
15060         * tests/test-wcrtomb-w32-3.sh: New file.
15061         * tests/test-wcrtomb-w32-4.sh: New file.
15062         * tests/test-wcrtomb-w32-5.sh: New file.
15063         * tests/test-wcrtomb-w32.c: New file.
15064         * modules/wcrtomb-tests (Files): Add them.
15065         (Makefile.am): Arrange to run these tests.
15066         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
15067         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
15068
15069 2011-02-20  Bruno Haible  <bruno@clisp.org>
15070
15071         wcrtomb: Enhance test.
15072         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
15073
15074 2011-02-20  Bruno Haible  <bruno@clisp.org>
15075
15076         mbrtowc: Tiny optimization.
15077         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
15078
15079 2011-02-20  Jim Meyering  <meyering@redhat.com>
15080
15081         test-exclude.c: remove unmatched #endif
15082         * tests/test-exclude.c: Remove stray #endif, left over from
15083         the change of a week ago.
15084
15085 2011-02-19  Jim Meyering  <meyering@redhat.com>
15086
15087         git-version-gen: skip "-dirty" check when appropriate
15088         * build-aux/git-version-gen: Don't run any git commands when the
15089         version string comes from .tarball-version.  Prior to this, we
15090         would run git update-index --refresh even from a just-unpacked
15091         tarball directory, and that could affect a .git/ directory in a
15092         parent of the build directory.  Reported by Mike Frysinger.
15093
15094 2011-02-19  Bruno Haible  <bruno@clisp.org>
15095
15096         unictype/property-byname: Reduce the size of the 'data' segment.
15097         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
15098
15099 2011-02-19  Bruno Haible  <bruno@clisp.org>
15100
15101         unictype/scripts: Reduce the size of the 'data' segment.
15102         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
15103         '%pic'.
15104         * lib/unictype/scripts_byname.gperf: Regenerated.
15105
15106 2011-02-19  Bruno Haible  <bruno@clisp.org>
15107
15108         stdint: Update documentation.
15109         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
15110
15111 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
15112
15113         stdint: omit redundant check for wchar.h
15114         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
15115         always tests whether wchar.h exists, so remove the now-redundant test.
15116
15117 2011-02-18  Bruno Haible  <bruno@clisp.org>
15118
15119         stdint: Cut dependency to module 'wchar'.
15120         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
15121         include the necessary prerequisites.
15122         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
15123         * modules/stdint (Depends-on): Remove wchar.
15124         (Makefile.am): Substitute HAVE_WCHAR_H.
15125         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
15126
15127 2011-02-18  Eric Blake  <eblake@redhat.com>
15128
15129         longlong: skip, rather than fail, on cross-compilation
15130         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
15131         when cross-compiling; regression from 2011-02-16.
15132
15133 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15134
15135         * NEWS: Mention 2011-02-08 change to stdlib.
15136
15137 2011-02-17  Bruno Haible  <bruno@clisp.org>
15138
15139         getloadavg: Add comments about platforms.
15140         * m4/getloadavg.m4: Add comment.
15141         * lib/getloadavg.c: Likewise.
15142
15143 2011-02-17  Bruno Haible  <bruno@clisp.org>
15144
15145         getloadavg: Fix link error on Solaris 2.6.
15146         * modules/getloadavg (Link): New section.
15147         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
15148         linking test-getloadavg.
15149         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
15150         getloadavg.
15151
15152 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15153
15154         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
15155         It was 'int', but this doesn't match the IRIX 6.5 manual.
15156         Suggested by Bruno Haible in
15157         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
15158
15159 2011-02-17  Bruno Haible  <bruno@clisp.org>
15160
15161         havelib: Fix comments.
15162         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
15163         change.
15164
15165 2011-02-17  Bruno Haible  <bruno@clisp.org>
15166
15167         havelib: Update config.rpath.
15168         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
15169
15170 2011-02-17  Bruno Haible  <bruno@clisp.org>
15171
15172         getloadavg test: Add some plausibility checks.
15173         * tests/test-getloadavg.c (check_avg): Print a warning when the value
15174         is improbable.
15175
15176 2011-02-16  Eric Blake  <eblake@redhat.com>
15177
15178         maintainer-makefile: make syntax-check a no-op from tarballs
15179         * top/maint.mk (no-vc-detected): New rule.
15180         (local-checks-available): Use it to avoid hanging if someone tries
15181         'make syntax-check' from a tarball.  Also append to any non-syntax
15182         checks already defined in cfg.mk.
15183
15184 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
15185
15186         longlong: tune, particularly for common case of c99
15187
15188         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
15189         or running anything if c99, or if unsigned long long int does not
15190         work.  In either case, we know the answer without further tests.
15191         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
15192         it at most once, and use its results for both long long int and
15193         unsigned long long int.  This is more likely to be efficient in
15194         the common case where the program wants to check for both long
15195         long int and unsigned long long int.
15196         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
15197         since the answer is already known.
15198
15199 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
15200
15201         getloadavg: set errno
15202         * lib/getloadavg.c: Set errno when returning -1.  If no other
15203         error number looks appropriate, set it to ENOSYS if the getloadavg
15204         looks like it can't possibly ever work, ENOTSUP otherwise.
15205         Suggested by Bruno Haible in
15206         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
15207
15208         getloadavg: trim unused parts and speed up 'configure'
15209         * NEWS: Document this.
15210         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
15211         always compiled if getloadavg is absent.
15212         Move test code to ...
15213         * tests/test-getloadavg.c: New file, containing previous
15214         contents of test from lib/getloadavg.c.  It also contains
15215         suggestions by Bruno Haible in
15216         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
15217         * modules/getloadavg-tests: New file.
15218         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
15219         Do tests in the same order as they're needed for getloadavg.c.
15220         Omit setgid-related tests that generate symbols KMEM_GROUP,
15221         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
15222         Do only the tests that are needed to see whether the system has
15223         getloadavg, moving the other tests into ...
15224         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
15225         NLIST_NAME_UNION; nobody should be using it.  Do not define
15226         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
15227         relevant, as the user of this module shouldn't care how getloadavg
15228         is implemented.
15229
15230         getloadavg: omit unused var
15231         * lib/getloadavg.c (getloadavg): Omit unused local variable.
15232
15233 2011-02-15  Jim Meyering  <meyering@redhat.com>
15234
15235         doc: update users.txt
15236         * users.txt: Update iwhd's URL.
15237
15238 2011-02-13  Bruno Haible  <bruno@clisp.org>
15239
15240         Consistent macro naming for macros that use GCC __attribute__.
15241         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
15242         _ATTRIBUTE_NONNULL_.
15243         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
15244         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
15245         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
15246         ATTRIBUTE_DEPRECATED.
15247         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
15248         ATTRIBUTE_NORETURN.
15249         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15250         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15251         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15252         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15253         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
15254         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
15255         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
15256         ATTRIBUTE_SENTINEL.
15257         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
15258         ATTRIBUTE_RETURN_CHECK.
15259         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
15260         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
15261         ATTRIBUTE_NORETURN.
15262         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
15263         Reported by Paul Eggert.
15264
15265 2011-02-13  Bruno Haible  <bruno@clisp.org>
15266
15267         Don't interfere with a program's definition of __attribute__.
15268         * lib/argp.h (__attribute__): Remove definition.
15269         (_GL_ATTRIBUTE_FORMAT): New macro.
15270         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
15271         * lib/argp-fmtstream.h (__attribute__): Remove definition.
15272         (_GL_ATTRIBUTE_FORMAT): New macro.
15273         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
15274         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
15275         GCC 3 or newer.
15276         * lib/error.h (__attribute__): Remove definition.
15277         (_GL_ATTRIBUTE_FORMAT): New macro.
15278         (error, error_at_line): Use it.
15279         * lib/hash.h (__attribute__): Remove definition.
15280         (ATTRIBUTE_WUR): Update definition. Define always.
15281         * lib/openat.h (__attribute__): Remove definition.
15282         (ATTRIBUTE_NORETURN): Update definition. Define always.
15283         * lib/sigpipe-die.h (__attribute__): Remove definition.
15284         (ATTRIBUTE_NORETURN): Update definition. Define always.
15285         * lib/vasnprintf.h (__attribute__): Remove definition.
15286         (_GL_ATTRIBUTE_FORMAT): New macro.
15287         (asnprintf, vasnprintf): Use it.
15288         * lib/xalloc.h (__attribute__): Remove definition.
15289         (ATTRIBUTE_NORETURN): Update definition. Define always.
15290         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
15291         * lib/xmemdup0.h (__attribute__): Remove definition.
15292         (ATTRIBUTE_NORETURN): Update definition. Define always.
15293         * lib/xprintf.h (__attribute__): Remove definition.
15294         (_GL_ATTRIBUTE_FORMAT): New macro.
15295         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
15296         * lib/xstrtol.h (__attribute__): Remove definition.
15297         (ATTRIBUTE_NORETURN): Update definition. Define always.
15298         * lib/xvasprintf.h (__attribute__): Remove definition.
15299         (_GL_ATTRIBUTE_FORMAT): New macro.
15300         (xasprintf, xvasprintf): Use it.
15301         * tests/test-argmatch.c (__attribute__): Remove definition.
15302         (ATTRIBUTE_NORETURN): Update definition. Define always.
15303         * tests/test-exclude.c (__attribute__): Remove definition.
15304         (ATTRIBUTE_NORETURN): Update definition. Define always.
15305         Reported by Paul Eggert.
15306
15307 2011-02-13  Bruno Haible  <bruno@clisp.org>
15308
15309         mbrtowc: Add more tests for native Windows platforms.
15310         * tests/test-mbrtowc-w32-1.sh: New file.
15311         * tests/test-mbrtowc-w32-2.sh: New file.
15312         * tests/test-mbrtowc-w32-3.sh: New file.
15313         * tests/test-mbrtowc-w32-4.sh: New file.
15314         * tests/test-mbrtowc-w32-5.sh: New file.
15315         * tests/test-mbrtowc-w32.c: New file.
15316         * modules/mbrtowc-tests (Files): Add them.
15317         (Makefile.am): Arrange to run these tests.
15318         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
15319         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
15320
15321 2011-02-13  Bruno Haible  <bruno@clisp.org>
15322
15323         mbrtowc: Work around native Windows bug.
15324         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
15325         guess when no suitable locale for testing was found.
15326         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
15327
15328 2011-02-13  Bruno Haible  <bruno@clisp.org>
15329
15330         mbsinit: Work around mingw bug.
15331         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
15332         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
15333         Windows.
15334         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
15335
15336 2011-02-13  Bruno Haible  <bruno@clisp.org>
15337
15338         mbsinit: Don't crash for a NULL argument.
15339         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
15340         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
15341
15342 2011-02-13  Bruno Haible  <bruno@clisp.org>
15343
15344         Don't interfere with a program's definition of __attribute__.
15345         * lib/stdio.in.h (__attribute__): Remove definition.
15346         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
15347         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
15348         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
15349         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
15350         * lib/string.in.h (__attribute__): Remove definition.
15351         Reported by Paul Eggert.
15352
15353 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15354
15355         stdlib: don't get in the way of non-GCC __attribute__
15356         See thread starting at
15357         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
15358         Revert previous stdlib change, installing the following instead:
15359         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
15360         to get in the way of a non-GCC compiler that supports __attribute__.
15361         (_GL_ATTRIBUTE_RETURN): New macro.
15362         (_Exit): Use it instead of __attribute__.
15363
15364 2011-02-12  Bruno Haible  <bruno@clisp.org>
15365
15366         quotearg test: Avoid test failure on mingw.
15367         * tests/test-quotearg.sh: Convert the locale identifier from native
15368         Windows syntax to Unix syntax.
15369
15370 2011-02-12  Bruno Haible  <bruno@clisp.org>
15371
15372         setlocale: Prefer gnulib's override over libintl's override.
15373         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
15374         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
15375         GNULIB_defined_setlocale is set.
15376
15377 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15378
15379         stdlib: support non-GCC __attribute__
15380
15381         Fix a serious and tricky problem encountered when attempting to
15382         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
15383         5.5, but it crashed due to memory corruption on Solaris 10 with
15384         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
15385         bits that are otherwise zero.  This tagging is optional inside
15386         Emacs but is preferred and is used when __attribute__ ((__aligned
15387         (8))) works, as it does with both recent-enough GCC and with Sun C
15388         5.11.  However, Sun C 5.11 is not GCC and does not #define
15389         __GNUC__ and __GNUC_MINOR__.
15390
15391         When I added the getloadavg module to Emacs, it brought in
15392         stdlib.in.h, which contained this fragment:
15393
15394            #ifndef __attribute__
15395            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
15396            #  define __attribute__(Spec)   /* empty */
15397            # endif
15398            #endif
15399
15400         When files that include <stdlib.h> were compiled with Sun C 5.11,
15401         the above code disabled __attribute__ ((__aligned (8))), which
15402         caused variables to not be properly aligned, which eventually led
15403         to the pointer corruption mentioned above.  (This was a bit hard
15404         to diagnose, unfortunately.)
15405
15406         Several "#define __attribute__(X) /* empty */" code snippets need
15407         to be eradicated from Gnulib to work with non-GCC compilers that
15408         support __attribute__.  The Autoconf way to do this is to test for
15409         each kind of attribute that we want support for, and selectively
15410         enable that in source code.
15411
15412         Fix this problem just for stdlib.h, by adding a test for the
15413         __noreturn__ attribute, and change stdlib.in.h to use that test
15414         when needed.  This technique can be easily generalized to the
15415         other *.in.h files and attributes, and a similar technique can be
15416         used for *.h and *.c files.  This patch is enough to solve the
15417         problem for Emacs + getloadavg, and I thought I'd publish it for
15418         feedback before undertaking further, similar fixes in other
15419         modules.
15420
15421         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
15422         because it's not needed for stdlib.h.  It merely substitutes the
15423         value directly into stdlib.h.  We may well need to #define it, or
15424         similar symbols, for other modules, but it's nice to also have an
15425         option to not #define it for applications like Emacs that do not
15426         need it.
15427
15428         * lib/stdlib.in.h (__attribute__): Do not #define.
15429         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
15430         be defined only if the _Exit module is also used.
15431         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
15432         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
15433         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
15434         platforms.
15435         * modules/_Exit (Files): Add m4/attribute.m4.
15436         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
15437         * m4/attribute.m4: New file.
15438
15439 2011-02-12  Bruno Haible  <bruno@clisp.org>
15440
15441         wcsrtombs: Work around bug on native Windows.
15442         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
15443         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
15444         instead of len.
15445         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
15446
15447 2011-02-12  Bruno Haible  <bruno@clisp.org>
15448
15449         mbsrtowcs: Work around bug on native Windows.
15450         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
15451         against mingw bug.
15452         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
15453
15454 2011-02-12  Bruno Haible  <bruno@clisp.org>
15455
15456         Avoid setlocale bugs in tests.
15457         * modules/btowc (Dependencies): Add setlocale.
15458         * modules/c-strcase (Dependencies): Likewise.
15459         * modules/mbmemcasecmp (Dependencies): Likewise.
15460         * modules/mbmemcasecoll (Dependencies): Likewise.
15461         * modules/mbrtowc (Dependencies): Likewise.
15462         * modules/mbscasecmp (Dependencies): Likewise.
15463         * modules/mbscasestr (Dependencies): Likewise.
15464         * modules/mbschr (Dependencies): Likewise.
15465         * modules/mbscspn (Dependencies): Likewise.
15466         * modules/mbsinit (Dependencies): Likewise.
15467         * modules/mbsncasecmp (Dependencies): Likewise.
15468         * modules/mbsnrtowcs (Dependencies): Likewise.
15469         * modules/mbspbrk (Dependencies): Likewise.
15470         * modules/mbspcasecmp (Dependencies): Likewise.
15471         * modules/mbsrchr (Dependencies): Likewise.
15472         * modules/mbsrtowcs (Dependencies): Likewise.
15473         * modules/mbsspn (Dependencies): Likewise.
15474         * modules/mbsstr (Dependencies): Likewise.
15475         * modules/nl_langinfo (Dependencies): Likewise.
15476         * modules/quotearg (Dependencies): Likewise.
15477         * modules/unicase/locale-language (Dependencies): Likewise.
15478         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
15479         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
15480         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
15481         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
15482         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
15483         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
15484         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
15485         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
15486         * modules/vasnprintf-posix (Dependencies): Likewise.
15487         * modules/wcrtomb (Dependencies): Likewise.
15488         * modules/wcsnrtombs (Dependencies): Likewise.
15489         * modules/wcsrtombs (Dependencies): Likewise.
15490
15491 2011-02-12  Bruno Haible  <bruno@clisp.org>
15492
15493         setlocale: Workaround native Windows bug.
15494         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
15495         succeeds but sets LC_CTYPE to "C", report a failure.
15496         * tests/test-setlocale2.sh: New file.
15497         * tests/test-setlocale2.c: New file.
15498         * modules/setlocale-tests (Files): Add the new files.
15499         (Makefile.am): Enable test-setlocale2.sh test.
15500         * doc/posix-functions/setlocale.texi: Mention workaround.
15501
15502 2011-02-11  Bruno Haible  <bruno@clisp.org>
15503
15504         Tests for module 'setlocale'.
15505         * modules/setlocale-tests: New file.
15506         * tests/test-setlocale1.sh: New file.
15507         * tests/test-setlocale1.c: New file.
15508
15509         New module 'setlocale'.
15510         * lib/locale.in.h (setlocale): New declaration.
15511         * lib/setlocale.c: New file, based on
15512         gettext/gettext-runtime/intl/setlocale.c.
15513         * m4/setlocale.m4: New file.
15514         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
15515         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
15516         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
15517         REPLACE_SETLOCALE.
15518         * modules/setlocale: New file.
15519         * tests/test-locale-c++.cc: Test the declaration of setlocale.
15520         * doc/posix-functions/setlocale.texi: Mention the new module.
15521
15522 2011-02-11  Bruno Haible  <bruno@clisp.org>
15523
15524         Prepare for locale dependent tests on mingw.
15525         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
15526         because it has the wrong locale encoding.
15527         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
15528         French_France.1252 instead of "fr".
15529         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
15530         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
15531         because it has the wrong locale encoding.
15532         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
15533         native Windows, try Turkish_Turkey.65001.
15534         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
15535         Chinese_China.54936.
15536
15537         Prepare for locale dependent tests on mingw.
15538         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
15539         differently.
15540         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15541         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15542         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15543         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15544
15545 2011-02-11  Eric Blake  <eblake@redhat.com>
15546
15547         strptime: avoid compiler warnings
15548         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
15549         compiler warnings about dead code.
15550         Reported by Daniel P. Berrange.
15551
15552 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
15553
15554         doc: update users.txt
15555         * users.txt: Add rcs.
15556
15557 2011-02-10  John W. Eaton  <jwe@gnu.org>
15558
15559         doc: update users.txt
15560         * users.txt: Add octave.
15561
15562 2011-02-10  Jim Meyering  <meyering@redhat.com>
15563
15564         doc: update users.txt
15565         * users.txt: Add iwhd.
15566
15567 2011-02-09  Bruno Haible  <bruno@clisp.org>
15568
15569         gnulib-tool: Make copyright notice adjustment more robust.
15570         * gnulib-tool (func_import): In sed_transform_main_lib_file,
15571         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
15572         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
15573         License".
15574         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
15575
15576 2011-02-06  Bruno Haible  <bruno@clisp.org>
15577
15578         New module 'towctrans'.
15579         * modules/towctrans: New file.
15580         * lib/wctype.in.h (towctrans): New declaration.
15581         * lib/towctrans.c: New file.
15582         * lib/towctrans-impl.h: New file.
15583         * m4/towctrans.m4: New file.
15584         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
15585         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
15586         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
15587         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
15588         * doc/posix-functions/towctrans.texi: Mention the new module.
15589
15590 2011-02-06  Bruno Haible  <bruno@clisp.org>
15591
15592         New module 'wctrans'.
15593         * modules/wctrans: New file.
15594         * lib/wctype.in.h (wctrans): New declaration.
15595         * lib/wctrans.c: New file.
15596         * lib/wctrans-impl.h: New file.
15597         * m4/wctrans.m4: New file.
15598         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
15599         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
15600         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
15601         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
15602         * doc/posix-functions/wctrans.texi: Mention the new module.
15603
15604 2011-02-06  Bruno Haible  <bruno@clisp.org>
15605
15606         New module 'iswctype'.
15607         * modules/iswctype: New file.
15608         * lib/wctype.in.h (iswctype): New declaration.
15609         * lib/iswctype.c: New file.
15610         * lib/iswctype-impl.h: New file.
15611         * m4/iswctype.m4: New file.
15612         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
15613         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
15614         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
15615         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
15616         * doc/posix-functions/iswctype.texi: Mention the new module and the
15617         HP-UX 11.00 problem.
15618
15619 2011-02-06  Bruno Haible  <bruno@clisp.org>
15620
15621         New module 'wctype'.
15622         * modules/wctype: Change to represent the wctype() substitute.
15623         * lib/wctype.in.h (wctype): New declaration.
15624         * lib/wctype.c: New file.
15625         * lib/wctype-impl.h: New file.
15626         * m4/wctype.m4: New file.
15627         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
15628         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
15629         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
15630         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
15631         * doc/posix-functions/wctype.texi: Mention the new module and the
15632         HP-UX 11.00 problem.
15633
15634 2011-02-06  Bruno Haible  <bruno@clisp.org>
15635
15636         wctype-h: Ensure wctype_t and wctrans_t are defined.
15637         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
15638         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15639         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15640         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
15641         HAVE_WCTRANS_T.
15642         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
15643
15644 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
15645
15646         flock: fix license typo
15647
15648         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
15649         omitted.
15650
15651 2011-02-08  Bruno Haible  <bruno@clisp.org>
15652
15653         Split large sed scripts, for HP-UX sed.
15654         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
15655         to avoid HP-UX limit of 99 commands, in the near future.
15656         * modules/stdlib (Makefile.am): Likewise.
15657         * modules/unistd (Makefile.am): Likewise.
15658         * modules/wchar (Makefile.am): Likewise.
15659         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15660         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
15661         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
15662
15663 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15664             Bruno Haible  <bruno@clisp.org>
15665
15666         stdlib: improve random_r modularization
15667         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
15668         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
15669         you also need the random_r module to get this material right.
15670         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
15671         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
15672         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
15673
15674 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15675
15676         stdlib: don't depend on stdint
15677         * lib/stdlib.in.h: Don't include <stdint.h> merely because
15678         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
15679         be independent of whether stdint.h is needed.
15680         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
15681         here, instead of ...
15682         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
15683         struct random_data should be using the random_r module, not just
15684         the stdlib module (which wouldn't make sense: what package needs
15685         just struct random_data without also needing random_r?).
15686         * modules/stdlib (Depends-on): Remove stdint.
15687
15688         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
15689         See the thread rooted at
15690         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
15691         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
15692         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
15693         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
15694         __VMS)); previously it was always included (via fcntl--.h).
15695         (getloadavg): Do not use c_strtod.  Instead, approximate it by
15696         hand; this is good enough for load averages.  Also, do not use
15697         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
15698         flags directly if available and don't bother otherwise.  (Packages
15699         that need the extra reliability should use the modules that define
15700         these flags on older platforms that lack them.)
15701         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
15702         fcntl-safer.
15703
15704 2011-02-08  Jim Meyering  <meyering@redhat.com>
15705
15706         di-set.h, ino-map.h: add multiple-inclusion guard
15707         Technically, the guard is required only for ino-map.h, due to its
15708         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
15709         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
15710         * lib/ino-map.h: Likewise.
15711
15712 2011-02-06  Bruno Haible  <bruno@clisp.org>
15713
15714         iswblank: Ensure declaration on glibc systems.
15715         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
15716         * modules/iswblank (Dependencies): Add 'extensions'.
15717         * doc/posix-functions/iswblank.texi: Document the glibc problem.
15718
15719 2011-02-06  Bruno Haible  <bruno@clisp.org>
15720
15721         New module 'iswblank'.
15722         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
15723         * modules/iswblank: New file.
15724         * modules/wctype-h (Files): Remove lib/iswblank.c.
15725         (Makefile.am): Substitute GNULIB_ISWBLANK.
15726         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
15727         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
15728         (gl_WCTYPE_H_DEFAULTS): New macro.
15729         (gl_WCTYPE_H): Require it. Remove iswblank related code.
15730         * modules/iswblank-tests: New file.
15731         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
15732         * tests/test-wctype-h.c (main): Remove iswblank tests.
15733         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
15734         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
15735         of 'wctype-h'.
15736         * NEWS: Mention the change.
15737         * modules/mbchar (Depends-on): Add iswblank.
15738
15739 2011-02-08  Bruno Haible  <bruno@clisp.org>
15740
15741         di-set tests: Refactor.
15742         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
15743         unnecessary includes.
15744         (ASSERT): Remove macro.
15745         (main): Make C90 compliant by avoiding variable declaration after
15746         statement.
15747         * modules/di-set-tests (Files): Add tests/macros.h.
15748
15749 2011-02-08  Bruno Haible  <bruno@clisp.org>
15750
15751         ino-map tests: Refactor.
15752         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
15753         unnecessary includes.
15754         (ASSERT): Remove macro.
15755         (main): Make C90 compliant by avoiding variable declaration after
15756         statement.
15757         * modules/ino-map-tests (Files): Add tests/macros.h.
15758
15759 2011-02-08  Jim Meyering  <meyering@redhat.com>
15760
15761         di-set: add "const" to a cast
15762         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
15763         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
15764
15765 2011-02-06  Bruno Haible  <bruno@clisp.org>
15766
15767         Rename module 'wctype' to 'wctype-h'.
15768         * modules/wctype-h: Renamed from modules/wctype.
15769         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
15770         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
15771         (Files, Depends-on, Makefile.am): Update.
15772         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
15773         (Files, Makefile.am): Update.
15774         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
15775         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
15776         * doc/posix-headers/wctype.texi: Update.
15777         * doc/posix-functions/iswalnum.texi: Update.
15778         * doc/posix-functions/iswalpha.texi: Update.
15779         * doc/posix-functions/iswblank.texi: Update.
15780         * doc/posix-functions/iswcntrl.texi: Update.
15781         * doc/posix-functions/iswdigit.texi: Update.
15782         * doc/posix-functions/iswgraph.texi: Update.
15783         * doc/posix-functions/iswlower.texi: Update.
15784         * doc/posix-functions/iswprint.texi: Update.
15785         * doc/posix-functions/iswpunct.texi: Update.
15786         * doc/posix-functions/iswspace.texi: Update.
15787         * doc/posix-functions/iswupper.texi: Update.
15788         * doc/posix-functions/iswxdigit.texi: Update.
15789         * doc/posix-functions/towlower.texi: Update.
15790         * doc/posix-functions/towupper.texi: Update.
15791         * NEWS: Mention the change.
15792         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
15793         * modules/mbchar (Dependencies): Likewise.
15794         * modules/mbswidth (Dependencies): Likewise.
15795         * modules/quotearg (Dependencies): Likewise.
15796         * modules/regex (Dependencies): Likewise.
15797         * modules/wcscasecmp (Dependencies): Likewise.
15798         * modules/wcsncasecmp (Dependencies): Likewise.
15799         * modules/wcwidth (Dependencies): Likewise.
15800
15801 2011-02-06  Bruno Haible  <bruno@clisp.org>
15802
15803         New module 'wcswidth'.
15804         * modules/wcswidth: New file.
15805         * lib/wchar.in.h (wcswidth): New declaration.
15806         * lib/wcswidth.c: New file.
15807         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
15808         * m4/wcswidth.m4: New file.
15809         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
15810         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
15811         REPLACE_WCSWIDTH.
15812         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
15813         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
15814         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
15815         * doc/posix-functions/wcswidth.texi: Mention the new module.
15816
15817 2011-02-06  Bruno Haible  <bruno@clisp.org>
15818
15819         New module 'wcstok'.
15820         * modules/wcstok: New file.
15821         * lib/wchar.in.h (wcstok): New declaration.
15822         * lib/wcstok.c: New file.
15823         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
15824         * m4/wcstok.m4: New file.
15825         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
15826         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
15827         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
15828         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
15829         * doc/posix-functions/wcstok.texi: Mention the new module.
15830
15831 2011-02-06  Bruno Haible  <bruno@clisp.org>
15832
15833         New module 'wcsstr'.
15834         * modules/wcsstr: New file.
15835         * lib/wchar.in.h (wcsstr): New declaration.
15836         * lib/wcsstr.c: New file.
15837         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
15838         * m4/wcsstr.m4: New file.
15839         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
15840         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
15841         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
15842         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
15843         * doc/posix-functions/wcsstr.texi: Mention the new module.
15844
15845 2011-02-06  Bruno Haible  <bruno@clisp.org>
15846
15847         New module 'wcspbrk'.
15848         * modules/wcspbrk: New file.
15849         * lib/wchar.in.h (wcspbrk): New declaration.
15850         * lib/wcspbrk.c: New file.
15851         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
15852         * m4/wcspbrk.m4: New file.
15853         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
15854         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
15855         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
15856         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
15857         * doc/posix-functions/wcspbrk.texi: Mention the new module.
15858
15859 2011-02-06  Bruno Haible  <bruno@clisp.org>
15860
15861         New module 'wcsspn'.
15862         * modules/wcsspn: New file.
15863         * lib/wchar.in.h (wcsspn): New declaration.
15864         * lib/wcsspn.c: New file.
15865         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
15866         * m4/wcsspn.m4: New file.
15867         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
15868         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
15869         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
15870         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
15871         * doc/posix-functions/wcsspn.texi: Mention the new module.
15872
15873 2011-02-06  Bruno Haible  <bruno@clisp.org>
15874
15875         New module 'wcscspn'.
15876         * modules/wcscspn: New file.
15877         * lib/wchar.in.h (wcscspn): New declaration.
15878         * lib/wcscspn.c: New file.
15879         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
15880         * m4/wcscspn.m4: New file.
15881         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
15882         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
15883         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
15884         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
15885         * doc/posix-functions/wcscspn.texi: Mention the new module.
15886
15887 2011-02-06  Bruno Haible  <bruno@clisp.org>
15888
15889         New module 'wcsrchr'.
15890         * modules/wcsrchr: New file.
15891         * lib/wchar.in.h (wcsrchr): New declaration.
15892         * lib/wcsrchr.c: New file.
15893         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
15894         * m4/wcsrchr.m4: New file.
15895         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
15896         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
15897         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
15898         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
15899         * doc/posix-functions/wcsrchr.texi: Mention the new module.
15900
15901 2011-02-06  Bruno Haible  <bruno@clisp.org>
15902
15903         New module 'wcschr'.
15904         * modules/wcschr: New file.
15905         * lib/wchar.in.h (wcschr): New declaration.
15906         * lib/wcschr.c: New file.
15907         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
15908         * m4/wcschr.m4: New file.
15909         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
15910         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
15911         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
15912         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
15913         * doc/posix-functions/wcschr.texi: Mention the new module.
15914
15915 2011-02-06  Bruno Haible  <bruno@clisp.org>
15916
15917         New module 'wcsdup'.
15918         * modules/wcsdup: New file.
15919         * lib/wchar.in.h (wcsdup): New declaration.
15920         * lib/wcsdup.c: New file.
15921         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
15922         * m4/wcsdup.m4: New file.
15923         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
15924         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
15925         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
15926         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
15927         * doc/posix-functions/wcsdup.texi: Mention the new module.
15928
15929 2011-02-06  Bruno Haible  <bruno@clisp.org>
15930
15931         New module 'wcsxfrm'.
15932         * modules/wcsxfrm: New file.
15933         * lib/wchar.in.h (wcsxfrm): New declaration.
15934         * lib/wcsxfrm.c: New file.
15935         * lib/wcsxfrm-impl.h: New file.
15936         * m4/wcsxfrm.m4: New file.
15937         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
15938         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
15939         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
15940         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
15941         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
15942
15943 2011-02-06  Bruno Haible  <bruno@clisp.org>
15944
15945         New module 'wcscoll'.
15946         * modules/wcscoll: New file.
15947         * lib/wchar.in.h (wcscoll): New declaration.
15948         * lib/wcscoll.c: New file.
15949         * lib/wcscoll-impl.h: New file.
15950         * m4/wcscoll.m4: New file.
15951         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
15952         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
15953         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
15954         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
15955         * doc/posix-functions/wcscoll.texi: Mention the new module.
15956
15957 2011-02-06  Bruno Haible  <bruno@clisp.org>
15958
15959         New module 'wcsncasecmp'.
15960         * modules/wcsncasecmp: New file.
15961         * lib/wchar.in.h (wcsncasecmp): New declaration.
15962         * lib/wcsncasecmp.c: New file.
15963         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
15964         * m4/wcsncasecmp.m4: New file.
15965         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
15966         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
15967         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
15968         HAVE_WCSNCASECMP.
15969         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
15970         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
15971
15972 2011-02-06  Bruno Haible  <bruno@clisp.org>
15973
15974         New module 'wcscasecmp'.
15975         * modules/wcscasecmp: New file.
15976         * lib/wchar.in.h (wcscasecmp): New declaration.
15977         * lib/wcscasecmp.c: New file.
15978         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
15979         * m4/wcscasecmp.m4: New file.
15980         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
15981         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
15982         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
15983         HAVE_WCSCASECMP.
15984         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
15985         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
15986
15987 2011-02-05  Bruno Haible  <bruno@clisp.org>
15988
15989         New module 'wcsncmp'.
15990         * modules/wcsncmp: New file.
15991         * lib/wchar.in.h (wcsncmp): New declaration.
15992         * lib/wcsncmp.c: New file.
15993         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
15994         * m4/wcsncmp.m4: New file.
15995         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
15996         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
15997         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
15998         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
15999         * doc/posix-functions/wcsncmp.texi: Mention the new module.
16000
16001 2011-02-05  Bruno Haible  <bruno@clisp.org>
16002
16003         New module 'wcscmp'.
16004         * modules/wcscmp: New file.
16005         * lib/wchar.in.h (wcscmp): New declaration.
16006         * lib/wcscmp.c: New file.
16007         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
16008         * m4/wcscmp.m4: New file.
16009         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
16010         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
16011         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
16012         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
16013         * doc/posix-functions/wcscmp.texi: Mention the new module.
16014
16015 2011-02-05  Bruno Haible  <bruno@clisp.org>
16016
16017         New module 'wcsncat'.
16018         * modules/wcsncat: New file.
16019         * lib/wchar.in.h (wcsncat): New declaration.
16020         * lib/wcsncat.c: New file.
16021         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
16022         * m4/wcsncat.m4: New file.
16023         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
16024         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
16025         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
16026         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
16027         * doc/posix-functions/wcsncat.texi: Mention the new module.
16028
16029 2011-02-05  Bruno Haible  <bruno@clisp.org>
16030
16031         New module 'wcscat'.
16032         * modules/wcscat: New file.
16033         * lib/wchar.in.h (wcscat): New declaration.
16034         * lib/wcscat.c: New file.
16035         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
16036         * m4/wcscat.m4: New file.
16037         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
16038         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
16039         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
16040         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
16041         * doc/posix-functions/wcscat.texi: Mention the new module.
16042
16043 2011-02-05  Bruno Haible  <bruno@clisp.org>
16044
16045         New module 'wcpncpy'.
16046         * modules/wcpncpy: New file.
16047         * lib/wchar.in.h (wcpncpy): New declaration.
16048         * lib/wcpncpy.c: New file.
16049         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
16050         * m4/wcpncpy.m4: New file.
16051         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
16052         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
16053         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
16054         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
16055         * doc/posix-functions/wcpncpy.texi: Mention the new module.
16056
16057 2011-02-05  Bruno Haible  <bruno@clisp.org>
16058
16059         New module 'wcsncpy'.
16060         * modules/wcsncpy: New file.
16061         * lib/wchar.in.h (wcsncpy): New declaration.
16062         * lib/wcsncpy.c: New file.
16063         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
16064         * m4/wcsncpy.m4: New file.
16065         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
16066         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
16067         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
16068         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
16069         * doc/posix-functions/wcsncpy.texi: Mention the new module.
16070
16071 2011-02-05  Bruno Haible  <bruno@clisp.org>
16072
16073         New module 'wcpcpy'.
16074         * modules/wcpcpy: New file.
16075         * lib/wchar.in.h (wcpcpy): New declaration.
16076         * lib/wcpcpy.c: New file.
16077         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
16078         * m4/wcpcpy.m4: New file.
16079         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
16080         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
16081         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
16082         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
16083         * doc/posix-functions/wcpcpy.texi: Mention the new module.
16084
16085 2011-02-05  Bruno Haible  <bruno@clisp.org>
16086
16087         New module 'wcscpy'.
16088         * modules/wcscpy: New file.
16089         * lib/wchar.in.h (wcscpy): New declaration.
16090         * lib/wcscpy.c: New file.
16091         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
16092         * m4/wcscpy.m4: New file.
16093         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
16094         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
16095         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
16096         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
16097         * doc/posix-functions/wcscpy.texi: Mention the new module.
16098
16099 2011-02-05  Bruno Haible  <bruno@clisp.org>
16100
16101         New module 'wcsnlen'.
16102         * modules/wcsnlen: New file.
16103         * lib/wchar.in.h (wcsnlen): New declaration.
16104         * lib/wcsnlen.c: New file.
16105         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
16106         * m4/wcsnlen.m4: New file.
16107         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
16108         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
16109         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
16110         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
16111         * doc/posix-functions/wcsnlen.texi: Mention the new module.
16112
16113 2011-02-05  Bruno Haible  <bruno@clisp.org>
16114
16115         New module 'wcslen'.
16116         * modules/wcslen: New file.
16117         * lib/wchar.in.h (wcslen): New declaration.
16118         * lib/wcslen.c: New file.
16119         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
16120         * m4/wcslen.m4: New file.
16121         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
16122         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
16123         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
16124         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
16125         * doc/posix-functions/wcslen.texi: Mention the new module.
16126
16127 2011-02-05  Bruno Haible  <bruno@clisp.org>
16128
16129         New module 'wmemset'.
16130         * modules/wmemset: New file.
16131         * lib/wchar.in.h (wmemset): New declaration.
16132         * lib/wmemset.c: New file.
16133         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
16134         * m4/wmemset.m4: New file.
16135         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
16136         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
16137         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
16138         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
16139         * doc/posix-functions/wmemset.texi: Mention the new module.
16140
16141 2011-02-05  Bruno Haible  <bruno@clisp.org>
16142
16143         New module 'wmemmove'.
16144         * modules/wmemmove: New file.
16145         * lib/wchar.in.h (wmemmove): New declaration.
16146         * lib/wmemmove.c: New file.
16147         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
16148         * m4/wmemmove.m4: New file.
16149         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
16150         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
16151         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
16152         HAVE_WMEMMOVE.
16153         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
16154         * doc/posix-functions/wmemmove.texi: Mention the new module.
16155
16156 2011-02-05  Bruno Haible  <bruno@clisp.org>
16157
16158         New module 'wmemcpy'.
16159         * modules/wmemcpy: New file.
16160         * lib/wchar.in.h (wmemcpy): New declaration.
16161         * lib/wmemcpy.c: New file.
16162         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
16163         * m4/wmemcpy.m4: New file.
16164         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
16165         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
16166         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
16167         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
16168         * doc/posix-functions/wmemcpy.texi: Mention the new module.
16169
16170 2011-02-05  Bruno Haible  <bruno@clisp.org>
16171
16172         New module 'wmemcmp'.
16173         * modules/wmemcmp: New file.
16174         * lib/wchar.in.h (wmemcmp): New declaration.
16175         * lib/wmemcmp.c: New file.
16176         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
16177         * m4/wmemcmp.m4: New file.
16178         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
16179         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
16180         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
16181         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
16182         * doc/posix-functions/wmemcmp.texi: Mention the new module.
16183
16184 2011-02-07  Jim Meyering  <meyering@redhat.com>
16185
16186         di-set, ino-map: new modules, from coreutils
16187         * lib/di-set.c: New file.
16188         * lib/di-set.h: Likewise.
16189         * lib/ino-map.c: Likewise.
16190         * lib/ino-map.h: Likewise.
16191         * modules/di-set: Likewise.
16192         * modules/di-set-tests: Likewise.
16193         * modules/ino-map: Likewise.
16194         * modules/ino-map-tests: Likewise.
16195         * tests/test-di-set.c: Likewise.
16196         * tests/test-ino-map.c: Likewise.
16197
16198 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
16199
16200         getloadavg: merge minor changes from Emacs
16201
16202         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
16203         (getloadavg): Use memset, not bzero.
16204
16205         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
16206         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16207         clash (bug#86).
16208
16209 2010-11-14  Bruno Haible  <bruno@clisp.org>
16210
16211         Allow multiple gnulib generated replacements to coexist.
16212         * lib/getopt.in.h (struct option): Avoid identical redefinition.
16213         * lib/inttypes.in.h (imaxdiv_t): Likewise.
16214         * lib/langinfo.in.h (nl_item): Likewise.
16215         * lib/math.in.h (_NaN, NAN): Likewise.
16216         * lib/netdb.in.h (struct addrinfo): Likewise.
16217         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
16218         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
16219         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
16220         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
16221         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
16222         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
16223         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
16224         pthread_mutexattr_init, pthread_mutexattr_settype,
16225         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
16226         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
16227         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
16228         pthread_spin_trylock, pthread_spin_unlock): Likewise.
16229         * lib/sched.in.h (struct sched_param): Likewise.
16230         * lib/se-selinux.in.h (security_class_t, security_context_t,
16231         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
16232         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
16233         lsetfilecon, fsetfilecon, security_check_context,
16234         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
16235         Likewise.
16236         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
16237         Likewise.
16238         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
16239         _gl_function_taking_int_returning_void_t, union sigval,
16240         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
16241         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
16242         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
16243         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
16244         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
16245         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
16246         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
16247         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
16248         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
16249         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
16250         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
16251         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
16252         socklen_t, rpl_fd_isset): Likewise.
16253         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
16254         * lib/sys_time.in.h (struct timeval): Likewise.
16255         * lib/sys_times.in.h (struct tms): Likewise.
16256         * lib/sys_utsname.in.h (struct utsname):
16257         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
16258         * lib/unistd.in.h (getpagesize): Likewise.
16259         * lib/wchar.in.h (mbstate_t): Likewise.
16260         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
16261         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
16262         towlower, towupper): Likewise.
16263         Reported by Sam Steingold <sds@gnu.org>.
16264
16265 2011-02-05  Eric Blake  <eblake@redhat.com>
16266
16267         unsetenv: work around Haiku issues
16268         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
16269         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
16270
16271 2010-12-30  Bruce Korb  <bkorb@gnu.org>
16272
16273         libposix: avoid calling error() within libposix
16274         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
16275         is defined.
16276
16277 2011-02-05  Eric Blake  <eblake@redhat.com>
16278
16279         strerror_r-posix: port to cygwin
16280         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
16281         implementation.
16282         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
16283         * tests/test-strerror_r.c (main): Fix test.
16284         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16285         issue.
16286
16287 2011-02-05  Bruno Haible  <bruno@clisp.org>
16288
16289         New module 'wmemchr'.
16290         * modules/wmemchr: New file.
16291         * lib/wchar.in.h (wmemchr): New declaration.
16292         * lib/wmemchr.c: New file.
16293         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
16294         * m4/wmemchr.m4: New file.
16295         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
16296         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
16297         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
16298         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
16299         * doc/posix-functions/wmemchr.texi: Mention the new module.
16300
16301 2011-02-04  Eric Blake  <eblake@redhat.com>
16302
16303         fdopendir: detect FreeBSD bug
16304         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
16305         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
16306
16307 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16308
16309         stdbool: do not define HAVE_STDBOOL_H
16310         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
16311         AC_HEADER_STDBOOL.  All uses changed.  Do not define
16312         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
16313         imported from the latest Autoconf git.  It was motivated by Emacs,
16314         which uses gnulib but does not need HAVE_STDBOOL_H.
16315
16316 2011-02-04  Bruno Haible  <bruno@clisp.org>
16317
16318         wcsnrtombs: Prepare for new module wwcsnrtombs.
16319         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
16320         * lib/wcsnrtombs.c: Include it.
16321         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
16322
16323         wcsrtombs: Prepare for new module wwcsrtombs.
16324         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
16325         * lib/wcsrtombs.c: Include it.
16326         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
16327
16328         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
16329         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
16330         * lib/mbsnrtowcs.c: Include it.
16331         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
16332
16333         mbsrtowcs: Prepare for new module mbsrtowwcs.
16334         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
16335         * lib/mbsrtowcs.c: Include it.
16336         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
16337
16338 2011-02-04  Bruno Haible  <bruno@clisp.org>
16339
16340         vasnprintf: Reduce use of malloc for small format strings.
16341         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
16342         (arguments): Add room for the first 7 arguments.
16343         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
16344         (char_directives, u8_directives, u16_directives, u32_directives): Add
16345         room for the first 7 directives.
16346         * lib/printf-parse.c: Include <string.h>.
16347         (PRINTF_PARSE): Change memory handling code so that it uses the first
16348         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
16349         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
16350         Reported by Pádraig Brady <P@draigbrady.com>.
16351
16352 2011-01-31  Eric Blake  <eblake@redhat.com>
16353
16354         dup2: work around Haiku bug
16355         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
16356         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
16357         * doc/posix-functions/dup2.texi (dup2): Document the bug.
16358         * tests/test-dup2.c (main): Enhance test.
16359
16360 2011-01-31  Simon Josefsson  <simon@josefsson.org>
16361
16362         doc: off_t is not available in eglibc 2.11.2 stdio.h.
16363         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
16364         declared by eglibc 2.11.2.
16365         * lib/stdio.in.h: Likewise.
16366
16367 2011-01-31  Eric Blake  <eblake@redhat.com>
16368
16369         ignore-value: add missing test dependency
16370         * tests/test-ignore-value.c: Revert previous change; stdio.h
16371         provides off_t.
16372         * modules/ignore-value-tests (Depends-on): Add missing dependency.
16373
16374 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
16375
16376         mktime: clarify long_int width checking
16377         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
16378         the top level, to make it clearer that the assumption about
16379         long_int width is being checked.  See
16380         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
16381
16382 2011-01-30  Simon Josefsson  <simon@josefsson.org>
16383
16384         ignore-value: Fix self-test.
16385         * tests/test-ignore-value.c: Include sys/types.h for off_t.
16386
16387 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16388
16389         TYPE_MAXIMUM: avoid theoretically undefined behavior
16390         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
16391         negative number, which the C Standard says has undefined behavior.
16392         In practice this is not a problem, but might as well do it by the book.
16393         Reported by Rich Felker and Eric Blake; see
16394         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
16395         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
16396         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16397         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16398         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
16399         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16400         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
16401
16402         mktime: #undef mktime before #defining it
16403         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
16404
16405         mktime: systematically normalize tm_isdst comparisons
16406         * lib/mktime.c (isdst_differ): New function.
16407         (__mktime_internal): Use it systematically for all isdst comparisons.
16408         This completes the fix for libc BZ #6723, and removes the need for
16409         normalizing tm_isdst.  See
16410         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
16411         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
16412
16413         mktime: fix some integer overflow issues and sidestep the rest
16414
16415         This was prompted by a bug report by Benjamin Lindner for MinGW
16416         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
16417         His bug is due to signed integer overflow (0 - INT_MIN), and I
16418         I scanned through mktime.c looking for other integer overflow
16419         problems, fixing all the bugs I found.
16420
16421         Although the C Standard says the resulting code is still not safe
16422         in the presence of integer overflow, in practice it should be good
16423         enough for all real-world two's-complement implementations, except
16424         for debugging environments that deliberately trap on integer
16425         overflow (e.g., gcc -ftrapv).
16426
16427         * lib/mktime.c (WRAPV): New macro.
16428         (SHR): Also check that long_int and time_t shift right in the
16429         usual way, before using the fast-but-unportable method.
16430         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
16431         used.  The code already assumed two's complement, so there's
16432         no need to test for alternatives.  All uses removed.
16433         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
16434         the C standard.  Problem reported by Rich Felker in
16435         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
16436         (twos_complement_arithmetic): Also check long_int and time_t.
16437         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
16438         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
16439         (__mktime_internal): Avoid integer overflow with unary subtraction
16440         in two instances where -1 - X is an adequate replacement for -X,
16441         since the calculations are approximate.
16442
16443 2011-01-29  Eric Blake  <eblake@redhat.com>
16444
16445         mktime: avoid infinite loop
16446         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
16447         type; behavior is still undefined but portable to all known targets.
16448         Reported by Rich Felker.
16449
16450 2011-01-29  Simon Josefsson  <simon@josefsson.org>
16451
16452         rename, unlink, same-inode: Relicense.
16453         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
16454         * modules/unlink (License): Likewise.
16455         * modules/same-inode (License): Likewise.
16456
16457 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16458
16459         mktime: avoid problems on NetBSD 5 / i386
16460         * lib/mktime.c (long_int): New type.  This works around a problem
16461         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
16462         but time_t is 64 bits, and where I expect the existing code is
16463         wrong in some cases.
16464         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
16465         (ydhms_diff): Bring back the compile-time check for wide-enough
16466         year and yday.
16467
16468         mktime: fix misspelling in comment
16469         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
16470         This merges all recent glibc changes of importance.
16471
16472 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16473
16474         move-if-change: cope with concurrent mv of identical file.
16475         * build-aux/move-if-change (CMPPROG): Accept environment
16476         variable as an override for `cmp'.
16477         (usage): Document CMPPROG.
16478         Adjust comparison to drop stdout.  Cope with failure of mv if
16479         the target file exists and is identical to the source, for
16480         parallel builds.
16481         Report from H.J. Lu against binutils in PR binutils/12283.
16482
16483 2011-01-28  Bruce Korb  <bkorb@gnu.org>
16484
16485         * users.txt: Mention sharutils.
16486
16487 2011-01-28  Simon Josefsson  <simon@josefsson.org>
16488
16489         * users.txt: Mention OATH Toolkit.
16490
16491 2011-01-27  Bruno Haible  <bruno@clisp.org>
16492
16493         Prepare for supporting FreeBSD 10.
16494         * build-aux/config.libpath: Remove handling of freebsd1*.
16495
16496 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
16497
16498         Prepare for supporting FreeBSD 10.
16499         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
16500         match FreeBSD 10.0.
16501
16502 2011-01-27  Bruno Haible  <bruno@clisp.org>
16503
16504         vma-iter, get-rusage-as: Add OpenBSD support.
16505         * modules/vma-iter (configure.ac): Test for mquery.
16506         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
16507         * lib/vma-iter.c: Include <sys/mman.h>.
16508         (vma_iterate): Add an implementation based on mquery().
16509         * lib/resource-ext.h (get_rusage_as): Update comments.
16510         * lib/get-rusage-as.c: Likewise.
16511         * lib/get-rusage-data.c: Likewise.
16512
16513 2011-01-26  Karl Berry  <karl@gnu.org>
16514
16515         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
16516         variables to make it easier to override the makeinfo program used.
16517
16518 2011-01-26  Eric Blake  <eblake@redhat.com>
16519
16520         fcntl: work around Haiku F_DUPFD bugs
16521         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
16522         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
16523         cloexec bit on duplication.
16524         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
16525
16526 2011-01-26  Bruno Haible  <bruno@clisp.org>
16527
16528         Enable memory leak tests on AIX.
16529         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
16530         * tests/test-fprintf-posix3.c (main): Likewise.
16531
16532 2011-01-26  Bruno Haible  <bruno@clisp.org>
16533
16534         Tests for module 'get-rusage-data'.
16535         * modules/get-rusage-data-tests: New file.
16536         * tests/test-get-rusage-data.c: New file.
16537
16538         New module 'get-rusage-data'.
16539         * lib/resource-ext.h (get_rusage_data): New declaration.
16540         * lib/get-rusage-data.c: New file.
16541         * modules/get-rusage-data: New file.
16542
16543 2011-01-25  Bruno Haible  <bruno@clisp.org>
16544
16545         get-rusage-as: Allow for easier testing.
16546         * lib/resource-ext.h (get_rusage_as): Add comment.
16547         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
16548         (main): New function for interactive testing.
16549
16550 2011-01-25  Bruno Haible  <bruno@clisp.org>
16551
16552         vma-iter: Treat Haiku like BeOS.
16553         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
16554         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
16555
16556 2011-01-25  Eric Blake  <eblake@redhat.com>
16557
16558         c-stack: fix regression on cygwin when libsigsegv is present
16559         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
16560
16561 2011-01-24  Bruno Haible  <bruno@clisp.org>
16562
16563         vma-iter: Avoid empty intervals.
16564         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
16565         on an empty interval.
16566
16567 2011-01-24  Jim Meyering  <meyering@redhat.com>
16568
16569         u64: remove unnecessary #include
16570         * lib/u64.h: Don't include <stddef.h>.  It was not used.
16571
16572 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16573
16574         Allow the user to avoid the HAVE_RAW_DECL_* macros.
16575         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
16576
16577 2011-01-23  Bruno Haible  <bruno@clisp.org>
16578
16579         New module 'vma-iter'.
16580         * lib/vma-iter.h: New file.
16581         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
16582         * modules/vma-iter: New file.
16583         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
16584         for get_rusage_as_via_iterator.
16585         (vma_iterate_callback): New function.
16586         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
16587         * modules/get-rusage-as (Depends-on): Add vma-iter.
16588
16589 2011-01-23  Bruno Haible  <bruno@clisp.org>
16590
16591         uninorm: Tweak includes.
16592         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
16593         Reported by Jim Meyering.
16594
16595 2011-01-23  Bruno Haible  <bruno@clisp.org>
16596
16597         get-rusage-as: Improve on NetBSD.
16598         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
16599         /proc, like on FreeBSD.
16600
16601 2011-01-23  Jim Meyering  <meyering@redhat.com>
16602
16603         xreadlink.h: remove unnecessary #include
16604         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
16605
16606         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
16607         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
16608
16609 2011-01-23  Bruno Haible  <bruno@clisp.org>
16610
16611         get-rusage-as: Fix bug.
16612         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
16613         original limit when aborting the first loop.
16614
16615 2011-01-23  Bruno Haible  <bruno@clisp.org>
16616
16617         wctype: Ensure valid C syntax.
16618         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
16619         unconditionally, instead of gl_NEXT_HEADERS conditionally.
16620
16621 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
16622
16623         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
16624         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
16625         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
16626         as they are needed only for configure's test case.
16627         This removes two unnecessary symbols from config.h.
16628
16629         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
16630         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
16631         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
16632         AC_CHECK_HEADERS_ONCE on a header that we also invoke
16633         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
16634         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
16635         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
16636         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
16637         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16638         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16639         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
16640         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16641         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16642         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16643         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
16644         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16645         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
16646         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16647
16648 2011-01-21  Eric Blake  <eblake@redhat.com>
16649
16650         maintainer-makefile: work with older git for submodule check
16651         * top/maint.mk (public-submodule-commit): Rewrite to avoid
16652         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
16653         Reported by Matthias Bolte.
16654
16655         bootstrap: minor portability fixes
16656         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
16657         (usage): Omit leading capital and trailing . on help phrases, per
16658         GNU Coding Standards.
16659         (check_versions, top level): Prefix messages with script name.
16660
16661 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
16662
16663         bootstrap: support --no-git option
16664         * build-aux/bootstrap: Add --no-git option, to be used when
16665         --gnulib-srcdir points to the exact desired checkout.
16666
16667 2011-01-21  Eric Blake  <eblake@redhat.com>
16668
16669         strerror_r-posix: work with glibc 2.13
16670         * lib/strerror_r.c (strerror_r): Fix return type.
16671
16672 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16673             Bruno Haible  <bruno@clisp.org>
16674
16675         uN_strstr: New unit tests.
16676         * modules/unistr/u8-strstr-tests: New file.
16677         * modules/unistr/u16-strstr-tests: New file.
16678         * modules/unistr/u32-strstr-tests: New file.
16679         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
16680         * tests/unistr/test-u8-strstr.c: New file.
16681         * tests/unistr/test-u16-strstr.c: New file.
16682         * tests/unistr/test-u32-strstr.c: New file.
16683
16684 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16685             Bruno Haible  <bruno@clisp.org>
16686
16687         Make uN_strstr functions O(n) worst-case.
16688         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
16689         16-bit and 32-bit unit cases, use the unibyte algorithm from
16690         lib/mbsstr.c.
16691         * lib/unistr/u8-strstr.c: Include <string.h>.
16692         (UNIT_IS_UINT8_T): New macro.
16693         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
16694         (U_STRLEN, U_STRNLEN): New macros.
16695         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
16696         (U_STRLEN, U_STRNLEN): New macros.
16697         * modules/unistr/u8-strstr (Depends-on): Add strstr.
16698         (configure.ac): Update required libunistring version.
16699         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
16700         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
16701         malloca.
16702         (configure.ac): Update required libunistring version.
16703         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
16704         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
16705         malloca.
16706         (configure.ac): Update required libunistring version.
16707
16708 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16709             Bruno Haible  <bruno@clisp.org>
16710
16711         Prepare for faster uN_strstr functions.
16712         * lib/str-kmp.h: Support definable UNITs.
16713         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
16714         needle_len argument.
16715         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
16716         * lib/mbscasestr.c (mbscasestr): Likewise.
16717
16718 2011-01-21  Pádraig Brady <P@draigBrady.com>
16719
16720         malloca-tests: make faster by unsetting MALLOC_PERTURB_
16721         * tests/test-malloca.c (main): Unset the environment variable
16722         to greatly speed up the test.
16723         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
16724         * modules/malloca-tests: Depend on unsetenv.
16725
16726 2011-01-21  Pádraig Brady <P@draigBrady.com>
16727
16728         ignore-value: remove stdint dependency
16729         * lib/ignore-value.h: Remove <stdint.h>
16730         * modules/ignore-value: Remove stdint dependency.
16731
16732 2011-01-21  Jim Meyering  <meyering@redhat.com>
16733
16734         maint.mk: adjust variable name to be consistent with other gl_ vars
16735         * top/maint.mk (gl_public_submodule_commit): Rename the variable
16736         to be lower case.
16737
16738 2011-01-20  Jim Meyering  <meyering@redhat.com>
16739
16740         maint.mk: make "check" depend on public-submodule-commit by default
16741         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
16742
16743 2011-01-20  Bruno Haible  <bruno@clisp.org>
16744
16745         mbfile, mbiter: Complete change from 2008-12-21.
16746         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
16747         * m4/mbiter.m4 (gl_MBITER): Likewise.
16748
16749 2011-01-20  Jim Meyering  <meyering@redhat.com>
16750
16751         init.sh: insert space between each function name and "()"
16752         * tests/init.sh: Make it a little easier to see that a function's
16753         name is "warn_", and not "warn" when looking at the first part of
16754         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
16755
16756 2011-01-20  Jim Meyering  <meyering@redhat.com>
16757
16758         mountlist: clean up code formatting
16759         * lib/mountlist.c (read_file_system_list): Split a long line,
16760         correct bracing style, use NULL in place of "(struct statfs *)0",
16761         don't parenthesize return value, add spaces around "=" and after
16762         ";-in-for-stmt".
16763
16764 2011-01-14  Markus Duft <mduft@gentoo.org>
16765
16766         mountlist: add support for Interix
16767         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
16768         Apply statvfs to all entries of /dev/fs.
16769         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
16770         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
16771
16772 2011-01-20  Jim Meyering  <meyering@redhat.com>
16773
16774         maint.mk: improve the public-submodule-commit rule
16775         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
16776         to suppress printing of its commands... unless V=1.
16777         Add git submodule's --quiet option to suppress printing of e.g.,
16778         "Entering gnulib" output.
16779         "cd" into $(srcdir) before running git submodule.
16780
16781 2011-01-20  Bruno Haible  <bruno@clisp.org>
16782
16783         include_next: Fix bug introduced on 2011-01-18.
16784         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
16785         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
16786         ac_cv_header_... variable if the second argument is not 'check'.
16787         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
16788         gl_NEXT_HEADERS_INTERNAL.
16789
16790 2011-01-20  Bruno Haible  <bruno@clisp.org>
16791
16792         Allow the user to avoid the GNULIB_TEST_* macros.
16793         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
16794         Suggested by Paul Eggert.
16795
16796 2011-01-14  Jim Meyering  <meyering@redhat.com>
16797
16798         bootstrap: avoid failure when there is no .gitmodules file
16799         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
16800         has been assigned to, even when its value is the empty string.
16801         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
16802         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
16803         Reported by John W. Eaton <jwe@gnu.org>.
16804
16805 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
16806
16807         assume <ctype.h>, ..., <time.h> exist
16808         For years gnulib has been assuming the existence of the headers
16809         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
16810         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
16811         them, since they don't appear to be needed.
16812         * README (Portability guidelines): Document this.
16813         * lib/flock.c: Assume <fcntl.h> exists.
16814         * lib/regex_internal.h: Assume <locale.h> exists.
16815         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
16816         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
16817         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
16818         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
16819         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
16820         * m4/regex.m4 (gl_REGEX): Likewise.
16821         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
16822         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
16823         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
16824         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
16825         * tests/test-argp.c: Likewise.
16826         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
16827
16828         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
16829         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
16830         AA_APPLE_UNIVERSAL_BUILD.  See
16831         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
16832         * NEWS: Document this.
16833
16834 2011-01-19  Eric Blake  <eblake@redhat.com>
16835
16836         c-stack: assume stack overflow if SA_SIGINFO unsupported
16837         * lib/c-stack.c (SIGACTION_WORKS): Rename...
16838         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
16839         sigaction will work.
16840         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
16841         behavior match Linux.
16842         * tests/test-c-stack.c (main): Prefer NULL for pointers.
16843
16844         stdbool-tests: accomodate Haiku
16845         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
16846
16847         binary-io: fix O_TEXT on Haiku
16848         * modules/binary-io (Depends-on): Add fcntl-h.
16849         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
16850         than blindly undefining O_TEXT.
16851         Reported by Scott McCreary.
16852
16853 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16854
16855         include_next: do not check for standard headers like stddef.h
16856
16857         I found this problem when modifying Emacs to use gnulib.
16858         I noticed that it added HAVE_STDDEF_H to config.h, even though
16859         gnulib always assumes <stddef.h> exists as per README and this
16860         symbol is unnecessary.
16861         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
16862         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
16863         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
16864         faster for headers like stddef.h that are known to exist.
16865         (gl_CHECK_NEXT_HEADERS): Use it.
16866         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
16867         rather than gl_CHECK_NEXT_HEADERS.
16868         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
16869         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
16870
16871 2011-01-18  Eric Blake  <eblake@redhat.com>
16872
16873         ansi-c++-opt: skip C++ dependency style if C++ is unused
16874         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
16875         tests when we know C++ compilation is not desired.
16876         Reported by Scott McCreary.
16877
16878 2011-01-18  Bruno Haible  <bruno@clisp.org>
16879
16880         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
16881         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
16882         (main): Perform test also when getrlimit and setrlimit don't exist or
16883         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
16884         limiting the address space size using setrlimit, compare the address
16885         space size before and after the the test.
16886         * tests/test-dprintf-posix2.c: Likewise.
16887         * tests/test-fprintf-posix3.sh: Update skip messages.
16888         * tests/test-dprintf-posix2.sh: Likewise.
16889         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
16890         * modules/dprintf-posix-tests (Depends-on): Likewise.
16891         Reported by Bruce Korb <bkorb@gnu.org> and
16892         Gary V. Vaughan <gary@gnu.org>.
16893
16894 2011-01-18  Bruno Haible  <bruno@clisp.org>
16895
16896         get-rusage-as: Improvement for Cygwin.
16897         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
16898         areas that are merely reserved.
16899
16900 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16901
16902         strftime: remove dependencies on multibyte modules
16903
16904         strftime depended on mbrlen, mbsinit, and wchar, but these modules
16905         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
16906         only if __osf__ is defined, and I suspect OSF doesn't need these
16907         other modules.  If my guess is wrong, we'll need to come up with a
16908         variant of strftime that doesn't need the multibyte modules.
16909
16910         I discovered this problem when attempting modify Emacs to use the
16911         strftime module.  With the previous gnulib, this caused Emacs to
16912         need 31 new files, ranging from lib/config.charset to
16913         m4/wint_t.m4.  This was overkill and I expect would be offputting
16914         to the Emacs maintainers.  After this change, only 6 new files are
16915         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
16916         stdbool.m4, and tm_gmtoff.m4.
16917
16918         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
16919         Suggested by Bruno Haible in
16920         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
16921         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
16922         and do not check for wchar.h.
16923         * modules/strftime (Files): Remove m4/mbstate_t.m4.
16924         (Depends-on): Remove mbrlen, mbsinit, wchar.
16925
16926 2011-01-18  Bruno Haible  <bruno@clisp.org>
16927
16928         Tests for module 'get-rusage-as'.
16929         * modules/get-rusage-as-tests: New file.
16930         * tests/test-get-rusage-as.c: New file.
16931
16932         New module 'get-rusage-as'.
16933         * modules/get-rusage-as: New file.
16934         * lib/resource-ext.h: New file.
16935         * lib/get-rusage-as.c: New file.
16936
16937 2011-01-17  Eric Blake  <eblake@redhat.com>
16938
16939         sigaction: relax license from LGPLv3+ to LGPLv2+
16940         * modules/sigaction (License): Relax to LGPLv2+.
16941
16942 2011-01-14  Bruno Haible  <bruno@clisp.org>
16943
16944         filemode: Make function declarations usable in C++ mode.
16945         * lib/filemode.h: Enclose function declarations in extern "C" block.
16946         Reported by John W. Eaton <jwe@gnu.org>.
16947
16948 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
16949
16950         save-cwd: no longer include "xgetcwd.h"
16951         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
16952         This avoids a compilation failure in projects that use save-cwd
16953         without also using the xgetcwd module.
16954
16955 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16956
16957         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
16958         This is so that a program like Emacs, which needs only dtoastr,
16959         does not have to bother with distributing and compiling ftoastr
16960         and ldtoastr.
16961         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
16962         * modules/dtoastr, modules/ldtoastr: New files.
16963         * modules/ftoastr: Now works just for 'float'.
16964         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
16965         (Makefile.am): Remove ftoastr.h (not needed and no effect),
16966         dtoastr.c, ldtoastr.c.
16967
16968 2011-01-11  Jim Meyering  <meyering@redhat.com>
16969
16970         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
16971         There is no need to work around the lack of the fchdir function,
16972         since gnulib can now provide a replacement when required.
16973         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
16974         * modules/save-cwd (Depends-on): Add fchdir.
16975
16976 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16977
16978         openat, save-cwd: avoid xmalloc
16979
16980         This removes a direct (but undocumented) dependency of openat on
16981         xalloc, along with an indirect dependency via save-cwd.  It also
16982         removes a dependency of save-cwd on xgetcwd, and thereby
16983         indirectly on xalloc.  This change causes the openat substitute
16984         to fall back on save_cwd when memory is tight, and for save_cwd to
16985         fail instead of dying when memory is tight, but that's good enough.
16986         Problem and initial idea for fix reported by Bastien Roucaries in
16987         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
16988
16989         * lib/openat-proc.c: Include stdlib.h (for malloc), not
16990         xalloc.h (for xmalloc).
16991         (openat_proc_name): Use malloc, not xmalloc.
16992         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
16993         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
16994
16995         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
16996         This avoids heap allocation for file names whose lengths are in
16997         the range 512..1023, with the upper bound increasing to at most
16998         4031 depending on the platform's PATH_MAX.  (We do not want
16999         pathmax.h here as it might supply a non-constant PATH_MAX.)
17000         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
17001         Perhaps they should be moved to malloca.h?
17002         (OPENAT_BUFFER_SIZE): Use them.
17003
17004 2011-01-10  Bruno Haible  <bruno@clisp.org>
17005
17006         doc: Update users.txt.
17007         * users.txt: Add recutils.
17008
17009 2011-01-09  Karl Berry  <karl@gnu.org>
17010
17011         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
17012
17013         * doc/configmake.texi: New file.
17014         * doc/gnulib.texi: Include it.
17015         * modules/configmake: Move documentation from here.
17016
17017 2011-01-09  Bruno Haible  <bruno@clisp.org>
17018
17019         Update to Unicode 6.0.0.
17020         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
17021         (get_lbp): Update for Unicode 6.0.0.
17022         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
17023         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
17024         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
17025         U+11001, U+11038..U+11046. Remove U+06DE.
17026         (uc_width): Fix bounds of planes.
17027         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17028         lib/uniwidth/width.c.
17029         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
17030         trailing whitespace removed.
17031         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
17032         without comments, but with the original copyright notice.
17033         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
17034         * lib/unicase/ignorable.h: Likewise.
17035         * lib/unicase/tocasefold.h: Likewise.
17036         * lib/unicase/tolower.h: Likewise.
17037         * lib/unicase/totitle.h: Likewise.
17038         * lib/unicase/toupper.h: Likewise.
17039         * lib/unictype/bidi_of.h: Likewise.
17040         * lib/unictype/blocks.h: Likewise.
17041         * lib/unictype/categ_C.h: Likewise.
17042         * lib/unictype/categ_Cn.h: Likewise.
17043         * lib/unictype/categ_L.h: Likewise.
17044         * lib/unictype/categ_Ll.h: Likewise.
17045         * lib/unictype/categ_Lm.h: Likewise.
17046         * lib/unictype/categ_Lo.h: Likewise.
17047         * lib/unictype/categ_Lu.h: Likewise.
17048         * lib/unictype/categ_M.h: Likewise.
17049         * lib/unictype/categ_Mc.h: Likewise.
17050         * lib/unictype/categ_Me.h: Likewise.
17051         * lib/unictype/categ_Mn.h: Likewise.
17052         * lib/unictype/categ_N.h: Likewise.
17053         * lib/unictype/categ_Nd.h: Likewise.
17054         * lib/unictype/categ_No.h: Likewise.
17055         * lib/unictype/categ_P.h: Likewise.
17056         * lib/unictype/categ_Po.h: Likewise.
17057         * lib/unictype/categ_S.h: Likewise.
17058         * lib/unictype/categ_Sc.h: Likewise.
17059         * lib/unictype/categ_Sk.h: Likewise.
17060         * lib/unictype/categ_Sm.h: Likewise.
17061         * lib/unictype/categ_So.h: Likewise.
17062         * lib/unictype/categ_of.h: Likewise.
17063         * lib/unictype/combining.h: Likewise.
17064         * lib/unictype/ctype_alnum.h: Likewise.
17065         * lib/unictype/ctype_alpha.h: Likewise.
17066         * lib/unictype/ctype_graph.h: Likewise.
17067         * lib/unictype/ctype_lower.h: Likewise.
17068         * lib/unictype/ctype_print.h: Likewise.
17069         * lib/unictype/ctype_punct.h: Likewise.
17070         * lib/unictype/ctype_upper.h: Likewise.
17071         * lib/unictype/decdigit.h: Likewise.
17072         * lib/unictype/digit.h: Likewise.
17073         * lib/unictype/numeric.h: Likewise.
17074         * lib/unictype/pr_alphabetic.h: Likewise.
17075         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17076         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17077         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17078         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17079         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17080         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17081         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17082         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17083         * lib/unictype/pr_case_ignorable.h: Likewise.
17084         * lib/unictype/pr_cased.h: Likewise.
17085         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
17086         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
17087         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
17088         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
17089         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
17090         * lib/unictype/pr_combining.h: Likewise.
17091         * lib/unictype/pr_composite.h: Likewise.
17092         * lib/unictype/pr_currency_symbol.h: Likewise.
17093         * lib/unictype/pr_decimal_digit.h: Likewise.
17094         * lib/unictype/pr_deprecated.h: Likewise.
17095         * lib/unictype/pr_format_control.h: Likewise.
17096         * lib/unictype/pr_grapheme_base.h: Likewise.
17097         * lib/unictype/pr_grapheme_extend.h: Likewise.
17098         * lib/unictype/pr_grapheme_link.h: Likewise.
17099         * lib/unictype/pr_id_continue.h: Likewise.
17100         * lib/unictype/pr_id_start.h: Likewise.
17101         * lib/unictype/pr_ideographic.h: Likewise.
17102         * lib/unictype/pr_lowercase.h: Likewise.
17103         * lib/unictype/pr_math.h: Likewise.
17104         * lib/unictype/pr_numeric.h: Likewise.
17105         * lib/unictype/pr_other_alphabetic.h: Likewise.
17106         * lib/unictype/pr_other_id_continue.h: Likewise.
17107         * lib/unictype/pr_other_math.h: Likewise.
17108         * lib/unictype/pr_punctuation.h: Likewise.
17109         * lib/unictype/pr_sentence_terminal.h: Likewise.
17110         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17111         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17112         * lib/unictype/pr_unified_ideograph.h: Likewise.
17113         * lib/unictype/pr_uppercase.h: Likewise.
17114         * lib/unictype/pr_xid_continue.h: Likewise.
17115         * lib/unictype/pr_xid_start.h: Likewise.
17116         * lib/unictype/scripts.h: Likewise.
17117         * lib/unictype/scripts_byname.gperf: Likewise.
17118         * lib/unictype/sy_java_ident.h: Likewise.
17119         * lib/unigbrk/gbrkprop.h: Likewise.
17120         * lib/unilbrk/lbrkprop1.h: Likewise.
17121         * lib/unilbrk/lbrkprop2.h: Likewise.
17122         * lib/uninorm/decomposition-table2.h: Likewise.
17123         * lib/uniwbrk/wbrkprop.h: Likewise.
17124         * tests/unicase/test-cased.c: Likewise.
17125         * tests/unicase/test-ignorable.c: Likewise.
17126         * tests/unicase/test-uc_tolower.c: Likewise.
17127         * tests/unicase/test-uc_totitle.c: Likewise.
17128         * tests/unicase/test-uc_toupper.c: Likewise.
17129         * tests/unictype/test-categ_C.c: Likewise.
17130         * tests/unictype/test-categ_Cn.c: Likewise.
17131         * tests/unictype/test-categ_L.c: Likewise.
17132         * tests/unictype/test-categ_Ll.c: Likewise.
17133         * tests/unictype/test-categ_Lm.c: Likewise.
17134         * tests/unictype/test-categ_Lo.c: Likewise.
17135         * tests/unictype/test-categ_Lu.c: Likewise.
17136         * tests/unictype/test-categ_M.c: Likewise.
17137         * tests/unictype/test-categ_Mc.c: Likewise.
17138         * tests/unictype/test-categ_Me.c: Likewise.
17139         * tests/unictype/test-categ_Mn.c: Likewise.
17140         * tests/unictype/test-categ_N.c: Likewise.
17141         * tests/unictype/test-categ_Nd.c: Likewise.
17142         * tests/unictype/test-categ_No.c: Likewise.
17143         * tests/unictype/test-categ_P.c: Likewise.
17144         * tests/unictype/test-categ_Po.c: Likewise.
17145         * tests/unictype/test-categ_S.c: Likewise.
17146         * tests/unictype/test-categ_Sc.c: Likewise.
17147         * tests/unictype/test-categ_Sk.c: Likewise.
17148         * tests/unictype/test-categ_Sm.c: Likewise.
17149         * tests/unictype/test-categ_So.c: Likewise.
17150         * tests/unictype/test-ctype_alnum.c: Likewise.
17151         * tests/unictype/test-ctype_alpha.c: Likewise.
17152         * tests/unictype/test-ctype_graph.c: Likewise.
17153         * tests/unictype/test-ctype_lower.c: Likewise.
17154         * tests/unictype/test-ctype_print.c: Likewise.
17155         * tests/unictype/test-ctype_punct.c: Likewise.
17156         * tests/unictype/test-ctype_upper.c: Likewise.
17157         * tests/unictype/test-decdigit.h: Likewise.
17158         * tests/unictype/test-digit.h: Likewise.
17159         * tests/unictype/test-numeric.h: Likewise.
17160         * tests/unictype/test-pr_alphabetic.c: Likewise.
17161         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17162         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
17163         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
17164         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17165         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17166         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17167         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17168         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17169         * tests/unictype/test-pr_case_ignorable.c: Likewise.
17170         * tests/unictype/test-pr_cased.c: Likewise.
17171         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
17172         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
17173         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
17174         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
17175         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
17176         * tests/unictype/test-pr_combining.c: Likewise.
17177         * tests/unictype/test-pr_composite.c: Likewise.
17178         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17179         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17180         * tests/unictype/test-pr_deprecated.c: Likewise.
17181         * tests/unictype/test-pr_format_control.c: Likewise.
17182         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17183         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17184         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17185         * tests/unictype/test-pr_id_continue.c: Likewise.
17186         * tests/unictype/test-pr_id_start.c: Likewise.
17187         * tests/unictype/test-pr_ideographic.c: Likewise.
17188         * tests/unictype/test-pr_lowercase.c: Likewise.
17189         * tests/unictype/test-pr_math.c: Likewise.
17190         * tests/unictype/test-pr_numeric.c: Likewise.
17191         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17192         * tests/unictype/test-pr_other_id_continue.c: Likewise.
17193         * tests/unictype/test-pr_other_math.c: Likewise.
17194         * tests/unictype/test-pr_punctuation.c: Likewise.
17195         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17196         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17197         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17198         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17199         * tests/unictype/test-pr_uppercase.c: Likewise.
17200         * tests/unictype/test-pr_xid_continue.c: Likewise.
17201         * tests/unictype/test-pr_xid_start.c: Likewise.
17202         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17203         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17204         changes.
17205         * lib/unictype/categ_Cc.h: Likewise.
17206         * lib/unictype/categ_Cf.h: Likewise.
17207         * lib/unictype/categ_Co.h: Likewise.
17208         * lib/unictype/categ_Cs.h: Likewise.
17209         * lib/unictype/categ_Lt.h: Likewise.
17210         * lib/unictype/categ_Nl.h: Likewise.
17211         * lib/unictype/categ_Pc.h: Likewise.
17212         * lib/unictype/categ_Pd.h: Likewise.
17213         * lib/unictype/categ_Pe.h: Likewise.
17214         * lib/unictype/categ_Pf.h: Likewise.
17215         * lib/unictype/categ_Pi.h: Likewise.
17216         * lib/unictype/categ_Ps.h: Likewise.
17217         * lib/unictype/categ_Z.h: Likewise.
17218         * lib/unictype/categ_Zl.h: Likewise.
17219         * lib/unictype/categ_Zp.h: Likewise.
17220         * lib/unictype/categ_Zs.h: Likewise.
17221         * lib/unictype/ctype_blank.h: Likewise.
17222         * lib/unictype/ctype_cntrl.h: Likewise.
17223         * lib/unictype/ctype_digit.h: Likewise.
17224         * lib/unictype/ctype_space.h: Likewise.
17225         * lib/unictype/ctype_xdigit.h: Likewise.
17226         * lib/unictype/mirror.h: Likewise.
17227         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17228         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17229         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17230         * lib/unictype/pr_bidi_control.h: Likewise.
17231         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17232         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17233         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17234         * lib/unictype/pr_bidi_pdf.h: Likewise.
17235         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17236         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17237         * lib/unictype/pr_dash.h: Likewise.
17238         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17239         * lib/unictype/pr_diacritic.h: Likewise.
17240         * lib/unictype/pr_extender.h: Likewise.
17241         * lib/unictype/pr_hex_digit.h: Likewise.
17242         * lib/unictype/pr_hyphen.h: Likewise.
17243         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17244         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17245         * lib/unictype/pr_ignorable_control.h: Likewise.
17246         * lib/unictype/pr_iso_control.h: Likewise.
17247         * lib/unictype/pr_join_control.h: Likewise.
17248         * lib/unictype/pr_left_of_pair.h: Likewise.
17249         * lib/unictype/pr_line_separator.h: Likewise.
17250         * lib/unictype/pr_logical_order_exception.h: Likewise.
17251         * lib/unictype/pr_non_break.h: Likewise.
17252         * lib/unictype/pr_not_a_character.h: Likewise.
17253         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17254         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17255         * lib/unictype/pr_other_id_start.h: Likewise.
17256         * lib/unictype/pr_other_lowercase.h: Likewise.
17257         * lib/unictype/pr_other_uppercase.h: Likewise.
17258         * lib/unictype/pr_paired_punctuation.h: Likewise.
17259         * lib/unictype/pr_paragraph_separator.h: Likewise.
17260         * lib/unictype/pr_pattern_syntax.h: Likewise.
17261         * lib/unictype/pr_pattern_white_space.h: Likewise.
17262         * lib/unictype/pr_private_use.h: Likewise.
17263         * lib/unictype/pr_quotation_mark.h: Likewise.
17264         * lib/unictype/pr_radical.h: Likewise.
17265         * lib/unictype/pr_soft_dotted.h: Likewise.
17266         * lib/unictype/pr_space.h: Likewise.
17267         * lib/unictype/pr_titlecase.h: Likewise.
17268         * lib/unictype/pr_variation_selector.h: Likewise.
17269         * lib/unictype/pr_white_space.h: Likewise.
17270         * lib/unictype/pr_zero_width.h: Likewise.
17271         * lib/unictype/sy_c_ident.h: Likewise.
17272         * lib/unictype/sy_c_whitespace.h: Likewise.
17273         * lib/unictype/sy_java_whitespace.h: Likewise.
17274         * lib/uninorm/composition-table.gperf: Likewise.
17275         * lib/uninorm/decomposition-table1.h: Likewise.
17276         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
17277         LB8.
17278         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17279         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17280         * modules/unictype/*: Bump version number of expected libunistring
17281         version.
17282
17283 2011-01-09  Bruno Haible  <bruno@clisp.org>
17284
17285         Update to Unicode 5.2.0.
17286         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
17287         trailing whitespace removed.
17288
17289 2011-01-09  Bruno Haible  <bruno@clisp.org>
17290
17291         New Unicode character properties, from Unicode 5.2.0.
17292         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
17293         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
17294         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
17295         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
17296         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
17297         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
17298         uc_is_property_cased, uc_is_property_case_ignorable,
17299         uc_is_property_changes_when_lowercased,
17300         uc_is_property_changes_when_uppercased,
17301         uc_is_property_changes_when_titlecased,
17302         uc_is_property_changes_when_casefolded,
17303         uc_is_property_changes_when_casemapped): New declarations.
17304         * lib/unictype/pr_byname.gperf: Add the new properties.
17305         * modules/unictype/property-byname (Depends-on): Depend on the new
17306         properties modules.
17307         * modules/unictype/property-all (Depends-on): Likewise.
17308         * MODULES.html.sh (Unicode string functions): Add
17309         unictype/property-case-ignorable, unictype/property-cased,
17310         unictype/property-changes-when-casefolded,
17311         unictype/property-changes-when-casemapped,
17312         unictype/property-changes-when-lowercased,
17313         unictype/property-changes-when-titlecased,
17314         unictype/property-changes-when-uppercased.
17315
17316         New module 'unictype/property-changes-when-casemapped'.
17317         * modules/unictype/property-changes-when-casemapped: New file.
17318         * lib/unictype/pr_changes_when_casemapped.c: New file.
17319         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
17320         generated by gen-uni-tables.
17321         * modules/unictype/property-changes-when-casemapped-tests: New file.
17322         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
17323         automatically generated by gen-uni-tables.
17324
17325         New module 'unictype/property-changes-when-casefolded'.
17326         * modules/unictype/property-changes-when-casefolded: New file.
17327         * lib/unictype/pr_changes_when_casefolded.c: New file.
17328         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
17329         generated by gen-uni-tables.
17330         * modules/unictype/property-changes-when-casefolded-tests: New file.
17331         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
17332         automatically generated by gen-uni-tables.
17333
17334         New module 'unictype/property-changes-when-titlecased'.
17335         * modules/unictype/property-changes-when-titlecased: New file.
17336         * lib/unictype/pr_changes_when_titlecased.c: New file.
17337         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
17338         generated by gen-uni-tables.
17339         * modules/unictype/property-changes-when-titlecased-tests: New file.
17340         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
17341         automatically generated by gen-uni-tables.
17342
17343         New module 'unictype/property-changes-when-uppercased'.
17344         * modules/unictype/property-changes-when-uppercased: New file.
17345         * lib/unictype/pr_changes_when_uppercased.c: New file.
17346         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
17347         generated by gen-uni-tables.
17348         * modules/unictype/property-changes-when-uppercased-tests: New file.
17349         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
17350         automatically generated by gen-uni-tables.
17351
17352         New module 'unictype/property-changes-when-lowercased'.
17353         * modules/unictype/property-changes-when-lowercased: New file.
17354         * lib/unictype/pr_changes_when_lowercased.c: New file.
17355         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
17356         generated by gen-uni-tables.
17357         * modules/unictype/property-changes-when-lowercased-tests: New file.
17358         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
17359         automatically generated by gen-uni-tables.
17360
17361         New module 'unictype/property-case-ignorable'.
17362         * modules/unictype/property-case-ignorable: New file.
17363         * lib/unictype/pr_case_ignorable.c: New file.
17364         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
17365         by gen-uni-tables.
17366         * modules/unictype/property-case-ignorable-tests: New file.
17367         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
17368         generated by gen-uni-tables.
17369
17370         New module 'unictype/property-cased'.
17371         * modules/unictype/property-cased: New file.
17372         * lib/unictype/pr_cased.c: New file.
17373         * lib/unictype/pr_cased.h: New file, automatically generated by
17374         gen-uni-tables.
17375         * modules/unictype/property-cased-tests: New file.
17376         * tests/unictype/test-pr_cased.c: New file, automatically generated by
17377         gen-uni-tables.
17378
17379 2011-01-09  Bruno Haible  <bruno@clisp.org>
17380
17381         Update to Unicode 5.2.0.
17382         * lib/gen-uni-tables.c (output_predicate, output_category,
17383         output_combclass, output_bidi_category, output_decimal_digit_test,
17384         output_decimal_digit, output_digit_test, output_digit,
17385         output_numeric_test, output_numeric, output_mirror, output_scripts,
17386         output_scripts_byname, output_blocks, output_ident_category): Fix
17387         comment header.
17388         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
17389         get_wbp.
17390         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
17391         items.
17392         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
17393         Changes_When_Lowercased, Changes_When_Uppercased,
17394         Changes_When_Titlecased, Changes_When_Casefolded,
17395         Changes_When_Casemapped.
17396         (is_property_alphabetic, is_property_default_ignorable_code_point):
17397         Update for Unicode 5.2.0.
17398         (is_property_cased, is_property_case_ignorable,
17399         is_property_changes_when_lowercased,
17400         is_property_changes_when_uppercased,
17401         is_property_changes_when_titlecased,
17402         is_property_changes_when_casefolded,
17403         is_property_changes_when_casemapped): New functions.
17404         (output_properties): Output also the properties cased, case_ignorable,
17405         changes_when_lowercased, changes_when_uppercased,
17406         changes_when_titlecased, changes_when_casefolded,
17407         changes_when_casemapped.
17408         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
17409         Unicode TR#11 revision 17 -> 19.
17410         (LBP_CP): New enumeration value.
17411         (LBP_*): Adjust values accordingly.
17412         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17413         TR#14 revision 22 -> 24.
17414         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
17415         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
17416         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17417         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
17418         is_WBP_MIDLETTER.
17419         (output_composition_tables): Allow for 24 bits instead of 16 bits in
17420         the code1 and code2 of each composition rule.
17421         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
17422         * lib/unicase/ignorable.h: Likewise.
17423         * lib/unicase/tocasefold.h: Likewise.
17424         * lib/unicase/tolower.h: Likewise.
17425         * lib/unicase/totitle.h: Likewise.
17426         * lib/unicase/toupper.h: Likewise.
17427         * lib/unictype/bidi_of.h: Likewise.
17428         * lib/unictype/blocks.h: Likewise.
17429         * lib/unictype/categ_C.h: Likewise.
17430         * lib/unictype/categ_Cf.h: Likewise.
17431         * lib/unictype/categ_Cn.h: Likewise.
17432         * lib/unictype/categ_L.h: Likewise.
17433         * lib/unictype/categ_Ll.h: Likewise.
17434         * lib/unictype/categ_Lm.h: Likewise.
17435         * lib/unictype/categ_Lo.h: Likewise.
17436         * lib/unictype/categ_Lu.h: Likewise.
17437         * lib/unictype/categ_M.h: Likewise.
17438         * lib/unictype/categ_Mc.h: Likewise.
17439         * lib/unictype/categ_Mn.h: Likewise.
17440         * lib/unictype/categ_N.h: Likewise.
17441         * lib/unictype/categ_Nd.h: Likewise.
17442         * lib/unictype/categ_Nl.h: Likewise.
17443         * lib/unictype/categ_No.h: Likewise.
17444         * lib/unictype/categ_P.h: Likewise.
17445         * lib/unictype/categ_Pd.h: Likewise.
17446         * lib/unictype/categ_Po.h: Likewise.
17447         * lib/unictype/categ_S.h: Likewise.
17448         * lib/unictype/categ_Sc.h: Likewise.
17449         * lib/unictype/categ_So.h: Likewise.
17450         * lib/unictype/categ_of.h: Likewise.
17451         * lib/unictype/combining.h: Likewise.
17452         * lib/unictype/ctype_alnum.h: Likewise.
17453         * lib/unictype/ctype_alpha.h: Likewise.
17454         * lib/unictype/ctype_graph.h: Likewise.
17455         * lib/unictype/ctype_lower.h: Likewise.
17456         * lib/unictype/ctype_print.h: Likewise.
17457         * lib/unictype/ctype_punct.h: Likewise.
17458         * lib/unictype/ctype_upper.h: Likewise.
17459         * lib/unictype/decdigit.h: Likewise.
17460         * lib/unictype/digit.h: Likewise.
17461         * lib/unictype/numeric.h: Likewise.
17462         * lib/unictype/pr_alphabetic.h: Likewise.
17463         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17464         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17465         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17466         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17467         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17468         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17469         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17470         * lib/unictype/pr_combining.h: Likewise.
17471         * lib/unictype/pr_composite.h: Likewise.
17472         * lib/unictype/pr_currency_symbol.h: Likewise.
17473         * lib/unictype/pr_dash.h: Likewise.
17474         * lib/unictype/pr_decimal_digit.h: Likewise.
17475         * lib/unictype/pr_deprecated.h: Likewise.
17476         * lib/unictype/pr_diacritic.h: Likewise.
17477         * lib/unictype/pr_extender.h: Likewise.
17478         * lib/unictype/pr_grapheme_base.h: Likewise.
17479         * lib/unictype/pr_grapheme_extend.h: Likewise.
17480         * lib/unictype/pr_grapheme_link.h: Likewise.
17481         * lib/unictype/pr_id_continue.h: Likewise.
17482         * lib/unictype/pr_id_start.h: Likewise.
17483         * lib/unictype/pr_ideographic.h: Likewise.
17484         * lib/unictype/pr_ignorable_control.h: Likewise.
17485         * lib/unictype/pr_logical_order_exception.h: Likewise.
17486         * lib/unictype/pr_lowercase.h: Likewise.
17487         * lib/unictype/pr_numeric.h: Likewise.
17488         * lib/unictype/pr_other_alphabetic.h: Likewise.
17489         * lib/unictype/pr_punctuation.h: Likewise.
17490         * lib/unictype/pr_sentence_terminal.h: Likewise.
17491         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17492         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17493         * lib/unictype/pr_unified_ideograph.h: Likewise.
17494         * lib/unictype/pr_uppercase.h: Likewise.
17495         * lib/unictype/pr_xid_continue.h: Likewise.
17496         * lib/unictype/pr_xid_start.h: Likewise.
17497         * lib/unictype/pr_zero_width.h: Likewise.
17498         * lib/unictype/scripts.h: Likewise.
17499         * lib/unictype/scripts_byname.gperf: Likewise.
17500         * lib/unictype/sy_java_ident.h: Likewise.
17501         * lib/unigbrk/gbrkprop.h: Likewise.
17502         * lib/unilbrk/lbrkprop1.h: Likewise.
17503         * lib/unilbrk/lbrkprop2.h: Likewise.
17504         * lib/unilbrk/lbrktables.h: Likewise.
17505         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
17506         LBP_CP. Implement rule LB30.
17507         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
17508         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
17509         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
17510         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
17511         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
17512         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
17513         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
17514         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
17515         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
17516         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
17517         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
17518         bits instead of 16 bits in the code1 and code2 of each composition
17519         rule.
17520         (uc_composition): Update for Unicode 5.2.0.
17521         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
17522         * lib/uninorm/decomposition-table2.h: Likewise.
17523         * lib/uniwbrk/wbrkprop.h: Likewise.
17524         * tests/unicase/test-cased.c: Likewise.
17525         * tests/unicase/test-ignorable.c: Likewise.
17526         * tests/unicase/test-uc_tolower.c: Likewise.
17527         * tests/unicase/test-uc_totitle.c: Likewise.
17528         * tests/unicase/test-uc_toupper.c: Likewise.
17529         * tests/unictype/test-categ_C.c: Likewise.
17530         * tests/unictype/test-categ_Cf.c: Likewise.
17531         * tests/unictype/test-categ_Cn.c: Likewise.
17532         * tests/unictype/test-categ_L.c: Likewise.
17533         * tests/unictype/test-categ_Ll.c: Likewise.
17534         * tests/unictype/test-categ_Lm.c: Likewise.
17535         * tests/unictype/test-categ_Lo.c: Likewise.
17536         * tests/unictype/test-categ_Lu.c: Likewise.
17537         * tests/unictype/test-categ_M.c: Likewise.
17538         * tests/unictype/test-categ_Mc.c: Likewise.
17539         * tests/unictype/test-categ_Mn.c: Likewise.
17540         * tests/unictype/test-categ_N.c: Likewise.
17541         * tests/unictype/test-categ_Nd.c: Likewise.
17542         * tests/unictype/test-categ_Nl.c: Likewise.
17543         * tests/unictype/test-categ_No.c: Likewise.
17544         * tests/unictype/test-categ_P.c: Likewise.
17545         * tests/unictype/test-categ_Pd.c: Likewise.
17546         * tests/unictype/test-categ_Po.c: Likewise.
17547         * tests/unictype/test-categ_S.c: Likewise.
17548         * tests/unictype/test-categ_Sc.c: Likewise.
17549         * tests/unictype/test-categ_So.c: Likewise.
17550         * tests/unictype/test-ctype_alnum.c: Likewise.
17551         * tests/unictype/test-ctype_alpha.c: Likewise.
17552         * tests/unictype/test-ctype_graph.c: Likewise.
17553         * tests/unictype/test-ctype_lower.c: Likewise.
17554         * tests/unictype/test-ctype_print.c: Likewise.
17555         * tests/unictype/test-ctype_punct.c: Likewise.
17556         * tests/unictype/test-ctype_upper.c: Likewise.
17557         * tests/unictype/test-decdigit.h: Likewise.
17558         * tests/unictype/test-digit.h: Likewise.
17559         * tests/unictype/test-numeric.h: Likewise.
17560         * tests/unictype/test-pr_alphabetic.c: Likewise.
17561         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17562         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17563         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
17564         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17565         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17566         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17567         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17568         * tests/unictype/test-pr_combining.c: Likewise.
17569         * tests/unictype/test-pr_composite.c: Likewise.
17570         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17571         * tests/unictype/test-pr_dash.c: Likewise.
17572         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17573         * tests/unictype/test-pr_deprecated.c: Likewise.
17574         * tests/unictype/test-pr_diacritic.c: Likewise.
17575         * tests/unictype/test-pr_extender.c: Likewise.
17576         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17577         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17578         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17579         * tests/unictype/test-pr_id_continue.c: Likewise.
17580         * tests/unictype/test-pr_id_start.c: Likewise.
17581         * tests/unictype/test-pr_ideographic.c: Likewise.
17582         * tests/unictype/test-pr_ignorable_control.c: Likewise.
17583         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
17584         * tests/unictype/test-pr_lowercase.c: Likewise.
17585         * tests/unictype/test-pr_numeric.c: Likewise.
17586         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17587         * tests/unictype/test-pr_punctuation.c: Likewise.
17588         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17589         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17590         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17591         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17592         * tests/unictype/test-pr_uppercase.c: Likewise.
17593         * tests/unictype/test-pr_xid_continue.c: Likewise.
17594         * tests/unictype/test-pr_xid_start.c: Likewise.
17595         * tests/unictype/test-pr_zero_width.c: Likewise.
17596         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17597         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
17598         changed behaviour: line breaking is now disallowed between a letter
17599         or '=' and '('.
17600         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17601         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17602         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
17603         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
17604         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17605         lib/uniwidth/width.c.
17606         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
17607         without comments, but with the original copyright notice.
17608         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17609         changes.
17610         * lib/unictype/categ_Cc.h: Likewise.
17611         * lib/unictype/categ_Co.h: Likewise.
17612         * lib/unictype/categ_Cs.h: Likewise.
17613         * lib/unictype/categ_Lt.h: Likewise.
17614         * lib/unictype/categ_Me.h: Likewise.
17615         * lib/unictype/categ_Pc.h: Likewise.
17616         * lib/unictype/categ_Pe.h: Likewise.
17617         * lib/unictype/categ_Pf.h: Likewise.
17618         * lib/unictype/categ_Pi.h: Likewise.
17619         * lib/unictype/categ_Ps.h: Likewise.
17620         * lib/unictype/categ_Sk.h: Likewise.
17621         * lib/unictype/categ_Sm.h: Likewise.
17622         * lib/unictype/categ_Z.h: Likewise.
17623         * lib/unictype/categ_Zl.h: Likewise.
17624         * lib/unictype/categ_Zp.h: Likewise.
17625         * lib/unictype/categ_Zs.h: Likewise.
17626         * lib/unictype/ctype_blank.h: Likewise.
17627         * lib/unictype/ctype_cntrl.h: Likewise.
17628         * lib/unictype/ctype_digit.h: Likewise.
17629         * lib/unictype/ctype_space.h: Likewise.
17630         * lib/unictype/ctype_xdigit.h: Likewise.
17631         * lib/unictype/mirror.h: Likewise.
17632         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17633         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17634         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17635         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17636         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17637         * lib/unictype/pr_bidi_control.h: Likewise.
17638         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17639         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17640         * lib/unictype/pr_bidi_pdf.h: Likewise.
17641         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17642         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17643         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17644         * lib/unictype/pr_format_control.h: Likewise.
17645         * lib/unictype/pr_hex_digit.h: Likewise.
17646         * lib/unictype/pr_hyphen.h: Likewise.
17647         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17648         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17649         * lib/unictype/pr_iso_control.h: Likewise.
17650         * lib/unictype/pr_join_control.h: Likewise.
17651         * lib/unictype/pr_left_of_pair.h: Likewise.
17652         * lib/unictype/pr_line_separator.h: Likewise.
17653         * lib/unictype/pr_math.h: Likewise.
17654         * lib/unictype/pr_non_break.h: Likewise.
17655         * lib/unictype/pr_not_a_character.h: Likewise.
17656         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17657         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17658         * lib/unictype/pr_other_id_continue.h: Likewise.
17659         * lib/unictype/pr_other_id_start.h: Likewise.
17660         * lib/unictype/pr_other_lowercase.h: Likewise.
17661         * lib/unictype/pr_other_math.h: Likewise.
17662         * lib/unictype/pr_other_uppercase.h: Likewise.
17663         * lib/unictype/pr_paired_punctuation.h: Likewise.
17664         * lib/unictype/pr_paragraph_separator.h: Likewise.
17665         * lib/unictype/pr_pattern_syntax.h: Likewise.
17666         * lib/unictype/pr_pattern_white_space.h: Likewise.
17667         * lib/unictype/pr_private_use.h: Likewise.
17668         * lib/unictype/pr_quotation_mark.h: Likewise.
17669         * lib/unictype/pr_radical.h: Likewise.
17670         * lib/unictype/pr_soft_dotted.h: Likewise.
17671         * lib/unictype/pr_space.h: Likewise.
17672         * lib/unictype/pr_titlecase.h: Likewise.
17673         * lib/unictype/pr_variation_selector.h: Likewise.
17674         * lib/unictype/pr_white_space.h: Likewise.
17675         * lib/unictype/sy_c_ident.h: Likewise.
17676         * lib/unictype/sy_c_whitespace.h: Likewise.
17677         * lib/unictype/sy_java_whitespace.h: Likewise.
17678         * modules/uni*/*: Bump version number of expected libunistring version.
17679         Reported by Simon Josefsson.
17680
17681 2011-01-09  Karl Heuer  <kwzh@gnu.org>
17682
17683         useless-if-before-free: fix typo in --help and make the internal,
17684         automatic version date update process work once again.
17685         --help output contained a NUL character instead of the
17686         backslash-zero that was intended.  Also, the "must lie within
17687         the first 8 lines" line is on line 9, and hence not getting
17688         automatically updated.
17689         * build-aux/useless-if-before-free: Fix the former by adding a
17690         backslash, and the latter by condensing the three lines of what-it-does
17691         to a single line, leaving one line of slack for the future.
17692
17693 2011-01-09  Bruno Haible  <bruno@clisp.org>
17694
17695         uniwidth/width: Fix width of U+1D173..U+1D17A.
17696         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
17697         symbolic_width, output_width_property_test): New functions.
17698         (main): Invoke output_nonspacing_property, output_width_property_test.
17699         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
17700         U+1D173..U+1D17A.
17701         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
17702         1.
17703         * modules/uniwidth/*: Bump version number of expected libunistring
17704         version.
17705         * modules/unilbrk/*: Likewise.
17706
17707 2011-01-08  Bruno Haible  <bruno@clisp.org>
17708
17709         uninorm tests: Preserve copyright of Unicode data file.
17710         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
17711         Mention modifications.
17712
17713 2011-01-08  Bruno Haible  <bruno@clisp.org>
17714
17715         gen-uni-tables: Prepare for Unicode 5.2.0.
17716         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
17717         (debug_output_lbp, output_lbp): Update.
17718
17719 2011-01-08  Bruno Haible  <bruno@clisp.org>
17720
17721         unilbrk: Clarify gen-uni-tables.c code.
17722         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
17723         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
17724         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
17725
17726 2011-01-07  Bruno Haible  <bruno@clisp.org>
17727
17728         strtod: Restore errno when successfully parsing Infinity or NaN.
17729         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
17730         restore the original errno.
17731
17732 2011-01-07  Bruno Haible  <bruno@clisp.org>
17733
17734         remove test: Avoid failure on HP-UX 11.
17735         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
17736
17737 2011-01-07  Bruno Haible  <bruno@clisp.org>
17738
17739         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
17740         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
17741         error code.
17742
17743 2011-01-07  Pádraig Brady <P@draigBrady.com>
17744
17745         ignore-value: fixup comments, and add Eric Blake
17746         as an author since he rewrote the macros.
17747         * lib/ignore-value.h (ignore_value):  State that
17748         we now support aggregates.  Also specify exactly
17749         when the GCC warn_unused_result feature was added.
17750
17751 2011-01-06  Eric Blake  <eblake@redhat.com>
17752
17753         ignore-value: support aggregate types
17754         * lib/ignore-value.h (ignore_value): Provide separate gcc
17755         definition.
17756         * modules/ignore-value-tests: New test module.
17757         * tests/test-ignore-value.c: New test.
17758
17759         maint.mk: improve sc_prohibit_strcmp regex
17760         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
17761         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
17762         definition of STRNEQ.
17763
17764         signal: work around Haiku issue with SIGBUS
17765         * lib/siglist.h: Add comment.
17766         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
17767         strsignal's favoring of SIGSEGV.
17768         * tests/test-signal.c (main): Avoid test failure.
17769         * doc/posix-headers/signal.texi (signal.h): Document the issue.
17770         Reported by Scott McCreary.
17771
17772         maint.mk: add pre-release check to ensure submodule commits are public
17773         * top/maint.mk (public-submodule-commit): New rule.
17774         (submodule-checks): New variable.
17775         (alpha beta stable): Depend on the variable.
17776
17777 2011-01-05  Pádraig Brady <P@draigBrady.com>
17778         and Jim Meyering  <meyering@redhat.com>
17779
17780         ignore-value: make ignore_value more generic; deprecate ignore_ptr
17781         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
17782         (ATTRIBUTE_DEPRECATED): Define.
17783         (_ignore_case): New function.
17784         (ignore_value): New macro, to replace the old function.
17785         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
17786         * modules/ignore-value (Depends-on): Add stdint.
17787
17788 2011-01-04  Eric Blake  <eblake@redhat.com>
17789
17790         doc: regenerate INSTALL
17791         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
17792         @firstparagraphindent support, now that autoconf dropped it.
17793         (INSTALL_PRELUDE): Reinstate old macro.
17794         * doc/install.texi: Resync from autoconf.
17795         * doc/INSTALL: Reflect recent autoconf update.
17796         * doc/INSTALL.ISO: Likewise.
17797         * doc/INSTALL.UTF-8: Likewise.
17798         Reported by Karl Berry.
17799
17800 2011-01-04  Bruce Korb  <address@hidden>
17801
17802         git-version-gen: avoid a sub-shell
17803         * build-aux/git-version-gen: Redirect stderr in `...` via
17804         "exec 2>...", rather than via an added sub-shell.
17805
17806 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
17807
17808         git-version-gen: use (...) rather than sh -c '...'
17809         * build-aux/git-version-gen: Rather than hard-coding a shell's name
17810         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
17811
17812 2011-01-03  Jim Meyering  <meyering@redhat.com>
17813
17814         git-version-gen: convert leading TABs to spaces
17815         * build-aux/git-version-gen: Expand leading TABs.
17816
17817         git-version-gen: handle failed "git rev-list"
17818         * build-aux/git-version-gen: Rather than leaking a "fatal" error
17819         from git and proceeding as if it had succeeded but printed no SHA1
17820         checksums, suppress the diagnostic and handle the failure.
17821         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
17822
17823         git-version-gen: include command name in one more diagnostic
17824         * build-aux/git-version-gen: When the required .tarball-version file
17825         was missing or unreadable, you might see the diagnostic from "cat",
17826         but no trace of the name of the invoking script.  Now, you still see
17827         the diagnostic from cat, but also get one from "git-version-gen: ".
17828         Inspired by a patch from Bruce Korb.
17829
17830         update-copyright: adjust test to match changed code
17831         * tests/test-update-copyright.sh: Change test's expected output
17832         to match new actual output.
17833
17834 2011-01-02  Bruno Haible  <bruno@clisp.org>
17835
17836         getlogin_r: Avoid test failure on HP-UX 11.
17837         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
17838         ERANGE when the second argument is zero.
17839         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
17840         portability problem.
17841
17842 2011-01-02  Bruce Korb  <bkorb@gnu.org>
17843
17844         * build-aux/update-copyright: doc Simon's changes
17845
17846 2011-01-02  Simon Josefsson  <simon@josefsson.org>
17847
17848         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
17849         environment variable.
17850
17851 2011-01-02  Bruno Haible  <bruno@clisp.org>
17852
17853         unigbrk: Avoid gcc warnings.
17854         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
17855         unused variable.
17856         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
17857         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
17858         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
17859         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
17860         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
17861         Change type of first argument to 'const char *'.
17862         (main): Remove unused variable.
17863         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
17864         type of first argument to 'const char *'.
17865         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
17866         Likewise.
17867         (main): Change type of variable 's'.
17868         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
17869         to 'int'.
17870
17871 2011-01-02  Bruno Haible  <bruno@clisp.org>
17872
17873         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
17874         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
17875         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
17876         bug.
17877         * lib/pwrite.c: Undo 2010-12-31 patch.
17878         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
17879
17880 2011-01-02  Bruno Haible  <bruno@clisp.org>
17881
17882         pread: Fix test whether it works.
17883         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
17884
17885 2011-01-02  Bruno Haible  <bruno@clisp.org>
17886
17887         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
17888         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
17889         ends in "6". Don't require a specific month name. Try also the locale
17890         names found on HP-UX 11 and Solaris 7.
17891
17892 2011-01-02  Bruno Haible  <bruno@clisp.org>
17893
17894         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
17895         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
17896         C linkage.
17897         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
17898
17899 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17900
17901         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
17902         for consistency, since the "cluster" term is not used elsewhere.
17903         * lib/unigbrk.in.h: Update name.
17904         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
17905         * lib/unigbrk/u16-grapheme-next.c: Update name.
17906         * lib/unigbrk/u16-grapheme-prev.c: Update name.
17907         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
17908         * lib/unigbrk/u32-grapheme-next.c: Update name.
17909         * lib/unigbrk/u32-grapheme-prev.c: Update name.
17910         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
17911         * lib/unigbrk/u8-grapheme-next.c: Update name.
17912         * lib/unigbrk/u8-grapheme-prev.c: Update name.
17913         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
17914         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
17915         Suggested by Bruno Haible.
17916
17917 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17918
17919         Remove module 'u8-grapheme-len' as too redundant with
17920         'u8-grapheme-next'.
17921         * modules/unigbrk/u8-grapheme-len: Delete file.
17922         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
17923         * lib/unigbrk.in.h: Remove prototype for deleted function.
17924         * lib/unigbrk/u8-grapheme-len.c: Delete file.
17925         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
17926
17927         Remove module 'u16-grapheme-len' as too redundant with
17928         'u16-grapheme-next'.
17929         * modules/unigbrk/u16-grapheme-len: Delete file.
17930         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
17931         * lib/unigbrk.in.h: Remove prototype for deleted function.
17932         * lib/unigbrk/u16-grapheme-len.c: Delete file.
17933         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
17934
17935         Remove module 'u32-grapheme-len' as too redundant with
17936         'u32-grapheme-next'.
17937         * modules/unigbrk/u32-grapheme-len: Delete file.
17938         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
17939         * lib/unigbrk.in.h: Remove prototype for deleted function.
17940         * lib/unigbrk/u32-grapheme-len.c: Delete file.
17941         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
17942
17943         Suggested by Bruno Haible.
17944
17945 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17946
17947         * unigbrk.in.h: Fix typo: "ben" => "been".
17948         Reported by Bruno Haible.
17949
17950 2011-01-01  Jim Meyering  <meyering@redhat.com>
17951
17952         maint: update almost all copyright ranges to include 2011
17953         Run the new "make update-copyright" rule.
17954
17955 2011-01-01  Jim Meyering  <meyering@redhat.com>
17956
17957         maint: update-copyright: exempt doc/INSTALL*
17958         * Makefile (update-copyright): Also exclude doc/INSTALL*,
17959         since they are generated.  Suggested by Bruno Haible.
17960
17961 2011-01-01  Jim Meyering  <meyering@redhat.com>
17962
17963         maint: refine the update-copyright rule
17964         * Makefile (update-copyright): Also exclude any file that includes
17965         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
17966         code that merely generates the comment.
17967
17968 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17969
17970         New module 'u8-grapheme-len'.
17971         * modules/unigbrk/u8-grapheme-len: New file.
17972         * modules/unigbrk/u8-grapheme-len-tests: New file.
17973         * lib/unigbrk.in.h: Add prototype for new function.
17974         * lib/unigbrk/u8-grapheme-len.c: New file.
17975         * tests/unigbrk/test-u8-grapheme-len.c: New file.
17976
17977         New module 'u16-grapheme-len'.
17978         * modules/unigbrk/u16-grapheme-len: New file.
17979         * modules/unigbrk/u16-grapheme-len-tests: New file.
17980         * lib/unigbrk.in.h: Add prototype for new function.
17981         * lib/unigbrk/u16-grapheme-len.c: New file.
17982         * tests/unigbrk/test-u16-grapheme-len.c: New file.
17983
17984         New module 'u32-grapheme-len'.
17985         * modules/unigbrk/u32-grapheme-len: New file.
17986         * modules/unigbrk/u32-grapheme-len-tests: New file.
17987         * lib/unigbrk.in.h: Add prototype for new function.
17988         * lib/unigbrk/u32-grapheme-len.c: New file.
17989         * tests/unigbrk/test-u32-grapheme-len.c: New file.
17990
17991         New module 'u8-grapheme-next'.
17992         * modules/unigbrk/u8-grapheme-next: New file.
17993         * modules/unigbrk/u8-grapheme-next-tests: New file.
17994         * lib/unigbrk.in.h: Add prototype for new function.
17995         * lib/unigbrk/u8-grapheme-next.c: New file.
17996         * tests/unigbrk/test-u8-grapheme-next.c: New file.
17997
17998         New module 'u16-grapheme-next'.
17999         * modules/unigbrk/u16-grapheme-next: New file.
18000         * modules/unigbrk/u16-grapheme-next-tests: New file.
18001         * lib/unigbrk.in.h: Add prototype for new function.
18002         * lib/unigbrk/u16-grapheme-next.c: New file.
18003         * tests/unigbrk/test-u16-grapheme-next.c: New file.
18004
18005         New module 'u32-grapheme-next'.
18006         * modules/unigbrk/u32-grapheme-next: New file.
18007         * modules/unigbrk/u32-grapheme-next-tests: New file.
18008         * lib/unigbrk.in.h: Add prototype for new function.
18009         * lib/unigbrk/u32-grapheme-next.c: New file.
18010         * tests/unigbrk/test-u32-grapheme-next.c: New file.
18011
18012         New module 'u8-grapheme-prev'.
18013         * modules/unigbrk/u8-grapheme-prev: New file.
18014         * modules/unigbrk/u8-grapheme-prev-tests: New file.
18015         * lib/unigbrk.in.h: Add prototype for new function.
18016         * lib/unigbrk/u8-grapheme-prev.c: New file.
18017         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
18018
18019         New module 'u16-grapheme-prev'.
18020         * modules/unigbrk/u16-grapheme-prev: New file.
18021         * modules/unigbrk/u16-grapheme-prev-tests: New file.
18022         * lib/unigbrk.in.h: Add prototype for new function.
18023         * lib/unigbrk/u16-grapheme-prev.c: New file.
18024         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
18025
18026         New module 'u32-grapheme-prev'.
18027         * modules/unigbrk/u32-grapheme-prev: New file.
18028         * modules/unigbrk/u32-grapheme-prev-tests: New file.
18029         * lib/unigbrk.in.h: Add prototype for new function.
18030         * lib/unigbrk/u32-grapheme-prev.c: New file.
18031         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
18032
18033         New module 'u8-grapheme-breaks'.
18034         * modules/unigbrk/u8-grapheme-breaks: New file.
18035         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
18036         * lib/unigbrk.in.h: Add prototype for new function.
18037         * lib/unigbrk/u8-grapheme-breaks.c: New file.
18038         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
18039
18040         New module 'u16-grapheme-breaks'.
18041         * modules/unigbrk/u16-grapheme-breaks: New file.
18042         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
18043         * lib/unigbrk.in.h: Add prototype for new function.
18044         * lib/unigbrk/u16-grapheme-breaks.c: New file.
18045         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
18046
18047         New module 'u32-grapheme-breaks'.
18048         * modules/unigbrk/u32-grapheme-breaks: New file.
18049         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
18050         * lib/unigbrk.in.h: Add prototype for new function.
18051         * lib/unigbrk/u32-grapheme-breaks.c: New file.
18052         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
18053
18054         New module 'ulc-grapheme-breaks'.
18055         * modules/unigbrk/ulc-grapheme-breaks: New file.
18056         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
18057         * m4/locale-ar.m4: New file.
18058         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
18059         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
18060         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
18061
18062 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
18063
18064         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
18065         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
18066         modified how this file was generated before I initially submitted
18067         the module, but failed to regenerate it.  This meant that several
18068         of the level2 entries were wrong.
18069         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
18070         Remove the division-by-2 that is folded into the table now that
18071         gbrkprop.h has been regenerated properly.  Now -1 entries are
18072         handled correctly.
18073
18074         New module 'unigbrk/uc-gbrk-prop-tests'.
18075         * modules/unigbrk/uc-gbrk-prop-tests: New file.
18076         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
18077         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
18078         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
18079
18080 2011-01-01  Bruno Haible  <bruno@clisp.org>
18081
18082         Avoid use of hexadecimal escapes.
18083         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
18084         instead of hexadecimal escapes.
18085
18086 2011-01-01  Jim Meyering  <meyering@redhat.com>
18087
18088         maint: new rule to update copyright year ranges
18089         * Makefile (update-copyright): New rule.
18090
18091         maint: indent with TABs in Makefile
18092         * Makefile: Expand leading sequences of spaces to TABs
18093
18094         version-etc: update the copyright year it reports
18095         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
18096
18097 2010-12-31  Bruno Haible  <bruno@clisp.org>
18098
18099         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
18100         * lib/isfinite.c (zerof, zerod, zerol): New variables.
18101         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
18102         zero.
18103
18104 2010-12-31  Bruno Haible  <bruno@clisp.org>
18105
18106         pwrite: Work around HP-UX 11.11 bug.
18107         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
18108         works and set REPLACE_PWRITE if not.
18109         * lib/pwrite.c (pwrite): Add an implementation that uses the system
18110         function.
18111         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
18112
18113 2010-12-31  Bruno Haible  <bruno@clisp.org>
18114
18115         pread: Work around HP-UX 11 bugs.
18116         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
18117         and set REPLACE_PREAD if not.
18118         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
18119
18120 2010-12-31  Eric Blake  <eblake@redhat.com>
18121
18122         nl_langinfo: fix YESEXPR on Irix 6.5
18123         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
18124         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
18125         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
18126         it.
18127
18128 2010-12-31  Bruno Haible  <bruno@clisp.org>
18129
18130         iconv: Document HP-UX 11 bug.
18131         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
18132
18133 2010-12-31  Bruno Haible  <bruno@clisp.org>
18134
18135         ldexpl: Fix link error on HP-UX 11.
18136         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
18137         LDEXPL_LIBM, using $ISNANL_LIBM.
18138
18139 2010-12-31  Eric Blake  <eblake@redhat.com>
18140
18141         ftello: avoid compilation failure with SunStudio c89
18142         * lib/ftello.c (ftello): Use lseek, not llseek.
18143
18144         tests: avoid failing coreutils tests on cygwin
18145         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
18146         (create_exe_shims_): Return 0 when skipping.
18147
18148 2010-12-31  Bruno Haible  <bruno@clisp.org>
18149
18150         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
18151         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
18152
18153 2010-12-31  Bruno Haible  <bruno@clisp.org>
18154
18155         waitpid: Fix link error in C++ mode.
18156         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
18157
18158 2010-12-31  Bruno Haible  <bruno@clisp.org>
18159
18160         isnan: Use GCC built-ins when possible.
18161         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
18162         __builtin_isnan.
18163         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
18164         (isnan): Define using GCC built-ins for GCC >= 4.0.
18165
18166 2010-12-31  Bruno Haible  <bruno@clisp.org>
18167
18168         isnand: Fix mistake.
18169         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
18170         __builtin_isnand.
18171
18172 2010-12-31  Bruno Haible  <bruno@clisp.org>
18173
18174         open: Avoid C++ error on HP-UX 11.
18175         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
18176
18177 2010-12-31  Bruno Haible  <bruno@clisp.org>
18178
18179         time_r: Add missing declarations on HP-UX 11.
18180         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
18181         instead of HAVE_LOCALTIME_R.
18182         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
18183         HAVE_LOCALTIME_R always.
18184         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
18185         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
18186         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
18187         HAVE_LOCALTIME_R.
18188         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
18189         * doc/posix-functions/localtime_r.texi: Likewise.
18190
18191 2010-12-29  Eric Blake  <eblake@redhat.com>
18192
18193         mountlist: tweak previous commit
18194         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
18195         Reported by Paul Eggert.
18196
18197         mountlist: fix local drive detection on cygwin
18198         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
18199         that works for cygwin.
18200
18201 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18202
18203         ftoastr, snprintf: ftoastr + snprintf module
18204         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
18205         since the snprintf module now should be good enough here.
18206         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
18207         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
18208         and gl_MODULE_INDICATOR([snprintf]), but the former enables
18209         GNULIB_SNPRINTF only for the test directory, and the latter
18210         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
18211         seems to suffice by itself.
18212
18213 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18214
18215         alloca: one step towards thread-safety
18216         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
18217         need for a static variable.  All callers changed.  This does not
18218         make the alloca replacement thread-safe, but it's one step.
18219
18220         tests: minor indenting change
18221         * tests/init.sh: Sync from coreutils housekeeping patch
18222         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
18223         to keep lines within 80 columns.
18224
18225 2010-12-28  Jim Meyering  <meyering@redhat.com>
18226
18227         regex: don't infloop on persistent failing calloc
18228         * lib/regexec.c (build_trtable): Return failure indication upon
18229         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18230         In glibc, this was fixed for version 2.13:
18231         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
18232
18233 2010-12-28  Bruno Haible  <bruno@clisp.org>
18234             Paul Eggert <eggert@cs.ucla.edu>
18235
18236         linkat: Make implementation robust against system behaviour variations.
18237         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
18238         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
18239         way, and to -2 if it needs a generic runtime test.
18240         * lib/linkat.c (solaris_optimized_link_immediate,
18241         solaris_optimized_link_follow): New functions.
18242         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
18243         (check_same_link): Use it.
18244
18245 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
18246
18247         New module 'unigbrk/base'.
18248         * modules/unigbrk/base: New file.
18249         * lib/unigbrk.in.h: New file.
18250
18251         New module 'unigbrk/uc-gbrk-prop'.
18252         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
18253         * modules/unigbrk/uc-gbrk-prop: New file.
18254         * lib/unigbrk/gbrkprop.h: New file.
18255         * lib/unigbrk/uc-gbrk-prop.c: New file.
18256
18257         New module 'unigbrk/uc-is-grapheme-break'.
18258         * modules/unigbrk/uc-is-grapheme-break: New file.
18259         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
18260         * lib/unigbrk/uc-is-grapheme-break.c: New file.
18261         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
18262         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
18263         * tests/unigbrk/GraphemeBreakTest.txt: New file.
18264
18265         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
18266
18267 2010-12-27  Bruno Haible  <bruno@clisp.org>
18268
18269         linkat test: Avoid failure on Solaris 11 2010-11.
18270         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
18271
18272 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18273
18274         utimens: work around glibc rounding bug on more platforms
18275         * lib/utimens.c (fdutimens): Work around rounding bug even if
18276         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
18277         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
18278
18279 2010-12-27  Bruno Haible  <bruno@clisp.org>
18280
18281         select tests: Improve comments.
18282         * tests/test-select.c (do_select): Add comments.
18283
18284 2010-12-27  Bruno Haible  <bruno@clisp.org>
18285
18286         select tests: Safer way of handling timeout.
18287         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
18288         at every invocation.
18289
18290 2010-12-27  Bruno Haible  <bruno@clisp.org>
18291
18292         select tests: Use 'bool' where appropriate.
18293         * tests/test-select.c (connect_to_socket): Change argument type to
18294         'bool'.
18295
18296 2010-12-27  Bruno Haible  <bruno@clisp.org>
18297
18298         select tests: Use existing modules.
18299         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
18300         (configure.ac): Don't test for unistd.h.
18301         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
18302         declared in <unistd.h>.
18303
18304 2010-12-27  Bruno Haible  <bruno@clisp.org>
18305
18306         mbrtowc: Work around a Solaris 7 bug.
18307         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
18308         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
18309         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
18310         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
18311         MBRTOWC_NULL_ARG1_BUG.
18312         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
18313         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
18314         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
18315         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
18316
18317 2010-12-27  Jim Meyering  <meyering@redhat.com>
18318
18319         read-file.c: tweak syntax
18320         * lib/read-file.c (fread_file): Remove space after "*" in function
18321         definitions.
18322
18323 2010-12-27  Bruno Haible  <bruno@clisp.org>
18324
18325         times test: Avoid gcc warnings on OSF/1.
18326         * tests/test-times.c (main): Cast printf arguments from clock_t to
18327         'long int'.
18328
18329 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18330
18331         utimens: work around glibc rounding bug on older Linux kernels
18332         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
18333         on Linux with a glibc whose utimes might not work, then work
18334         around a longstanding glibc bug involving rounding rather than
18335         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
18336         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18337
18338 2010-12-26  Bruno Haible  <bruno@clisp.org>
18339
18340         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
18341         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
18342         _GL_CXXALIAS_SYS.
18343         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18344
18345 2010-12-26  Bruno Haible  <bruno@clisp.org>
18346
18347         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
18348         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
18349         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18350         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
18351         looking for the declaration.
18352         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
18353         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
18354         problem.
18355         * doc/posix-functions/inet_pton.texi: Likewise.
18356
18357 2010-12-26  Bruno Haible  <bruno@clisp.org>
18358
18359         arpa_inet: Use the common idioms with C++ support.
18360         * lib/arpa_inet.in.h: Include c++defs.h.
18361         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
18362         support.
18363         * modules/arpa_inet (Depends-on): Add c++defs.
18364         (Makefile.am): Substitute the contents of c++defs.h.
18365         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
18366         * modules/arpa_inet-c++-tests: New file.
18367         * tests/test-arpa_inet-c++.cc: New file.
18368
18369 2010-12-25  Bruno Haible  <bruno@clisp.org>
18370
18371         Fix more C++ link errors on Solaris 8.
18372         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
18373         $(LIB_EACCESS).
18374         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
18375         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
18376         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
18377         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
18378         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
18379
18380 2010-12-25  Bruno Haible  <bruno@clisp.org>
18381
18382         printf-posix: Fix link error when a non-GCC compiler is used.
18383         * lib/stdio.in.h (printf): When not using GCC, override printf
18384         correctly.
18385         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18386
18387 2010-12-25  Bruno Haible  <bruno@clisp.org>
18388
18389         strerror_r-posix: Update doc.
18390         * doc/posix-functions/strerror_r.texi: Update doc about the return
18391         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
18392
18393 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18394
18395         utimens: simplify the logic of the previous change
18396         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
18397         This should not affect whether the test succeeds or fails.
18398
18399         utimens: configure better on hosts with NFS clock skew
18400         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
18401         uses the clock of the local host.  It might use the clock of the
18402         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
18403         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18404
18405 2010-12-25  Bruno Haible  <bruno@clisp.org>
18406
18407         ptsname test: Avoid failure on Solaris.
18408         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
18409         open a pseudo-terminal; don't use BSD-style ptys.
18410         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
18411
18412 2010-12-25  Bruno Haible  <bruno@clisp.org>
18413
18414         ptsname: Avoid ERANGE failure on some systems.
18415         * lib/ptsname.c (buffer): Increase size.
18416
18417 2010-12-25  Bruno Haible  <bruno@clisp.org>
18418
18419         rename, renameat: Avoid test failures at NFS mounted locations.
18420         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
18421         so that subsequent mkdir calls succeed.
18422
18423 2010-12-25  Bruno Haible  <bruno@clisp.org>
18424
18425         iswblank: Fix C++ link error on Solaris 8.
18426         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
18427         _GL_FUNCDECL_SYS.
18428
18429 2010-12-25  Bruno Haible  <bruno@clisp.org>
18430
18431         unistd: Fix C++ link error on Solaris 8.
18432         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
18433
18434 2010-12-25  Bruno Haible  <bruno@clisp.org>
18435
18436         readlink doc: Mention an old glibc bug.
18437         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
18438
18439 2010-12-25  Bruno Haible  <bruno@clisp.org>
18440
18441         fcntl-h: Fix for use of C++ on glibc systems.
18442         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18443         also on glibc systems in C++ mode.
18444         Reported by Gary V. Vaughan <gary@gnu.org>.
18445
18446 2010-12-25  Bruno Haible  <bruno@clisp.org>
18447
18448         roundl-ieee: Make it work on OSF/1 5.1 with cc.
18449         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
18450
18451 2010-12-25  Bruno Haible  <bruno@clisp.org>
18452
18453         truncl-ieee: Make it work on OSF/1 5.1 with cc.
18454         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
18455         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
18456         test whether truncl works according to ISO C 99 with IEC 60559.
18457         * m4/truncl-ieee.m4: New file.
18458         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
18459         m4/signbit.m4.
18460         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
18461
18462 2010-12-25  Bruno Haible  <bruno@clisp.org>
18463
18464         ceill-ieee: Make it work on OSF/1 5.1 with cc.
18465         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
18466         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
18467         test whether ceill works according to ISO C 99 with IEC 60559.
18468         * m4/ceill-ieee.m4: New file.
18469         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
18470         m4/signbit.m4.
18471         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
18472
18473 2010-12-25  Bruno Haible  <bruno@clisp.org>
18474
18475         Ensure all prerequisites of <wchar.h> are included.
18476         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
18477         before <wchar.h>.
18478         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18479         gl_MBRLEN_NUL_RETVAL): Likewise.
18480         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18481         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
18482         AC_FUNC_MBRTOWC): Likewise.
18483         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18484         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
18485         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18486         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18487         Likewise.
18488         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18489         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
18490         (gl_WCHAR_H): Improve comments.
18491         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
18492
18493 2010-12-25  Bruno Haible  <bruno@clisp.org>
18494
18495         strtok_r: Fix C syntax error in autoconf macro.
18496         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
18497         characters in test program.
18498
18499 2010-12-24  Bruno Haible  <bruno@clisp.org>
18500
18501         ceil, trunc, round: Fix gcc warnings.
18502         * lib/ceil.c (MIN): Undefine before redefining.
18503         * lib/trunc.c (MIN): Likewise.
18504         * lib/round.c (MIN): Likewise.
18505         Include <math.h> first.
18506
18507 2010-12-24  Bruno Haible  <bruno@clisp.org>
18508
18509         select tests: Avoid failures on OSF/1 5.1.
18510         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
18511         failure of closing the last socket; it may fail with ECONNRESET.
18512
18513 2010-12-24  Eric Blake  <eblake@redhat.com>
18514
18515         stdint: avoid HP-UX 10.20 preprocessor bug
18516         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
18517         than #if.
18518         * tests/test-floor2.c (main): Likewise.
18519         Reported by Peter O'Gorman.
18520
18521         pipe: make obsoletion transition easier
18522         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
18523         * modules/pipe (Files): Include revived file.
18524         (Include): Drop reference, to mirror getdate's behavior.
18525
18526 2010-12-24  Bruno Haible  <bruno@clisp.org>
18527
18528         sys_socket: Hide mismatch of declarations on NonStop Kernel.
18529         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
18530         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
18531         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18532
18533 2010-12-24  Bruno Haible  <bruno@clisp.org>
18534
18535         gethostname: Ensure declaration on NonStop Kernel.
18536         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
18537         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18538
18539 2010-12-24  Bruno Haible  <bruno@clisp.org>
18540
18541         sys_select: Ensure all necessary types on NonStop Kernel.
18542         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
18543         include <sys/time.h>.
18544         * doc/posix-headers/sys_select.texi: Mention that it's missing on
18545         NonStop Kernel.
18546         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18547
18548 2010-12-24  Bruno Haible  <bruno@clisp.org>
18549
18550         sys_select: Remove unneeded include.
18551         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
18552         have <sys/select.h>.
18553
18554 2010-12-24  Bruno Haible  <bruno@clisp.org>
18555
18556         gethostname: Provide a fallback for HOST_NAME_MAX.
18557         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
18558         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
18559         instead.
18560         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18561
18562 2010-12-24  Bruno Haible  <bruno@clisp.org>
18563
18564         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
18565         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
18566         (SA_RESTART): Likewise.
18567         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18568
18569 2010-12-24  Bruno Haible  <bruno@clisp.org>
18570
18571         signal: Define NSIG.
18572         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
18573         * tests/test-signal.c (nsig): New variable.
18574         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18575
18576 2010-12-24  Bruno Haible  <bruno@clisp.org>
18577
18578         rename, renameat: Avoid test failures on OSF/1 5.1.
18579         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
18580         alternative error codes.
18581         * tests/test-renameat.c (main): Likewise.
18582
18583 2010-12-24  Bruno Haible  <bruno@clisp.org>
18584
18585         *printf: Detect large precisions bug on Solaris 10/SPARC.
18586         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
18587         by Paul Eggert.
18588         * tests/test-snprintf-posix.h (test_function): Add this test code here
18589         too.
18590         * tests/test-sprintf-posix.h (test_function): Likewise.
18591         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18592         * tests/test-vasprintf-posix.c (test_function): Likewise.
18593         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
18594         around by gnulib.
18595         * doc/posix-functions/printf.texi: Likewise.
18596         * doc/posix-functions/snprintf.texi: Likewise.
18597         * doc/posix-functions/sprintf.texi: Likewise.
18598         * doc/posix-functions/vfprintf.texi: Likewise.
18599         * doc/posix-functions/vprintf.texi: Likewise.
18600         * doc/posix-functions/vsnprintf.texi: Likewise.
18601         * doc/posix-functions/vsprintf.texi: Likewise.
18602         * doc/posix-functions/dprintf.texi: Undo last commit.
18603         * doc/posix-functions/vdprintf.texi: Likewise.
18604
18605 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18606
18607         tests: port test-fdutimensat.c to Solaris 8
18608         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
18609         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
18610         On Solaris 8, it fails with errno == ENOSYS, because there is no
18611         futimens (so it can't use the fd), and there is no lutimens (so it
18612         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
18613
18614         vsnprintf: make more consistent with snprintf; doc fixes
18615
18616         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
18617         the byte count return problem was promoted from the snprintf-posix
18618         to the snprintf module.
18619         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
18620         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
18621         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
18622         * tests/test-snprintf.c (main): Check the byte count returned.
18623         * tests/test-vsnprintf.c (main): Likewise.
18624
18625 2010-12-23  Eric Blake  <eblake@redhat.com>
18626
18627         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
18628         * modules/sigpipe (License): Relax license.
18629
18630 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18631
18632         doc: document Solaris printf bug with large float precisions
18633         * doc/posix-functions/dprintf.texi (dprintf):
18634         * doc/posix-functions/fprintf.texi (fprintf):
18635         * doc/posix-functions/printf.texi (printf):
18636         * doc/posix-functions/snprintf.texi (snprintf):
18637         * doc/posix-functions/sprintf.texi (sprintf):
18638         * doc/posix-functions/vdprintf.texi (vdprintf):
18639         * doc/posix-functions/vfprintf.texi (vfprintf):
18640         * doc/posix-functions/vprintf.texi (vprintf):
18641         * doc/posix-functions/vsnprintf.texi (vsnprintf):
18642         * doc/posix-functions/vsprintf.texi (vsprintf):
18643         Mention that these functions mishandle large floating point
18644         precisions on Solaris 10.  The same bug is also present in Solaris
18645         8, and I assume earlier.  This causes "cd gnulib-tests; make
18646         check" to fail on Solaris 8 (and I assume, later) when building
18647         the latest coreutils, in test-vasprintf-posix's call to
18648         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
18649         the wide flavors (e.g., wprintf) so this patch just updates the
18650         documentation for the narrow ones.
18651
18652         test-posixtm.c: add two tests
18653         * tests/test-posixtm.c: Add two tests, to highlight the
18654         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
18655         around this bug; this is merely to document it.
18656
18657 2010-12-22  Bruno Haible  <bruno@clisp.org>
18658
18659         getlogin_r: Work around portability problem on OSF/1.
18660         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
18661         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
18662         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
18663         test for a truncated result.
18664         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
18665         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
18666         * modules/getlogin_r (Depends-on): Add memchr.
18667         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
18668
18669 2010-12-22  Bruno Haible  <bruno@clisp.org>
18670
18671         ptsname: Avoid test failure on OSF/1 5.1.
18672         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
18673         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
18674         (same_slave): New function.
18675         (main): Use it to compare ptsname's result with the expected file name.
18676
18677 2010-12-22  Bruno Haible  <bruno@clisp.org>
18678
18679         Port extended stdio modules to HP NonStop Kernel.
18680         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
18681         macros.
18682         * lib/fbufmode.c: Update comments.
18683         * lib/fflush.c: Likewise.
18684         * lib/fpurge.c: Likewise.
18685         * lib/freadable.c: Likewise.
18686         * lib/freadahead.c: Likewise.
18687         * lib/freading.c: Likewise.
18688         * lib/freadptr.c: Likewise.
18689         * lib/freadseek.c: Likewise.
18690         * lib/fseeko.c: Likewise.
18691         * lib/fseterr.c: Likewise.
18692         * lib/fwritable.c: Likewise.
18693         * lib/fwriting.c: Likewise.
18694         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18695
18696 2010-12-22  Bruno Haible  <bruno@clisp.org>
18697
18698         ttyname_r: Work around bug on OSF/1 5.1.
18699         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
18700         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
18701         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
18702         present.
18703         * lib/ttyname_r.c (ttyname_r): Update comments.
18704
18705 2010-12-22  Bruno Haible  <bruno@clisp.org>
18706
18707         round: Implement result sign according to IEEE 754.
18708         * lib/round.c (MIN, MINUS_ZERO): New macros.
18709         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
18710         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
18711         * tests/test-round-ieee.c (main): Likewise.
18712         * tests/test-roundl-ieee.c (main): Likewise.
18713
18714         trunc: Implement result sign according to IEEE 754.
18715         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
18716         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
18717         * tests/test-trunc2.c: Include minus-zero.h.
18718         (MINUS_ZERO): New macro.
18719         (trunc_reference): Keep in sync with lib/trunc.c.
18720         * tests/test-truncf2.c: Include minus-zero.h.
18721         (MINUS_ZERO): New macro.
18722         (truncf_reference): Keep in sync with lib/trunc.c.
18723         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
18724         * tests/test-trunc-ieee.c (main): Likewise.
18725         * tests/test-truncl-ieee.c (main): Likewise.
18726
18727         ceil: Implement result sign according to IEEE 754.
18728         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
18729         (FUNC): Return -0.0 for -1 < x < 0.
18730         * tests/test-ceil2.c: Include minus-zero.h.
18731         (MINUS_ZERO): New macro.
18732         (ceil_reference): Keep in sync with lib/ceil.c.
18733         * tests/test-ceilf2.c: Include minus-zero.h.
18734         (MINUS_ZERO): New macro.
18735         (ceilf_reference): Keep in sync with lib/ceil.c.
18736         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
18737         * tests/test-ceil-ieee.c (main): Likewise.
18738         * tests/test-ceill-ieee.c (main): Likewise.
18739
18740         floor: Implement result sign according to IEEE 754.
18741         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
18742         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
18743         * tests/test-floorf2.c (floorf_reference): Likewise.
18744         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
18745         * tests/test-floor-ieee.c (main): Likewise.
18746         * tests/test-floorl-ieee.c (main): Likewise.
18747
18748 2010-12-22  Bruno Haible  <bruno@clisp.org>
18749
18750         getaddrinfo: Update doc.
18751         * doc/posix-functions/gai_strerror.texi: Return type is also different
18752         on AIX and HP-UX.
18753
18754 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18755
18756         getaddrinfo, inet_ntop: Update doc for Solaris.
18757         * doc/posix-functions/gai_strerror.texi: Return type is also an
18758         issue on Solaris 9 and earlier.
18759         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
18760         on Solaris 10 and earlier.
18761
18762 2010-12-21  Bruno Haible  <bruno@clisp.org>
18763
18764         New module 'roundl-ieee'.
18765         * modules/roundl-ieee: New file.
18766         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
18767         test whether roundl works according to ISO C 99 with IEC 60559.
18768         * m4/roundl-ieee.m4: New file.
18769         * modules/roundl-ieee-tests: New file.
18770         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
18771         * tests/test-roundl.c (main): Remove signbit tests.
18772         * modules/roundl-tests (Depends-on): Remove signbit.
18773         * doc/posix-functions/roundl.texi: Mention the new module.
18774
18775 2010-12-21  Bruno Haible  <bruno@clisp.org>
18776
18777         New module 'truncl-ieee'.
18778         * modules/truncl-ieee: New file.
18779         * modules/truncl-ieee-tests: New file.
18780         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
18781         * tests/test-truncl.c (main): Remove signbit tests.
18782         * modules/truncl-tests (Depends-on): Remove signbit.
18783         * doc/posix-functions/truncl.texi: Mention the new module.
18784
18785 2010-12-21  Bruno Haible  <bruno@clisp.org>
18786
18787         New module 'ceill-ieee'.
18788         * modules/ceill-ieee: New file.
18789         * modules/ceill-ieee-tests: New file.
18790         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
18791         * tests/test-ceill.c (main): Remove signbit tests.
18792         * modules/ceill-tests (Depends-on): Remove signbit.
18793         * doc/posix-functions/ceill.texi: Mention the new module.
18794
18795 2010-12-21  Bruno Haible  <bruno@clisp.org>
18796
18797         New module 'floorl-ieee'.
18798         * modules/floorl-ieee: New file.
18799         * modules/floorl-ieee-tests: New file.
18800         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
18801         * tests/test-floorl.c (main): Remove signbit tests.
18802         * modules/floorl-tests (Depends-on): Remove signbit.
18803         * doc/posix-functions/floorl.texi: Mention the new module.
18804
18805 2010-12-21  Bruno Haible  <bruno@clisp.org>
18806
18807         New module 'round-ieee'.
18808         * modules/round-ieee: New file.
18809         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
18810         whether round works according to ISO C 99 with IEC 60559.
18811         * m4/round-ieee.m4: New file.
18812         * modules/round-ieee-tests: New file.
18813         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
18814         * tests/test-round1.c (main): Remove signbit tests.
18815         * modules/round-tests (Depends-on): Remove 'signbit'.
18816         * doc/posix-functions/round.texi: Mention the new module.
18817
18818 2010-12-21  Bruno Haible  <bruno@clisp.org>
18819
18820         New module 'trunc-ieee'.
18821         * modules/trunc-ieee: New file.
18822         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
18823         whether trunc works according to ISO C 99 with IEC 60559.
18824         * m4/trunc-ieee.m4: New file.
18825         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
18826         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
18827         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
18828         * modules/trunc-ieee-tests: New file.
18829         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
18830         * tests/test-trunc1.c (main): Remove signbit tests.
18831         * modules/trunc-tests (Depends-on): Remove 'signbit'.
18832         * doc/posix-functions/trunc.texi: Mention the new module.
18833
18834 2010-12-21  Bruno Haible  <bruno@clisp.org>
18835
18836         New module 'ceil-ieee'.
18837         * modules/ceil-ieee: New file.
18838         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
18839         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
18840         ISO C 99 with IEC 60559.
18841         * m4/ceil-ieee.m4: New file.
18842         * modules/ceil (Files): Add lib/ceil.c.
18843         (Depends-on): Add 'float'.
18844         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18845         * lib/math.in.h (ceil): New declaration.
18846         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
18847         REPLACE_CEIL.
18848         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
18849         * modules/ceil-ieee-tests: New file.
18850         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
18851         * tests/test-math-c++.cc: Check the signature of 'ceil'.
18852         * doc/posix-functions/ceil.texi: Mention the new module.
18853
18854 2010-12-21  Bruno Haible  <bruno@clisp.org>
18855
18856         New module 'floor-ieee'.
18857         * modules/floor-ieee: New file.
18858         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
18859         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
18860         ISO C 99 with IEC 60559.
18861         * m4/floor-ieee.m4: New file.
18862         * modules/floor (Files): Add lib/floor.c.
18863         (Depends-on): Add 'float'.
18864         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18865         * lib/math.in.h (floor): New declaration.
18866         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
18867         REPLACE_FLOOR.
18868         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
18869         * modules/floor-ieee-tests: New file.
18870         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
18871         * tests/test-math-c++.cc: Check the signature of 'floor'.
18872         * doc/posix-functions/floor.texi: Mention the new module.
18873
18874 2010-12-21  Bruno Haible  <bruno@clisp.org>
18875
18876         New module 'roundf-ieee'.
18877         * modules/roundf-ieee: New file.
18878         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
18879         test whether roundf works according to ISO C 99 with IEC 60559.
18880         * m4/roundf-ieee.m4: New file.
18881         * modules/roundf-ieee-tests: New file.
18882         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
18883         * tests/test-roundf1.c (main): Remove signbit tests.
18884         * modules/roundf-tests (Depends-on): Remove 'signbit'.
18885         * doc/posix-functions/roundf.texi: Mention the new module.
18886
18887 2010-12-21  Bruno Haible  <bruno@clisp.org>
18888
18889         New module 'truncf-ieee'.
18890         * modules/truncf-ieee: New file.
18891         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
18892         test whether truncf works according to ISO C 99 with IEC 60559.
18893         * m4/truncf-ieee.m4: New file.
18894         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
18895         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
18896         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
18897         * modules/truncf-ieee-tests: New file.
18898         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
18899         * tests/test-truncf1.c (main): Remove signbit tests.
18900         * modules/truncf-tests (Depends-on): Remove 'signbit'.
18901         * doc/posix-functions/truncf.texi: Mention the new module.
18902
18903 2010-12-21  Bruno Haible  <bruno@clisp.org>
18904
18905         New module 'ceilf-ieee'.
18906         * modules/ceilf-ieee: New file.
18907         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
18908         test whether ceilf works according to ISO C 99 with IEC 60559.
18909         * m4/ceilf-ieee.m4: New file.
18910         * modules/ceilf-ieee-tests: New file.
18911         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
18912         * tests/test-ceilf1.c (main): Remove signbit tests.
18913         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
18914         * doc/posix-functions/ceilf.texi: Mention the new module.
18915
18916 2010-12-21  Bruno Haible  <bruno@clisp.org>
18917
18918         New module 'floorf-ieee'.
18919         * modules/floorf-ieee: New file.
18920         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
18921         test whether floorf works according to ISO C 99 with IEC 60559.
18922         * m4/floorf-ieee.m4: New file.
18923         * modules/floorf-ieee-tests: New file.
18924         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
18925         * tests/test-floorf1.c (main): Remove signbit tests.
18926         * modules/floorf-tests (Depends-on): Remove 'signbit'.
18927         * doc/posix-functions/floorf.texi: Mention the new module.
18928
18929 2010-12-21  Bruno Haible  <bruno@clisp.org>
18930
18931         Support for minus zero in autoconf macros.
18932         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
18933         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
18934         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
18935         * tests/minus-zero.h: Update comments.
18936
18937 2010-12-21  Bruno Haible  <bruno@clisp.org>
18938
18939         Tests for module 'ceil'.
18940         * modules/ceil-tests: New file.
18941         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
18942         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
18943
18944 2010-12-21  Bruno Haible  <bruno@clisp.org>
18945
18946         Tests for module 'floor'.
18947         * modules/floor-tests: New file.
18948         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
18949         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
18950
18951 2010-12-21  Bruno Haible  <bruno@clisp.org>
18952
18953         math: Fix indentation.
18954         * lib/math.in.h (floorf): Fix indentation.
18955
18956 2010-12-21  Bruno Haible  <bruno@clisp.org>
18957
18958         Fix cross-compilation guesses on Solaris.
18959         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
18960         not match "solaris2.10".
18961         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18962         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
18963         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
18964
18965 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18966
18967         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
18968         This fixes a problem observed with the latest coreutils snapshot
18969         that caused a test to fail on Solaris 8.  src/csplit.c's call
18970         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
18971         earlier, instead of returning the number of bytes that would have
18972         been generated; this causes csplit to incorrectly report memory
18973         exhaustion.
18974         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
18975         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
18976         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
18977         comments to match.
18978         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
18979         Fix typo in matching older versions of Solaris: "solaris2.10"
18980         is matched by the shell pattern "solaris2.[0-9]*".  This matters
18981         only for guessing while cross-compiling.
18982         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
18983
18984 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
18985
18986         ftoastr: fix comment again
18987         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18988         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
18989         Also, simplify example a bit by using flags = 0.
18990
18991 2010-12-20  Bruno Haible  <bruno@clisp.org>
18992
18993         round*, trunc*: Update documentation regarding glibc.
18994         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
18995         * doc/posix-functions/round.texi: Likewise.
18996         * doc/posix-functions/roundl.texi: Likewise.
18997         * doc/posix-functions/truncf.texi: Likewise.
18998         * doc/posix-functions/trunc.texi: Likewise.
18999         * doc/posix-functions/truncl.texi: Likewise.
19000
19001 2010-12-20  Bruno Haible  <bruno@clisp.org>
19002
19003         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
19004         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
19005         * doc/posix-functions/round.texi: Likewise.
19006         * doc/posix-functions/roundl.texi: Likewise.
19007
19008 2010-12-20  Bruno Haible  <bruno@clisp.org>
19009
19010         ttyname_r: Add missing declaration on HP-UX 11.
19011         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
19012         HAVE_TTYNAME_R.
19013         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
19014         declared. Set HAVE_TTYNAME_R always.
19015         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19016         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
19017         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
19018         HAVE_TTYNAME_R.
19019         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
19020
19021 2010-12-20  Bruno Haible  <bruno@clisp.org>
19022
19023         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
19024         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
19025         * doc/posix-functions/getlogin_r.texi: Likewise.
19026         * tests/test-getlogin.c: Include <errno.h>.
19027         (main): Avoid test failure on HP-UX 11.11.
19028         * tests/test-getlogin_r.c (main): Likewise.
19029
19030 2010-12-20  Bruno Haible  <bruno@clisp.org>
19031
19032         getlogin_r: Add missing declaration on HP-UX 11.
19033         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
19034         declared also when it exists as a function.
19035         * doc/posix-functions/getlogin_r.texi: Document this workaround.
19036
19037 2010-12-20  Bruno Haible  <bruno@clisp.org>
19038
19039         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
19040         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
19041         through wcrtomb.
19042
19043 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
19044
19045         ftoastr: fix comment
19046         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
19047         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
19048
19049 2010-12-19  Bruno Haible  <bruno@clisp.org>
19050
19051         isnan: Ensure it is a macro.
19052         * lib/math.in.h (isnan): Define as a macro if not already a macro.
19053         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
19054         Solaris.
19055
19056 2010-12-19  Bruno Haible  <bruno@clisp.org>
19057
19058         ldexpl test: Fix link error on OSF/1 5.1.
19059         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
19060
19061 2010-12-19  Bruno Haible  <bruno@clisp.org>
19062
19063         wctype: Make it work in C++ mode on OSF/1 5.1.
19064         * lib/wctype.in.h (iswblank): Declare but not define here.
19065         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
19066         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
19067         * modules/wctype (Files): Add lib/iswblank.c.
19068
19069 2010-12-19  Bruno Haible  <bruno@clisp.org>
19070
19071         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
19072         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
19073         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
19074
19075 2010-12-19  Bruno Haible  <bruno@clisp.org>
19076
19077         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
19078         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
19079         _POSIX_PII_SOCKET.
19080         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
19081         * doc/posix-functions/recvfrom.texi: Likewise.
19082         * doc/posix-functions/send.texi: Likewise.
19083         * doc/posix-functions/sendto.texi: Likewise.
19084
19085 2010-12-19  Bruno Haible  <bruno@clisp.org>
19086
19087         tcgetsid: Add missing declaration on OSF/1 5.1.
19088         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
19089         HAVE_TCGETSID.
19090         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
19091         Don't set HAVE_TCGETSID.
19092         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
19093         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
19094         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
19095         HAVE_TCGETSID.
19096         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
19097
19098 2010-12-19  Bruno Haible  <bruno@clisp.org>
19099
19100         stdio: Fix problem with popen() declaration on OSF/1 5.1.
19101         * lib/stdio.in.h: During the include_next statement, let recursive
19102         includes of this file include only the system header file.
19103
19104 2010-12-19  Bruno Haible  <bruno@clisp.org>
19105
19106         iconv_open: Fix regression from 2010-12-04.
19107         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
19108         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
19109
19110 2010-12-19  Bruno Haible  <bruno@clisp.org>
19111
19112         stdbool test: Avoid a gcc warning.
19113         * tests/test-stdbool.c (main): Fail if e1 is false.
19114         Reported by Jim Meyering.
19115
19116 2010-12-19  Jim Meyering  <meyering@redhat.com>
19117
19118         setenv: restore to working order
19119         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
19120         mistakenly removed.
19121         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
19122         HAVE_SETENV.
19123         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
19124         HAVE_SETENV.
19125
19126 2010-12-19  Bruno Haible  <bruno@clisp.org>
19127
19128         Document some different function declarations on OSF/1 5.1.
19129         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
19130         * doc/posix-functions/inet_ntop.texi: Likewise.
19131         * doc/posix-functions/gethostname.texi: Likewise.
19132         * lib/unistd.in.h (gethostname): Update comment.
19133
19134 2010-12-19  Bruno Haible  <bruno@clisp.org>
19135
19136         doc: Mention vasprintf-posix module.
19137         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
19138         the 'vasprintf-posix' module.
19139         * doc/glibc-functions/vasprintf.texi: Likewise.
19140
19141 2010-12-19  Bruno Haible  <bruno@clisp.org>
19142
19143         unsetenv: Add missing declaration on OSF/1 5.1.
19144         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
19145         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
19146         Don't set HAVE_UNSETENV. In the test program, set _BSD.
19147         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
19148         not HAVE_UNSETENV.
19149         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
19150         HAVE_UNSETENV.
19151         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
19152
19153 2010-12-19  Bruno Haible  <bruno@clisp.org>
19154
19155         setenv: Add missing declaration on OSF/1 5.1.
19156         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
19157         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
19158         declared. Don't set HAVE_SETENV.
19159         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
19160         not HAVE_SETENV.
19161         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
19162         HAVE_SETENV.
19163         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
19164
19165 2010-12-19  Bruno Haible  <bruno@clisp.org>
19166
19167         nl_langinfo tests: Avoid gcc warning.
19168         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
19169
19170 2010-12-19  Bruno Haible  <bruno@clisp.org>
19171
19172         mknod: Avoid error in C++ mode on OSF/1 with GCC.
19173         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
19174         _GL_CXXALIAS_SYS.
19175
19176 2010-12-19  Bruno Haible  <bruno@clisp.org>
19177
19178         stdbool: Relax test.
19179         * tests/test-stdbool.c (e): Don't require that casts from a variable's
19180         address to 'bool' work in static initializer, for compilers other than
19181         GCC.
19182
19183 2010-12-19  Bruno Haible  <bruno@clisp.org>
19184
19185         ftello: Add missing declaration on OSF/1 5.1.
19186         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
19187         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
19188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
19189         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
19190         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
19191
19192 2010-12-19  Bruno Haible  <bruno@clisp.org>
19193
19194         fseeko: Add missing declaration on OSF/1 5.1.
19195         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
19196         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
19197         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
19198         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
19199         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
19200
19201 2010-12-19  Bruno Haible  <bruno@clisp.org>
19202
19203         fchdir: Add missing declaration on OSF/1 5.1.
19204         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
19205         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
19206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
19207         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
19208         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
19209
19210 2010-12-19  Bruno Haible  <bruno@clisp.org>
19211
19212         relocatable-prog-wrapper: Separate from relocatable-prog.
19213         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
19214         uninstall-relocwrapper rule here.
19215         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
19216         Reported by Ian Beckwith <ianb@erislabs.net>.
19217
19218 2010-12-19  Bruno Haible  <bruno@clisp.org>
19219
19220         unistr/u8-mbsnlen: Add missing dependency.
19221         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
19222         Reported by Ian Beckwith <ianb@erislabs.net>.
19223
19224 2010-12-19  Bruno Haible  <bruno@clisp.org>
19225
19226         iconv: Make it possible again to use this module without 'iconv-h'.
19227         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
19228         if it is not defined.
19229         Reported by Ian Beckwith <ianb@erislabs.net>.
19230
19231 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19232
19233         acl: port to Solaris 8 when copying from tmpfs to ufs
19234         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
19235         error number.  Problem observed on Solaris 8 with latest
19236         coreutils, with "mv A B", where A is on a tmpfs file system and B
19237         is on a ufs file system.  This caused coreutils' mv/part-symlink
19238         test to fail.
19239
19240         tests: set fail=0 at start
19241         * tests/init.sh (setup_): Move fail=0 initialization here ...
19242         (mktempd_): ... from here, so that tests can rely on fail being
19243         set to 0 initially.  This fixes a problem in coreutils; see:
19244         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
19245
19246 2010-12-18  Bruno Haible  <bruno@clisp.org>
19247
19248         memmem-simple: Stylistic changes.
19249         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
19250         Fix preprocessor directive indentation.
19251
19252 2010-12-15  Pádraig Brady <P@draigBrady.com>
19253
19254         memmem, memmem-simple: reorganize and expand empty needle check
19255         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
19256         functional checks to memmem-simple so that one has a fully functional
19257         memmem by using just this module.
19258         Restrict the performance only check to the memmem module.
19259         Also expand the empty needle check to ensure the correct
19260         pointer is returned, not just a non NULL pointer.
19261         * doc/glibc-functions/memmem.texi: Rearrange the portability
19262         documentation to correlate with the rearranged checks.
19263         Clarify exactly how the memmem and memmem-simple modules
19264         relate to each other.
19265
19266 2010-12-15  Pádraig Brady <P@draigBrady.com>
19267             Bruno Haible  <bruno@clisp.org>
19268
19269         Improve cross-compilation guesses for uClibc.
19270         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
19271         that uClibc does not have the glibc bug.
19272         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
19273         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
19274
19275 2010-12-14  Eric Blake  <eblake@redhat.com>
19276
19277         configmake: provide fallbacks for oldest supported autotools
19278         * m4/configmake.m4: New file.
19279         * modules/configmake (Files): Ship it.
19280         (configure.ac): Use it to guarantee fallbacks.
19281
19282 2010-12-13  Pádraig Brady <P@draigBrady.com>
19283
19284         read-file: Improve handling of large files
19285         * lib/read-file.c (fread_file): Minimize realloc()s
19286         for regular files, and better manage sizes around SIZE_MAX.
19287
19288 2010-12-13  Eric Blake  <eblake@redhat.com>
19289
19290         cloexec, fcntl: relax license
19291         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
19292         consent from all contributors.
19293         * modules/fcntl (License): Likewise.
19294
19295 2010-12-10  Bruno Haible  <bruno@clisp.org>
19296
19297         Tests for module 'pipe-posix'.
19298         * modules/pipe-posix-tests: New file.
19299         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
19300
19301 2010-12-10  Bruno Haible  <bruno@clisp.org>
19302
19303         pipe-posix: Make it work in C++ mode.
19304         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
19305         (pipe): Use common idiom, not a macro definition.
19306         * lib/pipe.c: New file.
19307         * m4/pipe.m4: New file.
19308         * modules/pipe-posix (Description): Enhance.
19309         (Files): Add lib/pipe.c, m4/pipe.m4.
19310         (configure.ac): Invoke gl_FUNC_PIPE.
19311         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
19312         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
19313         * tests/test-unistd-c++.cc: Check the signature of pipe.
19314
19315 2010-12-10  Bruno Haible  <bruno@clisp.org>
19316
19317         Rename module 'pipe' to 'spawn-pipe'.
19318         * modules/spawn-pipe: New file, renamed from modules/pipe.
19319         (Files, configure.ac, Makefile.am): Update.
19320         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
19321         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
19322         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
19323         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
19324         "spawn-pipe.h" instead of "pipe.h".
19325         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
19326         to gl_SPAWN_PIPE.
19327         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
19328         (Files, Makefile.am): Update.
19329         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
19330         Update.
19331         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
19332         Include "spawn-pipe.h" instead of "pipe.h".
19333         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
19334         * lib/javacomp.c: Likewise.
19335         * lib/javaversion.c: Likewise.
19336         * lib/pipe-filter-gi.c: Likewise.
19337         * lib/pipe-filter-ii.c: Likewise.
19338         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
19339         * modules/javacomp (Depends-on): Likewise.
19340         * modules/javaversion (Depends-on): Likewise.
19341         * modules/pipe-filter-gi (Depends-on): Likewise.
19342         * modules/pipe-filter-ii (Depends-on): Likewise.
19343         * MODULES.html.sh (Executing programs): Update.
19344         * NEWS: Mention the change.
19345
19346 2010-12-10  Eric Blake  <eblake@redhat.com>
19347
19348         pipe-posix: new module
19349         * modules/pipe-posix: New file.
19350         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
19351         (gl_UNISTD_H): Check for declaration.
19352         * modules/unistd (Makefile.am): Substitute it.
19353         * lib/unistd.in.h (pipe): Provide it for mingw.
19354         * doc/posix-functions/pipe.texi (pipe): Update documentation.
19355         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
19356
19357 2010-12-07  Bruno Haible  <bruno@clisp.org>
19358
19359         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
19360         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
19361         u8_strcmp_gnu.
19362         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
19363
19364 2010-12-06  Bruno Haible  <bruno@clisp.org>
19365
19366         Update internal documentation.
19367         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
19368
19369 2010-12-04  Bruno Haible  <bruno@clisp.org>
19370
19371         Put more information about failed tests into the test return codes.
19372         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
19373         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
19374         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19375         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19376         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19377         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19378         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19379         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19380         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
19381         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19382         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
19383         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19384         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
19385         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19386         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
19387         returns a bit mask.
19388         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
19389         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
19390         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
19391         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
19392         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19393         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19394         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19395         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19396         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19397         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19398         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19399         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19400         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19401         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19402         * m4/link.m4 (gl_FUNC_LINK): Likewise.
19403         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19404         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
19405         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
19406         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19407         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
19408         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19409         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19410         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19411         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19412         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19413         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19414         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19415         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19416         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19417         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
19418         gl_PRINTF_PRECISION): Likewise.
19419         * m4/regex.m4 (gl_REGEX): Likewise.
19420         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19421         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19422         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
19423         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19424         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19425         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19426         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19427         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
19428         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19429         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19430         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19431         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19432         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19433         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19434         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19435         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19436         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19437         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19438         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19439         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
19440         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
19441         enumerated value.
19442         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
19443
19444 2010-12-04  Bruno Haible  <bruno@clisp.org>
19445
19446         Update for Solaris 11 2010-11.
19447         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
19448         Express, released in November 2010.
19449
19450 2010-12-04  Bruno Haible  <bruno@clisp.org>
19451
19452         nproc: Relax license.
19453         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
19454         and Paul Eggert.
19455         Requested by Ludovic Courtès <ludo@gnu.org>.
19456
19457 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
19458
19459         utimecmp: fine-grained src to nearby coarse-grained dest
19460
19461         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
19462         and the source is on a file system with higher-resolution time
19463         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
19464         not work, and the time stamps are close together, the algorithm to
19465         determine the exact resolution from the read-back mtime was buggy:
19466         it had a "!=" where it should have had an "==".  This bug has been
19467         in the code ever since it was introduced to gnulib.
19468         Problem reported by Dan Jacobson in
19469         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
19470
19471 2010-11-30  Bruno Haible  <bruno@clisp.org>
19472
19473         strerror_r-posix: Fix autoconf test.
19474         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
19475
19476 2010-11-28  Bruno Haible  <bruno@clisp.org>
19477             Paul Eggert  <eggert@cs.ucla.edu>
19478
19479         Tests for module 'getdomainname'.
19480         * modules/getdomainname-tests: New file.
19481         * tests/test-getdomainname.c: New file, based on
19482         tests/test-gethostname.c.
19483
19484 2010-11-28  Bruno Haible  <bruno@clisp.org>
19485             Paul Eggert  <eggert@cs.ucla.edu>
19486
19487         getdomainname: Use the system function when possible.
19488         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
19489         (getdomainname): Replace if needed. Provide the declaration if it is
19490         missing. Don't use _GL_CXXALIAS_SYS_CAST.
19491         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
19492         (getdomainname): When the system has getdomainname, call the system
19493         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
19494         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19495         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
19496         found in libnsl. Look for the declaration also in <netdb.h>. Replace
19497         the function if its second argument is of type 'int' or if it is found
19498         in libnsl.
19499         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
19500         <sys/systeminfo.h> and sysinfo().
19501         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
19502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19503         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
19504         HAVE_GETDOMAINNAME.
19505         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
19506         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
19507         * doc/glibc-functions/getdomainname.texi: Document the problems with
19508         the getdomainname declaration.
19509
19510 2010-11-28  Bruno Haible  <bruno@clisp.org>
19511
19512         sys_socket: Ensure ss_family field on AIX.
19513         * lib/sys_socket.in.h (ss_family): New macro definition.
19514         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
19515         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
19516         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19517         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19518         * modules/sys_socket (Makefile.am): Substitute
19519         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19520         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
19521
19522 2010-11-27  Bruno Haible  <bruno@clisp.org>
19523
19524         readline: Improve configure output.
19525         * m4/readline.m4 (gl_FUNC_READLINE): Make the
19526         "checking for readline..." result understandable.
19527
19528 2010-11-27  Bruno Haible  <bruno@clisp.org>
19529
19530         *printf-posix: Detect a bug on Solaris 10/x86.
19531         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
19532         for floating-point output.
19533         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
19534         directive.
19535         * tests/test-snprintf-posix.h (test_function): Likewise.
19536         * tests/test-sprintf-posix.h (test_function): Likewise.
19537         * tests/test-vasprintf-posix.c (test_function): Likewise.
19538         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
19539         * doc/posix-functions/printf.texi: Likewise.
19540         * doc/posix-functions/snprintf.texi: Likewise.
19541         * doc/posix-functions/sprintf.texi: Likewise.
19542         * doc/posix-functions/vfprintf.texi: Likewise.
19543         * doc/posix-functions/vprintf.texi: Likewise.
19544         * doc/posix-functions/vsnprintf.texi: Likewise.
19545         * doc/posix-functions/vsprintf.texi: Likewise.
19546         * doc/glibc-functions/obstack_printf.texi: Likewise.
19547         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19548
19549 2010-11-27  Bruno Haible  <bruno@clisp.org>
19550
19551         Fix link error when module libunistring-optional is in use.
19552         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
19553         * modules/striconveha-tests (Makefile.am): Likewise.
19554
19555 2010-11-27  Bruno Haible  <bruno@clisp.org>
19556
19557         regex: Mention link dependencies.
19558         * modules/regex (Link): New section.
19559         * modules/rpmatch (Link): Likewise.
19560         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
19561
19562 2010-11-27  Bruno Haible  <bruno@clisp.org>
19563
19564         ftoastr: Fix compilation error on Solaris.
19565         * lib/ftoastr.c: Include <config.h>.
19566
19567 2010-11-27  Bruno Haible  <bruno@clisp.org>
19568
19569         getloadavg: Update documentation.
19570         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
19571
19572 2010-11-27  Bruno Haible  <bruno@clisp.org>
19573
19574         sys_socket: Fix test whether the functions are declared.
19575         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
19576         not <sys/select.h>.
19577
19578 2010-11-27  Bruno Haible  <bruno@clisp.org>
19579
19580         getpass: Make sure to get system declaration on some platforms.
19581         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
19582         gl_USE_SYSTEM_EXTENSIONS.
19583         * modules/getpass (Depends-on): Add extensions.
19584
19585 2010-11-26  Bruno Haible  <bruno@clisp.org>
19586
19587         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
19588         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
19589         'iconv' module is present.
19590         (ICONV_CONST): New macro.
19591         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
19592         ICONV_CONST.
19593         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
19594         set ICONV_CONST.
19595         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
19596         here.
19597         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
19598         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
19599         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
19600         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
19601         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
19602         present.
19603
19604 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
19605
19606         ftoastr: comment fix
19607         * lib/ftoastr.c: "little" -> "little or no" in comment
19608
19609 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
19610
19611         stdint: port to GCC 4.3 + OSX + Octave
19612         On this platform, stdint.h is buggy and defines int64_t to long
19613         long int.  The replacement defined it to long int, causing
19614         problems with C++ style name mangling.  Instead, trust the system
19615         definition if INT64_MAX is defined, and likewise for the unsigned
19616         variant.   Problem reported by Jarno Rajahalme in
19617         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
19618         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
19619         and don't mess with int64_t and INT64_MAX in this case.
19620         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
19621
19622 2010-11-24  Bruno Haible  <bruno@clisp.org>
19623
19624         doc: Corrections regarding MacOS X 10.4 and 10.5.
19625         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
19626         MacOS X.
19627         Reported by Simon Josefsson.
19628
19629 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
19630
19631         Uninstall ".bin" files installed by relocwrapper.
19632         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
19633         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
19634         unless it is already there.
19635
19636 2010-11-21  Bruno Haible  <bruno@clisp.org>
19637
19638         Update for NetBSD 5.0.
19639         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19640         NetBSD; the test fails on NetBSD 5.0.
19641         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19642         about NetBSD.
19643
19644 2010-11-21  Bruno Haible  <bruno@clisp.org>
19645
19646         Update for HP-UX 11.23 and HP-UX 11.31.
19647         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
19648         HP-UX.
19649
19650 2010-11-21  Bruno Haible  <bruno@clisp.org>
19651
19652         Update for MacOS X 10.5.
19653         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19654         MacOS X; the test fails on MacOS X 10.5.8.
19655         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19656         about MacOS X.
19657
19658 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
19659
19660         bootstrap: add bootstrap_sync option.
19661         See discussion at
19662         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
19663         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
19664         * build-aux/bootstrap: Accept --bootstrap-sync to update
19665         bootstrap if it is not identical to the local gnulib's
19666         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
19667         enable this by default.  Accept --no-bootstrap-sync to disable
19668         it.
19669
19670 2010-11-20  Bruno Haible  <bruno@clisp.org>
19671
19672         Ensure that <features.h> is included before __GLIBC__ is tested.
19673         * lib/printf-parse.h: Include <features.h>.
19674         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
19675         Reported by Mike Frysinger <vapier@gentoo.org>.
19676
19677         Ensure that <features.h> is included before __GLIBC__ is tested.
19678         * lib/wchar.in.h: Include <features.h>.
19679         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
19680         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
19681         Reported by Mike Frysinger <vapier@gentoo.org>.
19682
19683         Ensure that <features.h> is included before __GLIBC__ is tested.
19684         * lib/arpa_inet.in.h: Include <features.h>.
19685         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
19686         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
19687         Reported by Mike Frysinger <vapier@gentoo.org>.
19688
19689         Ensure that <features.h> is included before __GLIBC__ is tested.
19690         * build-aux/link-warning.h: Include <features.h>.
19691         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
19692         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
19693         Reported by Mike Frysinger <vapier@gentoo.org>.
19694
19695         Ensure that <features.h> is included before __GLIBC__ is tested.
19696         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
19697         Reported by Mike Frysinger <vapier@gentoo.org>.
19698
19699 2010-11-20  Bruno Haible  <bruno@clisp.org>
19700
19701         memmem: Fix autoconf test.
19702         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
19703
19704 2010-11-20  Bruno Haible  <bruno@clisp.org>
19705
19706         Port to uClibc.
19707         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
19708         * lib/fcntl.in.h: Likewise.
19709         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
19710         * lib/mbrtowc.c (mbrtowc): Likewise.
19711         * lib/relocatable.c (find_shared_library_fullname): Likewise.
19712         * lib/strerror_r.c: Likewise.
19713         * lib/unistr/u8-strnlen.c: Likewise.
19714         * lib/vasnprintf.c (decimal_point_char): Likewise.
19715         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19716         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19717         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
19718         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
19719         * tests/test-sigaction.c (handler, main): Likewise.
19720         * lib/freading.h: Treat uClibc like a non-glibc platform.
19721         * lib/freading.c: Likewise.
19722         * lib/gettext.h: Likewise.
19723         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
19724         Likewise.
19725         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
19726         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
19727         * lib/propername.c (proper_name_utf8): Likewise.
19728         * lib/spawn.in.h: Likewise.
19729         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
19730         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
19731         mem_cd_iconveh_internal): Likewise.
19732         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
19733         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19734         strstr, strcasestr): Likewise.
19735         * lib/unicodeio.c (unicode_to_mb): Likewise.
19736         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
19737         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
19738         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
19739         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
19740         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
19741         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
19742         * lib/unistr/u8-stpncpy.c: Likewise.
19743         * lib/vasnprintf.c (VASNPRINTF): Likewise.
19744         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
19745         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19746         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19747         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
19748         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
19749         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
19750         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
19751         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19752         Likewise.
19753         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19754         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19755         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19756         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19757         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19758         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19759         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19760         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19761         * tests/test-getopt.h (OPTIND_MIN): Likewise.
19762         * tests/test-striconveha.c (main): Likewise.
19763         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19764         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
19765         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
19766         * doc/posix-functions/getline.texi: Likewise.
19767         Reported by Mike Frysinger <vapier@gentoo.org>.
19768
19769 2010-11-20  Bruno Haible  <bruno@clisp.org>
19770
19771         nproc: Fix condition.
19772         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
19773         HAVE_PTHREAD_AFFINITY_NP.
19774
19775 2010-11-20  Bruno Haible  <bruno@clisp.org>
19776
19777         Fix a comment.
19778         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
19779
19780 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
19781
19782         ftoastr: don't assume snprintf
19783         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
19784         Implement a subset of snprintf here, by using sprintf safely.
19785         * modules/ftoastr (Depends-on): Remove snprintf.
19786
19787 2010-11-19  Jim Meyering  <meyering@redhat.com>
19788
19789         test-rename.h: fix compilation failure
19790         * tests/test-rename.h (test_rename): Add omitted "}".
19791
19792 2010-11-17  Jim Meyering  <meyering@redhat.com>
19793
19794         maint.mk: add a URL discussing the no-@acronym policy
19795         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
19796
19797 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
19798
19799         ftoastr: depend on snprintf, improve comments
19800         * lib/ftoastr.c: Also mention Loitsch's draft.
19801         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
19802         needed in the current implementation, but it might simplify
19803         speeding up the code later.
19804         * modules/ftoastr: Depend on snprintf; this improves portability.
19805         Suggested by Bruno Haible in the same email.
19806
19807         ftoastr: port to hosts lacking strtof and strtold
19808         Problem reported by Bruno Haible in
19809         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
19810         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
19811         environment and strtold (and presumably strtof) are not available.
19812         * modules/ftoastr (Files): Add m4/c-strtod.m4.
19813         (configure.ac): Require gl_C99_STRTOLD.
19814
19815 2010-11-18  Bruno Haible  <bruno@clisp.org>
19816
19817         c-strtold: Avoid link error on AIX 7.
19818         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
19819         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
19820         (gl_C_STRTOLD): Test whether strtold_l exists.
19821         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19822
19823 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19824
19825         intprops: new macro INT_BITS_STRLEN_BOUND
19826         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
19827         ftoastr.h.  This exposes an internal of intprops.h that was formerly
19828         not exposed.  Also, it uses a slightly tighter bound than before;
19829         though this makes no practical difference, we might as well be as
19830         tight as we easily can.
19831
19832         ftoastr: new module, for lossless conversion of floats to short strings
19833         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
19834         * modules/ftoastr: New files.
19835
19836 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
19837
19838         bootstrap: port to Solaris sed
19839         * build-aux/bootstrap (get_version): Port to Solaris sed.
19840         See Ralf Wildenhues's note in
19841         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
19842
19843 2010-11-14  Jim Meyering  <meyering@redhat.com>
19844
19845         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
19846         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
19847         and move definition closer to sole use.
19848
19849 2010-11-13  Jim Meyering  <meyering@redhat.com>
19850
19851         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
19852         Now we require at least autoconf-2.59, which means the work-around
19853         is no longer needed.
19854         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
19855         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19856         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19857         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19858         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19859
19860 2010-11-13  Bruno Haible  <bruno@clisp.org>
19861
19862         rename, renameat: Avoid test failures at NFS mounted locations.
19863         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
19864         functions.
19865         (test_rename): Use assert_nonexistent.
19866         * tests/test-rename.c: Include <dirent.h>.
19867         * tests/test-renameat.c: Likewise.
19868         Reported by Gary V. Vaughan <gary@gnu.org>.
19869
19870         rename, renameat: Document Linux bug with NFS
19871         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
19872         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
19873         * doc/posix-functions/renameat.texi: Likewise.
19874         Suggested by Eric Blake.
19875
19876 2010-11-13  Bruno Haible  <bruno@clisp.org>
19877
19878         rename test: Add comments.
19879         * tests/test-rename.h (test_rename): Add structure and comments.
19880
19881 2010-11-13  Eric Blake  <eblake@redhat.com>
19882
19883         maintainer-makefile: cover a few more files
19884         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
19885         scripts generated within C files, for libvirt.
19886
19887 2010-11-13  Bruno Haible  <bruno@clisp.org>
19888
19889         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
19890         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
19891         character, return the number of bytes that belong together, not always
19892         1.
19893         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
19894         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
19895         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
19896         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
19897         number of bytes of an invalid character.
19898         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
19899         (main): Invoke it.
19900         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
19901         results.
19902         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
19903         malformed byte sequences.
19904         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
19905         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
19906         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
19907         Reported by Ben Pfaff and Paolo Bonzini.
19908
19909 2010-11-13  Bruno Haible  <bruno@clisp.org>
19910
19911         openat: Work around glibc bug with fchownat() and empty file names.
19912         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
19913         (gl_FUNC_FCHOWNAT): Invoke it.
19914         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
19915         * doc/posix-functions/fchownat.texi: Document the glibc bug.
19916         Reported by Gary V. Vaughan <gary@gnu.org>.
19917
19918 2010-11-13  Bruno Haible  <bruno@clisp.org>
19919
19920         openat: Ensure autoconf macro ordering.
19921         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
19922         gl_USE_SYSTEM_EXTENSIONS.
19923         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
19924
19925 2010-11-13  Bruno Haible  <bruno@clisp.org>
19926
19927         Update comments.
19928         * lib/unistr/u8-check.c: Update file name in comments.
19929         * lib/unistr/u8-mblen.c: Likewise.
19930         * lib/unistr/u8-prev.c: Likewise.
19931         * lib/unistr/u8-strmblen.c: Likewise.
19932         * lib/unistr/u8-strmbtouc.c: Likewise.
19933
19934 2010-11-13  Jim Meyering  <meyering@redhat.com>
19935
19936         tests: avoid test failure on Solaris 10 due to lack of PATH export
19937         * tests/test-update-copyright.sh: Don't forget to export PATH.
19938
19939         init.sh: ensure that IFS is defined, just in case...
19940         * tests/init.sh (setup_): Ensure that IFS is defined,
19941         so that saving and restoring it works as expected.  This
19942         appears to be useful at least for an old version of dash
19943         from a long time ago (RH 6).  See here for details:
19944         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
19945
19946         maint.mk: tighten "test a == b" check
19947         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
19948         test to files that contain something like #!/bin/sh.
19949         Without this, coreutils would get two false positives in
19950         the comments of C source files.
19951
19952 2010-11-12  Eric Blake  <eblake@redhat.com>
19953
19954         bootstrap: fix typo in previous attempt
19955         * build-aux/bootstrap (buildreq): Correct the grouping.
19956         Reported by Paul Eggert.
19957
19958         maintainer-makefile: prohibit test x == x
19959         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
19960         Based on a report by Matthias Bolte.
19961
19962         bootstrap: allow FreeBSD gzip
19963         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
19964         which has no '.' and goes to stderr.
19965         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
19966         Reported by Matthias Bolte.
19967
19968         maintainer-makefile: check for i18n setup
19969         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
19970         will likely work.
19971
19972 2010-11-12  Bruno Haible  <bruno@clisp.org>
19973
19974         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
19975         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
19976         * lib/nanosleep.c (nanosleep): Likewise.
19977
19978 2010-11-11  Bruno Haible  <bruno@clisp.org>
19979
19980         fcntl-h: Fix for use of C++ on glibc systems.
19981         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19982         also on glibc systems in C++ mode.
19983         Reported by Gary V. Vaughan <gary@gnu.org>.
19984
19985 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19986
19987         mknod: avoid false failure with dash
19988         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
19989
19990 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19991
19992         unlink: Fix "is it should" typo in diagnostic.
19993         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
19994         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
19995
19996 2010-11-11  Bruno Haible  <bruno@clisp.org>
19997
19998         Tests for module 'strerror_r-posix'.
19999         * modules/strerror_r-posix-tests: New file.
20000         * tests/test-strerror_r.c: New file.
20001         * tests/test-string-c++.cc: Check the signature of strerror_r.
20002
20003         New module 'strerror_r-posix'.
20004         * lib/string.in.h (strerror_r): New declaration.
20005         * lib/strerror_r.c: New file.
20006         * m4/strerror_r.m4: New file.
20007         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
20008         of strerror_r.
20009         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
20010         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
20011         * modules/strerror_r-posix: New file.
20012         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
20013         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
20014         * doc/posix-functions/strerror_r.texi: Mention the new module and the
20015         portability problems.
20016
20017 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
20018
20019         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
20020         line is also considered for output. Quoted function name in shell
20021         command, so temporary files for functions like MyClass::operator()
20022         are removed correctly without errors.
20023
20024 2010-11-09  Bruno Haible  <bruno@clisp.org>
20025
20026         * doc/posix-functions/strerror.texi: List more failing platforms.
20027
20028         * doc/posix-functions/strerror.texi: Add a comment.
20029
20030 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20031
20032         fdopendir: fix bug on MacOS X when low on file descriptors
20033
20034         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
20035         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
20036         All callers changed.
20037         (fdopendir): Invoke save_cwd at the top level, not after using
20038         multiple dup() calls to use up file descriptors.  Then retry
20039         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
20040         less than the maximum number of open file descriptors, because
20041         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
20042         on Mac OS X 10.6.4 for tar 1.24
20043         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
20044         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
20045         and for tar 1.25
20046         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
20047
20048 2010-11-07  Bruno Haible  <bruno@clisp.org>
20049
20050         vasnprintf: Support I flag on glibc systems.
20051         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
20052         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
20053         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
20054         snprintf function.
20055         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
20056         glibc systems.
20057         * tests/test-vasnprintf-posix3.c: New file.
20058         * modules/vasnprintf-posix-tests (Files): Add it.
20059         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
20060
20061 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20062
20063         [html] Fix copy/paste bug: Use unique name for compiler warnings.
20064         * MODULES.html.sh: For compiler warnings, use name
20065         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
20066
20067 2010-11-05  Eric Blake  <eblake@redhat.com>
20068
20069         ceil, floor: avoid spurious failure with icc
20070         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
20071         [denormals-as-zero] when optimizing without -mieee-fp option.
20072         * tests/test-floorf2.c (floorf_reference): Likewise.
20073         * tests/test-ceilf1.c (dummy): New function.
20074         (main): Use it to outsmart icc's optimization.
20075         * tests/test-floorf1.c (dummy, main): Likewise.
20076
20077         tests: require working signbit
20078         * modules/ceilf-tests (Depends-on): Add signbit.
20079         * modules/ceill-tests (Depends-on): Likewise.
20080         * modules/floorf-tests (Depends-on): Likewise.
20081         * modules/floorl-tests (Depends-on): Likewise.
20082         * modules/round-tests (Depends-on): Likewise.
20083         * modules/roundf-tests (Depends-on): Likewise.
20084         * modules/roundl-tests (Depends-on): Likewise.
20085         * modules/trunc-tests (Depends-on): Likewise.
20086         * modules/truncf-tests (Depends-on): Likewise.
20087         * modules/truncl-tests (Depends-on): Likewise.
20088
20089         strtod: work around icc bug
20090         * lib/strtod.c (minus_zero): Define to working value.
20091         (strtod): Use it to avoid icc bug.
20092
20093         copysign: enhance tests
20094         * modules/copysign-tests (Files): Add minus-zero.h.
20095         * tests/test-copysign.c (main): Also test zeros.
20096
20097 2010-11-04  Eric Blake  <eblake@redhat.com>
20098
20099         ceil, floor, round, trunc: enhance tests of -0
20100         * tests/test-ceilf1.c (main): Ensure correct sign of result.
20101         * tests/test-ceill.c (main): Likewise.
20102         * tests/test-floorf1.c (main): Likewise.
20103         * tests/test-floorl.c (main): Likewise.
20104         * tests/test-round1.c (main): Likewise.
20105         * tests/test-roundf1.c (main): Likewise.
20106         * tests/test-roundl.c (main): Likewise.
20107         * tests/test-trunc1.c (main): Likewise.
20108         * tests/test-truncf1.c (main): Likewise.
20109         * tests/test-truncl.c (main): Likewise.
20110
20111 2010-11-04  Eric Blake  <eblake@redhat.com>
20112
20113         frexp, tests: work around ICC bug with -zero
20114         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
20115         works with more compilers.
20116         * tests/minus-zero.h: New file.
20117         * modules/ceilf-tests (Files): Include it.
20118         * modules/ceill-tests (Files): Likewise.
20119         * modules/floorf-tests (Files): Likewise.
20120         * modules/floorl-tests (Files): Likewise.
20121         * modules/frexp-nolibm-tests (Files): Likewise.
20122         * modules/frexp-tests (Files): Likewise.
20123         * modules/frexpl-nolibm-tests (Files): Likewise.
20124         * modules/frexpl-tests (Files): Likewise.
20125         * modules/isnan-tests (Files): Likewise.
20126         * modules/isnand-nolibm-tests (Files): Likewise.
20127         * modules/isnand-tests (Files): Likewise.
20128         * modules/isnanf-nolibm-tests (Files): Likewise.
20129         * modules/isnanf-tests (Files): Likewise.
20130         * modules/isnanl-nolibm-tests (Files): Likewise.
20131         * modules/isnanl-tests (Files): Likewise.
20132         * modules/round-tests (Files): Likewise.
20133         * modules/roundf-tests (Files): Likewise.
20134         * modules/roundl-tests (Files): Likewise.
20135         * modules/ldexpl-tests (Files): Likewise.
20136         * modules/signbit-tests (Files): Likewise.
20137         * modules/snprintf-posix-tests (Files): Likewise.
20138         * modules/sprintf-posix-tests (Files): Likewise.
20139         * modules/strtod-tests (Files): Likewise.
20140         * modules/trunc-tests (Files): Likewise.
20141         * modules/truncf-tests (Files): Likewise.
20142         * modules/truncl-tests (Files): Likewise.
20143         * modules/vsnprintf-posix-tests (Files): Likewise.
20144         * modules/vsprintf-posix-tests (Files): Likewise.
20145         * modules/vasnprintf-posix-tests (Files): Likewise.
20146         * modules/vasprintf-posix-tests (Files): Likewise.
20147         * tests/test-ceilf1.c (main): Use it.
20148         * tests/test-ceill.c (main): Likewise.
20149         * tests/test-floorf1.c (main): Likewise.
20150         * tests/test-floorl.c (main): Likewise.
20151         * tests/test-frexp.c (main): Likewise.
20152         * tests/test-frexpl.c (main): Likewise.
20153         * tests/test-isnan.c (main): Likewise.
20154         * tests/test-isnand.h (main): Likewise.
20155         * tests/test-isnanf.h (main): Likewise.
20156         * tests/test-isnanl.h (main): Likewise.
20157         * tests/test-ldexpl.c (main): Likewise.
20158         * tests/test-round.c (main): Likewise.
20159         * tests/test-roundf.c (main): Likewise.
20160         * tests/test-roundl.c (main): Likewise.
20161         * tests/test-signbit.c (test_signbitf, test_signbitd)
20162         (test_signbitl): Likewise.
20163         * tests/test-snprintf-posix.h (test_function): Likewise.
20164         * tests/test-sprintf-posix.h (test_function): Likewise.
20165         * tests/test-strtod.c (main): Likewise.
20166         * tests/test-trunc1.c (main): Likewise.
20167         * tests/test-truncf1.c (main): Likewise.
20168         * tests/test-truncl.c (main): Likewise.
20169
20170         isnanl: work around icc bug
20171         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
20172
20173 2010-11-03  Eric Blake  <eblake@redhat.com>
20174
20175         tests: fix compiler warnings
20176         * tests/test-getopt.h (test_getopt): Fix condition.
20177         * tests/test-getopt_long.h (test_getopt_long): Likewise.
20178         * tests/test-pipe2.c (main): Likewise.
20179         * tests/test-quotearg-simple.c (main): Avoid icc warning.
20180
20181         utimens: fix broken m4 test
20182         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
20183
20184 2010-10-28  Bruno Haible  <bruno@clisp.org>
20185
20186         posix_spawn*, getdtablesize: Relax license.
20187         * modules/posix_spawn (License): Change to LGPLv2+.
20188         * modules/posix_spawnp (License): Likewise.
20189         * modules/posix_spawn-internal (License): Likewise.
20190         * modules/posix_spawnattr_init (License): Likewise.
20191         * modules/posix_spawnattr_getflags (License): Likewise.
20192         * modules/posix_spawnattr_setflags (License): Likewise.
20193         * modules/posix_spawnattr_getpgroup (License): Likewise.
20194         * modules/posix_spawnattr_setpgroup (License): Likewise.
20195         * modules/posix_spawnattr_getschedparam (License): Likewise.
20196         * modules/posix_spawnattr_setschedparam (License): Likewise.
20197         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
20198         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
20199         * modules/posix_spawnattr_getsigdefault (License): Likewise.
20200         * modules/posix_spawnattr_setsigdefault (License): Likewise.
20201         * modules/posix_spawnattr_getsigmask (License): Likewise.
20202         * modules/posix_spawnattr_setsigmask (License): Likewise.
20203         * modules/posix_spawnattr_destroy (License): Likewise.
20204         * modules/posix_spawn_file_actions_init (License): Likewise.
20205         * modules/posix_spawn_file_actions_addclose (License): Likewise.
20206         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
20207         * modules/posix_spawn_file_actions_addopen (License): Likewise.
20208         * modules/posix_spawn_file_actions_destroy (License): Likewise.
20209         * modules/getdtablesize (License): Likewise.
20210         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
20211
20212 2010-10-26  Bruno Haible  <bruno@clisp.org>
20213
20214         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
20215         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
20216         Cygwin and mingw.
20217         Suggested by Eric Blake.
20218
20219 2010-10-26  Bruno Haible  <bruno@clisp.org>
20220
20221         stdio: Work around compilation error due to renameat() on Solaris 10.
20222         * lib/stdio.in.h: Include <unistd.h> on Solaris.
20223         * lib/renameat.c: Don't include <unistd.h> here.
20224         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
20225         Reported by Paul Eggert and Eric Blake.
20226
20227 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
20228
20229         renameat: port to Solaris 10, which declares renameat in unistd.h
20230
20231         * lib/renameat.c: Include unistd.h before stdio.h, because
20232         Solaris 10 declares renameat in unistd.h.  Problem encountered
20233         when building GNU tar 1.24 on Solaris 10.
20234
20235 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20236
20237         fdopendir: fix C89 compilation
20238         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
20239         compilers.
20240
20241 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
20242
20243         inttostr: simplify by removing unnecessary redundancy
20244         * lib/anytostr.c: Don't include verify.h.
20245         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
20246         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
20247         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
20248         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
20249         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
20250         Likewise.
20251         * modules/inttostr (Depends-on): Remove 'verify'.
20252
20253 2010-10-23  Bruno Haible  <bruno@clisp.org>
20254
20255         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
20256         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
20257         Reported by Eric Blake.
20258
20259 2010-10-23  Bruno Haible  <bruno@clisp.org>
20260
20261         Tests: Fix LOCALE_JA on MirBSD 10.
20262         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
20263         to an UTF-8 locale.
20264         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
20265         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20266         Reported by Eric Blake.
20267
20268 2010-10-21  Bruno Haible  <bruno@clisp.org>
20269
20270         nl_langinfo test: Avoid test failure on NetBSD 5.
20271         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
20272         Reported by Eric Blake.
20273
20274 2010-10-21  Eric Blake  <eblake@redhat.com>
20275
20276         c-stack: work around libsigsegv 2.8 bug
20277         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
20278         overflow on at least PowerPC64.
20279
20280 2010-10-17  Bruno Haible  <bruno@clisp.org>
20281
20282         userspec: Drop redundant file.
20283         * modules/userspec (Files): Remove lib/inttostr.h.
20284
20285 2010-10-17  Bruno Haible  <bruno@clisp.org>
20286
20287         nl_langinfo tests: Silence some warnings.
20288         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
20289         Reported by Jim Meyering.
20290
20291 2010-10-17  Bruno Haible  <bruno@clisp.org>
20292
20293         Make use of GCC's attribute __alloc_size__.
20294         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
20295         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
20296         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
20297         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
20298         __alloc_size__.
20299         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
20300         Suggested by Jim Meyering.
20301
20302 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
20303
20304         bootstrap: anchor .gitignore entries.
20305         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
20306         with...
20307         (insert_vc_ignore): ... this new function, which prepends `/' to
20308         all .gitignore entries before passing them to
20309         insert_sorted_if_absent.
20310
20311 2010-10-16  Bruno Haible  <bruno@clisp.org>
20312
20313         nextafter: Fix configure check.
20314         * modules/nextafter (configure.ac): Correct expected prototype.
20315
20316 2010-10-16  Bruno Haible  <bruno@clisp.org>
20317
20318         termios: Update documentation.
20319         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
20320
20321 2010-10-16  Bruno Haible  <bruno@clisp.org>
20322
20323         tests: Make them compile with TinyCC.
20324         * tests/test-strstr.c (main): Remove parentheses around array
20325         initializer.
20326
20327 2010-10-15  Eric Blake  <eblake@redhat.com>
20328
20329         ignore-value: make header idempotent
20330         * lib/ignore-value.h: Add double-inclusion guards.
20331         Reported by Stefan Berger.
20332
20333 2010-10-15  Jim Meyering  <meyering@redhat.com>
20334
20335         GNUmakefile: handle "stable" target, not "major"
20336         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
20337         lists in maint.mk and announce-gen.  Without this, "make stable"
20338         would fail to ensure that $(VERSION) is up to date.
20339
20340 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
20341
20342         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
20343         & co.
20344
20345 2010-10-14  Bruno Haible  <bruno@clisp.org>
20346
20347         vasnprintf: Don't set errno to 0.
20348         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
20349         block that sets it to 0.
20350         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
20351
20352 2010-10-14  Bruno Haible  <bruno@clisp.org>
20353
20354         socketlib: Fix.
20355         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
20356         gl_PREREQ_SYS_H_WINSOCK2.
20357         Reported by Ian Beckwith <ianb@erislabs.net>.
20358
20359 2010-10-13  Jim Meyering  <meyering@redhat.com>
20360
20361         test-select-stdin.c: avoid warn_unused_result warnings
20362         * tests/test-select-stdin.c: Include "macros.h".
20363         ASSERT that read and fflush succeed.
20364
20365 2010-10-13  Jim Meyering  <meyering@redhat.com>
20366
20367         git-version-gen: do require git-VC'd files in cwd
20368         * build-aux/git-version-gen: Reject a git version string
20369         if there are no commits associated with the current directory.
20370         This avoids an unlikely false-positive (unrelated dir whose parent
20371         repository also contains a tag matching v*), as pointed out
20372         by Giuseppe Scrivano in
20373         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
20374
20375 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
20376
20377         argv-iter: omit nonconforming declaration
20378         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
20379         enum arg_iter_err declaration, which doesn't conform to C99.
20380         Solaris 10 cc warns about this.
20381
20382 2010-10-13  Eric Blake  <eblake@redhat.com>
20383
20384         termios: fix compilation on mingw
20385         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
20386         (gl_TERMIOS_H): Adjust it on mingw.
20387         * modules/termios (Makefile.am): Substitute new key.
20388         * lib/termios.in.h (includes): Make include_next conditional.
20389         * doc/posix-headers/termios.texi (termios.h): Update
20390         documentation.
20391         Reported by Daniel P. Berrange.
20392
20393 2010-10-13  Jim Meyering  <meyering@redhat.com>
20394
20395         git-version-gen: don't require that .git/ be in the current dir
20396         * build-aux/git-version-gen: Adjust this script so that it works
20397         when run from any working directory beneath the top-level .git/-
20398         containing directory.  Inspired by a patch from Giuseppe Scrivano,
20399         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
20400
20401         test-select: avoid warn_unused_result warnings
20402         * tests/test-select.c: Include "macros.h".
20403         ASSERT that each call to read, write, and pipe succeeds.
20404         While not technically required, also check each "close".
20405         * modules/select-tests (Files): Add tests/macros.h.
20406
20407         test-symlinkat: remove declaration of unused local
20408         * tests/test-symlinkat.c (main): Remove unused local, "buf".
20409
20410         test-inttostr: avoid shadowing warnings
20411         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
20412         and use malloc rather than the stack for the same reason as
20413         mentioned in the comment justifying the other allocation.
20414
20415 2010-10-11  Bruno Haible  <bruno@clisp.org>
20416
20417         stdlib: Allow multiple gnulib generated replacements to coexist.
20418         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
20419         Reported by Sam Steingold <sds@gnu.org>.
20420
20421 2010-10-11  Jim Meyering  <meyering@redhat.com>
20422
20423         fix a documentation typo
20424         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
20425
20426 2010-10-11  Eric Blake  <eblake@redhat.com>
20427
20428         futimens: work around Solaris 11 bug
20429         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
20430         * tests/test-futimens.h (test_futimens): Enhance, rather than
20431         weaken test.
20432         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20433
20434 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20435
20436         Indentation.
20437         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
20438         higher-level operators more to the left.
20439
20440 2010-10-11  Jim Meyering  <meyering@redhat.com>
20441
20442         test-futimens: avoid unwarranted test failure on Solaris 5.11
20443         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
20444         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
20445         because it tries to dereference the NULL name argument.
20446
20447 2010-10-11  Bruno Haible  <bruno@clisp.org>
20448
20449         Indentation.
20450         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
20451         indentation.
20452
20453 2010-10-11  Jim Meyering  <meyering@redhat.com>
20454
20455         spawn.in.h: make indentation consistent with parentheses
20456         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
20457         Make indentation consistent with parentheses.
20458
20459 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
20460
20461         Fix mismatched parens in previous commit
20462         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
20463         parens.
20464
20465 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20466
20467         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
20468
20469         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
20470         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
20471         * lib/malloca.c: Include "verify.h".
20472         (verify1): Remove, replacing with a verify call.
20473         * lib/relocwrapper.c (verify1): Likewise.
20474         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
20475         Likewise.
20476         * modules/malloca (Depends-on): Add 'verify'.
20477         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
20478         * modules/vasnprintf (Depends-on): Add 'verify'.
20479         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20480         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20481         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20482         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20483         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20484         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20485         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20486
20487         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
20488
20489         Formerly the style was sometimes 2*X - 1, because the C standard
20490         was wrongly thought to disallow ?: in integral constant expressions.
20491         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
20492         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
20493         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20494         * lib/stdint.in.h (_verify_intmax_size): Likewise.
20495         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
20496         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
20497         verify that time_t cannot be floating.
20498
20499 2010-10-08  Eric Blake  <eblake@redhat.com>
20500
20501         time: enforce recent POSIX ruling that time_t is integral
20502         * lib/time.in.h (__time_t_must_be_integral): Detect any
20503         problematic systems, allowing the rest of gnulib to assume POSIX.
20504
20505 2010-10-08  Jim Meyering  <meyering@redhat.com>
20506
20507         fdopendir: fix a bug on systems lacking openat and /proc support
20508         OpenBSD 4.7 is one such system.  The most noticeable effect was
20509         failure of any application making nontrivial use of fts: rm, du,
20510         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
20511           ./rm: traversal failed: `a': Bad file descriptor
20512         Debugging that, you see that even though FD 6 was closed just
20513         prior to the opendir call in fd_clone_opendir, its resulting
20514         dir->dd_fd was 8, rather than the expected value of 6:
20515
20516         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
20517         93                close (fd);
20518         (gdb) n
20519         94                dir = fd_clone_opendir (dupfd);
20520         (gdb) n
20521         95                saved_errno = errno;
20522         (gdb) p dir->dd_fd
20523         $11 = 8
20524
20525         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
20526         The problem is that on OpenBSD, fd_clone_opendir has to resort
20527         to using the old-style save/restore CWD mechanism, due to its
20528         lack of openat/proc support, and *that* would steal the FD (6)
20529         that opendir was supposed to use.
20530
20531         The fix is to squirrel away the desired FD so that save_cwd uses a
20532         different one, and then free the dest FD right before calling opendir.
20533         That guarantees opendir will use the required file descriptor.
20534
20535         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
20536
20537 2010-10-08  Bruno Haible  <bruno@clisp.org>
20538
20539         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
20540         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
20541
20542 2010-10-08  Bruno Haible  <bruno@clisp.org>
20543
20544         nanosleep: Make replacement POSIX compliant.
20545         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
20546         is out of range.
20547         Reported by Jim Meyering.
20548
20549 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20550
20551         bootstrap: add hook for altering gnulib.mk, for Bison
20552         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
20553         the Bison bootstrapping process can rewrite file names and variables
20554         in this file before later parts of 'bootstrap' use the file.
20555         Bison wants to include lib/gnulib.mk from the top-level makefile,
20556         so it needs the file names in this file to be relative to the top
20557         level, not relative to lib; plus it needs variable names to be
20558         rewritten.
20559         (slurp): Use the new function.
20560
20561         bootstrap: reformat for readability
20562         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
20563
20564 2010-10-08  Eric Blake  <eblake@redhat.com>
20565
20566         docs: update cygwin progress
20567         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
20568         1.7.7.
20569         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
20570         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
20571         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
20572         * doc/posix-functions/carg.texi (carg): Likewise.
20573         * doc/posix-functions/cargf.texi (cargf): Likewise.
20574         * doc/posix-functions/casin.texi (casin): Likewise.
20575         * doc/posix-functions/casinf.texi (casinf): Likewise.
20576         * doc/posix-functions/casinh.texi (casinh): Likewise.
20577         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
20578         * doc/posix-functions/catan.texi (catan): Likewise.
20579         * doc/posix-functions/catanf.texi (catanf): Likewise.
20580         * doc/posix-functions/catanh.texi (catanh): Likewise.
20581         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
20582         * doc/posix-functions/ccos.texi (ccos): Likewise.
20583         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
20584         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
20585         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
20586         * doc/posix-functions/cexp.texi (cexp): Likewise.
20587         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
20588         * doc/posix-functions/cimag.texi (cimag): Likewise.
20589         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
20590         * doc/posix-functions/clog.texi (clog): Likewise.
20591         * doc/posix-functions/clogf.texi (clogf): Likewise.
20592         * doc/posix-functions/conj.texi (conj): Likewise.
20593         * doc/posix-functions/conjf.texi (conjf): Likewise.
20594         * doc/posix-functions/cpow.texi (cpow): Likewise.
20595         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
20596         * doc/posix-functions/cproj.texi (cproj): Likewise.
20597         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
20598         * doc/posix-functions/creal.texi (creal): Likewise.
20599         * doc/posix-functions/crealf.texi (crealf): Likewise.
20600         * doc/posix-functions/csin.texi (csin): Likewise.
20601         * doc/posix-functions/csinf.texi (csinf): Likewise.
20602         * doc/posix-functions/csinh.texi (csinh): Likewise.
20603         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
20604         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
20605         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
20606         * doc/posix-functions/ctan.texi (ctan): Likewise.
20607         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
20608         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
20609         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
20610         * doc/posix-headers/complex.texi (complex.h): Likewise.
20611
20612 2010-10-07  Jim Meyering  <meyering@redhat.com>
20613
20614         parse-datetime: avoid compilation failure on OpenBSD 4.7
20615         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
20616         This works around a compilation failure on OpenBSD 4.7:
20617         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
20618
20619 2010-10-07  Eric Blake  <eblake@redhat.com>
20620
20621         docs: update cygwin progress
20622         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
20623         1.7.6.
20624         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
20625         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
20626         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
20627         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
20628         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
20629         Likewise.
20630         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
20631         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
20632         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
20633         Likewise.
20634         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
20635         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
20636         Likewise.
20637         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
20638         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
20639         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
20640         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
20641         Likewise.
20642         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
20643         Likewise.
20644         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
20645
20646         docs: update parse-datetime history
20647         * doc/parse-datetime.texi (Authors of parse_datetime): Better
20648         documentation of this function's history and alternatives.
20649
20650         cygwin: use more robust version check
20651         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
20652         exclude an eventual cygwin 1.9.1.
20653         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20654         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20655         (gl_FUNC_STRCASESTR): Likewise.
20656         Reported by Bruno Haible.
20657
20658 2010-10-06  Bruno Haible  <bruno@clisp.org>
20659
20660         string, sys_select: Avoid #including large headers unless necessary.
20661         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
20662         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
20663         OSF/1, BeOS, Haiku.
20664         Reported by Jim Meyering.
20665
20666 2010-10-05  Eric Blake  <eblake@redhat.com>
20667
20668         memmem, strstr, strcasestr: fix bug with long periodic needle
20669         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
20670         periodic needle having false positive.
20671         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
20672         and cygwin 1.7.7.
20673         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
20674         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20675         (gl_FUNC_STRCASESTR): Likewise.
20676         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20677         * tests/test-memmem.c (main): Expose the bug.
20678         * tests/test-strcasestr.c (main): Likewise.
20679         * tests/test-strstr.c (main): Likewise.
20680         * tests/test-c-strcasestr.c (main): Likewise.
20681         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
20682         * doc/posix-functions/strstr.texi (strstr): Likewise.
20683         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20684         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
20685
20686 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20687
20688         parse-datetime: do some more renaming
20689         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
20690         parse_datetime, not get_date.  Mention the renaming.
20691         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
20692         in comments.
20693         * m4/bison.m4: Likewise.
20694
20695 2010-10-05  Eric Blake  <eblake@redhat.com>
20696
20697         parse-datetime: better name than get_date
20698         * NEWS: Reword the deprecation notice.
20699         * modules/get_date: Rename to modules/parse-datetime.
20700         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
20701         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
20702         * lib/get_date.y: Rename to lib/parse-datetime.y.
20703         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
20704         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
20705         * doc/getdate.texi: Provide fallback wrapper.
20706         * lib/getdate.h: Move guts, and wrap...
20707         * lib/parse-datetime.h: ...new file.
20708         * lib/parse-datetime.y (get_date): Rename...
20709         (parse_datetime): ...to this.
20710         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
20711         (gl_PARSE_DATETIME): ...to this.
20712         * doc/posix-functions/getdate.texi (get_date): Provide fallback
20713         documentation.
20714         * modules/getdate (Files): Provide fallback docs and header.
20715         (Notice, Depends-on): Update references.
20716         * tests/test-parse-datetime.c: Likewise.
20717         * DEPENDENCIES: Likewise.
20718         * MODULES.html.sh (Date and time <time.h>): Likewise.
20719         * doc/parse-datetime.texi (Date input formats)
20720         (Authors of parse_datetime): Likewise.
20721         * modules/parse-datetime (Files, configure.ac, Makefile.am)
20722         (Include): Likewise.
20723         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
20724         * gnulib-tool: Likewise.
20725         * m4/bison.m4 (gl_BISON): Likewise.
20726         Suggested by Bruno Haible.
20727
20728 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20729
20730         more ports to Solaris tr, which needs [] around ranges
20731         * gnulib-tool: Solaris tr needs [] around ranges.
20732         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20733         * tests/test-pipe-filter-gi1.c (main): Likewise.
20734         * tests/test-pipe-filter-ii1.c (main): Likewise.
20735
20736 2010-10-05  Eric Blake  <eblake@redhat.com>
20737
20738         bootstrap: fix Solaris regression
20739         * build-aux/bootstrap (check_versions): Solaris tr still needs []
20740         around ranges.
20741         Reported by Pádraig Brady.
20742
20743         bootstrap: work with pkg-config
20744         * build-aux/bootstrap (check_versions): Also transliterate - in
20745         prerequisite name.
20746         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
20747         prerequisites that were already found, to avoid confusion.
20748         Reported by Justin Clift.
20749
20750         faccessat: remove unused wrappers
20751         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
20752         presence of these wrappers dragged in -lgen on Solaris.
20753         Reported by Clemens Brogi; fix suggested by Paul Eggert.
20754
20755 2010-10-05  Jim Meyering  <meyering@redhat.com>
20756
20757         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
20758         * Makefile (sc_pragma_columns): New syntax-check rule.
20759
20760 2010-10-04  Bruno Haible  <bruno@clisp.org>
20761
20762         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
20763         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
20764         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
20765         Reported by Bruce Korb and Eric Blake.
20766
20767 2010-10-04  Bruno Haible  <bruno@clisp.org>
20768
20769         threadlib: Make option --with-libpth-prefix work.
20770         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
20771         use $LIBPTH, not just -lpth.
20772
20773 2010-10-04  Bruno Haible  <bruno@clisp.org>
20774
20775         Avoid line length limitation from HP NonStop system header files.
20776         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
20777         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
20778         * lib/ctype.in.h: Likewise.
20779         * lib/dirent.in.h: Likewise.
20780         * lib/errno.in.h: Likewise.
20781         * lib/fcntl.in.h: Likewise.
20782         * lib/float.in.h: Likewise.
20783         * lib/getopt.in.h: Likewise.
20784         * lib/iconv.in.h: Likewise.
20785         * lib/inttypes.in.h: Likewise.
20786         * lib/langinfo.in.h: Likewise.
20787         * lib/locale.in.h: Likewise.
20788         * lib/math.in.h: Likewise.
20789         * lib/netdb.in.h: Likewise.
20790         * lib/netinet_in.in.h: Likewise.
20791         * lib/poll.in.h: Likewise.
20792         * lib/pthread.in.h: Likewise.
20793         * lib/pty.in.h: Likewise.
20794         * lib/sched.in.h: Likewise.
20795         * lib/se-selinux.in.h: Likewise.
20796         * lib/search.in.h: Likewise.
20797         * lib/signal.in.h: Likewise.
20798         * lib/spawn.in.h: Likewise.
20799         * lib/stdarg.in.h: Likewise.
20800         * lib/stddef.in.h: Likewise.
20801         * lib/stdint.in.h: Likewise.
20802         * lib/stdio.in.h: Likewise.
20803         * lib/stdlib.in.h: Likewise.
20804         * lib/string.in.h: Likewise.
20805         * lib/strings.in.h: Likewise.
20806         * lib/sys_file.in.h: Likewise.
20807         * lib/sys_ioctl.in.h: Likewise.
20808         * lib/sys_select.in.h: Likewise.
20809         * lib/sys_socket.in.h: Likewise.
20810         * lib/sys_stat.in.h: Likewise.
20811         * lib/sys_time.in.h: Likewise.
20812         * lib/sys_times.in.h: Likewise.
20813         * lib/sys_utsname.in.h: Likewise.
20814         * lib/sys_wait.in.h: Likewise.
20815         * lib/sysexits.in.h: Likewise.
20816         * lib/termios.in.h: Likewise.
20817         * lib/time.in.h: Likewise.
20818         * lib/unistd.in.h: Likewise.
20819         * lib/wchar.in.h: Likewise.
20820         * lib/wctype.in.h: Likewise.
20821         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
20822         * modules/ctype (Makefile.am): Likewise.
20823         * modules/dirent (Makefile.am): Likewise.
20824         * modules/errno (Makefile.am): Likewise.
20825         * modules/fcntl-h (Makefile.am): Likewise.
20826         * modules/float (Makefile.am): Likewise.
20827         * modules/getopt-posix (Makefile.am): Likewise.
20828         * modules/iconv-h (Makefile.am): Likewise.
20829         * modules/inttypes (Makefile.am): Likewise.
20830         * modules/langinfo (Makefile.am): Likewise.
20831         * modules/locale (Makefile.am): Likewise.
20832         * modules/math (Makefile.am): Likewise.
20833         * modules/netdb (Makefile.am): Likewise.
20834         * modules/netinet_in (Makefile.am): Likewise.
20835         * modules/poll-h (Makefile.am): Likewise.
20836         * modules/pthread (Makefile.am): Likewise.
20837         * modules/pty (Makefile.am): Likewise.
20838         * modules/sched (Makefile.am): Likewise.
20839         * modules/search (Makefile.am): Likewise.
20840         * modules/selinux-h (Makefile.am): Likewise.
20841         * modules/signal (Makefile.am): Likewise.
20842         * modules/spawn (Makefile.am): Likewise.
20843         * modules/stdarg (Makefile.am): Likewise.
20844         * modules/stddef (Makefile.am): Likewise.
20845         * modules/stdint (Makefile.am): Likewise.
20846         * modules/stdio (Makefile.am): Likewise.
20847         * modules/stdlib (Makefile.am): Likewise.
20848         * modules/string (Makefile.am): Likewise.
20849         * modules/strings (Makefile.am): Likewise.
20850         * modules/sys_file (Makefile.am): Likewise.
20851         * modules/sys_ioctl (Makefile.am): Likewise.
20852         * modules/sys_select (Makefile.am): Likewise.
20853         * modules/sys_socket (Makefile.am): Likewise.
20854         * modules/sys_stat (Makefile.am): Likewise.
20855         * modules/sys_time (Makefile.am): Likewise.
20856         * modules/sys_times (Makefile.am): Likewise.
20857         * modules/sys_utsname (Makefile.am): Likewise.
20858         * modules/sys_wait (Makefile.am): Likewise.
20859         * modules/sysexits (Makefile.am): Likewise.
20860         * modules/termios (Makefile.am): Likewise.
20861         * modules/time (Makefile.am): Likewise.
20862         * modules/unistd (Makefile.am): Likewise.
20863         * modules/wchar (Makefile.am): Likewise.
20864         * modules/wctype (Makefile.am): Likewise.
20865
20866 2010-10-04  Bruno Haible  <bruno@clisp.org>
20867
20868         read-file tests: Avoid a test failure on NonStop Kernel.
20869         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
20870         a regular file.
20871         Reported by Joachim Schmitz <schmitz@hp.com>.
20872
20873 2010-10-03  Bruno Haible  <bruno@clisp.org>
20874
20875         gnulib-tool: Fixes for --create-testdir with --libtool.
20876         * gnulib-tool (func_get_automake_snippet): Don't augment
20877         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
20878         an executable.
20879         (func_create_testdir): Handle module 'alloca' like func_import.
20880         Reported by Bruce Korb <bruce.korb@gmail.com>.
20881
20882 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
20883
20884         Avoid some lines longer than 80 characters.
20885         * lib/stdint.in.h: Break long comment lines.
20886         * lib/math.in.h: Likewise.
20887         (_GL_NUM_UINT_WORDS): New macro, for readability.
20888         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
20889         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
20890         * lib/stdlib.in.h: Likewise.
20891         * lib/spawn.in.h: Likewise.
20892         * lib/sys_socket.in.h: Update an URL.
20893         * lib/sys_stat.in.h: Break long line.
20894
20895 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
20896
20897         Improve pmccabe2html.
20898         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
20899         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
20900         when the sources change. Remove the line in the HTML about "Used
20901         ranges" (which implied that there might be other unused ranges),
20902         rename "Resume" to "Summary" (easier to understand for more users).
20903         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
20904         styles, and some unnecessary blank lines.
20905
20906 2010-10-03  Bruno Haible  <bruno@clisp.org>
20907             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
20908
20909         acl: Add support for ACLs on NonStop Kernel.
20910         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
20911         Check whether the function aclsort() exists.
20912         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
20913         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
20914         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20915         (acl_nontrivial [HAVE_ACLSORT]: New function.
20916         (file_has_acl): Implement for NonStop Kernel.
20917         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20918         (qset_acl): Implement for NonStop Kernel.
20919         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
20920         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20921         (main): Implement for NonStop Kernel.
20922         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
20923         Kernel. Handle this flavor.
20924         * tests/test-set-mode-acl.sh: Likewise.
20925         * tests/test-copy-acl.sh: Likewise.
20926         * tests/test-copy-file.sh: Likewise.
20927
20928 2010-10-03  Bruno Haible  <bruno@clisp.org>
20929
20930         Info about ACLs on NonStop Kernel.
20931         * doc/acl-resources.txt: Add info about NonStop Kernel.
20932         References by Joachim Schmitz <schmitz@hp.com>.
20933
20934 2010-10-02  Bruno Haible  <bruno@clisp.org>
20935
20936         Define missing EDQUOT on NonStop Kernel.
20937         * lib/errno.in.h (EDQUOT): Assign a value if missing.
20938         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
20939         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
20940         missing.
20941         * doc/posix-headers/errno.texi: Mention the NSK bug.
20942         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
20943         Reported by Joachim Schmitz <schmitz@hp.com>.
20944
20945 2010-10-02  Bruno Haible  <bruno@clisp.org>
20946
20947         Update doc for POSIX:2008.
20948         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
20949         Update URL of POSIX specification.
20950
20951 2010-10-02  Bruno Haible  <bruno@clisp.org>
20952
20953         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
20954         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
20955         from gnulib, not from Automake.
20956
20957 2010-10-02  Bruno Haible  <bruno@clisp.org>
20958
20959         New module 'system-posix'.
20960         * modules/system-posix: New file.
20961         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
20962         module is present.
20963         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20964         GNULIB_SYSTEM_POSIX.
20965         * modules/stdlib (Depends-on): Remove sys_wait.
20966         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
20967         * doc/posix-functions/system.texi: Mention the new module.
20968         * doc/posix-headers/stdlib.texi: Likewise.
20969         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
20970         define test_sys_wait_macros to a no-op.
20971         Reported by Sam Steingold <sds@gnu.org>.
20972
20973 2010-09-30  Bruno Haible  <bruno@clisp.org>
20974
20975         More renaming from 'getdate' to 'get_date'.
20976         * doc/get_date.texi: Renamed from doc/getdate.texi.
20977         * modules/get_date (Files): Update.
20978         * MODULES.html.sh (Date and time <time.h>): Update.
20979         * DEPENDENCIES: Update.
20980         * gnulib-tool: Update comment.
20981         * m4/bison.m4 (gl_BISON): Likewise.
20982         * m4/get_date.m4 (gl_GET_DATE): Likewise.
20983
20984 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
20985
20986         bootstrap: support ACLOCAL_FLAGS during aclocal
20987         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
20988         can add additional -I dir for third-party .m4 files.
20989
20990 2010-09-30  Eric Blake  <eblake@redhat.com>
20991
20992         bootstrap: use glibtoolize on MacOS
20993         * build-aux/bootstrap (check_versions): Convert libtool into
20994         libtoolize.
20995         (tool search): Move libtool check earlier, and look for
20996         glibtoolize for MacOS.
20997         (gnulib_tool_options): Auto-add --libtool when appropriate.
20998         Reported by Justin Clift.
20999
21000         poll: fix typo that broke test on MacOS
21001         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
21002         Reported by Justin Clift.
21003
21004         getdate: rename to get_date
21005         Note: getdate.h is not renamed, to minimize client impact.
21006         * modules/getdate: Mark obsolete.  Move old contents...
21007         * modules/get_date: ...to new module name.
21008         * modules/getdate-tests: Move...
21009         * modules/get_date-tests: ...here.
21010         * m4/getdate.m4: Move...
21011         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
21012         * lib/getdate.y: Move...
21013         * lib/get_date.y: ...here.
21014         * tests/test-getdate.c: Move...
21015         * tests/test-get_date.c: ...here.
21016         * doc/posix-functions/getdate.texi (getdate): Update name.
21017         * NEWS: Mention the change.
21018
21019 2010-09-29  Bruno Haible  <bruno@clisp.org>
21020
21021         Separate the module 'waitpid' from the module 'sys_wait'.
21022         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
21023         present.
21024         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
21025         gl_MODULE_INDICATOR_FOR_TESTS.
21026         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
21027         * modules/sys_wait (Depends-on): Remove waitpid.
21028         (Makefile.am): Substitute GNULIB_WAITPID.
21029         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
21030         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
21031         signature only if the 'waitpid' module is present.
21032         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
21033         * NEWS: Mention the change.
21034         * modules/grantpt (Depends-on): Add waitpid.
21035         * modules/wait-process (Depends-on): Likewise.
21036
21037 2010-09-29  Bruno Haible  <bruno@clisp.org>
21038
21039         More tests for module 'sys_wait'.
21040         * modules/sys_wait-c++-tests: New file.
21041         * tests/test-sys_wait-c++.cc: New file.
21042         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
21043         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21044
21045 2010-09-29  Bruno Haible  <bruno@clisp.org>
21046
21047         New module 'waitpid'.
21048         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
21049         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
21050         Don't include <process.h>.
21051         (waitpid): Declare only, using modern idiom.
21052         * m4/waitpid.m4: New file.
21053         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
21054         * modules/waitpid: New file.
21055         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
21056         (Makefile.am): Update.
21057         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21058
21059 2010-09-28  Bruno Haible  <bruno@clisp.org>
21060
21061         poll: Assume ANSI C.
21062         * lib/poll.c (poll): Use an ANSI C declaration.
21063
21064 2010-09-28  Bruno Haible  <bruno@clisp.org>
21065
21066         poll-h: Create poll.h on all platforms.
21067         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
21068         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
21069         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
21070         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
21071         (gl_REPLACE_POLL_H): Don't set POLL_H.
21072         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
21073         * modules/poll-h (Depends-on): Add include_next.
21074         (Makefile.am): Create poll.h unconditionally. Substitute also
21075         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
21076
21077 2010-09-28  Bruno Haible  <bruno@clisp.org>
21078
21079         Tests for module 'poll-h'.
21080         * modules/poll-h-c++-tests: New file.
21081         * tests/test-poll-h-c++.cc: New file.
21082
21083         Tests for module 'poll-h'.
21084         * modules/poll-h-tests: New file.
21085         * tests/test-poll-h.c: New file.
21086
21087 2010-09-28  Bruno Haible  <bruno@clisp.org>
21088
21089         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
21090         * modules/poll-h (Depends-on): Add 'extensions'.
21091
21092 2010-09-28  Bruno Haible  <bruno@clisp.org>
21093
21094         New module 'poll-h'.
21095         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
21096         (poll): Use modern idiom.
21097         * modules/poll-h: New file.
21098         * modules/poll (Files): Remove lib/poll.in.h.
21099         (Depends-on): Add poll-h.
21100         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
21101         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
21102         * m4/poll_h.m4: New file.
21103         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
21104         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
21105         and invoke gl_REPLACE_POLL_H.
21106         * lib/poll.c: Use common idiom.
21107         * tests/test-poll.c: Likewise.
21108         * doc/posix-headers/poll.texi: Mention the poll-h module.
21109         Suggested by Eric Blake.
21110
21111 2010-09-26  Bruno Haible  <bruno@clisp.org>
21112
21113         sys_wait: Implement WSTOPSIG.
21114         * lib/sys_wait.in.h (WSTOPSIG): New macro.
21115         Reported by Simon Josefsson.
21116
21117 2010-09-26  Simon Josefsson  <simon@josefsson.org>
21118
21119         stdlib, sys_wait: Avoid compilation error on mingw.
21120         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
21121
21122 2010-09-26  Bruno Haible  <bruno@clisp.org>
21123
21124         stdlib tests: Avoid code duplication.
21125         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
21126         * modules/sys_wait-tests (Files): Likewise.
21127         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
21128         * tests/test-stdlib.c: Include test-sys_wait.h.
21129         (main): Invoke test_sys_wait_macros.
21130         * tests/test-sys_wait.c: Include test-sys_wait.h.
21131         (main): Invoke test_sys_wait_macros.
21132
21133 2010-09-25  Simon Josefsson  <simon@josefsson.org>
21134
21135         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
21136         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
21137         sure Windows sockets are working before calling getaddrinfo.
21138         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
21139         * doc/gnulib.texi (Windows sockets): Fix typo.
21140
21141 2010-09-25  Bruno Haible  <bruno@clisp.org>
21142
21143         Tests for module 'regex-quote'.
21144         * modules/regex-quote-tests: New file.
21145         * tests/test-regex-quote.c: New file.
21146
21147         New module 'regex-quote'.
21148         * lib/regex-quote.h: New file.
21149         * lib/regex-quote.c: New file.
21150         * modules/regex-quote: New file.
21151         Suggested by Reuben Thomas <rrt@sc3d.org>.
21152
21153 2010-09-24  Bruno Haible  <bruno@clisp.org>
21154
21155         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
21156         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
21157
21158 2010-09-23  Bruno Haible  <bruno@clisp.org>
21159
21160         setenv: Relax license.
21161         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
21162         Blake.
21163         Requested by Eric Blake.
21164
21165 2010-09-22  Bruno Haible  <bruno@clisp.org>
21166
21167         termios: Relax license.
21168         * modules/termios (License): Change to LGPLv2+.
21169         Requested by Eric Blake.
21170
21171 2010-09-22  Bruno Haible  <bruno@clisp.org>
21172
21173         threadlib: Allow the package to change the default to 'no'.
21174         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
21175         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
21176         Reported by Paul Eggert.
21177
21178 2010-09-22  Pádraig Brady  <P@draigbrady.com>
21179             Bruno Haible  <bruno@clisp.org>
21180
21181         Fix endless loop in mbmemcasecoll.
21182         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
21183         byte.
21184         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
21185
21186 2010-09-22  Bruno Haible  <bruno@clisp.org>
21187
21188         Tests for module 'memcoll'.
21189         * modules/memcoll-tests: New file.
21190         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
21191
21192         memcoll, xmemcoll: Clarify size vs. length.
21193         * modules/memcoll.c (memcoll0): Clarify specification.
21194         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
21195         passed to collate_error.
21196
21197 2010-09-22  Bruno Haible  <bruno@clisp.org>
21198
21199         Tests for module 'memcasecmp'.
21200         * modules/memcasecmp-tests: New file.
21201         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
21202
21203 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21204
21205         * lib/pthread.in.h: Add split double-inclusion guard, and include
21206         system <pthread.h> if there is one.  Use @@-style as in other
21207         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
21208         pthread.h doesn't.
21209         (pthread_mutexattr_destroy, pthread_mutexattr_init):
21210         (pthread_mutexattr_settype, pthread_mutex_trylock):
21211         New static inline functions, if there's no system <pthread.h>.
21212         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
21213         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
21214         Approximate with mutexes if the system lacks spinlocks, as in
21215         MacOS.
21216         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
21217         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
21218         @@-style.  Check for spinlocks separately.
21219         (gl_PTHREAD_DEFAULTS): New macro.
21220         * modules/pthread: Redo to use a more typical style for in.h files.
21221
21222 2010-09-21  Eric Blake  <eblake@redhat.com>
21223
21224         net_if: enhance tests
21225         * tests/test-net_if.c (main): Move signature checks earlier.
21226         Print failures to stderr.
21227         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
21228         Document the bug that we do not yet fix.
21229
21230 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21231
21232         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
21233         about gnulib, not GSS.
21234
21235 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21236
21237         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
21238         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
21239         for Emacs.
21240         * build-aux/pmccabe2html: Make Makefile.am example code more
21241         cut-and-paste friendly.
21242
21243 2010-09-21  Simon Josefsson  <simon@josefsson.org>
21244
21245         * tests/test-net_if.c: New file.
21246         * modules/net_if-tests: New file.
21247
21248 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21249
21250         pthread: add pthread_spin_destroy
21251         * lib/pthread.in.h (pthread_spin_destroy): New function.
21252
21253 2010-09-19  Bruno Haible  <bruno@clisp.org>
21254
21255         gnulib-tool: Fix --help output.
21256         * gnulib-tool (func_usage): Fix help message.
21257         Reported by Reuben Thomas <rrt@sc3d.org>.
21258
21259 2010-09-18  Jim Meyering  <meyering@redhat.com>
21260
21261         maint.mk: avoid unexpanded \n in two diagnostics
21262         * top/maint.mk (sc_prohibit_always_true_header_tests):
21263         Don't use a literal \n in a halt=... assignment.  It would not be
21264         expanded, and the two \n bytes would appear in the diagnostic output
21265         rather than the desired newline.  Use halt=$$(printf ... instead.
21266         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21267
21268 2010-09-18  Bruno Haible  <bruno@clisp.org>
21269
21270         netinet_in: Doc tweak.
21271         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
21272         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21273
21274 2010-09-18  Jim Meyering  <meyering@redhat.com>
21275
21276         init.sh: correct an outdated comment
21277         * tests/init.sh (create_exe_shims_):  s/function/alias/
21278
21279         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
21280         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
21281         a file named "*.exe" is removed between the glob expansion and the
21282         processing of that oddly named file.
21283
21284 2010-09-17  Eric Blake  <eblake@redhat.com>
21285
21286         mirbsd: add some more support
21287         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
21288         in BSD family.
21289         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
21290         devices as OpenBSD.
21291         * m4/host-os.m4 (mirbsd): Add MirBSD.
21292
21293         tests: fix unportable assumption on sys/wait.h
21294         * tests/test-sys_wait.c (main): Relax test.
21295         * tests/test-stdlib.c (main): Likewise.
21296
21297         init.sh: accomodate directory with no .exes
21298         * tests/init.sh: Accomodate directory containing only scripts.
21299
21300         tests: avoid compiler warning
21301         * tests/test-stdlib.c (main): Use the variable.
21302
21303         fdutimens, fdutimensat: update signature, again
21304         * lib/utimens.h (gl_futimens): Delete, and move signature...
21305         (fdutimens): ...here.
21306         (fdutimensat): Rearrange signature.
21307         (lutimensat): Rename variable for clarity.
21308         * lib/fdutimensat.c (fdutimensat): Update signature.
21309         * lib/utimens.c (fdutimens): Likewise.
21310         (gl_futimens): Delete.
21311         (utimens, lutimens): Update callers.
21312         * lib/futimens.c (futimens): Likewise.
21313         * tests/test-fdutimensat.c: Likewise.
21314         * tests/test-utimens.c: Likewise.
21315         * tests/test-futimens.h: Update comment.
21316         * NEWS: Mention this.
21317         Suggested by Paul Eggert.
21318
21319 2010-09-17  Bruno Haible  <bruno@clisp.org>
21320
21321         Take over the maintenance of some older macros from Autoconf.
21322         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
21323         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
21324         GNU Autoconf.
21325         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
21326         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
21327
21328 2010-09-17  Eric Blake  <eblake@redhat.com>
21329
21330         fdutimensat: drop atflag validation
21331         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
21332         with valid fd, to close a race scenario where futimens is
21333         unsupported and FILE was replaced by a symlink.
21334         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
21335         accordingly.
21336         Suggested by Paul Eggert.
21337
21338 2010-09-16  Bruno Haible  <bruno@clisp.org>
21339
21340         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
21341         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
21342
21343 2010-09-16  Bruno Haible  <bruno@clisp.org>
21344
21345         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
21346         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
21347         login_tty exists.
21348         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21349
21350 2010-09-16  Bruno Haible  <bruno@clisp.org>
21351
21352         login_tty: Make the replacement code work on BSD systems.
21353         * lib/login_tty.c: Include <sys/ioctl.h>.
21354         (login_tty): Use ioctl TIOCSCTTY when available.
21355         * modules/login_tty (Depends-on): Add sys_ioctl.
21356         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21357
21358 2010-09-16  Bruno Haible  <bruno@clisp.org>
21359
21360         login_tty: Stricter unit test.
21361         * modules/login_tty-tests (Depends-on): Add tcgetsid.
21362         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
21363         and tcgetsid() after login_tty.
21364         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21365
21366 2010-09-16  Bruno Haible  <bruno@clisp.org>
21367
21368         New module 'tcgetsid'.
21369         * lib/tcgetsid.c: New file.
21370         * m4/tcgetsid.m4: New file.
21371         * modules/tcgetsid: New file.
21372         * modules/termios (Depends-on): Add c++defs, warn-on-use.
21373         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
21374         GNULIB_TCGETSID, HAVE_TCGETSID.
21375         * lib/termios.in.h: Include <sys/types.h>.
21376         (tcgetsid): New declaration.
21377         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
21378         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
21379         * doc/posix-functions/tcgetsid.texi: Mention the new module.
21380         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
21381
21382 2010-09-16  Bruno Haible  <bruno@clisp.org>
21383
21384         Tests for module 'termios'.
21385         * modules/termios-c++-tests: New file.
21386         * modules/termios-tests: New file.
21387         * tests/test-termios-c++.cc: New file.
21388         * tests/test-termios.c: New file.
21389
21390         New module 'termios'.
21391         * modules/termios: New file.
21392         * lib/termios.in.h: New file.
21393         * m4/termios_h.m4: New file.
21394         * doc/posix-headers/termios.texi: Mention the new module.
21395
21396 2010-09-16  Eric Blake  <eblake@redhat.com>
21397
21398         fdutimensat: add an atflag parameter
21399         * lib/fdutimensat.c (fdutimensat): Add new parameter.
21400         * lib/utimens.h (fdutimensat): Update prototype.
21401         * tests/test-fdutimensat.c: Adjust test to match.
21402         * NEWS: Document the change.
21403         Suggested by Paul Eggert.
21404
21405 2010-09-16  Bruno Haible  <bruno@clisp.org>
21406
21407         Fix typos in comments.
21408         * lib/striconveh.h: Fix typo in comment.
21409         * lib/login_tty.c (login_tty): Likewise.
21410
21411 2010-09-15  Bruno Haible  <bruno@clisp.org>
21412
21413         stdlib: clarify MirBSD WEXITSTATUS bug
21414         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
21415         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21416
21417 2010-09-15  Eric Blake  <eblake@redhat.com>
21418
21419         stdlib: work around MirBSD WEXITSTATUS bug
21420         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
21421         * modules/stdlib (Depends-on): Add sys_wait.
21422         * tests/test-sys_wait.c (main): Enhance test.
21423         * tests/test-stdlib.c (main): Likewise.
21424         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
21425
21426         docs: mention MacOS issue with WEXITSTATUS(constant)
21427         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
21428         issue.
21429         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21430
21431         strnlen: add tests
21432         * modules/strnlen-tests: New file.
21433         * tests/test-strnlen.c: Likewise.
21434
21435 2010-09-14  Bruno Haible  <bruno@clisp.org>
21436
21437         unistr/base: Avoid link errors when module 'libunistring' is also used.
21438         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
21439         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
21440         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
21441         Declare also when HAVE_LIBUNISTRING is set.
21442         Reported by Pádraig Brady <P@draigbrady.com>.
21443
21444 2010-09-14  Eric Blake  <eblake@redhat.com>
21445
21446         test-rawmemchr: make more robust
21447         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
21448         (Depends-on, configure.ac): Add needed prerequisites to use it.
21449         * modules/memchr-tests (Files, Depends-on, configure.ac):
21450         Likewise, to avoid implicit reliance on memchr module prereqs.
21451         * tests/test-memchr.c (main): Ensure proper masking.
21452         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
21453         reads.
21454
21455         memchr: detect glibc Alpha bug
21456         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
21457         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
21458         Alpha.
21459         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
21460         * tests/test-memchr.c (main): Enhance test.
21461         Reported by Nelson H. F. Beebe.
21462
21463 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21464
21465         fts, getcwd, glob: audit for dirfd returning -1
21466         * lib/fts.c (opendir): Remove #define; no longer used.
21467         (opendirat): New arg PDIR_FD.  All callers changed.
21468         (fts_build, _opendir2): Use new opendirat to avoid the need for
21469         dirfd, or for checking whether dirfd returns a negative value.
21470         Don't use opendir; always use openat followed by fdopendir.
21471         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
21472         it.
21473         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
21474         returns -1 here.
21475         * modules/fts (Depends-on): Remove dirfd.
21476         * modules/getcwd (Depends-on): Likewise.
21477
21478 2010-09-13  Eric Blake  <eblake@redhat.com>
21479
21480         float: fix broken MirBSD header
21481         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
21482         * doc/posix-headers/float.texi (float.h): Document it.
21483
21484 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21485
21486         fts: use O_NOFOLLOW to avoid race condition when opening a directory
21487         * lib/fts.c (opendirat): New arg extra_flags.
21488         (__opendir2): Use it to avoid following symlinks when opening
21489         a directory, if symlinks are not supposed to be followed.  See
21490         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
21491
21492         fdopendir: preserve argument fd before returning
21493         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
21494         (fdopendir_with_dup, fd_clone_opendir): New static functions.
21495         (fdopendir): Use them, arranging for FD to be open to the same
21496         directory that it was when it started.  (It might be temporarily
21497         closed while fdopendir is running, so this not thread- or
21498         signal-safe.)  Be careful to do the right thing even when file
21499         descriptors are scarce and dup fails with errno == EMFILE.  See
21500         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
21501
21502 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
21503
21504         regex: Pass the system regex if its only problem is 32-bit regoff_t.
21505         * NEWS: Document change.
21506         * m4/regex.m4: Disable test for regoff_t size.
21507
21508 2010-09-13  Jim Meyering  <meyering@redhat.com>
21509
21510         fts: don't operate on an invalid file descriptor after failed dup
21511         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
21512         negative file descriptor.
21513
21514 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21515
21516         savedir: add streamsavedir, deprecate fdsavedir
21517         * NEWS: Mention deprecation of fdsavedir.
21518         * lib/savedir.c (streamsavedir): New extern function, whose name
21519         ends in "savedir" to be consistent with the others.  This differs
21520         from savedirstream in that it doesn't close its argument.  The
21521         next version of GNU tar will use this instead of fdsavedir, to
21522         avoid some race conditions and conserve file descriptors.
21523         (savedirstream): Reimplement as a wrapper around streamsavedir.
21524         (fdsavedir): Add a comment deprecating this function.  As far as
21525         I know, only GNU tar used it, and GNU tar doesn't need it any more.
21526         * lib/savedir.h (streamsavedir): New decl.
21527         (fdsavedir): Add a comment deprecating this.
21528
21529 2010-09-10  Bruno Haible  <bruno@clisp.org>
21530
21531         langinfo: Fix last commit.
21532         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
21533         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
21534         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21535
21536 2010-09-10  Bruno Haible  <bruno@clisp.org>
21537
21538         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
21539         * lib/progreloc.c (O_EXEC): Define fallback.
21540
21541 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21542
21543         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
21544         * NEWS: Document recent changes to fcntl-h.
21545         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
21546         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
21547         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
21548         Similarly for O_SEARCH; this last was already true, but not documented.
21549         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
21550         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
21551         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
21552         Likewise.
21553         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
21554         is zero, not whether it is defined.
21555         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
21556         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
21557         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
21558
21559 2010-09-10  Bruno Haible  <bruno@clisp.org>
21560
21561         langinfo, nl_langinfo: Fix for IRIX 5.3.
21562         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
21563         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
21564         HAVE_LANGINFO_YESEXPR.
21565         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
21566         HAVE_LANGINFO_YESEXPR.
21567         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
21568         HAVE_LANGINFO_T_FMT_AMPM is 0.
21569         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
21570         HAVE_LANGINFO_YESEXPR is 0.
21571         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
21572         NOEXPR.
21573         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
21574         * doc/posix-functions/nl_langinfo.texi: Likewise.
21575         Reported by Eric Blake.
21576
21577 2010-09-10  Bruno Haible  <bruno@clisp.org>
21578
21579         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
21580         * doc/glibc-functions/login_tty.texi: Mention the include file problem
21581         on FreeBSD 8.0 and OpenBSD 4.6.
21582         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
21583         * m4/pty_h.m4 (gl_PTY_H): Likewise.
21584         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
21585         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
21586         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
21587         ac_includes_default.
21588         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21589
21590 2010-09-09  Eric Blake  <eblake@redhat.com>
21591
21592         strsignal: work around NetBSD bug
21593         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
21594         * lib/string.in.h (includes): Likewise.
21595         * doc/posix-functions/strsignal.texi (strsignal): Document the
21596         bug.
21597         Reported by Nelson H. F. Beebe.
21598
21599         gnulib-tool: work with NetBSD /bin/sh
21600         * gnulib-tool (func_cache_var, func_cache_lookup_module)
21601         (func_get_description, func_get_comment, func_get_status)
21602         (func_get_notice, func_get_applicability, func_get_filelist)
21603         (func_get_dependencies, func_get_autoconf_early_snippet)
21604         (func_get_autoconf_snippet, func_get_automake_snippet)
21605         (func_get_include_directive, func_get_link_directive)
21606         (func_get_license, func_get_maintainer, func_import): Avoid
21607         shell syntax errors from parsing syntax extensions.
21608
21609 2010-09-09  Bruno Haible  <bruno@clisp.org>
21610
21611         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21612         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
21613         a reliable way to determine whether the 'alias' command works.
21614
21615 2010-09-08  Jim Meyering  <meyering@redhat.com>
21616
21617         init.sh: penalize a set-x-impaired shell; don't disqualify it
21618         * tests/init.sh: Too many shells corrupt application stderr when
21619         you set -x, so we can't afford to disqualify them, since at least
21620         on Irix-6.5, that would disqualify all bourne shells.
21621         Instead, use a two-pass approach.
21622         On the first pass, try to find a shell that meets the stricter
21623         condition that set -x does not corrupt stderr.
21624         If no shell meets the stricter condition, retest each candidate
21625         shell, but without that extra condition.  Finally, when
21626         VERBOSE=yes is requested and set -x might cause trouble, simply
21627         issue a warning and refrain from enabling debug output.
21628
21629 2010-09-08  Eric Blake  <eblake@redhat.com>
21630
21631         unsetenv: fix OpenBSD bug
21632         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
21633         * doc/posix-functions/unsetenv.texi (unsetenv): Update
21634         documentation.
21635         Reported by Jim Meyering.
21636
21637         strtod: work around IRIX 6.5 bug
21638         * lib/strtod.c (strtod): Reparse number on shorter string if
21639         exponent parse was invalid.
21640         * tests/test-strtod.c (main): Add check for "0x1p 2".
21641         Reported by Tom G. Christensen.
21642
21643         getopt: optimize previous patch
21644         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
21645         empty variable.  Speed up awk script.
21646         Reported by Paolo Bonzini.
21647
21648 2010-09-08  Jim Meyering  <meyering@redhat.com>
21649
21650         test.sh: disqualify shells for which set -x corrupts stderr
21651         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
21652         and OpenBSD 4.7.  They make it so with "set -x", environment settings
21653         appear in stderr output.  For example, this command:
21654             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
21655         prints "P=1" on those two systems:
21656
21657 2010-09-08  Bruno Haible  <bruno@clisp.org>
21658
21659         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21660         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
21661         commands, because some shells ignore redirections when there is an
21662         error in the command lookup.
21663         Reported by Eric Blake.
21664
21665 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
21666
21667         * lib/regex.h: Fix a mention of `regex_compile' (should be
21668         `re_compile_pattern').
21669         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
21670         (re_set_registers): Correct name of parameter in comment.
21671
21672         * doc/regex.texi: Add documentation for missing syntax flags.
21673         Remove commented-out documentation of defunct syntax option
21674         RE_NO_EMPTY_ALTS.
21675         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
21676         Add documentation of re_set_registers.
21677         Document trick to re-use a pattern buffer by setting fastmap manually.
21678         Update documentation of struct re_pattern_buffer per public members.
21679         Uncomment documentation of equivalence class operators and
21680         collating symbol operators, since they are now implemented,
21681         Explain leftmost-longest matching in relation to alternatives.
21682         Tidy documentation of substring matching.
21683         Remove POSIX documentation, which is done better in
21684         glibc, and refer the reader there. Keep BSD API documentation, as
21685         that is not readily available elsewhere.
21686
21687 2010-09-07  Eric Blake  <eblake@redhat.com>
21688
21689         getopt: handle POSIXLY_CORRECT set but not exported
21690         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
21691         export state of POSIXLY_CORRECT, due to bash set -o posix.
21692         Reported by Dustin J. Mitchell.
21693
21694 2010-09-05  Bruno Haible  <bruno@clisp.org>
21695
21696         gnulib-tool: Highlight the changed options.
21697         * gnulib-tool (func_usage): Display the --import, --add-import,
21698         --remove-import explanations in bold font.
21699
21700 2010-09-06  Karl Berry  <karl@gnu.org>
21701
21702         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
21703
21704 2010-09-05  Bruno Haible  <bruno@clisp.org>
21705
21706         uniwidth/width: Update comment.
21707         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
21708         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
21709
21710 2010-09-05  Bruno Haible  <bruno@clisp.org>
21711
21712         isinf, isnan: Relax license.
21713         * modules/isinf (License): Change from GPL to LGPL, with consent from
21714         Ben Pfaff.
21715         * modules/isnan (License): Likewise.
21716         Requested by Ludovic Courtès.
21717
21718 2010-09-04  Bruno Haible  <bruno@clisp.org>
21719
21720         gnulib-tool: Help migration from --import to --add-import or --update.
21721         * gnulib-tool: Emit a verbose error message when --import is used
21722         without any module name.
21723
21724 2010-09-04  Bruno Haible  <bruno@clisp.org>
21725
21726         Update doc about gnulib-tool.
21727         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
21728         'gnulib-tool --update' in more detail.
21729         Reported by Eric Blake.
21730
21731 2010-09-04  Bruno Haible  <bruno@clisp.org>
21732
21733         gnulib-tool: Change --import. New options --add/remove-import.
21734         * gnulib-tool: New options --add-import, --remove-import.
21735         (func_usage): Document them.
21736         (have_associative): Define always.
21737         (func_import): In import mode, don't merge the specified settings with
21738         the cached settings. Implement remove-import mode.
21739         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
21740         Explain when to use them versus --import.
21741         (Simple update): Use --add-import instead of --import.
21742         * NEWS: Mention the change.
21743
21744 2010-09-04  Bruno Haible  <bruno@clisp.org>
21745
21746         * doc/gnulib-tool.texi (Initial import): Update paragraph about
21747         separate gnulib.mk.
21748
21749 2010-09-04  Bruno Haible  <bruno@clisp.org>
21750
21751         gnulib-tool: Don't talk about CVS any more.
21752         * gnulib-tool (func_usage, func_import): Write "version control"
21753         instead of CVS.
21754
21755 2010-09-04  Jim Meyering  <meyering@redhat.com>
21756
21757         maint.mk: avoid obscure sc_copyright_check failure in coreutils
21758         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
21759         false positives (whose names may be ill-chosen) when searching
21760         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
21761         would cause a false-positive.
21762
21763         avoid coreutils "make distcheck" failure
21764         Coreutils tests with an absolute build directory name that contains
21765         a space.  Not quoting this directory name caused a failure.
21766         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
21767         * tests/test-vc-list-files-cvs.sh: Likewise.
21768
21769 2010-09-04  Bruno Haible  <bruno@clisp.org>
21770
21771         gnulib-tool: Avoid error when run in a package without Makefile.am.
21772         * gnulib-tool: When collecting the m4dirs in a package that does not
21773         have a Makefile.am, eliminate those directories that contain no
21774         gnulib-cache.m4. Fix expression that counts these directories.
21775
21776 2010-09-04  Bruno Haible  <bruno@clisp.org>
21777
21778         update-copyright test: Improve output when perl is missing or too old.
21779         * tests/test-update-copyright.sh: Move test of Perl version down after
21780         the test whether Perl exists. Provide an explanation relating Perl's
21781         error message to Automake's SKIP: message.
21782
21783 2010-09-04  Bruno Haible  <bruno@clisp.org>
21784
21785         Don't augment PATH in TESTS_ENVIRONMENT.
21786         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
21787         set abs_aux_dir instead of augmenting PATH.
21788         * modules/vc-list-files-tests (Makefile.am): Likewise.
21789         * tests/test-update-copyright.sh: Augment PATH here.
21790         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
21791         path_prepend_.
21792         * tests/test-vc-list-files-git.sh: Likewise.
21793
21794 2010-09-04  Jim Meyering  <meyering@redhat.com>
21795
21796         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
21797         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
21798
21799 2010-09-04  Bruno Haible  <bruno@clisp.org>
21800
21801         strdup: Fix compilation error in C++ mode.
21802         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
21803         the macro.
21804
21805 2010-09-04  Bruno Haible  <bruno@clisp.org>
21806
21807         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
21808         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
21809         macro into a function.
21810         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21811
21812 2010-09-04  Bruno Haible  <bruno@clisp.org>
21813
21814         Set PATH_SEPARATOR the same way autoconf does.
21815         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
21816         the value of PATH_SEPARATOR the same way autoconf-generated configure
21817         scripts do.
21818         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
21819         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21820
21821 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21822
21823         Set PATH_SEPARATOR the same way autoconf does.
21824         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
21825         the same way autoconf-generated configure scripts do.
21826         * posix-modules: Likewise.
21827
21828 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21829
21830         hash: fix safe_hasher const typo
21831         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
21832         const; otherwise, there is a type error later.
21833
21834 2010-09-02  Jim Meyering  <meyering@redhat.com>
21835
21836         test-update-copyright.sh: require perl 5.8.0
21837         * tests/test-update-copyright.sh: Require 5.8.0,
21838         which Tom G. Christensen has confirmed is adequate,
21839         while 5.6.1 is not.
21840
21841 2010-09-02  Eric Blake  <eblake@redhat.com>
21842
21843         tests: init.sh improvements for re-exec'ing with zsh
21844         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
21845         -vx through shell re-exec.
21846         Reported by Tom G. Christensen.
21847
21848         wctype: fix typo in previous commit
21849         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
21850         Reported by Ludovic Courtès.
21851
21852 2010-09-02  Jim Meyering  <meyering@redhat.com>
21853
21854         test-update-copyright.sh: skip test if Perl is too old
21855         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
21856         Reported by Tom G. Christensen.
21857
21858 2010-09-02  Bruno Haible  <bruno@clisp.org>
21859
21860         wctype: Avoid compilation error on IRIX 6.5.30.
21861         * lib/wctype.in.h (iswblank): Declare with a replacement if
21862         REPLACE_ISWBLANK is set.
21863         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
21864         declared. Set REPLACE_ISWBLANK.
21865         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
21866         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
21867         * doc/posix-headers/wctype.texi: Likewise.
21868         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21869
21870 2010-09-01  Bruno Haible  <bruno@clisp.org>
21871
21872         New module 'socketlib'.
21873         * modules/socketlib: New file.
21874         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
21875         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
21876         * modules/sockets (Depends-on): Add socketlib.
21877         Suggested by Sam Steingold <sds@gnu.org>.
21878
21879 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21880
21881         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
21882
21883         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
21884         when one needs search access to a directory but not read access.
21885         On systems where it is available, it works in some cases where
21886         O_RDONLY does not, namely on directories that are searchable but
21887         not readable, and which need only to be searchable.  If O_SEARCH
21888         is not available, fall back to the traditional method of using
21889         O_RDONLY.
21890
21891         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
21892         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
21893         when opening a directory that needs only to be searchable.
21894         * lib/chdir-safer.c (chdir_no_follow): Likewise.
21895         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
21896         * lib/openat-proc.c (openat_proc_name): Likewise.
21897         * lib/openat.c (openat_needs_fchdir): Likewise.
21898         * lib/save-cwd.c (save_cwd): Likewise.
21899         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
21900
21901 2010-08-28  Bruno Haible  <bruno@clisp.org>
21902
21903         New module 'host-cpu-c-abi'.
21904         * modules/host-cpu-c-abi: New file.
21905         * m4/host-cpu-c-abi.m4: New file, based on part of
21906         clisp/src/m4/general.m4.
21907         Requested by Sam Steingold <sds@gnu.org>.
21908
21909 2010-08-31  Eric Blake  <eblake@redhat.com>
21910         and Jim Meyering  <meyering@redhat.com>
21911
21912         hash: factor, and guard against misbehaving hasher function
21913         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
21914         of table->hasher's return value.  Also protect against a hash value
21915         so large that adding it to table->bucket results in a NULL pointer.
21916         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
21917         Use it in place of open-coded check-and-abort.
21918
21919 2010-08-30  Bruno Haible  <bruno@clisp.org>
21920
21921         hash: silence spurious clang warning
21922         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
21923         Reported by Eric Blake.
21924
21925 2010-08-30  Eric Blake  <eblake@redhat.com>
21926
21927         strstr, memmem, strcasestr: avoid leaked shell message
21928         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
21929         FreeBSD.
21930         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21931         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21932
21933         tests: silence clang warning
21934         * tests/test-malloca.c (do_allocation): Avoid dead store.
21935
21936 2010-08-29  Bruno Haible  <bruno@clisp.org>
21937
21938         gettext: Fix recent mistake.
21939         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
21940
21941 2010-08-29  Bruno Haible  <bruno@clisp.org>
21942
21943         selinux-h: Offer a --without-selinux option.
21944         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
21945         --without-selinux was specified, skip all tests and define
21946         HAVE_SELINUX_SELINUX_H to 0.
21947         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
21948         set LIB_SELINUX to empty.
21949         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
21950         gl_LIBSELINUX. If --without-selinux was specified, replace
21951         selinux/context.h.
21952         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
21953
21954 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21955             Bruno Haible  <bruno@clisp.org>
21956
21957         Make the module 'realloc-gnu' work again on AIX and OSF/1.
21958         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
21959         of HAVE_REALLOC.
21960         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
21961         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
21962         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
21963         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21964
21965 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21966             Bruno Haible  <bruno@clisp.org>
21967
21968         Make the module 'calloc-gnu' work again on AIX and OSF/1.
21969         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
21970         HAVE_CALLOC.
21971         * lib/xmalloc.c: Update accordingly.
21972         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
21973         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
21974         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
21975
21976 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21977             Bruno Haible  <bruno@clisp.org>
21978
21979         Make the module 'malloc-gnu' work again on AIX and OSF/1.
21980         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
21981         HAVE_MALLOC.
21982         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
21983         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
21984         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21985
21986 2010-08-29  Bruno Haible  <bruno@clisp.org>
21987
21988         Update modules list.
21989         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21990         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
21991         (String handling <string.h>): Add astrxfrm.
21992         (File system functions): Add readlinkat.
21993
21994 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21995
21996         Tests for module 'realloc-gnu'.
21997         * modules/realloc-gnu-tests: New file.
21998         * tests/test-realloc-gnu.c: New file.
21999
22000         Tests for module 'calloc-gnu'.
22001         * modules/calloc-gnu-tests: New file.
22002         * tests/test-calloc-gnu.c: New file.
22003
22004         Tests for module 'malloc-gnu'.
22005         * modules/malloc-gnu-tests: New file.
22006         * tests/test-malloc-gnu.c: New file.
22007
22008 2010-08-28  Bruno Haible  <bruno@clisp.org>
22009
22010         Rename module 'realloc' -> 'realloc-gnu'.
22011         * modules/realloc-gnu: New file, copied from modules/realloc.
22012         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
22013         obsolete.
22014         * modules/mgetgroups (Depends-on): Update.
22015         * doc/posix-functions/realloc.texi: Update.
22016         * NEWS: Mention the change.
22017
22018         Rename module 'calloc' -> 'calloc-gnu'.
22019         * modules/calloc-gnu: New file, copied from modules/calloc.
22020         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
22021         obsolete.
22022         * doc/posix-functions/calloc.texi: Update.
22023         * NEWS: Mention the change.
22024
22025         Rename module 'malloc' -> 'malloc-gnu'.
22026         * modules/malloc-gnu: New file, copied from modules/malloc.
22027         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
22028         obsolete.
22029         * modules/argp (Depends-on): Update.
22030         * modules/regex (Depends-on): Update.
22031         * doc/posix-functions/malloc.texi: Update.
22032         * NEWS: Mention the change.
22033
22034 2010-08-28  Eric Blake  <eblake@redhat.com>
22035
22036         pread, pwrite: add missing dependency
22037         * modules/pread (Depends-on): Add extensions.
22038         * modules/pwrite (Depends-on): Likewise.
22039
22040 2010-08-28  Bruno Haible  <bruno@clisp.org>
22041
22042         unistr/u*-strchr: Fix tests dependencies.
22043         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
22044         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
22045         Reported by Ian Beckwith <ianb@erislabs.net>.
22046
22047 2010-08-28  Bruno Haible  <bruno@clisp.org>
22048
22049         read-file: Don't occupy too much unused memory.
22050         * lib/read-file.c (fread_file): Shrink the buffer at the end.
22051
22052 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
22053             Eric Blake  <eblake@redhat.com>
22054             Bruno Haible  <bruno@clisp.org>
22055
22056         read-file: Avoid memory reallocations with regular files.
22057         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
22058         (fread_file): With regular files, use the remaining length as the
22059         initial buffer size.  Check against overflow.
22060         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
22061         sys_stat.
22062
22063 2010-08-28  Bruno Haible  <bruno@clisp.org>
22064
22065         ftello: Relax license.
22066         * modules/ftello (License): Relax to LGPLv2+.
22067         Reported by Eric Blake.
22068
22069 2010-08-28  Bruno Haible  <bruno@clisp.org>
22070
22071         Avoid relocwrapper link errors due to gnulib replacement functions.
22072         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
22073         function.
22074         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22075
22076 2010-08-28  Bruno Haible  <bruno@clisp.org>
22077
22078         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
22079         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
22080         defined.
22081         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
22082         Suggested by Eric Blake.
22083
22084 2010-08-28  Bruno Haible  <bruno@clisp.org>
22085
22086         sys_socket, netdb: Ensure socklen_t gets defined.
22087         * modules/sys_socket (Depends-on): Add socklen.
22088         * modules/netdb (Depends-on): Likewise.
22089         * modules/getaddrinfo (Depends-on): Remove socklen.
22090         * modules/getsockopt (Depends-on): Likewise.
22091         * modules/setsockopt (Depends-on): Likewise.
22092         * tests/test-sys_socket.c: Check that socklen_t is defined.
22093         * tests/test-netdb.c: Likewise.
22094         * m4/socklen.m4: Update comments.
22095         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22096
22097 2010-08-27  Eric Blake  <eblake@redhat.com>
22098
22099         login_tty: add missing dependency
22100         * modules/login_tty (Depends-on): Add pty.
22101
22102 2010-08-26  Eric Blake  <eblake@redhat.com>
22103
22104         lib-symbol-versions: fix m4 quoting
22105         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
22106         format for AC_LINK_IFELSE.
22107
22108         glob: fix compile test
22109         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
22110
22111         btowc: fix missing file
22112         * modules/btowc (Files): Also ship locale-fr.m4.
22113
22114         lseek: fix link test
22115         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
22116         AC_LINK_IFELSE.
22117
22118         include_next: silence autoconf 2.68 warning
22119         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
22120         AC_COMPILE_IFELSE as special.
22121         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
22122         autoconf < 2.68.
22123
22124         acl: fix compilation test
22125         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
22126         AC_COMPILE_IFELSE.
22127
22128 2010-08-26  Bruno Haible  <bruno@clisp.org>
22129
22130         Modernize AC_TRY_RUN invocations.
22131         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
22132         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
22133         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
22134         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
22135         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
22136         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22137         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22138         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22139         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22140         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22141         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
22142         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22143         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22144         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22145         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22146         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22147         gl_MBRLEN_NUL_RETVAL): Likewise.
22148         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22149         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
22150         Likewise.
22151         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22152         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22153         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22154         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22155         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
22156         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
22157         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
22158         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
22159         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
22160         Likewise.
22161         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22162         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
22163         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22164         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22165         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22166         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
22167         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22168         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
22169         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22170         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22171
22172 2010-08-26  Bruno Haible  <bruno@clisp.org>
22173
22174         Modernize AC_TRY_LINK invocations.
22175         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
22176         AC_TRY_LINK.
22177         * m4/argp.m4 (gl_ARGP): Likewise.
22178         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
22179         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22180         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
22181         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22182         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22183         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
22184         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
22185         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22186         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22187         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
22188         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22189         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
22190         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
22191         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22192         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22193         * m4/hostent.m4 (gl_HOSTENT): Likewise.
22194         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22195         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
22196         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22197         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
22198         Likewise.
22199         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
22200         Likewise.
22201         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
22202         Likewise.
22203         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22204         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
22205         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
22206         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
22207         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
22208         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22209         * m4/servent.m4 (gl_SERVENT): Likewise.
22210         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
22211         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
22212         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
22213         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
22214         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22215         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
22216         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22217         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22218         * modules/tsearch-tests (configure.ac): Likewise.
22219
22220 2010-08-26  Bruno Haible  <bruno@clisp.org>
22221
22222         Modernize AC_TRY_COMPILE invocations.
22223         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
22224         AC_TRY_COMPILE.
22225         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
22226         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
22227         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22228         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
22229         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22230         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22231         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22232         * m4/lock.m4 (gl_LOCK): Likewise.
22233         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
22234         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22235         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
22236         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22237         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22238         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
22239         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
22240         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
22241         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
22242         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
22243         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
22244         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22245         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
22246         extraneous semicolon.
22247
22248 2010-08-26  Jim Meyering  <meyering@redhat.com>
22249
22250         stat-time: relax license LGPL
22251         * modules/stat-time (License): Change from GPL to LGPL,
22252         with consent from all contributors, for use in libguile.
22253         Requested by Ludovic Courtès.
22254
22255 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
22256
22257         poll: return immediately on POLLHUP.
22258         * lib/poll.c (poll): Always set timeout before wait_timeout is
22259         computed.
22260
22261 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22262
22263         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
22264         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
22265         rmdir ("dir/.//"), unlinkat.
22266
22267 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22268
22269         stdbool: avoid spurious failure with modern xlc
22270         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22271
22272 2010-08-24  Bruno Haible  <bruno@clisp.org>
22273
22274         getloadavg: simplify code
22275         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
22276         gl_have_func. Update comments.
22277
22278 2010-08-24  Eric Blake  <eblake@redhat.com>
22279
22280         getloadavg: don't define SVR4 on cygwin
22281         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
22282         only define SVR4 when -lkvm is required.
22283         Reported by Yaakov Selkowitz.
22284
22285 2010-08-24  Bruno Haible  <bruno@clisp.org>
22286
22287         priv-set: fix comment
22288         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
22289
22290 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22291
22292         priv-set: fix comments
22293         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
22294         to match code, as suggested by David Bartley in:
22295         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
22296
22297 2010-08-23  Eric Blake  <eblake@redhat.com>
22298
22299         stdbool: avoid rejecting clang
22300         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22301         * tests/test-stdbool.c: Enable more tests if using the system
22302         <stdbool.h> instead of the gnulib replacement.
22303         (main): Move xlc bug test to a runtime test for all compilers.
22304         Reported by Anders Kaseorg.
22305
22306         argz: fix shell quoting issue
22307         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
22308         Reported by Charles Wilson.
22309
22310 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
22311             Erik Faye-Lund <kusmabite@gmail.com>
22312
22313         poll, select: handle ERROR_BROKEN_PIPE.
22314         * lib/poll.c (win32_compute_revents): Return POLLHUP when
22315         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22316         * lib/select.c (win32_compute_revents): Do not mark a pipe
22317         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22318
22319 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
22320
22321         fts: allow compilation with C++
22322         * lib/fts_.h: Specify extern "C" linkage with C++.
22323
22324 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22325
22326         Fix gnulib-tool sed script de-commentation for AIX sed.
22327         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
22328         sed.
22329
22330 2010-08-17  Eric Blake  <eblake@redhat.com>
22331
22332         test-stddef: test for (some) offsetof bugs
22333         * tests/test-stddef.c: Enhance test to ensure correct type of
22334         offsetof.
22335         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
22336         that we are not fixing at this time.
22337
22338 2010-08-15  Bruno Haible  <bruno@clisp.org>
22339
22340         stpncpy: Allow stpncpy to be defined as a macro.
22341         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
22342         if it's already correctly declared.
22343         * lib/string.in.h (stpncpy): Undefine before redefining.
22344         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
22345
22346 2010-08-14  Bruno Haible  <bruno@clisp.org>
22347
22348         Rename module 'memxfrm' to 'amemxfrm'.
22349         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
22350         (amemxfrm): Renamed from memxfrm.
22351         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
22352         (amemxfrm): Renamed from memxfrm.
22353         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
22354         * NEWS: Mention the change.
22355         * MODULES.html.sh (String handling <string.h>): Update.
22356         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
22357         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
22358         * lib/unicase/u16-casexfrm.c: Likewise.
22359         * lib/unicase/u32-casexfrm.c: Likewise.
22360         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
22361         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
22362         * lib/uninorm/u16-normxfrm.c: Likewise.
22363         * lib/uninorm/u32-normxfrm.c: Likewise.
22364         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
22365         memxfrm.
22366         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
22367         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
22368         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
22369         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
22370         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
22371         Suggested by Paul Eggert.
22372
22373 2010-08-14  Bruno Haible  <bruno@clisp.org>
22374
22375         Tests for module 'astrxfrm'.
22376         * modules/astrxfrm-tests: New file.
22377         * tests/test-astrxfrm.c: New file.
22378
22379         New module 'astrxfrm'.
22380         * lib/astrxfrm.h: New file.
22381         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
22382         * modules/astrxfrm: New file.
22383
22384 2010-08-14  Reuben Thomas <rrt@sc3d.org>
22385
22386         regex: Tweak doc.
22387         * doc/regex.texi (Overview): Don't mention regex.c.
22388         (GNU Regular Expression Compiling): Likewise.
22389         (Match-end-of-line Operator): Mention 'not_eol'.
22390
22391 2010-08-14  Brian Gough  <bjg@gnu.org>
22392             Bruno Haible  <bruno@clisp.org>
22393
22394         git-merge-changelog: add doc relating to use with bzr and hg.
22395         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
22396
22397 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
22398
22399         pthread: fix pthread.h creation for srcdir != builddir
22400         * modules/pthread (Makefile.am): Fix the rule to work also in a
22401         non-srcdir build.
22402
22403 2010-08-13  Karl Berry  <karl@gnu.org>
22404
22405         * doc/regex.texi (Predefined Syntaxes): @smallexample.
22406         * doc/posix-*/*: force line break before @url of POSIX
22407         specifications.
22408         Suggested by Werner Lemberg.
22409
22410 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22411
22412         strtod: fix const diagnostic
22413         * lib/strtod.c (strtod): Don't assign const char * to char *,
22414         as this elicits a warning from GCC when warnings are enabled.
22415
22416 2010-08-10  Pádraig Brady <P@draigbrady.com>
22417         and Eric Blake  <eblake@redhat.com>
22418
22419         copy-acl: ignore ENOTSUP on HP-UX
22420         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
22421         so that it is available for HP-UX.
22422         * lib/copy-acl.c (qcopy_acl): Use it.
22423         Reported by Patrick M. Callahan.
22424
22425 2010-08-10  Eric Blake  <eblake@redhat.com>
22426
22427         open, chown: relax license
22428         * modules/open (License): Change to LGPLv2+, with consent by all
22429         authors, for use in augeas.
22430         * modules/chown (License): Likewise.
22431         * modules/lchown (Likewise): Likewise.
22432         Requested by Adam Stokes.
22433
22434 2010-08-09  Karl Berry  <karl@gnu.org>
22435
22436         * build-aux/ar-lib: new file, import from Automake.
22437         * config/srclist.txt: autocheck for updates.
22438
22439 2010-08-09  Eric Blake  <eblake@redhat.com>
22440
22441         readlinkat: adjust client modules
22442         * modules/areadlinkat (Depends-on): Use readlinkat, not
22443         symlinkat.
22444         * modules/areadlinkat-with-size (Depends-on): Likewise.
22445
22446         mknod: be more vocal about danger of running tests as root
22447         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
22448         root, since that is just asking for problems.
22449         Suggested by Bruno Haible, based on a report by Rainer Tammer.
22450
22451         readlinkat: split into its own module
22452         * modules/symlinkat: Split readlinkat...
22453         * modules/readlinkat: ...into separate module.
22454         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
22455         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
22456         * lib/symlinkat.c (readlinkat): Move...
22457         * lib/readlinkat.c: ...into new file.
22458         * modules/symlinkat-tests: Split readlinkat test...
22459         * modules/readlinkat-tests: ...into separate module.
22460         * tests/test-symlinkat.c: Split...
22461         * tests/test-readlinkat.c: ...into new file.
22462         * NEWS: Document the split.
22463         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22464         * lib/unistd.in.h (readlinkat): Likewise.
22465         Suggested by Bruno Haible.
22466
22467 2010-08-08  Bruno Haible  <bruno@clisp.org>
22468
22469         memxfrm: Speed up.
22470         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
22471         that usually only one call to strxfrm is necessary for each string
22472         part.
22473         Reported by Paul Eggert <eggert@cs.ucla.edu>.
22474
22475 2010-08-07  Karl Berry  <karl@gnu.org>
22476
22477         * doc/posix-headers/limits.texi,
22478         * doc/posix-functions/malloc.texi,
22479         * doc/posix-functions/strsignal.texi: missing @item.
22480         * doc/ld-version-script.texi: spurious leading i.
22481         * doc/regex.texi (Interval Operators): no commas inside @var.
22482
22483 2010-08-01  Bruno Haible  <bruno@clisp.org>
22484
22485         Integrate the regex documentation.
22486         * doc/gnulib.texi: Define 'cn' index.
22487         (Regular expressions): New a chapter that includes regex.texi and
22488         regexprops-generic.texi.
22489         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
22490         syntax.
22491
22492         Whitespace cleanup.
22493         * doc/regex.texi: Remove trailing spaces.
22494
22495         Add regex documentation.
22496         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
22497         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
22498         Written by Kathy A. Hargreaves and Karl Berry.
22499
22500 2010-08-01  Bruno Haible  <bruno@clisp.org>
22501
22502         link: Update documentation.
22503         * doc/posix-functions/link.texi: Update regarding Solaris.
22504
22505 2010-07-31  Bruno Haible  <bruno@clisp.org>
22506
22507         Update modules list.
22508         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
22509         (String handling <string.h>): Add memcmp2, memxfrm.
22510         (Container data structures): Add xlist, xsublist, xoset.
22511         (Core language properties): Add alignof, unused-parameter.
22512         (Process control, Numeric conversion functions <stdlib.h>): Renamed
22513         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
22514         (Unibyte characters <ctype.h>): New section.
22515         (String handling <string.h>): New section.
22516         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
22517         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
22518         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
22519         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
22520         tan, tanh, tanl, y0, y1, yn.
22521         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
22522         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
22523         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
22524         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
22525         unlockpt, vdprintf, vdprintf-posix.
22526         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
22527         (File system functions): Add concat-filename, sys_file, sys_ioctl,
22528         xconcat-filename.
22529         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
22530         getdtablesize, pipe2, pipe2-safer.
22531         (Security): New section.
22532         (Networking functions): Add accept4.
22533         (Signal handling): Add sigpipe.
22534         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
22535         mbmemcasecoll.
22536         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
22537         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
22538         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
22539         pipe-filter-ii.
22540         (Misc): Add argp-version-etc, login_tty, parse-duration.
22541
22542 2010-07-31  Bruno Haible  <bruno@clisp.org>
22543
22544         Improve doc in MODULES.html.
22545         * modules/linkat (Description): Add the word "function".
22546         * modules/mkfifo (Description): Likewise.
22547         * modules/mknod (Description): Likewise.
22548         * modules/remove (Description): Likewise.
22549         * modules/renameat (Description): Likewise.
22550         * modules/stat (Description): Likewise.
22551         * modules/symlink (Description): Likewise.
22552         * modules/unlink (Description): Likewise.
22553
22554 2010-07-31  Bruno Haible  <bruno@clisp.org>
22555
22556         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
22557         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
22558         option --enable/disable-c++ instead of --enable/disable-cxx.
22559         * NEWS: Mention the change.
22560
22561 2010-07-31  Bruno Haible  <bruno@clisp.org>
22562
22563         readlink, areadlink: Relax test a bit.
22564         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
22565         alternative to ENOTDIR.
22566         * tests/test-areadlink.h (test_areadlink): Likewise.
22567         Reported by Rainer Tammer.
22568
22569 2010-07-31  Bruno Haible  <bruno@clisp.org>
22570
22571         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
22572         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
22573         character, perform the search using U_STRCHR.
22574         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
22575         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
22576         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
22577         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
22578         Suggested by Paolo Bonzini.
22579
22580 2010-07-31  Bruno Haible  <bruno@clisp.org>
22581
22582         unistr/u*-strstr: Fix dependencies.
22583         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
22584         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
22585         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
22586
22587 2010-07-31  Bruno Haible  <bruno@clisp.org>
22588
22589         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
22590         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
22591         the beginning of the loop.
22592         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
22593         cases in 'switch' statement.
22594
22595         unistr/u8-strchr: Fix several bugs.
22596         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
22597         the string. When not found, return NULL, not a pointer near the end.
22598
22599         More tests for unistr/u8-strchr.
22600         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
22601         that the function does not read past the first occurrence of the byte
22602         being searched.
22603         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
22604         * tests/unistr/test-u16-strchr.c (main): New function.
22605         * tests/unistr/test-u32-strchr.c (main): New function.
22606
22607 2010-07-31  Bruno Haible  <bruno@clisp.org>
22608
22609         posix-modules: Ignore backup files of documentation files.
22610         * posix-modules: grep only through files named *.texi.
22611
22612 2010-07-31  Bruno Haible  <bruno@clisp.org>
22613
22614         symlinkat: Fix documentation.
22615         * doc/posix-functions/readlinkat.texi: Fix module name.
22616
22617 2010-07-31  Bruno Haible  <bruno@clisp.org>
22618
22619         fchownat: Replace also when chown has the trailing slash bug.
22620         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
22621         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
22622         introduced on 2010-04-10.
22623         Reported by Rainer Tammer.
22624
22625 2010-07-31  Bruno Haible  <bruno@clisp.org>
22626
22627         linkat: Work around AIX 7.1 bug.
22628         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
22629         whether linkat handles trailing slash correctly. If not, replace linkat
22630         and define LINKAT_TRAILING_SLASH_BUG.
22631         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
22632         check whether (fd1,file1) points to a directory if file1 or file2 ends
22633         in a slash. Code taken from lib/link.c.
22634         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
22635         Reported by Rainer Tammer.
22636
22637 2010-07-31  Bruno Haible  <bruno@clisp.org>
22638
22639         Correctly determine whether pow is available in libc on AIX 7 with xlc.
22640         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
22641         This disables an xlc optimization that was causing wrong test results.
22642         Reported by Rainer Tammer.
22643
22644 2010-07-31  Bruno Haible  <bruno@clisp.org>
22645
22646         iconv: Work around AIX 6.1..7.1 bug.
22647         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
22648         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
22649         cross-compiling, guess no on all versions of AIX.
22650         Reported by Rainer Tammer.
22651
22652 2010-07-31  Bruno Haible  <bruno@clisp.org>
22653
22654         readlink: Relax test a bit.
22655         * tests/test-readlink.h (test_readlink): Allow different errno value
22656         when readlink is called with a file name that ends in / and refers to
22657         a file.
22658         Suggested by Eric Blake.
22659         Reported by Rainer Tammer.
22660
22661 2010-07-31  Bruno Haible  <bruno@clisp.org>
22662
22663         copysign: Does not require -lm on glibc systems.
22664         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
22665         gl_COMMON_DOUBLE_MATHFUNC.
22666         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
22667
22668 2010-07-31  Bruno Haible  <bruno@clisp.org>
22669
22670         duplocale: Work around AIX 7.1 bug.
22671         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
22672         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
22673         * lib/duplocale.c (rpl_duplocale): Update comment.
22674         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
22675         Reported by Rainer Tammer.
22676
22677 2010-07-30  Bruno Haible  <bruno@clisp.org>
22678
22679         dirfd: Avoid link error on AIX 7.1.
22680         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
22681         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
22682         exist, set REPLACE_DIRFD.
22683         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
22684         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
22685         * doc/posix-functions/dirfd.texi: Update.
22686         Reported by Rainer Tammer.
22687
22688 2010-07-30  Eric Blake  <eblake@redhat.com>
22689
22690         strtod: next round of AIX fixes
22691         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
22692         exponent.
22693         * tests/test-strtod.c (main): Enhance tests.
22694         * doc/posix-functions/strtod.texi (strtod): Document next bug.
22695         Reported by Rainer Tammer.
22696
22697         futimens: fix configure check
22698         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
22699         Reported by Bruno Haible.
22700
22701 2010-07-30  Bruno Haible  <bruno@clisp.org>
22702
22703         getline: Update regarding AIX.
22704         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
22705         Reported by Rainer Tammer.
22706
22707 2010-07-30  Bruno Haible  <bruno@clisp.org>
22708
22709         wcwidth: Drop replacement on AIX 7.
22710         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
22711         AIX 7.
22712         Reported by Rainer Tammer.
22713
22714 2010-07-30  Bruno Haible  <bruno@clisp.org>
22715
22716         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
22717         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
22718         a 'char *'.
22719         Reported by Rainer Tammer.
22720
22721 2010-07-30  Bruno Haible  <bruno@clisp.org>
22722
22723         unlink: Update regarding AIX.
22724         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
22725         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
22726         Reported by Rainer Tammer.
22727
22728 2010-07-30  Bruno Haible  <bruno@clisp.org>
22729
22730         symlink: Update regarding AIX.
22731         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
22732         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
22733         Reported by Rainer Tammer.
22734
22735 2010-07-30  Bruno Haible  <bruno@clisp.org>
22736
22737         strndup: Update regarding AIX.
22738         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
22739         AIX 7.
22740         Reported by Rainer Tammer.
22741
22742 2010-07-30  Bruno Haible  <bruno@clisp.org>
22743
22744         stat: Update regarding AIX.
22745         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
22746         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
22747         Reported by Rainer Tammer.
22748
22749 2010-07-30  Bruno Haible  <bruno@clisp.org>
22750
22751         truncl: Fix autoconf test.
22752         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
22753         whether truncl works.
22754         Reported by Rainer Tammer.
22755
22756 2010-07-30  Bruno Haible  <bruno@clisp.org>
22757
22758         round: Update regarding AIX.
22759         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
22760         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
22761         Reported by Rainer Tammer.
22762
22763 2010-07-30  Bruno Haible  <bruno@clisp.org>
22764
22765         rename: Update regarding AIX.
22766         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
22767         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
22768         Reported by Rainer Tammer.
22769
22770 2010-07-30  Bruno Haible  <bruno@clisp.org>
22771
22772         printf.m4: Update regarding AIX.
22773         * m4/printf.m4: Update comments regarding AIX.
22774         Reported by Rainer Tammer.
22775
22776 2010-07-30  Bruno Haible  <bruno@clisp.org>
22777
22778         iconv: Update regarding AIX.
22779         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
22780         AIX 7.
22781         Reported by Rainer Tammer.
22782
22783 2010-07-30  Bruno Haible  <bruno@clisp.org>
22784
22785         getopt: Update regarding AIX.
22786         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
22787         no on AIX.
22788         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
22789         Reported by Rainer Tammer.
22790
22791 2010-07-30  Bruno Haible  <bruno@clisp.org>
22792
22793         ldexpl; Update regarding AIX.
22794         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
22795         on AIX 7.
22796         Reported by Rainer Tammer.
22797
22798 2010-07-30  Bruno Haible  <bruno@clisp.org>
22799
22800         frexpl: Update regarding AIX.
22801         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
22802         on AIX 7.
22803         Reported by Rainer Tammer.
22804
22805 2010-07-30  Bruno Haible  <bruno@clisp.org>
22806
22807         open, fopen: Update regarding AIX.
22808         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
22809         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22810         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
22811         * doc/posix-functions/fopen.texi: Likewise.
22812         Reported by Rainer Tammer.
22813
22814 2010-07-30  Bruno Haible  <bruno@clisp.org>
22815
22816         chown: Update doc regarding AIX.
22817         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
22818         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
22819         Reported by Rainer Tammer.
22820
22821 2010-07-30  Eric Blake  <eblake@redhat.com>
22822
22823         strtod: fix bug in replacement function on AIX
22824         * lib/strtod.c (strtod): Special case broken "0x" parse in
22825         underlying strtod.
22826         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
22827         * doc/posix-functions/strtod.texi (strtod): Likewise.
22828         Reported by Rainer Tammer.
22829
22830 2010-07-30  Bruno Haible  <bruno@clisp.org>
22831
22832         mbrlen: Fix cross-compilation guess for AIX.
22833         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
22834         guess. Leftover from 2008-12-22.
22835
22836 2010-07-30  Bruno Haible  <bruno@clisp.org>
22837
22838         mbrtowc: Fix cross-compilation guess for AIX.
22839         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
22840         guess. Leftover from 2008-12-21.
22841
22842 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
22843
22844         init.sh: work around trap limitation of some shells
22845         * tests/init.sh (setup_): Move exit trap outside of shell function.
22846
22847 2010-07-29  Eric Blake  <eblake@redhat.com>
22848
22849         strtod: aid debugging
22850         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
22851         understanding why strtod is rejected.
22852
22853 2010-07-28  Bruno Haible  <bruno@clisp.org>
22854
22855         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
22856         * lib/unistr/u8-chr.c: Include <string.h>.
22857         * tests/unistr/test-u8-chr.c: Likewise.
22858         * tests/unistr/test-u16-chr.c: Likewise.
22859         * tests/unistr/test-u32-chr.c: Likewise.
22860         * tests/unistr/test-u8-strchr.c: Likewise.
22861         * tests/unistr/test-u16-strchr.c: Likewise.
22862         * tests/unistr/test-u32-strchr.c: Likewise.
22863         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
22864         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
22865         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
22866         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
22867
22868 2010-07-28  Bruno Haible  <bruno@clisp.org>
22869
22870         Use spaces for indentation, not tabs.
22871         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22872
22873 2010-07-27  Bruno Haible  <bruno@clisp.org>
22874
22875         mbspcasecmp: Fix function specification.
22876         * lib/string.in.h (mbspcasecmp): Fix specification comment.
22877         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
22878         Reported by Eric Blake <eblake@redhat.com>.
22879
22880 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
22881
22882         timespec: use cast and not conditional, as truncation isn't possible
22883         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
22884         instead of a conditional.  Comment about the situation in more detail.
22885         This undoes most of the 2009-10-29 patch.
22886
22887 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
22888
22889         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
22890         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
22891         * lib/unistr/u8-strchr.c: Likewise.
22892         * modules/unistr/u8-chr: Depend on memchr.
22893
22894         unistr/u*-strchr: add tests
22895         * modules/unistr/u8-strchr-tests: New file.
22896         * modules/unistr/u16-strchr-tests: New file.
22897         * modules/unistr/u32-strchr-tests: New file.
22898         * tests/unistr/test-strchr.h: New file.
22899         * tests/unistr/test-u8-strchr.c: New file.
22900         * tests/unistr/test-u16-strchr.c: New file.
22901         * tests/unistr/test-u32-strchr.c: New file.
22902
22903         unistr/u*-chr: test multibyte sequences more
22904         * tests/unistr/test-chr.h: Do complete testing of the characters in the
22905         test vector.
22906         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
22907         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
22908         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
22909
22910         unistr/u*-chr: test multibyte sequences
22911         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
22912
22913         unistr/u*-chr: prepare for multibyte tests
22914         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
22915         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
22916         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
22917         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
22918         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
22919         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
22920
22921 2010-07-18  Bruno Haible  <bruno@clisp.org>
22922
22923         unistr/u8-strchr: Optimize non-ASCII argument case.
22924         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
22925         because the first byte often matches anyway.
22926         Reported by Pádraig Brady <P@draigbrady.com>.
22927
22928 2010-07-15  Karl Berry  <karl@gnu.org>
22929
22930         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
22931
22932 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
22933
22934         getcwd: on Solaris, work better if ancestors are inaccessible
22935         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
22936         buffer and size, try again with a large buffer.  This works better
22937         on Solaris, since its getcwd succeeds even if the path to the root
22938         is inaccessible, and this is helpful in common cases such as .zfs
22939         hidden directories.  Problem reported by J Chapman Flack in
22940         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
22941         Use system getcwd if it's declared, not merely if it's partly
22942         working; use the partly-working test only to avoid needless effort
22943         if the system getcwd fails.
22944         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
22945         comment that was already obsolete and is now even more obsolete.
22946         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
22947         now might call strdup.
22948
22949 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
22950
22951         pthread: Add enough so that coreutils/src/sort.c compiles.
22952         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
22953         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
22954         gnulib. Include <sched.h> and <time.h>, as per POSIX.
22955         Include <sys/types.h>, in case it defines pthread_t.
22956         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
22957         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
22958         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
22959         (pthread_rwlockattr_t, pthread_spinlock_t):
22960         New typedefs, if HAVE_PTHREAD_T is not defined.
22961         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
22962         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
22963         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
22964         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
22965         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
22966         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
22967         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
22968         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
22969         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
22970         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
22971         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
22972         New macros.
22973         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
22974         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
22975         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
22976         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
22977         (pthread_spin_unlock): New dummy functions.
22978         (pthread_create): Return EAGAIN; don't set errno.
22979         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
22980         require AC_C_INLINE.
22981         * modules/pthread (Depends-on): Add sched, time.
22982         (pthread.h): Use AM_V_GEN.
22983
22984 2010-07-13  Bruno Haible  <bruno@clisp.org>
22985
22986         striconveh: Don't malloc memory if the result buffer is sufficient.
22987         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
22988         buffer if its size is sufficient.
22989         Reported by Ludovic Courtès <ludo@gnu.org>.
22990
22991 2010-07-13  Bruno Haible  <bruno@clisp.org>
22992
22993         strtod: Add safety check.
22994         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
22995
22996 2010-07-12  Bruno Haible  <bruno@clisp.org>
22997
22998         Unify tests that set gl_cv_func_ldexpl_no_libm.
22999         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
23000         gl_FUNC_LDEXPL.
23001         (gl_FUNC_LDEXPL): Invoke it.
23002         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23003
23004 2010-07-12  Bruno Haible  <bruno@clisp.org>
23005
23006         Unify tests that set gl_cv_func_ldexp_no_libm.
23007         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
23008         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
23009         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
23010         (configure.ac): Simply invoke gl_FUNC_LDEXP.
23011         * modules/strtod (Files): Add m4/ldexp.m4.
23012
23013 2010-07-12  Bruno Haible  <bruno@clisp.org>
23014
23015         Unify tests that set gl_cv_func_frexpl_no_libm.
23016         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
23017         gl_FUNC_FREXPL_NO_LIBM.
23018         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
23019         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23020
23021 2010-07-12  Bruno Haible  <bruno@clisp.org>
23022
23023         Unify tests that set gl_cv_func_frexp_no_libm.
23024         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
23025         gl_FUNC_FREXP_NO_LIBM.
23026         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
23027         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
23028
23029 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23030
23031         memcoll: clarify sizes versus lengths, document better, and tweak perf
23032         * lib/memcoll.c (strcoll_loop, memcoll0):
23033         Improve quality of descriptive comments.  Name variables
23034         consistently as to whether they are lengths (which do not include
23035         terminating null) versus sizes (which do).
23036         * lib/xmemcoll.c (xmemcoll0): Likewise.
23037         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
23038         returned when s1size == 0; this is easier to compile and saves
23039         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
23040
23041 2010-07-12  Bruno Haible  <bruno@clisp.org>
23042
23043         Tests for module '_Exit'.
23044         * modules/_Exit-tests: New file.
23045         * tests/test-_Exit.sh: New file.
23046         * tests/test-_Exit.c: New file.
23047
23048         New module '_Exit'.
23049         * lib/stdlib.in.h (__attribute__): New macro.
23050         (_Exit): New declaration.
23051         * lib/_Exit.c: New file.
23052         * m4/_Exit.m4: New file.
23053         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
23054         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
23055         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
23056         * modules/_Exit: New file.
23057         * tests/test-stdlib-c++.cc (_Exit): Check signature.
23058         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
23059
23060 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23061
23062         strtod: make it more-accurate typically, and don't require libm
23063         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
23064         Include limits.h.  Don't include string.h.
23065         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
23066         (locale_isspace): New function, so that no casts are needed to
23067         check whether *s is a space.
23068         (ldexp): Provide an unused dummy if not available.
23069         (scale_radix_exp, parse_number, underlying_strtod): New functions.
23070         (strtod): Use them.  This implementation prefers to use the
23071         underlying strtod if available, falling back on our own code
23072         only to fix known bugs.  This is more likely to produce an
23073         accurate result.  Also, it avoids the use of libm functions.
23074         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
23075         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
23076         was absent, but it caused a test failure with coreutils.
23077         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
23078         with libm.
23079         * modules/strtod (Makefile.am, Link): libm is no longer needed.
23080         * modules/strtod-tests (Makefile.am): Likewise.
23081
23082 2010-07-11  Pádraig Brady  <P@draigBrady.com>
23083             Bruno Haible  <bruno@clisp.org>
23084
23085         unistr/u8-strchr: Optimize ASCII argument case.
23086         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
23087
23088 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
23089
23090         (x)memcoll: minor tweaks
23091         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
23092         is after the type that it qualifies.
23093         (memcoll0): Likewise.
23094         * lib/memcoll.h (memcoll0): Likewise.
23095         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
23096         * lib/xmemcoll.h (xmemcoll0): Likewise.
23097         * lib/memcoll.c (memcoll0): Correct the comment.  This function
23098         differs from memcoll in that the NUL byte is part of the argument.
23099         Omit the abort-checks, as performance is a real issue here.  Plus,
23100         the checks were wrong anyway (an off-by-one error).  Omit local
23101         variable 'diff', as it's a bit clearer that way.
23102         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
23103         no longer needed.
23104
23105 2010-07-08  Chen Guo <chenguo4@yahoo.com>
23106
23107         (x)memcoll: speedup when input is known to be NUL delimited
23108         * lib/memcoll.c: Include stdlib.
23109         (memcoll0): New function.
23110         (strcoll_loop): New function, refactored for use in both memcoll
23111         and memcoll0.
23112         * lib/memcoll.h (memcoll0): Add prototype.
23113         * lib/xmemcoll.c (xmemcoll0): New function.
23114         (collate_error): New function, refactored for use in both xmemcoll
23115         and xmemcoll0.
23116         * lib/xmemcoll.h (xmemcoll0): Add prototype.
23117         * m4/memcoll.m4: add inline invocation.
23118
23119 2010-07-06  Pádraig Brady  <P@draigBrady.com>
23120
23121         * build-aux/bootstrap: Remove any local translations
23122         from the translation project synchronization directory,
23123         so that local only translations are not distributed.
23124
23125 2010-07-04  Bruno Haible  <bruno@clisp.org>
23126
23127         fsusage: Clarify which code applies to which platforms.
23128         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
23129         platform.
23130         * lib/fsusage.c (get_fs_usage): Likewise.
23131
23132 2010-07-04  Bruno Haible  <bruno@clisp.org>
23133
23134         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
23135         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
23136         Reported by Martin Lambers <marlam@marlam.de>.
23137
23138 2010-07-04  Jim Meyering  <meyering@redhat.com>
23139
23140         hash: once again explicitly disallow insertion of NULL
23141         * lib/hash.c (hash_insert0): Reinstate just-removed test:
23142         inserting a NULL pointer cannot work with these functions.
23143         Add a comment with details.
23144         This reverts part of the 2010-07-01 commit, 5bef1a35
23145         "hash: extend module to deal with non-pointer keys".
23146
23147 2010-07-01  Bruno Haible  <bruno@clisp.org>
23148
23149         stdbool: Update doc.
23150         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
23151         Info from Christian Weisgerber <naddy@mips.inka.de>.
23152
23153 2010-07-01  Jim Meyering  <meyering@redhat.com>
23154
23155         hash: extend module to deal with non-pointer keys
23156         * lib/hash.c (hash_insert0): New interface, much like hash_insert
23157         but that allows insertion of non-pointer entries.
23158         Do not disallow an ENTRY value of NULL.
23159         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
23160         * lib/hash.h (hash_insert0): Declare.
23161
23162 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23163
23164         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
23165         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
23166         not present (i.e. with autoconf 2.59 and when using gettextize, not
23167         gnulib), require AC_GNU_SOURCE instead.
23168
23169 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
23170
23171         idpriv-drop: Fix tests.
23172         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
23173         not to the test-idpriv-droptemp program.
23174
23175 2010-06-29  Bruno Haible  <bruno@clisp.org>
23176
23177         string: Fix syntax error with g++ 2.96.
23178         * lib/string.in.h (__pure__): Remove definition.
23179         (_GL_ATTRIBUTE_PURE): New macro.
23180         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
23181         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
23182         Reported by Christian Weisgerber <naddy@mips.inka.de>.
23183
23184 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
23185
23186         unitypes: Fix bug introduced on 2010-05-18.
23187         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
23188
23189 2010-06-22  Eric Blake  <eblake@redhat.com>
23190
23191         memmem: slight optimization
23192         * lib/str-two-way.h (critical_factorization): Update comments.
23193         Reduce work during factorization phase.
23194         Reported by Carlos Bueno <carlos@bueno.org>.
23195
23196 2010-06-21  Bruno Haible  <bruno@clisp.org>
23197
23198         Fix HAVE_CALLOC_POSIX misnomer.
23199         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
23200         !HAVE_CALLOC_POSIX.
23201         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
23202         HAVE_CALLOC_POSIX.
23203         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
23204         instead of HAVE_CALLOC_POSIX.
23205         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
23206         HAVE_CALLOC_POSIX.
23207
23208         Use modern idiom for calloc() replacement.
23209         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
23210         AC_FUNC_CALLOC.
23211         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
23212         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
23213         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23214         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
23215         (gl_REPLACE_CALLOC): New macro.
23216
23217 2010-06-21  Bruno Haible  <bruno@clisp.org>
23218
23219         Fix HAVE_REALLOC_POSIX misnomer.
23220         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
23221         !HAVE_REALLOC_POSIX.
23222         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
23223         HAVE_REALLOC_POSIX.
23224         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
23225         instead of HAVE_REALLOC_POSIX.
23226         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
23227         HAVE_REALLOC_POSIX.
23228
23229         Use modern idiom for realloc() replacement.
23230         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
23231         AC_FUNC_REALLOC.
23232         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
23233         Autoconf's AC_FUNC_REALLOC.
23234         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23235         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
23236         (gl_REPLACE_REALLOC): New macro.
23237         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23238
23239 2010-06-21  Bruno Haible  <bruno@clisp.org>
23240
23241         Fix HAVE_MALLOC_POSIX misnomer.
23242         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
23243         !HAVE_MALLOC_POSIX.
23244         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
23245         HAVE_MALLOC_POSIX.
23246         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
23247         instead of HAVE_MALLOC_POSIX.
23248         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
23249         HAVE_MALLOC_POSIX.
23250
23251         Use modern idiom for malloc() replacement.
23252         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
23253         AC_FUNC_MALLOC.
23254         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
23255         Autoconf's AC_FUNC_MALLOC.
23256         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23257         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
23258         (gl_REPLACE_MALLOC): New macro.
23259         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23260
23261 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
23262
23263         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
23264         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
23265         This macro takes 3 arguments, not 4.
23266
23267 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
23268
23269         ipv6: fix detection under mingw
23270         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
23271         in6_addr.
23272
23273 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
23274
23275         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
23276         that strtod() works when cross-compiling to a glibc version known
23277         to work.
23278
23279 2010-06-15  Bruno Haible  <bruno@clisp.org>
23280
23281         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
23282
23283 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
23284
23285         select: Correct timeout.
23286         * lib/select.c (rpl_select): Compute wait_timeout correctly.
23287
23288 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23289
23290         git-version-gen: init shell var to avoid env var influence
23291         * build-aux/git-version-gen (v): Init shell var to empty.
23292
23293 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
23294
23295         priv-set: Don't assume that priv.h exists merely because getppriv does.
23296         See Jan Andersen's bug report about AIX 5L in
23297         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
23298         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
23299         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
23300         * lib/priv-set.h: Likewise.
23301         * tests/test-priv-set.c: Likewise.
23302
23303 2010-06-13  Bruno Haible  <bruno@clisp.org>
23304
23305         relocatable: Make it easier to test whether to install wrappers.
23306         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
23307         RELOCATABLE_VIA_WRAPPER.
23308
23309 2010-06-13  Bruno Haible  <bruno@clisp.org>
23310
23311         gnulib-tool: Display specified modules and dependencies differently.
23312         * gnulib-tool (func_show_module_list): New function.
23313         (func_import, func_create_testdir): Invoke it.
23314         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23315
23316 2010-06-13  Bruno Haible  <bruno@clisp.org>
23317
23318         gnulib-tool: Align code of func_import and func_create_testdir.
23319         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
23320         specified_modules.
23321
23322 2010-06-12  Jim Meyering  <meyering@redhat.com>
23323
23324         test-inttostr: avoid spurious failure on Solaris 9
23325         * tests/test-inttostr.c (main): Skip the test when snprintf fails
23326         to accept "%ju".  Reported by Bruno Haible.
23327
23328 2010-06-11  Jim Meyering  <meyering@redhat.com>
23329
23330         test-sys_socket: mark variables as used more readably
23331         * tests/test-sys_socket.c (main): Mark otherwise unused variables
23332         as "used" explicitly via (void) statement casts.  This is more
23333         readable than using them in an artificial return expression.
23334         Suggestion from Bruno Haible.
23335
23336 2010-06-11  Bruno Haible  <bruno@clisp.org>
23337
23338         Avoid some more warnings from "gcc -Wwrite-strings".
23339         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
23340         to 'const char *'.
23341         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
23342         * tests/test-c-strcasestr.c (main): Likewise.
23343         * tests/test-mbscasestr1.c (main): Likewise.
23344         * tests/test-mbscasestr2.c (main): Likewise.
23345         * tests/test-memmem.c (main): Likewise.
23346         * tests/test-strstr.c (main): Likewise.
23347         * tests/test-strcasestr.c (main): Likewise.
23348
23349 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23350
23351         init.sh: change framework_failure_ to fail with status 99, not 1
23352         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
23353         automake's parallel-tests rule that this is an unexpected failure,
23354         even if the test is listed in XFAIL_TESTS.
23355
23356 2010-06-11  Jim Meyering  <meyering@redhat.com>
23357
23358         test-inttostr: avoid warnings about 4-6KB literal strings
23359         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
23360         Include "macros.h", for its definition of ASSERT.
23361         (CK): s/assert/ASSERT/
23362         * modules/inttostr-tests (Files): Add macros.h.
23363
23364         init.sh: don't use $ME_ or skip_ before they are defined
23365         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
23366         their first uses.  Also hoist their companions: warn_, fail_,
23367         framework_failure_, $stderr_fileno.  Prompted by a patch from
23368         Stefano Lattarini.
23369
23370         test-sys_socket: avoid set-but-not-used warnings from gcc
23371         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
23372         avoid warning about set-but-not-used variables.
23373
23374         test-xvasprintf: avoid 'const' discard warnings
23375         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
23376         "const" when assigning from literal strings.
23377         (test_xasprintf): Add "void" in function argument list to placate
23378         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
23379
23380         tests: avoid compilation warnings in argmatch and exclude tests...
23381         in packages that define ARGMATCH_DIE_DECL, like coreutils.
23382         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
23383         Since it always exits, declare with the "noreturn" attribute.
23384         * tests/test-argmatch.c: Likewise.
23385
23386         tests: avoid 'const' discard warnings in mbsstr tests
23387         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
23388         * tests/test-mbsstr2.c (main): Likewise.
23389
23390         test-verify: avoid warning from gcc's -Wmissing-declarations
23391         * tests/test-verify.c (function): Declare to be static.
23392
23393         test-inttostr.c: include <string.h> for use of strcmp
23394         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
23395
23396         test-linkat: avoid failed assertion on "other" architectures
23397         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
23398         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
23399         sparc: https://bugs.launchpad.net/bugs/591968
23400
23401 2010-06-11  Jim Meyering  <meyering@redhat.com>
23402
23403         printf.m4: avoid autoconf's "Expanded Before Required" warning
23404         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
23405         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
23406         autoconf warning.
23407
23408 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
23409
23410         Replacement header templates are now named with ".in", not "_".
23411         * doc/gnulib-intro.texi: Correct.
23412
23413 2010-06-10  Jim Meyering  <meyering@redhat.com>
23414
23415         inttostr-tests: depend on snprintf, not snprintf-posix
23416         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
23417         snprintf-posix, to avoid this aclocal failure:
23418           missing file gnulib-tests/vasnprintf.c
23419           configure.ac:45: error: expected source file, required through \
23420           AC_LIBSOURCES, not found
23421
23422 2010-06-10  Jim Meyering  <meyering@redhat.com>
23423
23424         inttostr: add a new function, inttostr, and tests
23425         The namesake function was not available.  The existence of the
23426         template file, inttostr.c makes its addition nontrivial.
23427         * lib/anytostr.c: Rename from inttostr.c.
23428         (anytostr): Rename from inttostr.
23429         * lib/inttostr.c: New file.
23430         * modules/inttostr (Files): Add anytostr.c.
23431         (Makefile.am): Set lib_SOURCES instead of ...
23432         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
23433         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
23434         * lib/offtostr.c: Likewise.
23435         * lib/uinttostr.c: Likewise.
23436         * lib/umaxtostr.c: Likewise.
23437         * modules/inttostr-tests: New file.
23438         * tests/test-inttostr.c: New file.  Test these functions.
23439
23440 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
23441             Bruno Haible  <bruno@clisp.org>
23442
23443         Add "Extending Gnulib" chapter to manual.
23444         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
23445         chapter.
23446         (Extending Gnulib): New chapter.
23447         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
23448         chapter.
23449
23450 2010-06-09  Bruno Haible  <bruno@clisp.org>
23451
23452         Avoid relocwrapper link errors due to gnulib replacement functions.
23453         * lib/areadlink.c: Use the system's malloc, realloc functions.
23454         (areadlink): Set errno to ENOMEM explicitly.
23455         * modules/areadlink (Depends-on): Remove malloc-posix.
23456         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23457
23458 2010-06-09  Bruno Haible  <bruno@clisp.org>
23459
23460         Avoid relocwrapper link errors due to gnulib replacement functions.
23461         * lib/canonicalize-lgpl.c: Use the system's malloc function.
23462         * lib/malloca.c: Likewise.
23463         * lib/relocatable.c: Likewise.
23464         * lib/progreloc.c: Use the system's malloc, sprintf functions.
23465         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
23466         * lib/setenv.c: Use the system's malloc, realloc functions.
23467         * lib/strerror.c: Use the system's sprintf function.
23468         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23469
23470 2010-06-04  Bruno Haible  <bruno@clisp.org>
23471
23472         Prefer documented low-level autoconf macro names.
23473         * m4/lib-link.m4: Use m4_translit instead of translit.
23474         * m4/environ.m4: Likewise.
23475         * m4/mathfunc.m4: Likewise.
23476         * m4/onceonly.m4: Likewise.
23477         * m4/stdint.m4: Likewise.
23478         Suggested by Eric Blake.
23479
23480 2010-06-04  Martin Lambers  <marlam@marlam.de>
23481             Bruno Haible  <bruno@clisp.org>
23482
23483         havelib: Allow library names with '+' characters.
23484         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23485         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
23486
23487 2010-06-09  Bruno Haible  <bruno@clisp.org>
23488
23489         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
23490         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
23491         realloc failed.
23492
23493 2010-06-08  Peter Simons  <simons@cryp.to>
23494
23495         maint.mk: make the news-check rule more configurable
23496         * top/maint.mk (news-check-lines-spec): New variable.
23497         (news-check): Use "sed -n 1,10p" in place of "head".
23498
23499 2010-06-07  Jim Meyering  <meyering@redhat.com>
23500
23501         do-release-commit-and-tag: fix typo in --help
23502         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
23503
23504         regex: avoid new dead-code warning with gcc-4.6.0
23505         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
23506         if-block containing a while-loop.  It's been unused for at least
23507         5 years.
23508
23509 2010-06-05  Bruno Haible  <bruno@clisp.org>
23510
23511         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
23512         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
23513
23514 2010-06-04  Bruno Haible  <bruno@clisp.org>
23515
23516         Update to GNU gettext 0.18.1.
23517         * modules/gettext (configure.ac): Require gettext infrastructure from
23518         version 0.18.1.
23519
23520 2010-06-03  Bruno Haible  <bruno@clisp.org>
23521
23522         Don't use AC_LIBOBJ with file names in subdirectories.
23523         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
23524         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
23525         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
23526         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
23527         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
23528         gl_LIBUNISTRING_LIBSOURCE.
23529         (Makefile.am): Augment lib_SOURCES here, conditionally.
23530         * NEWS: Drop requirement for Automake option 'subdir-objects'.
23531
23532 2010-06-03  Bruno Haible  <bruno@clisp.org>
23533
23534         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
23535         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
23536         expansion does not end with a newline.
23537         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
23538         unnecessary newline.
23539
23540 2010-06-03  Bruno Haible  <bruno@clisp.org>
23541
23542         Reduce dependencies.
23543         * tests/test-quotearg.h: New file, extracted from
23544         tests/test-quotearg.c.
23545         * tests/test-quotearg-simple.c: New file, extracted from
23546         tests/test-quotearg.c.
23547         * tests/test-quotearg.c: Don't include <ctype.h>.
23548         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
23549         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
23550         use_quote_double_quotes, use_quotearg_colon): Moved to
23551         tests/test-quotearg.h.
23552         (results_g, flag_results, custom_quotes, custom_results): Moved
23553         to tests/test-quotearg-simple.c.
23554         (main): Moved the part that does not depend on gettext to
23555         tests/test-quotearg-simple.c. Return 77 if the test cannot be
23556         performed.
23557         * modules/quotearg-simple: New file.
23558         * modules/quotearg-simple-tests: New file.
23559         * modules/quotearg (Depends-on): Add quotearg-simple.
23560         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
23561         (Files): Add tests/test-quotearg.h.
23562         Reported by Paolo Bonzini.
23563
23564 2010-06-03  Bruno Haible  <bruno@clisp.org>
23565
23566         Reduce dependencies.
23567         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
23568
23569 2010-06-03  Bruno Haible  <bruno@clisp.org>
23570
23571         time: Undefine more broken macros.
23572         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
23573         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
23574         Reported by Eric Blake.
23575
23576 2010-06-03  Bruno Haible  <bruno@clisp.org>
23577
23578         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
23579         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
23580         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
23581         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
23582         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
23583         Reported by Ludovic Courtès <ludo@gnu.org>.
23584
23585 2010-06-02  Eric Blake  <eblake@redhat.com>
23586
23587         time: work with mingw + pthreads-win32 library
23588         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
23589         if timespec is defined only in pthread.h.
23590         * modules/time (Makefile.am): Substitute it.
23591         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
23592         <pthread.h>, when needed.
23593         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
23594         from the library.
23595
23596 2010-05-31  Bruno Haible  <bruno@clisp.org>
23597
23598         Avoid expanding two macros in the wrong order.
23599         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
23600         gl_LIBUNISTRING if it is defined.
23601         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
23602         autoconf >= 2.64.
23603         Reported by Ludovic Courtès <ludo@gnu.org>.
23604
23605 2010-05-27  Jim Meyering  <meyering@redhat.com>
23606
23607         maint.mk: also prohibit "#undef" of always-defined symbols
23608         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
23609         Allow more than one space before the symbol name.
23610         (sc_prohibit_always-defined_macros): Use grep's -E, now that
23611         the regexp uses alternation.
23612
23613 2010-05-26  Eric Blake  <eblake@redhat.com>
23614
23615         maint.mk: avoid echo -e
23616         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
23617         Convert all uses of echo -* to printf.
23618         Reported by Matthias Bolte.
23619
23620 2010-05-25  Bruno Haible  <bruno@clisp.org>
23621
23622         Update to GNU gettext 0.18, part 2.
23623         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
23624         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
23625
23626 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23627
23628         Add missing include in test-pwrite.c.
23629         * tests/test-pwrite.c: Include string.h, for strcmp.
23630
23631 2010-05-24  Bruno Haible  <bruno@clisp.org>
23632
23633         * NEWS: Mention requirement for Automake option 'subdir-objects'.
23634
23635 2010-05-24  Bruno Haible  <bruno@clisp.org>
23636
23637         Don't use conversion with transliteration in u{8,16,32}_strcoll.
23638         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
23639         iconveh_error argument.
23640         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
23641         U_STRCONV_TO_LOCALE.
23642         * lib/unistr/u16-strcoll.c: Likewise.
23643         * lib/unistr/u32-strcoll.c: Likewise.
23644         * modules/unistr/u8-strcoll (Depends-on): Add
23645         uniconv/u8-strconv-to-enc, localcharset. Remove
23646         uniconv/u8-strconv-to-locale.
23647         (configure.ac): Bump version number.
23648         * modules/unistr/u16-strcoll (Depends-on): Add
23649         uniconv/u16-strconv-to-enc, localcharset. Remove
23650         uniconv/u16-strconv-to-locale.
23651         (configure.ac): Bump version number.
23652         * modules/unistr/u32-strcoll (Depends-on): Add
23653         uniconv/u32-strconv-to-enc, localcharset. Remove
23654         uniconv/u32-strconv-to-locale.
23655         (configure.ac): Bump version number.
23656
23657 2010-05-24  Bruno Haible  <bruno@clisp.org>
23658
23659         Avoid a test failure on NetBSD 5.0.
23660         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
23661         an iconv() bug.
23662
23663 2010-05-24  Bruno Haible  <bruno@clisp.org>
23664
23665         Adjust #include directive style.
23666         * modules/regex (Includes): Recommend to write <regex.h>.
23667
23668 2010-05-24  Bruno Haible  <bruno@clisp.org>
23669
23670         regex: Don't require alloca.
23671         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
23672         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
23673         only inside if (0).
23674
23675 2010-05-23  Jim Meyering  <meyering@redhat.com>
23676
23677         test-renameat.c: include <sys/stat.h>
23678         * tests/test-renameat.c: Include <sys/stat.h>; required for
23679         definition of S_IS* macros.
23680
23681 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
23682
23683         Update maintainer documentation for 'relocatable-prog' module.
23684         * doc/relocatable-maint.texi: Update.
23685         Comments by Bruno Haible.
23686
23687 2010-05-23  Bruno Haible  <bruno@clisp.org>
23688
23689         git-merge-changelog: Enable --split-merged-entry by default.
23690         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
23691         (usage): Don't mention this option any more.
23692         Reported by Ralf Wildenhues.
23693
23694 2010-05-23  Jim Meyering  <meyering@redhat.com>
23695
23696         test-pwrite: do not leave behind a test file named "out"
23697         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
23698         The trivial-looking use of init.sh is really necessary.
23699         It ensures that the temporary file, "out", is created in
23700         a temporary directory, and removed upon termination.
23701         * tests/test-pwrite.sh: Re-add file.
23702         * modules/pwrite-tests: Reference it.
23703
23704 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23705
23706         Fix output redirection buglet in init.sh.
23707         * tests/init.sh: Fix redirection of stderr.
23708
23709 2010-05-20  Simon Josefsson  <simon@josefsson.org>
23710
23711         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
23712
23713 2010-05-17  Simon Josefsson  <simon@josefsson.org>
23714
23715         * modules/valgrind-tests: New file.
23716         * m4/valgrind-tests.m4: New file.
23717         * doc/valgrind-tests.texi: New file.
23718         * doc/gnulib.texi (Running self-tests under valgrind): New
23719         section.
23720
23721 2010-05-19  Bruno Haible  <bruno@clisp.org>
23722
23723         Clean up dead code in recent commit.
23724         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
23725         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
23726         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
23727         Suggested by Paolo Bonzini.
23728
23729 2010-05-19  Bruno Haible  <bruno@clisp.org>
23730
23731         Avoid valgrind error reports from libunistring.
23732         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
23733         * modules/libunistring (Files): Add it.
23734         * modules/libunistring-optional (Files): Likewise.
23735
23736 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
23737             Bruno Haible  <bruno@clisp.org>
23738
23739         New module 'libunistring-optional'.
23740         * modules/libunistring-optional: New file.
23741         * m4/libunistring-base.m4: New file.
23742         * m4/libunistring-optional.m4: New file.
23743         * lib/unicase.in.h: Renamed from lib/unicase.h.
23744         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
23745         * lib/unictype.in.h: Renamed from lib/unictype.h.
23746         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
23747         * lib/uniname.in.h: Renamed from lib/uniname.h.
23748         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
23749         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
23750         * lib/unistr.in.h: Renamed from lib/unistr.h.
23751         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
23752         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
23753         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
23754         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
23755         gl_LIBUNISTRING. If the library was found, determine the installed
23756         version and set LIBUNISTRING_VERSION.
23757         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
23758         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
23759         handle a configuration option --with-included-libunistring.
23760         * modules/libunistring (Files): Add m4/absolute-header.m4.
23761         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
23762         Add m4/libunistring-base.m4.
23763         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23764         (Makefile.am): Build unicase.h from unicase.in.h.
23765         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
23766         Add m4/libunistring-base.m4.
23767         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23768         (Makefile.am): Build uniconv.h from uniconv.in.h.
23769         * modules/unictype/base (Files): Use unictype.in.h instead of
23770         unictype.h. Add m4/libunistring-base.m4.
23771         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23772         (Makefile.am): Build unictype.h from unictype.in.h.
23773         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
23774         Add m4/libunistring-base.m4.
23775         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23776         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
23777         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
23778         Add m4/libunistring-base.m4.
23779         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23780         (Makefile.am): Build uniname.h from uniname.in.h.
23781         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
23782         Add m4/libunistring-base.m4.
23783         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23784         (Makefile.am): Build uninorm.h from uninorm.in.h.
23785         * modules/unistdio/base (Files): Use unistdio.in.h instead of
23786         unistdio.h. Add m4/libunistring-base.m4.
23787         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23788         (Makefile.am): Build unistdio.h from unistdio.in.h.
23789         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
23790         Add m4/libunistring-base.m4.
23791         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23792         (Makefile.am): Build unistr.h from unistr.in.h.
23793         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
23794         Add m4/libunistring-base.m4.
23795         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23796         (Makefile.am): Build unitypes.h from unitypes.in.h.
23797         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
23798         Add m4/libunistring-base.m4.
23799         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23800         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
23801         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
23802         uniwidth.h. Add m4/libunistring-base.m4.
23803         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23804         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
23805         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
23806         instead of augmenting lib_SOURCES.
23807         * modules/unicase/empty-suffix-context: Likewise.
23808         * modules/unicase/locale-language: Likewise.
23809         * modules/unicase/tolower: Likewise.
23810         * modules/unicase/totitle: Likewise.
23811         * modules/unicase/toupper: Likewise.
23812         * modules/unicase/u8-casecmp: Likewise.
23813         * modules/unicase/u8-casecoll: Likewise.
23814         * modules/unicase/u8-casefold: Likewise.
23815         * modules/unicase/u8-casexfrm: Likewise.
23816         * modules/unicase/u8-ct-casefold: Likewise.
23817         * modules/unicase/u8-ct-tolower: Likewise.
23818         * modules/unicase/u8-ct-totitle: Likewise.
23819         * modules/unicase/u8-ct-toupper: Likewise.
23820         * modules/unicase/u8-is-cased: Likewise.
23821         * modules/unicase/u8-is-casefolded: Likewise.
23822         * modules/unicase/u8-is-lowercase: Likewise.
23823         * modules/unicase/u8-is-titlecase: Likewise.
23824         * modules/unicase/u8-is-uppercase: Likewise.
23825         * modules/unicase/u8-prefix-context: Likewise.
23826         * modules/unicase/u8-suffix-context: Likewise.
23827         * modules/unicase/u8-tolower: Likewise.
23828         * modules/unicase/u8-totitle: Likewise.
23829         * modules/unicase/u8-toupper: Likewise.
23830         * modules/unicase/u16-casecmp: Likewise.
23831         * modules/unicase/u16-casecoll: Likewise.
23832         * modules/unicase/u16-casefold: Likewise.
23833         * modules/unicase/u16-casexfrm: Likewise.
23834         * modules/unicase/u16-ct-casefold: Likewise.
23835         * modules/unicase/u16-ct-tolower: Likewise.
23836         * modules/unicase/u16-ct-totitle: Likewise.
23837         * modules/unicase/u16-ct-toupper: Likewise.
23838         * modules/unicase/u16-is-cased: Likewise.
23839         * modules/unicase/u16-is-casefolded: Likewise.
23840         * modules/unicase/u16-is-lowercase: Likewise.
23841         * modules/unicase/u16-is-titlecase: Likewise.
23842         * modules/unicase/u16-is-uppercase: Likewise.
23843         * modules/unicase/u16-prefix-context: Likewise.
23844         * modules/unicase/u16-suffix-context: Likewise.
23845         * modules/unicase/u16-tolower: Likewise.
23846         * modules/unicase/u16-totitle: Likewise.
23847         * modules/unicase/u16-toupper: Likewise.
23848         * modules/unicase/u32-casecmp: Likewise.
23849         * modules/unicase/u32-casecoll: Likewise.
23850         * modules/unicase/u32-casefold: Likewise.
23851         * modules/unicase/u32-casexfrm: Likewise.
23852         * modules/unicase/u32-ct-casefold: Likewise.
23853         * modules/unicase/u32-ct-tolower: Likewise.
23854         * modules/unicase/u32-ct-totitle: Likewise.
23855         * modules/unicase/u32-ct-toupper: Likewise.
23856         * modules/unicase/u32-is-cased: Likewise.
23857         * modules/unicase/u32-is-casefolded: Likewise.
23858         * modules/unicase/u32-is-lowercase: Likewise.
23859         * modules/unicase/u32-is-titlecase: Likewise.
23860         * modules/unicase/u32-is-uppercase: Likewise.
23861         * modules/unicase/u32-prefix-context: Likewise.
23862         * modules/unicase/u32-suffix-context: Likewise.
23863         * modules/unicase/u32-tolower: Likewise.
23864         * modules/unicase/u32-totitle: Likewise.
23865         * modules/unicase/u32-toupper: Likewise.
23866         * modules/unicase/ulc-casecmp: Likewise.
23867         * modules/unicase/ulc-casecoll: Likewise.
23868         * modules/unicase/ulc-casexfrm: Likewise.
23869         * modules/uniconv/u8-conv-from-enc: Likewise.
23870         * modules/uniconv/u8-conv-to-enc: Likewise.
23871         * modules/uniconv/u8-strconv-from-enc: Likewise.
23872         * modules/uniconv/u8-strconv-from-locale: Likewise.
23873         * modules/uniconv/u8-strconv-to-enc: Likewise.
23874         * modules/uniconv/u8-strconv-to-locale: Likewise.
23875         * modules/uniconv/u16-conv-from-enc: Likewise.
23876         * modules/uniconv/u16-conv-to-enc: Likewise.
23877         * modules/uniconv/u16-strconv-from-enc: Likewise.
23878         * modules/uniconv/u16-strconv-from-locale: Likewise.
23879         * modules/uniconv/u16-strconv-to-enc: Likewise.
23880         * modules/uniconv/u16-strconv-to-locale: Likewise.
23881         * modules/uniconv/u32-conv-from-enc: Likewise.
23882         * modules/uniconv/u32-conv-to-enc: Likewise.
23883         * modules/uniconv/u32-strconv-from-enc: Likewise.
23884         * modules/uniconv/u32-strconv-from-locale: Likewise.
23885         * modules/uniconv/u32-strconv-to-enc: Likewise.
23886         * modules/uniconv/u32-strconv-to-locale: Likewise.
23887         * modules/unictype/bidicategory-byname: Likewise.
23888         * modules/unictype/bidicategory-name: Likewise.
23889         * modules/unictype/bidicategory-of: Likewise.
23890         * modules/unictype/bidicategory-test: Likewise.
23891         * modules/unictype/block-list: Likewise.
23892         * modules/unictype/block-test: Likewise.
23893         * modules/unictype/category-C: Likewise.
23894         * modules/unictype/category-Cc: Likewise.
23895         * modules/unictype/category-Cf: Likewise.
23896         * modules/unictype/category-Cn: Likewise.
23897         * modules/unictype/category-Co: Likewise.
23898         * modules/unictype/category-Cs: Likewise.
23899         * modules/unictype/category-L: Likewise.
23900         * modules/unictype/category-Ll: Likewise.
23901         * modules/unictype/category-Lm: Likewise.
23902         * modules/unictype/category-Lo: Likewise.
23903         * modules/unictype/category-Lt: Likewise.
23904         * modules/unictype/category-Lu: Likewise.
23905         * modules/unictype/category-M: Likewise.
23906         * modules/unictype/category-Mc: Likewise.
23907         * modules/unictype/category-Me: Likewise.
23908         * modules/unictype/category-Mn: Likewise.
23909         * modules/unictype/category-N: Likewise.
23910         * modules/unictype/category-Nd: Likewise.
23911         * modules/unictype/category-Nl: Likewise.
23912         * modules/unictype/category-No: Likewise.
23913         * modules/unictype/category-P: Likewise.
23914         * modules/unictype/category-Pc: Likewise.
23915         * modules/unictype/category-Pd: Likewise.
23916         * modules/unictype/category-Pe: Likewise.
23917         * modules/unictype/category-Pf: Likewise.
23918         * modules/unictype/category-Pi: Likewise.
23919         * modules/unictype/category-Po: Likewise.
23920         * modules/unictype/category-Ps: Likewise.
23921         * modules/unictype/category-S: Likewise.
23922         * modules/unictype/category-Sc: Likewise.
23923         * modules/unictype/category-Sk: Likewise.
23924         * modules/unictype/category-Sm: Likewise.
23925         * modules/unictype/category-So: Likewise.
23926         * modules/unictype/category-Z: Likewise.
23927         * modules/unictype/category-Zl: Likewise.
23928         * modules/unictype/category-Zp: Likewise.
23929         * modules/unictype/category-Zs: Likewise.
23930         * modules/unictype/category-and: Likewise.
23931         * modules/unictype/category-and-not: Likewise.
23932         * modules/unictype/category-byname: Likewise.
23933         * modules/unictype/category-name: Likewise.
23934         * modules/unictype/category-none: Likewise.
23935         * modules/unictype/category-of: Likewise.
23936         * modules/unictype/category-or: Likewise.
23937         * modules/unictype/category-test: Likewise.
23938         * modules/unictype/combining-class: Likewise.
23939         * modules/unictype/ctype-alnum: Likewise.
23940         * modules/unictype/ctype-alpha: Likewise.
23941         * modules/unictype/ctype-blank: Likewise.
23942         * modules/unictype/ctype-cntrl: Likewise.
23943         * modules/unictype/ctype-digit: Likewise.
23944         * modules/unictype/ctype-graph: Likewise.
23945         * modules/unictype/ctype-lower: Likewise.
23946         * modules/unictype/ctype-print: Likewise.
23947         * modules/unictype/ctype-punct: Likewise.
23948         * modules/unictype/ctype-space: Likewise.
23949         * modules/unictype/ctype-upper: Likewise.
23950         * modules/unictype/ctype-xdigit: Likewise.
23951         * modules/unictype/decimal-digit: Likewise.
23952         * modules/unictype/digit: Likewise.
23953         * modules/unictype/mirror: Likewise.
23954         * modules/unictype/numeric: Likewise.
23955         * modules/unictype/property-alphabetic: Likewise.
23956         * modules/unictype/property-ascii-hex-digit: Likewise.
23957         * modules/unictype/property-bidi-arabic-digit: Likewise.
23958         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
23959         * modules/unictype/property-bidi-block-separator: Likewise.
23960         * modules/unictype/property-bidi-boundary-neutral: Likewise.
23961         * modules/unictype/property-bidi-common-separator: Likewise.
23962         * modules/unictype/property-bidi-control: Likewise.
23963         * modules/unictype/property-bidi-embedding-or-override: Likewise.
23964         * modules/unictype/property-bidi-eur-num-separator: Likewise.
23965         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
23966         * modules/unictype/property-bidi-european-digit: Likewise.
23967         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
23968         * modules/unictype/property-bidi-left-to-right: Likewise.
23969         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
23970         * modules/unictype/property-bidi-other-neutral: Likewise.
23971         * modules/unictype/property-bidi-pdf: Likewise.
23972         * modules/unictype/property-bidi-segment-separator: Likewise.
23973         * modules/unictype/property-bidi-whitespace: Likewise.
23974         * modules/unictype/property-byname: Likewise.
23975         * modules/unictype/property-combining: Likewise.
23976         * modules/unictype/property-composite: Likewise.
23977         * modules/unictype/property-currency-symbol: Likewise.
23978         * modules/unictype/property-dash: Likewise.
23979         * modules/unictype/property-decimal-digit: Likewise.
23980         * modules/unictype/property-default-ignorable-code-point: Likewise.
23981         * modules/unictype/property-deprecated: Likewise.
23982         * modules/unictype/property-diacritic: Likewise.
23983         * modules/unictype/property-extender: Likewise.
23984         * modules/unictype/property-format-control: Likewise.
23985         * modules/unictype/property-grapheme-base: Likewise.
23986         * modules/unictype/property-grapheme-extend: Likewise.
23987         * modules/unictype/property-grapheme-link: Likewise.
23988         * modules/unictype/property-hex-digit: Likewise.
23989         * modules/unictype/property-hyphen: Likewise.
23990         * modules/unictype/property-id-continue: Likewise.
23991         * modules/unictype/property-id-start: Likewise.
23992         * modules/unictype/property-ideographic: Likewise.
23993         * modules/unictype/property-ids-binary-operator: Likewise.
23994         * modules/unictype/property-ids-trinary-operator: Likewise.
23995         * modules/unictype/property-ignorable-control: Likewise.
23996         * modules/unictype/property-iso-control: Likewise.
23997         * modules/unictype/property-join-control: Likewise.
23998         * modules/unictype/property-left-of-pair: Likewise.
23999         * modules/unictype/property-line-separator: Likewise.
24000         * modules/unictype/property-logical-order-exception: Likewise.
24001         * modules/unictype/property-lowercase: Likewise.
24002         * modules/unictype/property-math: Likewise.
24003         * modules/unictype/property-non-break: Likewise.
24004         * modules/unictype/property-not-a-character: Likewise.
24005         * modules/unictype/property-numeric: Likewise.
24006         * modules/unictype/property-other-alphabetic: Likewise.
24007         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
24008         * modules/unictype/property-other-grapheme-extend: Likewise.
24009         * modules/unictype/property-other-id-continue: Likewise.
24010         * modules/unictype/property-other-id-start: Likewise.
24011         * modules/unictype/property-other-lowercase: Likewise.
24012         * modules/unictype/property-other-math: Likewise.
24013         * modules/unictype/property-other-uppercase: Likewise.
24014         * modules/unictype/property-paired-punctuation: Likewise.
24015         * modules/unictype/property-paragraph-separator: Likewise.
24016         * modules/unictype/property-pattern-syntax: Likewise.
24017         * modules/unictype/property-pattern-white-space: Likewise.
24018         * modules/unictype/property-private-use: Likewise.
24019         * modules/unictype/property-punctuation: Likewise.
24020         * modules/unictype/property-quotation-mark: Likewise.
24021         * modules/unictype/property-radical: Likewise.
24022         * modules/unictype/property-sentence-terminal: Likewise.
24023         * modules/unictype/property-soft-dotted: Likewise.
24024         * modules/unictype/property-space: Likewise.
24025         * modules/unictype/property-terminal-punctuation: Likewise.
24026         * modules/unictype/property-test: Likewise.
24027         * modules/unictype/property-titlecase: Likewise.
24028         * modules/unictype/property-unassigned-code-value: Likewise.
24029         * modules/unictype/property-unified-ideograph: Likewise.
24030         * modules/unictype/property-uppercase: Likewise.
24031         * modules/unictype/property-variation-selector: Likewise.
24032         * modules/unictype/property-white-space: Likewise.
24033         * modules/unictype/property-xid-continue: Likewise.
24034         * modules/unictype/property-xid-start: Likewise.
24035         * modules/unictype/property-zero-width: Likewise.
24036         * modules/unictype/scripts: Likewise.
24037         * modules/unictype/syntax-c-ident: Likewise.
24038         * modules/unictype/syntax-c-whitespace: Likewise.
24039         * modules/unictype/syntax-java-ident: Likewise.
24040         * modules/unictype/syntax-java-whitespace: Likewise.
24041         * modules/unilbrk/u8-possible-linebreaks: Likewise.
24042         * modules/unilbrk/u8-width-linebreaks: Likewise.
24043         * modules/unilbrk/u16-possible-linebreaks: Likewise.
24044         * modules/unilbrk/u16-width-linebreaks: Likewise.
24045         * modules/unilbrk/u32-possible-linebreaks: Likewise.
24046         * modules/unilbrk/u32-width-linebreaks: Likewise.
24047         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
24048         * modules/unilbrk/ulc-width-linebreaks: Likewise.
24049         * modules/uniname/uniname: Likewise.
24050         * modules/uninorm/canonical-decomposition: Likewise.
24051         * modules/uninorm/composition: Likewise.
24052         * modules/uninorm/decomposing-form: Likewise.
24053         * modules/uninorm/decomposition: Likewise.
24054         * modules/uninorm/filter: Likewise.
24055         * modules/uninorm/nfc: Likewise.
24056         * modules/uninorm/nfd: Likewise.
24057         * modules/uninorm/nfkc: Likewise.
24058         * modules/uninorm/nfkd: Likewise.
24059         * modules/uninorm/u8-normalize: Likewise.
24060         * modules/uninorm/u8-normcmp: Likewise.
24061         * modules/uninorm/u8-normcoll: Likewise.
24062         * modules/uninorm/u8-normxfrm: Likewise.
24063         * modules/uninorm/u16-normalize: Likewise.
24064         * modules/uninorm/u16-normcmp: Likewise.
24065         * modules/uninorm/u16-normcoll: Likewise.
24066         * modules/uninorm/u16-normxfrm: Likewise.
24067         * modules/uninorm/u32-normalize: Likewise.
24068         * modules/uninorm/u32-normcmp: Likewise.
24069         * modules/uninorm/u32-normcoll: Likewise.
24070         * modules/uninorm/u32-normxfrm: Likewise.
24071         * modules/unistdio/u8-asnprintf: Likewise.
24072         * modules/unistdio/u8-asprintf: Likewise.
24073         * modules/unistdio/u8-snprintf: Likewise.
24074         * modules/unistdio/u8-sprintf: Likewise.
24075         * modules/unistdio/u8-u8-asnprintf: Likewise.
24076         * modules/unistdio/u8-u8-asprintf: Likewise.
24077         * modules/unistdio/u8-u8-snprintf: Likewise.
24078         * modules/unistdio/u8-u8-sprintf: Likewise.
24079         * modules/unistdio/u8-u8-vasnprintf: Likewise.
24080         * modules/unistdio/u8-u8-vasprintf: Likewise.
24081         * modules/unistdio/u8-u8-vsnprintf: Likewise.
24082         * modules/unistdio/u8-u8-vsprintf: Likewise.
24083         * modules/unistdio/u8-vasnprintf: Likewise.
24084         * modules/unistdio/u8-vasprintf: Likewise.
24085         * modules/unistdio/u8-vsnprintf: Likewise.
24086         * modules/unistdio/u8-vsprintf: Likewise.
24087         * modules/unistdio/u16-asnprintf: Likewise.
24088         * modules/unistdio/u16-asprintf: Likewise.
24089         * modules/unistdio/u16-snprintf: Likewise.
24090         * modules/unistdio/u16-sprintf: Likewise.
24091         * modules/unistdio/u16-u16-asnprintf: Likewise.
24092         * modules/unistdio/u16-u16-asprintf: Likewise.
24093         * modules/unistdio/u16-u16-snprintf: Likewise.
24094         * modules/unistdio/u16-u16-sprintf: Likewise.
24095         * modules/unistdio/u16-u16-vasnprintf: Likewise.
24096         * modules/unistdio/u16-u16-vasprintf: Likewise.
24097         * modules/unistdio/u16-u16-vsnprintf: Likewise.
24098         * modules/unistdio/u16-u16-vsprintf: Likewise.
24099         * modules/unistdio/u16-vasnprintf: Likewise.
24100         * modules/unistdio/u16-vasprintf: Likewise.
24101         * modules/unistdio/u16-vsnprintf: Likewise.
24102         * modules/unistdio/u16-vsprintf: Likewise.
24103         * modules/unistdio/u32-asnprintf: Likewise.
24104         * modules/unistdio/u32-asprintf: Likewise.
24105         * modules/unistdio/u32-snprintf: Likewise.
24106         * modules/unistdio/u32-sprintf: Likewise.
24107         * modules/unistdio/u32-u32-asnprintf: Likewise.
24108         * modules/unistdio/u32-u32-asprintf: Likewise.
24109         * modules/unistdio/u32-u32-snprintf: Likewise.
24110         * modules/unistdio/u32-u32-sprintf: Likewise.
24111         * modules/unistdio/u32-u32-vasnprintf: Likewise.
24112         * modules/unistdio/u32-u32-vasprintf: Likewise.
24113         * modules/unistdio/u32-u32-vsnprintf: Likewise.
24114         * modules/unistdio/u32-u32-vsprintf: Likewise.
24115         * modules/unistdio/u32-vasnprintf: Likewise.
24116         * modules/unistdio/u32-vasprintf: Likewise.
24117         * modules/unistdio/u32-vsnprintf: Likewise.
24118         * modules/unistdio/u32-vsprintf: Likewise.
24119         * modules/unistdio/ulc-asnprintf: Likewise.
24120         * modules/unistdio/ulc-asprintf: Likewise.
24121         * modules/unistdio/ulc-fprintf: Likewise.
24122         * modules/unistdio/ulc-snprintf: Likewise.
24123         * modules/unistdio/ulc-sprintf: Likewise.
24124         * modules/unistdio/ulc-vasnprintf: Likewise.
24125         * modules/unistdio/ulc-vasprintf: Likewise.
24126         * modules/unistdio/ulc-vfprintf: Likewise.
24127         * modules/unistdio/ulc-vsnprintf: Likewise.
24128         * modules/unistdio/ulc-vsprintf: Likewise.
24129         * modules/unistr/u8-check: Likewise.
24130         * modules/unistr/u8-chr: Likewise.
24131         * modules/unistr/u8-cmp: Likewise.
24132         * modules/unistr/u8-cmp2: Likewise.
24133         * modules/unistr/u8-cpy: Likewise.
24134         * modules/unistr/u8-cpy-alloc: Likewise.
24135         * modules/unistr/u8-endswith: Likewise.
24136         * modules/unistr/u8-mblen: Likewise.
24137         * modules/unistr/u8-mbsnlen: Likewise.
24138         * modules/unistr/u8-mbtouc: Likewise.
24139         * modules/unistr/u8-mbtouc-unsafe: Likewise.
24140         * modules/unistr/u8-mbtoucr: Likewise.
24141         * modules/unistr/u8-move: Likewise.
24142         * modules/unistr/u8-next: Likewise.
24143         * modules/unistr/u8-prev: Likewise.
24144         * modules/unistr/u8-set: Likewise.
24145         * modules/unistr/u8-startswith: Likewise.
24146         * modules/unistr/u8-stpcpy: Likewise.
24147         * modules/unistr/u8-stpncpy: Likewise.
24148         * modules/unistr/u8-strcat: Likewise.
24149         * modules/unistr/u8-strchr: Likewise.
24150         * modules/unistr/u8-strcmp: Likewise.
24151         * modules/unistr/u8-strcoll: Likewise.
24152         * modules/unistr/u8-strcpy: Likewise.
24153         * modules/unistr/u8-strcspn: Likewise.
24154         * modules/unistr/u8-strdup: Likewise.
24155         * modules/unistr/u8-strlen: Likewise.
24156         * modules/unistr/u8-strmblen: Likewise.
24157         * modules/unistr/u8-strmbtouc: Likewise.
24158         * modules/unistr/u8-strncat: Likewise.
24159         * modules/unistr/u8-strncmp: Likewise.
24160         * modules/unistr/u8-strncpy: Likewise.
24161         * modules/unistr/u8-strnlen: Likewise.
24162         * modules/unistr/u8-strpbrk: Likewise.
24163         * modules/unistr/u8-strrchr: Likewise.
24164         * modules/unistr/u8-strspn: Likewise.
24165         * modules/unistr/u8-strstr: Likewise.
24166         * modules/unistr/u8-strtok: Likewise.
24167         * modules/unistr/u8-to-u16: Likewise.
24168         * modules/unistr/u8-to-u32: Likewise.
24169         * modules/unistr/u8-uctomb: Likewise.
24170         * modules/unistr/u16-check: Likewise.
24171         * modules/unistr/u16-chr: Likewise.
24172         * modules/unistr/u16-cmp: Likewise.
24173         * modules/unistr/u16-cmp2: Likewise.
24174         * modules/unistr/u16-cpy: Likewise.
24175         * modules/unistr/u16-cpy-alloc: Likewise.
24176         * modules/unistr/u16-endswith: Likewise.
24177         * modules/unistr/u16-mblen: Likewise.
24178         * modules/unistr/u16-mbsnlen: Likewise.
24179         * modules/unistr/u16-mbtouc: Likewise.
24180         * modules/unistr/u16-mbtouc-unsafe: Likewise.
24181         * modules/unistr/u16-mbtoucr: Likewise.
24182         * modules/unistr/u16-move: Likewise.
24183         * modules/unistr/u16-next: Likewise.
24184         * modules/unistr/u16-prev: Likewise.
24185         * modules/unistr/u16-set: Likewise.
24186         * modules/unistr/u16-startswith: Likewise.
24187         * modules/unistr/u16-stpcpy: Likewise.
24188         * modules/unistr/u16-stpncpy: Likewise.
24189         * modules/unistr/u16-strcat: Likewise.
24190         * modules/unistr/u16-strchr: Likewise.
24191         * modules/unistr/u16-strcmp: Likewise.
24192         * modules/unistr/u16-strcoll: Likewise.
24193         * modules/unistr/u16-strcpy: Likewise.
24194         * modules/unistr/u16-strcspn: Likewise.
24195         * modules/unistr/u16-strdup: Likewise.
24196         * modules/unistr/u16-strlen: Likewise.
24197         * modules/unistr/u16-strmblen: Likewise.
24198         * modules/unistr/u16-strmbtouc: Likewise.
24199         * modules/unistr/u16-strncat: Likewise.
24200         * modules/unistr/u16-strncmp: Likewise.
24201         * modules/unistr/u16-strncpy: Likewise.
24202         * modules/unistr/u16-strnlen: Likewise.
24203         * modules/unistr/u16-strpbrk: Likewise.
24204         * modules/unistr/u16-strrchr: Likewise.
24205         * modules/unistr/u16-strspn: Likewise.
24206         * modules/unistr/u16-strstr: Likewise.
24207         * modules/unistr/u16-strtok: Likewise.
24208         * modules/unistr/u16-to-u32: Likewise.
24209         * modules/unistr/u16-to-u8: Likewise.
24210         * modules/unistr/u16-uctomb: Likewise.
24211         * modules/unistr/u32-check: Likewise.
24212         * modules/unistr/u32-chr: Likewise.
24213         * modules/unistr/u32-cmp: Likewise.
24214         * modules/unistr/u32-cmp2: Likewise.
24215         * modules/unistr/u32-cpy: Likewise.
24216         * modules/unistr/u32-cpy-alloc: Likewise.
24217         * modules/unistr/u32-endswith: Likewise.
24218         * modules/unistr/u32-mblen: Likewise.
24219         * modules/unistr/u32-mbsnlen: Likewise.
24220         * modules/unistr/u32-mbtouc: Likewise.
24221         * modules/unistr/u32-mbtouc-unsafe: Likewise.
24222         * modules/unistr/u32-mbtoucr: Likewise.
24223         * modules/unistr/u32-move: Likewise.
24224         * modules/unistr/u32-next: Likewise.
24225         * modules/unistr/u32-prev: Likewise.
24226         * modules/unistr/u32-set: Likewise.
24227         * modules/unistr/u32-startswith: Likewise.
24228         * modules/unistr/u32-stpcpy: Likewise.
24229         * modules/unistr/u32-stpncpy: Likewise.
24230         * modules/unistr/u32-strcat: Likewise.
24231         * modules/unistr/u32-strchr: Likewise.
24232         * modules/unistr/u32-strcmp: Likewise.
24233         * modules/unistr/u32-strcoll: Likewise.
24234         * modules/unistr/u32-strcpy: Likewise.
24235         * modules/unistr/u32-strcspn: Likewise.
24236         * modules/unistr/u32-strdup: Likewise.
24237         * modules/unistr/u32-strlen: Likewise.
24238         * modules/unistr/u32-strmblen: Likewise.
24239         * modules/unistr/u32-strmbtouc: Likewise.
24240         * modules/unistr/u32-strncat: Likewise.
24241         * modules/unistr/u32-strncmp: Likewise.
24242         * modules/unistr/u32-strncpy: Likewise.
24243         * modules/unistr/u32-strnlen: Likewise.
24244         * modules/unistr/u32-strpbrk: Likewise.
24245         * modules/unistr/u32-strrchr: Likewise.
24246         * modules/unistr/u32-strspn: Likewise.
24247         * modules/unistr/u32-strstr: Likewise.
24248         * modules/unistr/u32-strtok: Likewise.
24249         * modules/unistr/u32-to-u16: Likewise.
24250         * modules/unistr/u32-to-u8: Likewise.
24251         * modules/unistr/u32-uctomb: Likewise.
24252         * modules/uniwbrk/u8-wordbreaks: Likewise.
24253         * modules/uniwbrk/u16-wordbreaks: Likewise.
24254         * modules/uniwbrk/u32-wordbreaks: Likewise.
24255         * modules/uniwbrk/ulc-wordbreaks: Likewise.
24256         * modules/uniwbrk/wordbreak-property: Likewise.
24257         * modules/uniwidth/u8-strwidth: Likewise.
24258         * modules/uniwidth/u8-width: Likewise.
24259         * modules/uniwidth/u16-strwidth: Likewise.
24260         * modules/uniwidth/u16-width: Likewise.
24261         * modules/uniwidth/u32-strwidth: Likewise.
24262         * modules/uniwidth/u32-width: Likewise.
24263         * modules/uniwidth/width: Likewise.
24264         * modules/unicase/cased-tests (Makefile.am): Link all test programs
24265         with $(LIBUNISTRING).
24266         * modules/unicase/ignorable-tests: Likewise.
24267         * modules/unicase/locale-language-tests: Likewise.
24268         * modules/unicase/tolower-tests: Likewise.
24269         * modules/unicase/totitle-tests: Likewise.
24270         * modules/unicase/toupper-tests: Likewise.
24271         * modules/unicase/u8-casecmp-tests: Likewise.
24272         * modules/unicase/u8-casecoll-tests: Likewise.
24273         * modules/unicase/u8-casefold-tests: Likewise.
24274         * modules/unicase/u8-is-cased-tests: Likewise.
24275         * modules/unicase/u8-is-casefolded-tests: Likewise.
24276         * modules/unicase/u8-is-lowercase-tests: Likewise.
24277         * modules/unicase/u8-is-titlecase-tests: Likewise.
24278         * modules/unicase/u8-is-uppercase-tests: Likewise.
24279         * modules/unicase/u8-tolower-tests: Likewise.
24280         * modules/unicase/u8-totitle-tests: Likewise.
24281         * modules/unicase/u8-toupper-tests: Likewise.
24282         * modules/unicase/u16-casecmp-tests: Likewise.
24283         * modules/unicase/u16-casecoll-tests: Likewise.
24284         * modules/unicase/u16-casefold-tests: Likewise.
24285         * modules/unicase/u16-is-cased-tests: Likewise.
24286         * modules/unicase/u16-is-casefolded-tests: Likewise.
24287         * modules/unicase/u16-is-lowercase-tests: Likewise.
24288         * modules/unicase/u16-is-titlecase-tests: Likewise.
24289         * modules/unicase/u16-is-uppercase-tests: Likewise.
24290         * modules/unicase/u16-tolower-tests: Likewise.
24291         * modules/unicase/u16-totitle-tests: Likewise.
24292         * modules/unicase/u16-toupper-tests: Likewise.
24293         * modules/unicase/u32-casecmp-tests: Likewise.
24294         * modules/unicase/u32-casecoll-tests: Likewise.
24295         * modules/unicase/u32-casefold-tests: Likewise.
24296         * modules/unicase/u32-is-cased-tests: Likewise.
24297         * modules/unicase/u32-is-casefolded-tests: Likewise.
24298         * modules/unicase/u32-is-lowercase-tests: Likewise.
24299         * modules/unicase/u32-is-titlecase-tests: Likewise.
24300         * modules/unicase/u32-is-uppercase-tests: Likewise.
24301         * modules/unicase/u32-tolower-tests: Likewise.
24302         * modules/unicase/u32-totitle-tests: Likewise.
24303         * modules/unicase/u32-toupper-tests: Likewise.
24304         * modules/unicase/ulc-casecmp-tests: Likewise.
24305         * modules/unicase/ulc-casecoll-tests: Likewise.
24306         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
24307         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
24308         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
24309         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
24310         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
24311         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
24312         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
24313         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
24314         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
24315         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
24316         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
24317         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
24318         * modules/unictype/bidicategory-byname-tests: Likewise.
24319         * modules/unictype/bidicategory-name-tests: Likewise.
24320         * modules/unictype/bidicategory-of-tests: Likewise.
24321         * modules/unictype/bidicategory-test-tests: Likewise.
24322         * modules/unictype/block-list-tests: Likewise.
24323         * modules/unictype/block-of-tests: Likewise.
24324         * modules/unictype/block-test-tests: Likewise.
24325         * modules/unictype/category-C-tests: Likewise.
24326         * modules/unictype/category-Cc-tests: Likewise.
24327         * modules/unictype/category-Cf-tests: Likewise.
24328         * modules/unictype/category-Cn-tests: Likewise.
24329         * modules/unictype/category-Co-tests: Likewise.
24330         * modules/unictype/category-Cs-tests: Likewise.
24331         * modules/unictype/category-L-tests: Likewise.
24332         * modules/unictype/category-Ll-tests: Likewise.
24333         * modules/unictype/category-Lm-tests: Likewise.
24334         * modules/unictype/category-Lo-tests: Likewise.
24335         * modules/unictype/category-Lt-tests: Likewise.
24336         * modules/unictype/category-Lu-tests: Likewise.
24337         * modules/unictype/category-M-tests: Likewise.
24338         * modules/unictype/category-Mc-tests: Likewise.
24339         * modules/unictype/category-Me-tests: Likewise.
24340         * modules/unictype/category-Mn-tests: Likewise.
24341         * modules/unictype/category-N-tests: Likewise.
24342         * modules/unictype/category-Nd-tests: Likewise.
24343         * modules/unictype/category-Nl-tests: Likewise.
24344         * modules/unictype/category-No-tests: Likewise.
24345         * modules/unictype/category-P-tests: Likewise.
24346         * modules/unictype/category-Pc-tests: Likewise.
24347         * modules/unictype/category-Pd-tests: Likewise.
24348         * modules/unictype/category-Pe-tests: Likewise.
24349         * modules/unictype/category-Pf-tests: Likewise.
24350         * modules/unictype/category-Pi-tests: Likewise.
24351         * modules/unictype/category-Po-tests: Likewise.
24352         * modules/unictype/category-Ps-tests: Likewise.
24353         * modules/unictype/category-S-tests: Likewise.
24354         * modules/unictype/category-Sc-tests: Likewise.
24355         * modules/unictype/category-Sk-tests: Likewise.
24356         * modules/unictype/category-Sm-tests: Likewise.
24357         * modules/unictype/category-So-tests: Likewise.
24358         * modules/unictype/category-Z-tests: Likewise.
24359         * modules/unictype/category-Zl-tests: Likewise.
24360         * modules/unictype/category-Zp-tests: Likewise.
24361         * modules/unictype/category-Zs-tests: Likewise.
24362         * modules/unictype/category-and-not-tests: Likewise.
24363         * modules/unictype/category-and-tests: Likewise.
24364         * modules/unictype/category-byname-tests: Likewise.
24365         * modules/unictype/category-name-tests: Likewise.
24366         * modules/unictype/category-none-tests: Likewise.
24367         * modules/unictype/category-of-tests: Likewise.
24368         * modules/unictype/category-or-tests: Likewise.
24369         * modules/unictype/category-test-withtable-tests: Likewise.
24370         * modules/unictype/combining-class-tests: Likewise.
24371         * modules/unictype/ctype-alnum-tests: Likewise.
24372         * modules/unictype/ctype-alpha-tests: Likewise.
24373         * modules/unictype/ctype-blank-tests: Likewise.
24374         * modules/unictype/ctype-cntrl-tests: Likewise.
24375         * modules/unictype/ctype-digit-tests: Likewise.
24376         * modules/unictype/ctype-graph-tests: Likewise.
24377         * modules/unictype/ctype-lower-tests: Likewise.
24378         * modules/unictype/ctype-print-tests: Likewise.
24379         * modules/unictype/ctype-punct-tests: Likewise.
24380         * modules/unictype/ctype-space-tests: Likewise.
24381         * modules/unictype/ctype-upper-tests: Likewise.
24382         * modules/unictype/ctype-xdigit-tests: Likewise.
24383         * modules/unictype/decimal-digit-tests: Likewise.
24384         * modules/unictype/digit-tests: Likewise.
24385         * modules/unictype/mirror-tests: Likewise.
24386         * modules/unictype/numeric-tests: Likewise.
24387         * modules/unictype/property-alphabetic-tests: Likewise.
24388         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
24389         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
24390         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
24391         * modules/unictype/property-bidi-block-separator-tests: Likewise.
24392         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
24393         * modules/unictype/property-bidi-common-separator-tests: Likewise.
24394         * modules/unictype/property-bidi-control-tests: Likewise.
24395         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
24396         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
24397         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
24398         * modules/unictype/property-bidi-european-digit-tests: Likewise.
24399         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
24400         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
24401         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
24402         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
24403         * modules/unictype/property-bidi-pdf-tests: Likewise.
24404         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
24405         * modules/unictype/property-bidi-whitespace-tests: Likewise.
24406         * modules/unictype/property-byname-tests: Likewise.
24407         * modules/unictype/property-combining-tests: Likewise.
24408         * modules/unictype/property-composite-tests: Likewise.
24409         * modules/unictype/property-currency-symbol-tests: Likewise.
24410         * modules/unictype/property-dash-tests: Likewise.
24411         * modules/unictype/property-decimal-digit-tests: Likewise.
24412         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
24413         * modules/unictype/property-deprecated-tests: Likewise.
24414         * modules/unictype/property-diacritic-tests: Likewise.
24415         * modules/unictype/property-extender-tests: Likewise.
24416         * modules/unictype/property-format-control-tests: Likewise.
24417         * modules/unictype/property-grapheme-base-tests: Likewise.
24418         * modules/unictype/property-grapheme-extend-tests: Likewise.
24419         * modules/unictype/property-grapheme-link-tests: Likewise.
24420         * modules/unictype/property-hex-digit-tests: Likewise.
24421         * modules/unictype/property-hyphen-tests: Likewise.
24422         * modules/unictype/property-id-continue-tests: Likewise.
24423         * modules/unictype/property-id-start-tests: Likewise.
24424         * modules/unictype/property-ideographic-tests: Likewise.
24425         * modules/unictype/property-ids-binary-operator-tests: Likewise.
24426         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
24427         * modules/unictype/property-ignorable-control-tests: Likewise.
24428         * modules/unictype/property-iso-control-tests: Likewise.
24429         * modules/unictype/property-join-control-tests: Likewise.
24430         * modules/unictype/property-left-of-pair-tests: Likewise.
24431         * modules/unictype/property-line-separator-tests: Likewise.
24432         * modules/unictype/property-logical-order-exception-tests: Likewise.
24433         * modules/unictype/property-lowercase-tests: Likewise.
24434         * modules/unictype/property-math-tests: Likewise.
24435         * modules/unictype/property-non-break-tests: Likewise.
24436         * modules/unictype/property-not-a-character-tests: Likewise.
24437         * modules/unictype/property-numeric-tests: Likewise.
24438         * modules/unictype/property-other-alphabetic-tests: Likewise.
24439         * modules/unictype/property-other-default-ignorable-code-point-tests:
24440         Likewise.
24441         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
24442         * modules/unictype/property-other-id-continue-tests: Likewise.
24443         * modules/unictype/property-other-id-start-tests: Likewise.
24444         * modules/unictype/property-other-lowercase-tests: Likewise.
24445         * modules/unictype/property-other-math-tests: Likewise.
24446         * modules/unictype/property-other-uppercase-tests: Likewise.
24447         * modules/unictype/property-paired-punctuation-tests: Likewise.
24448         * modules/unictype/property-paragraph-separator-tests: Likewise.
24449         * modules/unictype/property-pattern-syntax-tests: Likewise.
24450         * modules/unictype/property-pattern-white-space-tests: Likewise.
24451         * modules/unictype/property-private-use-tests: Likewise.
24452         * modules/unictype/property-punctuation-tests: Likewise.
24453         * modules/unictype/property-quotation-mark-tests: Likewise.
24454         * modules/unictype/property-radical-tests: Likewise.
24455         * modules/unictype/property-sentence-terminal-tests: Likewise.
24456         * modules/unictype/property-soft-dotted-tests: Likewise.
24457         * modules/unictype/property-space-tests: Likewise.
24458         * modules/unictype/property-terminal-punctuation-tests: Likewise.
24459         * modules/unictype/property-test-tests: Likewise.
24460         * modules/unictype/property-titlecase-tests: Likewise.
24461         * modules/unictype/property-unassigned-code-value-tests: Likewise.
24462         * modules/unictype/property-unified-ideograph-tests: Likewise.
24463         * modules/unictype/property-uppercase-tests: Likewise.
24464         * modules/unictype/property-variation-selector-tests: Likewise.
24465         * modules/unictype/property-white-space-tests: Likewise.
24466         * modules/unictype/property-xid-continue-tests: Likewise.
24467         * modules/unictype/property-xid-start-tests: Likewise.
24468         * modules/unictype/property-zero-width-tests: Likewise.
24469         * modules/unictype/scripts-tests: Likewise.
24470         * modules/unictype/syntax-c-ident-tests: Likewise.
24471         * modules/unictype/syntax-c-whitespace-tests: Likewise.
24472         * modules/unictype/syntax-java-ident-tests: Likewise.
24473         * modules/unictype/syntax-java-whitespace-tests: Likewise.
24474         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
24475         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
24476         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
24477         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
24478         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
24479         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
24480         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
24481         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
24482         * modules/uniname/uniname-tests: Likewise.
24483         * modules/uninorm/canonical-decomposition-tests: Likewise.
24484         * modules/uninorm/compat-decomposition-tests: Likewise.
24485         * modules/uninorm/composition-tests: Likewise.
24486         * modules/uninorm/decomposing-form-tests: Likewise.
24487         * modules/uninorm/decomposition-tests: Likewise.
24488         * modules/uninorm/filter-tests: Likewise.
24489         * modules/uninorm/nfc-tests: Likewise.
24490         * modules/uninorm/nfd-tests: Likewise.
24491         * modules/uninorm/nfkc-tests: Likewise.
24492         * modules/uninorm/nfkd-tests: Likewise.
24493         * modules/uninorm/u8-normcmp-tests: Likewise.
24494         * modules/uninorm/u8-normcoll-tests: Likewise.
24495         * modules/uninorm/u16-normcmp-tests: Likewise.
24496         * modules/uninorm/u16-normcoll-tests: Likewise.
24497         * modules/uninorm/u32-normcmp-tests: Likewise.
24498         * modules/uninorm/u32-normcoll-tests: Likewise.
24499         * modules/unistdio/u8-asnprintf-tests: Likewise.
24500         * modules/unistdio/u8-vasnprintf-tests: Likewise.
24501         * modules/unistdio/u8-vasprintf-tests: Likewise.
24502         * modules/unistdio/u8-vsnprintf-tests: Likewise.
24503         * modules/unistdio/u8-vsprintf-tests: Likewise.
24504         * modules/unistdio/u16-asnprintf-tests: Likewise.
24505         * modules/unistdio/u16-vasnprintf-tests: Likewise.
24506         * modules/unistdio/u16-vasprintf-tests: Likewise.
24507         * modules/unistdio/u16-vsnprintf-tests: Likewise.
24508         * modules/unistdio/u16-vsprintf-tests: Likewise.
24509         * modules/unistdio/u32-asnprintf-tests: Likewise.
24510         * modules/unistdio/u32-vasnprintf-tests: Likewise.
24511         * modules/unistdio/u32-vasprintf-tests: Likewise.
24512         * modules/unistdio/u32-vsnprintf-tests: Likewise.
24513         * modules/unistdio/u32-vsprintf-tests: Likewise.
24514         * modules/unistdio/ulc-asnprintf-tests: Likewise.
24515         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
24516         * modules/unistdio/ulc-vasprintf-tests: Likewise.
24517         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
24518         * modules/unistdio/ulc-vsprintf-tests: Likewise.
24519         * modules/unistr/u8-check-tests: Likewise.
24520         * modules/unistr/u8-chr-tests: Likewise.
24521         * modules/unistr/u8-cmp-tests: Likewise.
24522         * modules/unistr/u8-cmp2-tests: Likewise.
24523         * modules/unistr/u8-cpy-alloc-tests: Likewise.
24524         * modules/unistr/u8-cpy-tests: Likewise.
24525         * modules/unistr/u8-mblen-tests: Likewise.
24526         * modules/unistr/u8-mbsnlen-tests: Likewise.
24527         * modules/unistr/u8-mbtouc-tests: Likewise.
24528         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
24529         * modules/unistr/u8-mbtoucr-tests: Likewise.
24530         * modules/unistr/u8-move-tests: Likewise.
24531         * modules/unistr/u8-next-tests: Likewise.
24532         * modules/unistr/u8-prev-tests: Likewise.
24533         * modules/unistr/u8-set-tests: Likewise.
24534         * modules/unistr/u8-stpcpy-tests: Likewise.
24535         * modules/unistr/u8-stpncpy-tests: Likewise.
24536         * modules/unistr/u8-strcat-tests: Likewise.
24537         * modules/unistr/u8-strcmp-tests: Likewise.
24538         * modules/unistr/u8-strcoll-tests: Likewise.
24539         * modules/unistr/u8-strcpy-tests: Likewise.
24540         * modules/unistr/u8-strdup-tests: Likewise.
24541         * modules/unistr/u8-strlen-tests: Likewise.
24542         * modules/unistr/u8-strmblen-tests: Likewise.
24543         * modules/unistr/u8-strmbtouc-tests: Likewise.
24544         * modules/unistr/u8-strncat-tests: Likewise.
24545         * modules/unistr/u8-strncmp-tests: Likewise.
24546         * modules/unistr/u8-strncpy-tests: Likewise.
24547         * modules/unistr/u8-strnlen-tests: Likewise.
24548         * modules/unistr/u8-to-u16-tests: Likewise.
24549         * modules/unistr/u8-to-u32-tests: Likewise.
24550         * modules/unistr/u8-uctomb-tests: Likewise.
24551         * modules/unistr/u16-check-tests: Likewise.
24552         * modules/unistr/u16-chr-tests: Likewise.
24553         * modules/unistr/u16-cmp-tests: Likewise.
24554         * modules/unistr/u16-cmp2-tests: Likewise.
24555         * modules/unistr/u16-cpy-alloc-tests: Likewise.
24556         * modules/unistr/u16-cpy-tests: Likewise.
24557         * modules/unistr/u16-mblen-tests: Likewise.
24558         * modules/unistr/u16-mbsnlen-tests: Likewise.
24559         * modules/unistr/u16-mbtouc-tests: Likewise.
24560         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
24561         * modules/unistr/u16-mbtoucr-tests: Likewise.
24562         * modules/unistr/u16-move-tests: Likewise.
24563         * modules/unistr/u16-next-tests: Likewise.
24564         * modules/unistr/u16-prev-tests: Likewise.
24565         * modules/unistr/u16-set-tests: Likewise.
24566         * modules/unistr/u16-stpcpy-tests: Likewise.
24567         * modules/unistr/u16-stpncpy-tests: Likewise.
24568         * modules/unistr/u16-strcat-tests: Likewise.
24569         * modules/unistr/u16-strcmp-tests: Likewise.
24570         * modules/unistr/u16-strcoll-tests: Likewise.
24571         * modules/unistr/u16-strcpy-tests: Likewise.
24572         * modules/unistr/u16-strdup-tests: Likewise.
24573         * modules/unistr/u16-strlen-tests: Likewise.
24574         * modules/unistr/u16-strmblen-tests: Likewise.
24575         * modules/unistr/u16-strmbtouc-tests: Likewise.
24576         * modules/unistr/u16-strncat-tests: Likewise.
24577         * modules/unistr/u16-strncmp-tests: Likewise.
24578         * modules/unistr/u16-strncpy-tests: Likewise.
24579         * modules/unistr/u16-strnlen-tests: Likewise.
24580         * modules/unistr/u16-to-u32-tests: Likewise.
24581         * modules/unistr/u16-to-u8-tests: Likewise.
24582         * modules/unistr/u16-uctomb-tests: Likewise.
24583         * modules/unistr/u32-check-tests: Likewise.
24584         * modules/unistr/u32-chr-tests: Likewise.
24585         * modules/unistr/u32-cmp-tests: Likewise.
24586         * modules/unistr/u32-cmp2-tests: Likewise.
24587         * modules/unistr/u32-cpy-alloc-tests: Likewise.
24588         * modules/unistr/u32-cpy-tests: Likewise.
24589         * modules/unistr/u32-mblen-tests: Likewise.
24590         * modules/unistr/u32-mbsnlen-tests: Likewise.
24591         * modules/unistr/u32-mbtouc-tests: Likewise.
24592         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
24593         * modules/unistr/u32-mbtoucr-tests: Likewise.
24594         * modules/unistr/u32-move-tests: Likewise.
24595         * modules/unistr/u32-next-tests: Likewise.
24596         * modules/unistr/u32-prev-tests: Likewise.
24597         * modules/unistr/u32-set-tests: Likewise.
24598         * modules/unistr/u32-stpcpy-tests: Likewise.
24599         * modules/unistr/u32-stpncpy-tests: Likewise.
24600         * modules/unistr/u32-strcat-tests: Likewise.
24601         * modules/unistr/u32-strcmp-tests: Likewise.
24602         * modules/unistr/u32-strcoll-tests: Likewise.
24603         * modules/unistr/u32-strcpy-tests: Likewise.
24604         * modules/unistr/u32-strdup-tests: Likewise.
24605         * modules/unistr/u32-strlen-tests: Likewise.
24606         * modules/unistr/u32-strmblen-tests: Likewise.
24607         * modules/unistr/u32-strmbtouc-tests: Likewise.
24608         * modules/unistr/u32-strncat-tests: Likewise.
24609         * modules/unistr/u32-strncmp-tests: Likewise.
24610         * modules/unistr/u32-strncpy-tests: Likewise.
24611         * modules/unistr/u32-strnlen-tests: Likewise.
24612         * modules/unistr/u32-to-u16-tests: Likewise.
24613         * modules/unistr/u32-to-u8-tests: Likewise.
24614         * modules/unistr/u32-uctomb-tests: Likewise.
24615         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
24616         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
24617         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
24618         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
24619         * modules/uniwidth/u8-strwidth-tests: Likewise.
24620         * modules/uniwidth/u8-width-tests: Likewise.
24621         * modules/uniwidth/u16-strwidth-tests: Likewise.
24622         * modules/uniwidth/u16-width-tests: Likewise.
24623         * modules/uniwidth/u32-strwidth-tests: Likewise.
24624         * modules/uniwidth/u32-width-tests: Likewise.
24625         * modules/uniwidth/width-tests: Likewise.
24626
24627 2010-05-18  Richard Jones  <rjones@redhat.com>
24628
24629         doc: users.txt: list hivex
24630         * users.txt: Add hivex.
24631
24632 2010-05-18  Richard Jones  <rjones@redhat.com>
24633
24634         doc: users.txt: list febootstrap
24635         * users.txt: Add febootstrap.
24636
24637 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
24638
24639         bootstrap: fix an error when gnulib is not used as a git submodule
24640         * build-aux/bootstrap (gnulib_path): If its length is zero then
24641         assign "gnulib" to it.
24642         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
24643
24644 2010-05-16  Bruno Haible  <bruno@clisp.org>
24645
24646         Avoid autoconf warnings about AM_ICONV.
24647         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
24648         2.64.
24649
24650 2010-05-16  Bruno Haible  <bruno@clisp.org>
24651
24652         absolute-header: Make the macro usable in more situations.
24653         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
24654         from gl_ABSOLUTE_HEADER.
24655         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
24656
24657 2010-05-16  James Youngman  <jay@gnu.org>
24658
24659         doc: update users.txt
24660         * users.txt: Add CSSC.
24661
24662 2010-05-16  Jim Meyering  <meyering@redhat.com>
24663
24664         init.sh: fix an error in the previous change; add more comments
24665         * tests/init.sh: Compare exit code in loop against 9, not 2.
24666         Patch by Bruno Haible.
24667         Make the two tests more similar by adding an empty "then" clause.
24668         Add comments.
24669
24670         init.sh: avoid unnecessary shell re-exec
24671         * tests/init.sh: Improve the re-exec-required check to first test the
24672         current shell.  If it passes the test, do not search for a shell that
24673         does pass, and do not re-exec.  This test is particularly contorted to
24674         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
24675         of $(...) evokes a syntax error and causes immediate shell exit with
24676         status 2.  Bruno Haible reported that the re-exec made it impossible
24677         to single-step through any init.sh-using script.
24678
24679 2010-05-16  Bruno Haible  <bruno@clisp.org>
24680
24681         Fix collision between gnulib's and libintl's printf replacements.
24682         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
24683         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
24684         (printf): When using GNU C, map the __printf__ function to rpl_printf
24685         via __asm__. When not using GNU C, define rpl_printf instead of
24686         __printf__.
24687         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
24688         commit.
24689         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
24690         commit.
24691         * m4/asm-underscore.m4: New file.
24692         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
24693         * modules/stdio (Files): Add m4/asm-underscore.m4.
24694         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
24695         Reported by Ben Pfaff.
24696
24697 2010-05-16  Bruno Haible  <bruno@clisp.org>
24698
24699         verify: Avoid skipping the test on openSUSE 11.0.
24700         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
24701
24702 2010-05-13  Bruno Haible  <bruno@clisp.org>
24703
24704         Avoid useless warnings from G++.
24705         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
24706         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
24707         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24708
24709 2010-05-11  Jim Meyering  <meyering@redhat.com>
24710
24711         maint.mk: tweak preceding change
24712         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
24713         regexps tighter by anchoring at EOL, and make the new group "shy"
24714         for slightly decreased overhead.
24715
24716 2010-05-11  Eric Blake  <eblake@redhat.com>
24717
24718         maint.mk: gnulib doesn't guarantee NSIG
24719         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
24720
24721 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24722
24723         test-pwrite.c: Remove unused variable declaration.
24724         * tests/test-pwrite.c (main): Remove read_buf declaration.
24725
24726         Remove useless test-pwrite.sh file.
24727         * tests/test-pwrite.sh: Delete file.
24728         * modules/pwrite-tests: Remove references.
24729         Reported by Bruno Haible.
24730
24731 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24732
24733         init.sh: fix a typo
24734         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
24735
24736 2010-05-10  Jim Meyering  <meyering@redhat.com>
24737
24738         maint.mk: avoid using a temporary file in the always-defined-macros check
24739         * top/maint.mk (.re-defmac): Remove rule.
24740         (gl_trap_): Remove definition.
24741         (sc_prohibit_always-defined_macros): Rewrite not to create and
24742         depend on a temporary file.  Instead, depend on GNU grep's ability
24743         to read a list of regular expressions from stdin when given "-f -".
24744
24745 2010-05-09  Bruno Haible  <bruno@clisp.org>
24746
24747         Update to GNU gettext 0.18, part 1.
24748         * m4/gettext.m4: Update to GNU gettext 0.18.
24749         * m4/intl.m4: Likewise.
24750         * m4/po.m4: Likewise.
24751         * modules/gettext (Files): Add m4/fcntl-o.m4.
24752         (configure.ac): Require gettext infrastructure from version 0.18.
24753
24754 2010-05-09  Jim Meyering  <meyering@redhat.com>
24755
24756         init.sh: enable MALLOC_PERTURB_
24757         * tests/init.sh: Enable glibc's malloc-perturbing option.
24758
24759         maint.mk: improve sc_cross_check_PATH_usage_in_tests
24760         With my recent change in init.sh from the two-line form:
24761             -#   : ${srcdir=.}
24762             -#   . "$srcdir/init.sh"; path_prepend_ .
24763             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
24764         I noticed that using the one-line form would cause this test
24765         to fail with a false-positive, or to stop working altogether,
24766         depending on whether help-version changed or all the tests did.
24767         * top/maint.mk (_hv_regex): Remove this definition.
24768         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
24769         (_hv_regex_strong): Use a stronger regex to check for conformance.
24770         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
24771         Give a separate diagnostic for lack of conforming use.
24772
24773         maint.mk: prohibit definition of symbols defined by gnulib
24774         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
24775         definition of symbols defined by gnulib.
24776
24777 2010-05-09  Bruno Haible  <bruno@clisp.org>
24778
24779         acl: Avoid test failure on Cygwin-hosted mingw.
24780         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
24781
24782 2010-05-09  Bruno Haible  <bruno@clisp.org>
24783
24784         error: Use system's fcntl function.
24785         * lib/error.c (fcntl): Undefine.
24786
24787 2010-05-09  Jim Meyering  <meyering@redhat.com>
24788
24789         verify: adjust formatting to be more consistent
24790         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
24791         argument-list '('s, and after one comma.
24792
24793 2010-05-09  Bruno Haible  <bruno@clisp.org>
24794
24795         error: More reliable output on mingw.
24796         * lib/error.c: Include <windows.h>.
24797         (is_open): New function.
24798         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
24799         defined.
24800
24801 2010-05-09  Bruno Haible  <bruno@clisp.org>
24802
24803         vasnprintf: Fix syntax errors in libintl build on mingw.
24804         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
24805         pad_ourselves and prec_ourselves after use.
24806
24807 2010-05-08  Bruno Haible  <bruno@clisp.org>
24808
24809         * lib/config.charset: Update comments for Cygwin 1.7.
24810         * lib/localcharset.c: Likewise.
24811
24812 2010-05-07  Jim Meyering  <meyering@redhat.com>
24813
24814         init.sh: improve comments
24815         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
24816         . "${srcdir=.}/init.sh"; path_prepend_ .
24817         Add a note about path_prepend_ and the alternative of using
24818         TESTS_ENVIRONMENT.
24819
24820 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24821
24822         exclude: Unescape hashed patterns in wildcard mode.
24823         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
24824         to the hash list.
24825         * tests/test-exclude8.sh: New test case.
24826         * modules/exclude-tests: Add new test.
24827
24828 2010-05-05  Eric Blake  <eblake@redhat.com>
24829
24830         verify: automate tests
24831         * modules/verify-tests: New module.
24832         * tests/test-verify.sh: New file.
24833         * tests/test-verify.c: Guard each negative test with a unique id.
24834         Also avoid warning about unused left hand of comma expressions.
24835
24836 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
24837
24838         Further improvements to verify.h, suggested by Eric Blake.
24839         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
24840         the GL_* versions, to avoid collision with OpenGL.
24841         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
24842         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
24843         than testing merely whether it's defined.
24844
24845         Modify verify.h to pacify gcc -Wredundant_decls.
24846         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
24847         These use the prefix "GL_" since they're likely to be useful elsewhere.
24848         We may need to break them out into a different .h file.
24849         (__COUNTER__): Define to 0 if the compiler doesn't support it.
24850         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
24851         of verify_function__.
24852
24853 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24854
24855         Tests for module pwrite.
24856         * modules/pwrite-tests: New file.
24857         * tests/test-pwrite.sh: New file.
24858         * tests/test-pwrite.c: New file.
24859
24860         New module pwrite.
24861         * lib/unistd.in.h (pwrite): New declaration.
24862         * lib/pwrite.c: New file, from glibc with modifications.
24863         * m4/pwrite.m4: New file.
24864         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
24865         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
24866         REPLACE_PWRITE.
24867         * modules/pwrite: New file.
24868         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
24869         REPLACE_PWRITE.
24870         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
24871         * doc/posix-functions/pwrite.texi: Mention the new module.
24872
24873 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24874
24875         pread: Update documentation.
24876         * doc/posix-functions/pread.texi: Mention the 'pread' module.
24877
24878 2010-05-04  Eric Blake  <eblake@redhat.com>
24879
24880         docs: update cygwin progress
24881         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
24882         this bug.
24883         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
24884         Added in cygwin 1.7.2.
24885         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
24886         Likewise.
24887         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
24888         Likewise.
24889         * doc/glibc-functions/dup3.texi (dup3): Likewise.
24890         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
24891         * doc/glibc-functions/accept4.texi (accept4): Likewise.
24892         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
24893         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
24894         Mention nproc module.
24895         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
24896         bug in cygwin 1.7.5 addition.
24897         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
24898         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
24899         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
24900         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
24901         1.7.5.
24902         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
24903         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
24904         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
24905         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
24906         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
24907         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
24908         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
24909         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
24910         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
24911         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
24912         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
24913         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
24914         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
24915         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
24916         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
24917         Likewise.
24918         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
24919         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
24920         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
24921         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
24922         Likewise.
24923         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
24924         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
24925         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
24926         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
24927         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
24928         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
24929         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
24930         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
24931         Likewise.
24932         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
24933         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
24934         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
24935         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
24936         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
24937         Likewise.
24938         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
24939         Likewise.
24940         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
24941         Likewise.
24942         * doc/glibc-functions/xdrrec_endofrecord.texi
24943         (xdrrec_endofrecord): Likewise.
24944         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
24945         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
24946         Likewise.
24947         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
24948         Likewise.
24949
24950 2010-05-04  Jim Meyering  <meyering@redhat.com>
24951
24952         gendocs.sh: make its "-s FILE" option more useful
24953         * build-aux/gendocs.sh: When honoring the -s FILE option, update
24954         $PACKAGE to reflect the probably-different basename of "FILE".
24955
24956 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
24957
24958         bootstrap: don't ignore download_po_files failure
24959         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
24960         failure.
24961
24962 2010-05-03  Jim Meyering  <meyering@redhat.com>
24963
24964         maint.mk: allow to pass options to gendocs.sh
24965         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
24966         (gendocs_options_): New overridable variable.
24967
24968         gnu-web-doc-update: don't ignore configure or build failure
24969         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
24970
24971         announce-gen: backslash-escape '@'s in --help output
24972         * build-aux/announce-gen: Fix syntax errors.
24973
24974         maint.mk, announce-gen: allow project-specific announcement mail headers
24975         * top/maint.mk (translation_project_): Define default.
24976         (announcement_Cc_, announcement_mail_headers_): Likewise.
24977         (announcement): Invoke announce-gen with new --mail-headers option.
24978         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
24979
24980         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
24981         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
24982         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
24983         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
24984         line in the "err2" output file when running "make check" in verbose
24985         mode (i.e., with set -x enabled).
24986
24987 2010-05-03  Bruno Haible  <bruno@clisp.org>
24988
24989         wctob: Fix for weird platforms.
24990         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
24991         argument value.
24992
24993 2010-05-03  Jim Meyering  <meyering@redhat.com>
24994
24995         maint.mk: prohibit unwarranted use of <strings.h>
24996         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
24997         strings.h in a file that does not also use strcasecmp, strncasecmp,
24998         ffs or ffsll.
24999
25000         maint.mk: remove obsolete comments
25001         * top/maint.mk: Remove stale, commented-out rules.
25002
25003 2010-05-02  Bruno Haible  <bruno@clisp.org>
25004
25005         wcwidth: Declare also when it's aliased.
25006         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
25007         macro.
25008
25009 2010-05-02  Bruno Haible  <bruno@clisp.org>
25010
25011         Fix regression from 2010-04-25.
25012         * gnulib-tool (func_modules_transitive_closure): Check the status of
25013         all modules, not only of the tests that are of the form foo-tests where
25014         foo is a module.
25015
25016 2010-05-02  Bruno Haible  <bruno@clisp.org>
25017
25018         wctob: Work around nasty Cygwin 1.7.2 bug.
25019         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
25020         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
25021
25022 2010-05-01  Bruno Haible  <bruno@clisp.org>
25023
25024         fpurge: Sharper test.
25025         * tests/test-fpurge.c (main): Add one more ftell check.
25026         * modules/fpurge-tests (Depends-on): Add ftell.
25027         Suggested by Eric Blake.
25028
25029 2010-05-01  Bruno Haible  <bruno@clisp.org>
25030
25031         ftello: Another test.
25032         * tests/test-ftello3.c: New file.
25033         * modules/ftello-tests (Files): Add it.
25034         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
25035         MOSTLYCLEANFILES.
25036
25037         ftell: Another test.
25038         * tests/test-ftell3.c: New file.
25039         * modules/ftell-tests (Files): Add it.
25040         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
25041         MOSTLYCLEANFILES.
25042
25043 2010-05-01  Bruno Haible  <bruno@clisp.org>
25044
25045         ftell, ftello: Work around Solaris bug.
25046         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
25047         * lib/ftello.c: Include stdio-impl.h.
25048         (ftello): On Solaris, when _IOWRT is set, compute the result without
25049         looking at _IOREAD.
25050         * modules/ftello (Files): Add lib/stdio-impl.h.
25051         * doc/posix-functions/ftell.texi: Mention Solaris bug.
25052         * doc/posix-functions/ftello.texi: Likewise.
25053         Reported by Eric Blake.
25054
25055 2010-05-01  Bruno Haible  <bruno@clisp.org>
25056
25057         freading: Adapt to special meaning of _IOREAD flag on Solaris.
25058         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
25059         the _IOWRT flag is also set.
25060
25061 2010-05-01  Bruno Haible  <bruno@clisp.org>
25062
25063         Fix doc about a HP-UX stdio bug.
25064         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
25065         * doc/posix-functions/ftello.texi: Likewise.
25066
25067 2010-05-01  Bruno Haible  <bruno@clisp.org>
25068
25069         lseek test: Fix failure on Solaris.
25070         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
25071         output.
25072
25073 2010-04-30  Jim Meyering  <meyering@redhat.com>
25074
25075         bootstrap: don't ignore failure to generate po*/Makevars
25076         * build-aux/bootstrap (with_gettext): Don't ignore failure
25077         to create po/Makevars or runtime-po/Makevars.
25078
25079 2010-04-29  Eric Blake  <eblake@redhat.com>
25080
25081         headers: relax license to LGPLv2+
25082         * modules/fcntl-h (License): Relax license.
25083         * modules/getopt-posix (License): Likewise.
25084         * modules/locale (License): Likewise.
25085         * modules/math (License): Likewise.
25086         * modules/pty (License): Likewise.
25087         * modules/sched (License): Likewise.
25088         * modules/search (License): Likewise.
25089         * modules/spawn (License): Likewise.
25090         * modules/stdarg (License): Likewise.
25091         * modules/sysexits (License): Likewise.
25092
25093 2010-04-29  Jim Meyering  <meyering@redhat.com>
25094
25095         inttypes: relax license to LGPLv2+
25096         * modules/inttypes (License): Relax license.
25097
25098 2010-04-29  Simon Josefsson  <simon@josefsson.org>
25099
25100         * top/maint.mk (indent): Run twice to produce idempotent results.
25101
25102 2010-04-28  Bruno Haible  <bruno@clisp.org>
25103
25104         getdate: Generate getdate.c in the source directory.
25105         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
25106         MOSTLYCLEANFILES.
25107         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
25108
25109 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
25110
25111         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
25112         is not declared as a const *; avoid warnings in that case.
25113
25114 2010-04-28  Eric Blake  <eblake@redhat.com>
25115
25116         canonicalize-lgpl: avoid compiler warning
25117         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
25118         declaration' / 'extraneous semicolon' warning with some compilers.
25119         Reported by Andreas Gruenbacher.
25120
25121 2010-04-28  Jim Meyering  <meyering@redhat.com>
25122
25123         init.sh: ensure a more reliable exit status when exiting via trap
25124         * tests/init.sh (setup_): Don't rely on $? in signal handler.
25125         Inspired by patches from Dmitry V. Levin.
25126         Also trap on signal 3 (SIGQUIT).
25127
25128 2010-04-27  Bruno Haible  <bruno@clisp.org>
25129
25130         Update doc about utimes().
25131         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
25132         'utimens' module.
25133         Reported by Andreas Gruenbacher <agruen@suse.de>.
25134
25135 2010-04-27  Eric Blake  <eblake@redhat.com>
25136
25137         full-read, full-write: relax license
25138         * modules/full-read (License): Drop to LGPLv2+.
25139         * modules/full-write (License): Likewise.
25140         * modules/safe-read (License): Likewise.
25141         * modules/safe-write (License): Likewise.
25142
25143         pthread: mention library for linking
25144         * modules/pthread (Link): Mention $(LIB_PTHREAD).
25145
25146 2010-04-27  Jim Meyering  <meyering@redhat.com>
25147
25148         maint.mk: fix a bug introduced in last change
25149         * top/maint.mk (gl_assured_headers_): Now that all names are on
25150         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
25151         is not anchored to end of word, it should be adequate.
25152
25153         maint.mk: avoid side-effect in latest syntax-check
25154         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
25155         to run commands via $(shell...), and hence to incur cost only when
25156         the new rule is actually run.
25157
25158         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
25159         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
25160         and use that to create a regexp used to detect all #if HAVE_..._H uses.
25161         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
25162         (gl_assured_headers_, az_, AZ_): Define.
25163         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
25164
25165 2010-04-26  Jim Meyering  <jim@meyering.net>
25166             Bruno Haible  <bruno@clisp.org>
25167
25168         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
25169         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
25170         Prompted by an exchange with Gilles Espinasse.
25171
25172 2010-04-26  Jim Meyering  <meyering@redhat.com>
25173
25174         git-version-gen: aesthetic tweak
25175         * build-aux/git-version-gen: Use "$nl" rather than a literal,
25176         so that the command remains on a single line.
25177
25178 2010-04-26  Eric Blake  <eblake@redhat.com>
25179
25180         git-version-gen: allow use on EBCDIC hosts
25181         * build-aux/git-version-gen (dirty): Use literal rather than tying
25182         ourselves to ascii.
25183         Reported by Steve Goetze.
25184
25185 2010-04-25  Bruno Haible  <bruno@clisp.org>
25186
25187         netdb: Add support for GNULIB_POSIXCHECK.
25188         * lib/netdb.in.h: Include warn-on-use.h.
25189         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
25190         functions are used when GNULIB_POSIXCHECK is defined and the
25191         getaddrinfo module is not in use.
25192         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
25193         freeaddrinfo, gai_strerror, getnameinfo are declared.
25194         * modules/netdb (Depends-on): Add warn-on-use.
25195         (Makefile.am): Include warn-on-use.h in netdb.h.
25196
25197 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
25198
25199         build: avoid "make check" failure without .git/ directory
25200         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
25201         there is no .git/ directory.
25202
25203 2010-04-25  Bruno Haible  <bruno@clisp.org>
25204
25205         ptsname: Fix misuse of ttyname_r.
25206         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
25207         of errno.
25208
25209 2010-04-25  Bruno Haible  <bruno@clisp.org>
25210
25211         ttyname_r: Make it work on Solaris 10.
25212         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
25213         if the system function has the POSIX declaration. Test whether the
25214         function fails if the buffer is less than 128 bytes large.
25215         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
25216         system's ttyname_r function. Provide a reasonably large buffer.
25217         * modules/ttyname_r (Depends-on): Add extensions.
25218         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
25219
25220 2010-04-25  Bruno Haible  <bruno@clisp.org>
25221
25222         Use the 'extensions' module for some more functions on Solaris.
25223         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
25224         module.
25225         * doc/posix-functions/ctime_r.texi: Likewise.
25226         * doc/posix-functions/getgrgid_r.texi: Likewise.
25227         * doc/posix-functions/getgrnam_r.texi: Likewise.
25228         * doc/posix-functions/getpwnam_r.texi: Likewise.
25229         * doc/posix-functions/getpwuid_r.texi: Likewise.
25230         * doc/posix-functions/readdir_r.texi: Likewise.
25231         * doc/posix-functions/sigwait.texi: Likewise.
25232         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
25233         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
25234
25235 2010-04-25  Bruno Haible  <bruno@clisp.org>
25236
25237         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
25238         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
25239         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
25240         * lib/ttyname_r.c: Include <limits.h>.
25241         (ttyname_r): Define using the system's ttyname_r function, if it exists
25242         and not on Solaris.
25243         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
25244         set.
25245         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
25246         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
25247         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
25248         Reported by Simon Josefsson.
25249
25250 2010-04-25  Bruno Haible  <bruno@clisp.org>
25251
25252         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
25253         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
25254         * doc/posix-functions/ctime_r.texi: Likewise.
25255         * doc/posix-functions/getgrgid_r.texi: Likewise.
25256         * doc/posix-functions/getgrnam_r.texi: Likewise.
25257         * doc/posix-functions/getlogin_r.texi: Likewise.
25258         * doc/posix-functions/getpwnam_r.texi: Likewise.
25259         * doc/posix-functions/getpwuid_r.texi: Likewise.
25260         * doc/posix-functions/readdir_r.texi: Likewise.
25261         * doc/posix-functions/sigwait.texi: Likewise.
25262         * doc/posix-functions/ttyname_r.texi: Likewise.
25263         Reported by Simon Josefsson.
25264
25265 2010-04-25  Bruno Haible  <bruno@clisp.org>
25266
25267         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
25268         * gnulib-tool (func_usage): Document that --with-*-tests options apply
25269         also to --create-testdir.
25270         (func_acceptable): Don't consider the status of *-tests modules here.
25271         (func_modules_transitive_closure): Consider it here, before including a
25272         test module.
25273         (func_import, func_create_testdir): Set inc_all_direct_tests,
25274         inc_all_indirect_tests.
25275         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
25276         --create-testdir and --create-megatestdir.
25277
25278 2010-04-25  Bruno Haible  <bruno@clisp.org>
25279
25280         gnulib-tool: Add --without-*-tests options.
25281         * gnulib-tool (func_usage): Document the --without-*-tests options.
25282         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
25283         excl_unportable_tests): New variables.
25284         Fail if they are specified with --import or --update.
25285         (func_acceptable): Respect the excl_*_tests variables.
25286         (func_import): Set the excl_*_tests variables to empty.
25287
25288 2010-04-25  Simon Josefsson  <simon@josefsson.org>
25289             Bruno Haible  <bruno@clisp.org>
25290
25291         Work around a MacOS X 10.4 bug with openpty.
25292         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
25293         * tests/test-openpty.c (main): Close the master side explicitly.
25294
25295 2010-04-25  Bruno Haible  <bruno@clisp.org>
25296
25297         strnlen: Fix a C++ test error on MacOS X and Solaris.
25298         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
25299         the function is not declared.
25300         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
25301         Simon Josefsson.
25302
25303 2010-04-24  Bruno Haible  <bruno@clisp.org>
25304
25305         Avoid a gcc warning.
25306         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
25307         of correct type for %08lx directive.
25308         Reported by Eric Blake.
25309
25310 2010-04-24  Bruno Haible  <bruno@clisp.org>
25311
25312         vasnprintf: Correct errno value in case of out-of-memory.
25313         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
25314         or sprintf. Use the errno value from SNPRINTF or sprintf.
25315         Reported by Ian Beckwith <ianb@erislabs.net>.
25316
25317 2010-04-24  Bruno Haible  <bruno@clisp.org>
25318
25319         ansi-c++-opt: Find correct compiler when cross-compiling.
25320         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
25321         AC_CHECK_PROGS.
25322         Reported by Simon Josefsson.
25323
25324 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
25325
25326         vc-list-files: Add support for subversion
25327         * build-aux/vc-list-files: Use "svn list" to generate the list of
25328         files controlled by subversion.
25329
25330 2010-04-23  Jim Meyering  <meyering@redhat.com>
25331
25332         vc-list-files tests: convert to use init.sh
25333         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
25334         path_prepend_.
25335         Use Exit, not exit.
25336         Use skip_ rather than open coding it.
25337         Remove trap set-up and compare definitions.
25338         * tests/test-vc-list-files-git.sh: Likewise.
25339         * modules/vc-list-files-tests (Files): Add tests/init.sh.
25340
25341 2010-04-22  Simon Josefsson  <simon@josefsson.org>
25342
25343         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
25344         backup files.
25345
25346 2010-04-21  Simon Josefsson  <simon@josefsson.org>
25347
25348         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
25349
25350 2010-04-20  Eric Blake  <eblake@redhat.com>
25351
25352         tests: be robust to ignored SIGPIPE
25353         * tests/test-select-in.sh: Consume all output.
25354         * tests/test-lseek.sh: Check correct exit status, while avoiding
25355         EPIPE.
25356
25357 2010-04-20  Simon Josefsson  <simon@josefsson.org>
25358             Bruno Haible  <bruno@clisp.org>
25359
25360         visibility: Don't use -fvisibility if it leads to a warning.
25361         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
25362         yes, don't pretend that visibility works if it leads to a warning.
25363         Reported by Mike Gran <spk121@yahoo.com>.
25364
25365 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
25366
25367         * build-aux/bootstrap: Use "git -h" for testing for supported options
25368         instead of "git --help".  The short-form option only shows a summary,
25369         and doesn't layout the full man page.  Grep for the full option name
25370         in the summary, too.
25371
25372 2010-04-19  Bruno Haible  <bruno@clisp.org>
25373
25374         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
25375         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
25376         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
25377         mention of RELOCATABLE_STRIP.
25378         Reported by Sylvain Beucler <beuc@beuc.net>.
25379
25380 2010-04-19  Bruno Haible  <bruno@clisp.org>
25381
25382         * lib/diffseq.h: Fix typo in comment.
25383         Reported by Eric Blake.
25384
25385 2010-04-19  Bruno Haible  <bruno@clisp.org>
25386
25387         ioctl: Move autoconf macro to a .m4 file.
25388         * m4/ioctl.m4: New file, extracted from modules/ioctl.
25389         * modules/ioctl (Files): Add it.
25390         (configure.ac): Simply invoke gl_FUNC_IOCTL.
25391         Reported by Ian Beckwith <ianb@erislabs.net>.
25392
25393 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
25394             Bruno Haible  <bruno@clisp.org>
25395
25396         diffseq: Accommodate use-case with abstract arrays.
25397         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
25398         is not defined.
25399         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
25400         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
25401
25402 2010-04-18  Bruno Haible  <bruno@clisp.org>
25403
25404         * doc/posix-headers/stdbool.texi: More precise wording.
25405
25406 2010-04-17  Jim Meyering  <meyering@redhat.com>
25407
25408         maint.mk: use gnu-style indentation in an embedded perl script
25409         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
25410         Rename variable: s/two/last_two_bytes/
25411
25412 2010-04-16  Eric Blake  <eblake@redhat.com>
25413
25414         test-stdbool: skip test that fails with Solaris CC
25415         * tests/test-stdbool.c (f): Skip test that causes compilation
25416         error under buggy C++ compiler.
25417         * lib/stdbool.in.h: Document the limitation.
25418         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
25419
25420         setenv: allow compilation with C++
25421         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
25422         register keyword.
25423
25424         stdint: allow test to pass with C++
25425         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
25426
25427         getopt: allow compilation with C++
25428         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
25429         struct.
25430         * lib/getopt.c (_getopt_internal_r): Use correct type.
25431         Reported by Dagobert Michelson, via Joel E. Denny.
25432
25433 2010-04-16  Bruno Haible  <bruno@clisp.org>
25434
25435         Override netdb.h always.
25436         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
25437         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
25438         Reported by Ludovic Courtès <ludo@gnu.org>.
25439
25440 2010-04-15  Bruno Haible  <bruno@clisp.org>
25441
25442         openpty: Fix mistake from 2010-03-21.
25443         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
25444         Reported by Simon Josefsson.
25445
25446 2010-04-15  Eric Blake  <eblake@redhat.com>
25447
25448         test-forkpty: fix expected signature
25449         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
25450         Reported by Simon Josefsson.
25451
25452 2010-04-15  Jim Meyering  <meyering@redhat.com>
25453
25454         maint.mk: texinfo_suffix_re_: correct the default regexp
25455         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
25456
25457         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
25458         make it configurable via texinfo_suffix_re_.
25459
25460 2010-04-14  Eric Blake  <eblake@redhat.com>
25461
25462         strtok_r: relax license to LGPLv2+
25463         * modules/strtok_r (License): Relax license.
25464         Reported by Matthias Bolte.
25465
25466 2010-04-14  Simon Josefsson  <simon@josefsson.org>
25467
25468         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
25469         version 1.4.4 by default instead of requiring the libgcrypt
25470         version used during build.  This makes it possible to use the
25471         application with older but still binary compatible libgcrypt
25472         versions.
25473
25474 2010-04-13  Eric Blake  <eblake@redhat.com>
25475
25476         getopt-gnu: match recent glibc fixes and posix ruling
25477         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
25478         '+' handling, when requesting extensions.
25479         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
25480         'W;' handling.
25481         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
25482         * doc/posix-functions/getopt.texi (getopt): Document this.
25483         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25484         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25485         Likewise.
25486
25487         getopt: merge bug fixes from glibc
25488         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
25489         diagnostics.  Honor '+:' correctly.  Reject ';'.
25490
25491         getopt-posix: detect MacOS bug
25492         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
25493         optind when missing a required argument.
25494         * doc/posix-functions/getopt.texi (getopt): Document the bug.
25495         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25496         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25497         Likewise.
25498
25499         getopt-posix: avoid spurious failure on Solaris
25500         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
25501         an indicator that setting optind=1 is sufficient for reset.
25502
25503         getopt-posix: avoid spurious failure on FreeBSD
25504         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
25505         in POSIX mode, since the m4 test uses it.
25506
25507         gnulib-tool: silence warning on BSD sh
25508         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
25509
25510 2010-04-13  Jim Meyering  <meyering@redhat.com>
25511
25512         doc: users.txt: GNU patch now uses gnulib
25513         * users.txt: Add patch.
25514
25515 2010-04-12  Jim Meyering  <meyering@redhat.com>
25516
25517         maint.mk: generate more concise timing data for syntax-check rules
25518         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
25519         " done" from each line that reports a syntax-check test duration.
25520
25521 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
25522
25523         git-version-gen: use "git update-index..." rather than "git status"
25524         * build-aux/git-version-gen: Use git update-index --refresh, not
25525         "git status".  With some versions of git, "git status" would fail
25526         to update the index and result in an unwarranted "-dirty" suffix.
25527
25528 2010-04-11  Jim Meyering  <meyering@redhat.com>
25529
25530         openat: correct formatting (no semantic change)
25531         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
25532         Suggested by Bruno Haible.
25533
25534 2010-04-11  Bruno Haible  <bruno@clisp.org>
25535
25536         Stricter declaration checking in testdirs.
25537         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25538         If for_tests is true, augment AM_CPPFLAGS to define
25539         GNULIB_STRICT_CHECKING.
25540         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
25541         GNULIB_STRICT_CHECKING is defined, verify that the function is
25542         declared.
25543
25544 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
25545             Bruno Haible  <bruno@clisp.org>
25546
25547         libunistring: Improve configure output.
25548         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
25549         Don't say "consider installing GNU libunistring" when checking again
25550         with libiconv.
25551
25552 2010-04-11  Bruno Haible  <bruno@clisp.org>
25553
25554         libunistring: Correct value of $LTLIBUNISTRING.
25555         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
25556         correct the value of $LTLIBUNISTRING.
25557
25558 2010-04-11  Bruno Haible  <bruno@clisp.org>
25559
25560         havelib: Add static libraries to LIBS in the right order.
25561         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
25562         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
25563
25564 2010-04-11  Bruno Haible  <bruno@clisp.org>
25565
25566         libunistring: Detect libunistring also when it depends on libiconv.
25567         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
25568         the second AC_LIB_HAVE_LINKFLAGS invocation.
25569
25570 2010-04-11  James Youngman  <jay@gnu.org>
25571
25572         close-stream: declare local scalars to be "const"
25573         * lib/close-stream.c (close_stream): Make boolean variables const
25574         to document the fact that we set but do not change them.
25575
25576 2010-04-11  Bruno Haible  <bruno@clisp.org>
25577
25578         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
25579
25580 2010-04-11  Jim Meyering  <meyering@redhat.com>
25581
25582         maint.mk: don't include dist-check.mk
25583         * top/maint.mk: Remove bogus include directive.
25584
25585         maint.mk: improve empty-line-at-EOF check
25586         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
25587         solution, rather than tail+Perl-based one.  The latter would read
25588         a few kilobytes from the end of each file, and did not handle empty
25589         files properly.
25590
25591         maint.mk: print the elapsed time for each syntax-check rule
25592         * top/maint.mk (sc_m_rules_): Save start time in a file.
25593         (sc_z_rules_): New rules: remove temp file and print elapsed time.
25594         (local-check): Interpose the .z rules
25595
25596 2010-04-11  Jim Meyering  <meyering@redhat.com>
25597
25598         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
25599         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
25600         empty file with one that ends in an empty line.
25601
25602 2010-04-10  Bruno Haible  <bruno@clisp.org>
25603
25604         mkdir: Make it work on mingw64.
25605         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
25606         * lib/mkdir.c: Update comment.
25607         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
25608
25609 2010-04-10  Bruno Haible  <bruno@clisp.org>
25610
25611         Don't override improved macro from newer autoconf.
25612         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
25613         autoconf >= 2.62.
25614         Reported by Joel E. Denny <jdenny@clemson.edu>.
25615
25616 2010-04-10  Jim Meyering  <meyering@redhat.com>
25617
25618         maint.mk: new syntax-check rule: prohibit empty lines at end of file
25619         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
25620
25621         maint.mk: correct a diagnostic
25622         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
25623         in diagnostic; now use $prohibit.
25624
25625 2010-04-10  Bruno Haible  <address@hidden>
25626
25627         fchownat: Fix a C++ test error on Solaris 8.
25628         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
25629         the function does not exist.
25630
25631 2010-04-10  Bruno Haible  <bruno@clisp.org>
25632
25633         vasnprintf: Add more tests.
25634         * tests/test-vasnprintf-posix.c: Include <errno.h>.
25635         (test_function): Test converting an invalid wide string.
25636
25637         vasnprintf: Correct handling of unconvertible wide string arguments.
25638         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
25639         VASNPRINTF.
25640         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
25641         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
25642         smaller than the expected maximum need for the directive. Set errno to
25643         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
25644         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
25645         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
25646         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
25647         * modules/vasnprintf (Files): Add m4/printf.m4.
25648         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25649
25650 2010-04-10  Bruno Haible  <bruno@clisp.org>
25651
25652         vasnprintf: Fix crash in %ls directive.
25653         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
25654         string is passed as argument to %ls, with no precision and no width.
25655         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25656
25657 2010-04-10  Bruno Haible  <bruno@clisp.org>
25658
25659         vasnprintf: Fix multiple test failures on mingw.
25660         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
25661         _snprintf, or snwprintf, not _snwprintf.
25662
25663 2010-04-10  Bruno Haible  <bruno@clisp.org>
25664
25665         write: Fix a C++ test error on mingw.
25666         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
25667
25668 2010-04-10  Bruno Haible  <bruno@clisp.org>
25669
25670         vasnprintf test: Reduce code duplication.
25671         * tests/test-vasnprintf.c (test_function): New function, extracted from
25672         test_vasnprintf.
25673         (test_vasnprintf, test_asnprintf): Invoke it.
25674
25675 2010-04-10  Bruno Haible  <bruno@clisp.org>
25676
25677         strnlen: Fix warning in C++ mode on MacOS X.
25678         * lib/string.in.h (strnlen): Use the modern idiom.
25679         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
25680         defining strnlen as a macro already in <config.h>.
25681         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25682         REPLACE_STRNLEN.
25683         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
25684         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25685
25686 2010-04-08  James Youngman  <jay@gnu.org>
25687
25688         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
25689         the example.
25690
25691 2010-04-09  Jim Meyering  <meyering@redhat.com>
25692
25693         maint.mk: print better diagnostic when there is no $(_hv_file)
25694         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
25695         announce that when $(_hv_file) (aka help-version) does not exist.
25696
25697         init.sh: run tr in the "C" locale to avoid multibyte interpretation
25698         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
25699         not try to interpret its random input bytes.  Jarno Rajahalme reported
25700         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
25701         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
25702         (mktempd_): Likewise, just in case.
25703
25704         ftruncate: add two years to projected module removal date: 2012
25705         * m4/ftruncate.m4: Adjust comments.
25706
25707         ftruncate: mark module as obsolete; even MinGW provides it, now
25708         * modules/ftruncate (Status): Obsolete.
25709         (Notice): Say that.
25710         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
25711         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
25712
25713 2010-04-08  Bruno Haible  <bruno@clisp.org>
25714
25715         Fix side effects from tests-related modules.
25716         * modules/dprintf-posix (Comment): New section.
25717         * modules/fprintf-posix (Comment): Likewise.
25718         * modules/obstack-printf-posix (Comment): Likewise.
25719         * modules/printf-posix (Comment): Likewise.
25720         * modules/snprintf-posix (Comment): Likewise.
25721         * modules/sprintf-posix (Comment): Likewise.
25722         * modules/vasnprintf-posix (Comment): Likewise.
25723         * modules/vasprintf-posix (Comment): Likewise.
25724         * modules/vdprintf-posix (Comment): Likewise.
25725         * modules/vfprintf-posix (Comment): Likewise.
25726         * modules/vprintf-posix (Comment): Likewise.
25727         * modules/vsnprintf-posix (Comment): Likewise.
25728         * modules/vsprintf-posix (Comment): Likewise.
25729         * modules/xprintf-posix (Comment): Likewise.
25730         * modules/xvasprintf-posix (Comment): Likewise.
25731         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
25732         * modules/floorf-tests (Depends-on): Likewise.
25733         * modules/round-tests (Depends-on): Likewise.
25734         * modules/roundf-tests (Depends-on): Likewise.
25735         * modules/trunc-tests (Depends-on): Likewise.
25736         * modules/truncf-tests (Depends-on): Likewise.
25737         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
25738         'fprintf-posix' module is not present.
25739         * tests/test-floorf2.c (check): Likewise.
25740         * tests/test-trunc2.c (check): Likewise.
25741         * tests/test-truncf2.c (check): Likewise.
25742         * tests/test-round2.c (equal): Likewise.
25743         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25744
25745 2010-04-07  Karl Berry  <karl@gnu.org>
25746
25747         * config/srclist.txt,
25748         * config/srclistvars.sh,
25749         * config/srclist-update: doc fixes.
25750
25751 2010-04-07  Jim Meyering  <meyering@redhat.com>
25752
25753         maint.mk: add a PATH crosschecking syntax-check rule
25754         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
25755         Useful if you use a test like the one in help-version (coreutils,
25756         diffutils, grep, gzip) that ensures $(VERSION) matches what is
25757         printed by prog --version.
25758
25759 2010-04-06  Bruno Haible  <bruno@clisp.org>
25760
25761         Fix link error on mingw.
25762         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
25763         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
25764
25765 2010-04-06  Bruno Haible  <bruno@clisp.org>
25766
25767         Assume rmdir exists.
25768         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
25769
25770 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
25771
25772         doc: update users.txt
25773         * users.txt: Add gcal.
25774
25775 2010-04-06  Jim Meyering  <meyering@redhat.com>
25776
25777         init.sh: simply unset TMPDIR rather than risking env -i
25778         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
25779         although it probably works fine on all Unix-based systems, some
25780         systems (Cygwin?) cannot tolerate a totally cleared environment.
25781         Suggestion from Eric Blake.
25782
25783 2010-04-06  Jim Meyering  <meyering@redhat.com>
25784
25785         init.sh: portability fix: use env's POSIX-specified -i option not -u
25786         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
25787         than unportable env -u.  Solaris 5.11's env lacks support for -u.
25788
25789 2010-04-05  Bruno Haible  <bruno@clisp.org>
25790
25791         btowc: Work around Cygwin 1.7.2 bug.
25792         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
25793         does not map NUL to 0.
25794         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
25795
25796 2010-04-05  Bruno Haible  <bruno@clisp.org>
25797
25798         Make the multithread modules work on Cygwin 1.7.2.
25799         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
25800         imported symbols can be declared weak, so that it returns "no" on
25801         Cygwin 1.7.2.
25802
25803 2010-04-05  Bruno Haible  <bruno@clisp.org>
25804
25805         Use the module 'strncat'.
25806         * modules/unistr/u8-strncat (Depends-on): Add strncat.
25807
25808         Tests for module 'strncat'.
25809         * modules/strncat-tests: New file.
25810         * tests/test-strncat.c: New file.
25811
25812         New module 'strncat'.
25813         * lib/string.in.h (strncat): New declaration.
25814         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
25815         * m4/strncat.m4: New file, based on m4/memchr.m4.
25816         * modules/strncat: New file.
25817         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
25818         is declared.
25819         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
25820         REPLACE_STRNCAT.
25821         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
25822         REPLACE_STRNCAT.
25823         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
25824         module.
25825         * tests/test-string-c++.cc: Check signature of strncat.
25826
25827 2010-04-05  Jim Meyering  <meyering@redhat.com>
25828
25829         xstrtoumax-tests: convert to use init.sh
25830         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
25831         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25832         Use Exit, not exit.
25833         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25834
25835         xstrtoimax-tests: convert to use init.sh
25836         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
25837         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25838         Use Exit, not exit.
25839         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25840
25841 2010-04-05  Bruno Haible  <bruno@clisp.org>
25842
25843         sys_socket: Avoid #define replacements in C++ mode.
25844         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
25845         warning to the function if possible, rather than #defining the symbol
25846         to a dysfunctional alias.
25847
25848 2010-04-05  Bruno Haible  <bruno@clisp.org>
25849
25850         fseeko: Fix C++ test error on mingw.
25851         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
25852         gl_FUNC_FSEEKO.
25853         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
25854         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
25855         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
25856         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
25857
25858 2010-04-05  Bruno Haible  <bruno@clisp.org>
25859
25860         duplocale: Improve test output.
25861         * tests/test-duplocale.c (main): Print reason for skipped test.
25862
25863 2010-04-05  Bruno Haible  <bruno@clisp.org>
25864
25865         Assume rmdir exists.
25866         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
25867         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
25868
25869 2010-04-05  Bruno Haible  <bruno@clisp.org>
25870
25871         Fix link error on Solaris 8 with cc.
25872         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
25873
25874 2010-04-05  Bruno Haible  <bruno@clisp.org>
25875
25876         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25877         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
25878
25879 2010-04-05  Bruno Haible  <bruno@clisp.org>
25880
25881         vasprintf: Update documentation.
25882         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
25883
25884 2010-04-05  Bruno Haible  <bruno@clisp.org>
25885
25886         ptsname: Improve test.
25887         * tests/test-ptsname.c (main): Also try the various master names of BSD
25888         systems.
25889
25890 2010-04-05  Bruno Haible  <bruno@clisp.org>
25891
25892         memchr: Avoid a possible C++ test error.
25893         * lib/string.in.h (memchr): Provide declaration if function is missing.
25894         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
25895         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
25896         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
25897         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
25898
25899 2010-04-05  Bruno Haible  <bruno@clisp.org>
25900
25901         strtok_r: Improve idiom.
25902         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
25903         AC_LIBOBJ is used.
25904
25905 2010-04-05  Bruno Haible  <bruno@clisp.org>
25906
25907         strdup: Improve idiom.
25908         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
25909         AC_LIBOBJ is used.
25910         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
25911         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
25912         when AC_LIBOBJ is used.
25913
25914 2010-04-05  Bruno Haible  <bruno@clisp.org>
25915
25916         mbsinit, mbrtowc, wcrtomb: Improve idioms.
25917         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
25918         don't set REPLACE_MBSINIT to 1.
25919         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
25920         don't set REPLACE_MBRTOWC to 1.
25921         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
25922         exist, don't set REPLACE_MBSRTOWCS to 1.
25923         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
25924         exist, don't set REPLACE_MBSNRTOWCS to 1.
25925         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
25926         don't set REPLACE_WCRTOMB to 1.
25927         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
25928         exist, don't set REPLACE_WCSRTOMBS to 1.
25929         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
25930         exist, don't set REPLACE_WCSNRTOMBS to 1.
25931
25932 2010-04-05  Bruno Haible  <bruno@clisp.org>
25933
25934         ldexpl: Improve idiom.
25935         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
25936         make sure to set HAVE_DECL_LDEXPL to 0.
25937
25938 2010-04-05  Jim Meyering  <meyering@redhat.com>
25939
25940         xstrtol-tests: convert to use init.sh
25941         * modules/xstrtol-tests (Files): Add tests/init.sh.
25942         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25943         Use Exit, not exit.
25944         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25945
25946         atexit-tests: convert to use init.sh
25947         * modules/atexit-tests (Files): Add tests/init.sh.
25948         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25949         Use Exit, not exit.
25950         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25951
25952         init.sh: fix typo
25953         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
25954
25955         init.sh: make it easier for a test script to write to the tty, ...
25956         when using automake's parallel-tests mode.
25957         * tests/init.sh (stderr_fileno_): Define overridable variable.
25958         (warn_): New function, to use it.
25959         (fail_, skip_, framework_failure_): Use warn_.
25960
25961 2010-04-04  Bruno Haible  <bruno@clisp.org>
25962
25963         btowc: Avoid warning.
25964         * lib/btowc.c: Include <stdlib.h>.
25965         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
25966
25967 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25968             Bruno Haible  <bruno@clisp.org>
25969
25970         wchar: Port to NetBSD 1.5.
25971         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
25972         * lib/wctype.in.h (WEOF): Likewise.
25973
25974 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25975             Bruno Haible  <bruno@clisp.org>
25976
25977         Port extended stdio to NetBSD 1.5.
25978         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
25979         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
25980         older.
25981
25982 2010-04-04  Bruno Haible  <bruno@clisp.org>
25983
25984         string: Remove unused substitution.
25985         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
25986         HAVE_DECL_STRERROR.
25987         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
25988
25989 2010-04-04  Bruno Haible  <bruno@clisp.org>
25990
25991         strtod: Avoid a possible C++ test error.
25992         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
25993         set REPLACE_STRTOD.
25994
25995 2010-04-04  Bruno Haible  <bruno@clisp.org>
25996
25997         strerror: Update documentation.
25998         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
25999
26000 2010-04-04  Bruno Haible  <bruno@clisp.org>
26001
26002         stdio: Fix some C++ test errors on Solaris 8 with GCC.
26003         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
26004         _GL_CXXALIAS_SYS_CAST.
26005
26006 2010-04-04  Bruno Haible  <bruno@clisp.org>
26007
26008         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
26009         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
26010         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
26011         REPLACE_FREXPL to 1.
26012         * doc/posix-functions/frexpl.texi: Update documentation.
26013
26014 2010-04-04  Bruno Haible  <bruno@clisp.org>
26015
26016         math: Fix some C++ test errors on Solaris 8 and Cygwin.
26017         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
26018
26019 2010-04-04  Bruno Haible  <bruno@clisp.org>
26020
26021         Implement nanosleep for native Windows.
26022         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
26023
26024 2010-04-04  Bruno Haible  <bruno@clisp.org>
26025
26026         math: Fix some C++ test errors on Solaris 8.
26027         * lib/math.in.h (truncf, trunc): Use simpler idiom.
26028
26029 2010-04-04  Bruno Haible  <bruno@clisp.org>
26030
26031         math: Fix some C++ test errors on Cygwin.
26032         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
26033         truncl): Provide declaration if the system does not have it.
26034         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
26035         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
26036         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
26037         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
26038         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
26039         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
26040         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
26041         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
26042         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
26043         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
26044         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
26045         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
26046         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
26047         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
26048         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
26049         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
26050         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
26051         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26052         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26053         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
26054         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26055         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26056
26057 2010-04-04  Bruno Haible  <bruno@clisp.org>
26058
26059         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
26060         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
26061         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
26062         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
26063         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
26064         * m4/isinf.m4 (gl_ISINF): Likewise.
26065         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26066
26067 2010-04-04  Bruno Haible  <bruno@clisp.org>
26068
26069         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
26070         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26071
26072 2010-04-04  Bruno Haible  <bruno@clisp.org>
26073
26074         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
26075         * modules/tmpfile (configure.ac): Update.
26076
26077         tmpfile: Fix C++ test error on mingw.
26078         * lib/stdio.in.h (tmpfile): New declaration.
26079         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
26080         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
26081         * modules/tmpfile (Depends-on): Add stdio.
26082         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
26083         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
26084         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
26085         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
26086         REPLACE_TMPFILE.
26087         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
26088
26089 2010-04-04  Bruno Haible  <bruno@clisp.org>
26090
26091         ioctl: Fix C++ test error on mingw.
26092         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
26093         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
26094         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
26095
26096 2010-04-03  Bruno Haible  <bruno@clisp.org>
26097
26098         wcwidth: Fix C++ test error on mingw.
26099         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
26100         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
26101         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
26102
26103 2010-04-03  Bruno Haible  <bruno@clisp.org>
26104
26105         nanosleep: Fix C++ test error on mingw.
26106         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
26107         * lib/time.in.h (nanosleep): Use modern idiom.
26108         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
26109         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
26110         REPLACE_NANOSLEEP to 1.
26111         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
26112         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
26113
26114 2010-04-03  Bruno Haible  <bruno@clisp.org>
26115
26116         strptime: Fix C++ test error on mingw.
26117         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
26118         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
26119         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
26120         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
26121         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
26122         not REPLACE_STRPTIME.
26123         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
26124         REPLACE_STRPTIME.
26125
26126 2010-04-03  Bruno Haible  <bruno@clisp.org>
26127
26128         timegm: Fix C++ test error on mingw.
26129         * lib/time.in.h (timegm): Use modern idiom.
26130         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
26131         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
26132         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
26133         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
26134
26135 2010-04-03  Bruno Haible  <bruno@clisp.org>
26136
26137         timegm: Assume declaration if function exists.
26138         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
26139         if it exists. Don't clobber ac_cv_func_timegm.
26140
26141 2010-04-03  Bruno Haible  <bruno@clisp.org>
26142
26143         time_r: Fix C++ test error on mingw.
26144         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
26145         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
26146         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
26147         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
26148         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
26149
26150 2010-04-03  Bruno Haible  <bruno@clisp.org>
26151
26152         time_r: Minor updates.
26153         * modules/time_r (Description): Mention the provided functions.
26154         * lib/time_r.c: Don't include <string.h>.
26155         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
26156         * doc/posix-functions/localtime_r.texi: Likewise.
26157
26158 2010-04-03  Bruno Haible  <bruno@clisp.org>
26159
26160         time: Fix regression introduced on 2010-03-08.
26161         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
26162         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
26163
26164 2010-04-03  Jim Meyering  <meyering@redhat.com>
26165
26166         maint.mk: don't silently disable project-specific syntax-check rules
26167         * top/maint.mk (_prohibit_regexp): Define, to help people realize
26168         that they need to convert their project-specific syntax-check rules
26169         to use the new _sc_search_regexp.
26170
26171 2010-04-03  Bruno Haible  <bruno@clisp.org>
26172
26173         fchdir: Fix regression introduced on 2010-03-08.
26174         * lib/unistd.in.h (fchdir): Fix declaration.
26175         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
26176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
26177         REPLACE_FCHDIR.
26178         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
26179         REPLACE_FCHDIR.
26180
26181 2010-04-03  Bruno Haible  <bruno@clisp.org>
26182
26183         getpagesize: Fix C++ test error on mingw.
26184         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
26185         system does not declare the function.
26186         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
26187         declared.
26188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26189         HAVE_DECL_GETPAGESIZE.
26190         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
26191
26192 2010-04-03  Bruno Haible  <bruno@clisp.org>
26193
26194         stdio: Make C++ tests work on mingw.
26195         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
26196         does not declare the function.
26197
26198 2010-04-03  Bruno Haible  <bruno@clisp.org>
26199
26200         ftello: Fix C++ test error on mingw.
26201         * lib/stdio.in.h (ftello): Use modern idiom.
26202         * lib/ftello.c (ftello): Renamed from rpl_ftello.
26203         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
26204         is missing and that it needs to be replaced.
26205         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
26206         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
26207         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
26208
26209 2010-04-03  Bruno Haible  <bruno@clisp.org>
26210
26211         fseeko: Fix C++ test error on mingw.
26212         * lib/stdio.in.h (fseeko): Use modern idiom.
26213         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
26214         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
26215         is missing and that it needs to be replaced.
26216         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
26217         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
26218         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
26219
26220 2010-04-03  Bruno Haible  <bruno@clisp.org>
26221
26222         mkstemp: Fix C++ test error on mingw.
26223         * lib/stdlib.in.h (mkstemp): Use modern idiom.
26224         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
26225         function is missing and that it needs to be replaced.
26226         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
26227         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
26228
26229 2010-04-03  Bruno Haible  <bruno@clisp.org>
26230
26231         stpncpy: Fix C++ test error on mingw.
26232         * lib/string.in.h (stpncpy): Use modern idiom.
26233         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
26234         function is missing and that it needs to be replaced.
26235         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26236         REPLACE_STPNCPY.
26237         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
26238
26239 2010-04-03  Bruno Haible  <bruno@clisp.org>
26240
26241         sys_stat: Fix C++ test error on mingw.
26242         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
26243         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
26244
26245 2010-04-03  Bruno Haible  <bruno@clisp.org>
26246
26247         pty: Update doc.
26248         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
26249
26250 2010-04-03  Bruno Haible  <bruno@clisp.org>
26251
26252         unistd: Fix C++ test error on mingw.
26253         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
26254
26255 2010-04-03  Bruno Haible  <bruno@clisp.org>
26256
26257         Update doc regarding mingw.
26258         * doc/glibc-functions/openpty.texi: Update regarding mingw.
26259         * doc/glibc-functions/login_tty.texi: Likewise.
26260         * doc/glibc-functions/forkpty.texi: Likewise.
26261
26262 2010-04-03  Bruno Haible  <bruno@clisp.org>
26263
26264         stdlib: Avoid compilation failure of c-strtold on mingw.
26265         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
26266
26267 2010-04-03  Bruno Haible  <bruno@clisp.org>
26268
26269         locale: Make C++ tests work on Cygwin and mingw.
26270         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
26271         cannot provide the function.
26272         Reported by Simon Josefsson.
26273
26274 2010-04-03  Bruno Haible  <bruno@clisp.org>
26275
26276         localename: Port to MacOS X 10.6.
26277         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
26278         memory layout of the locales in MacOS X 10.6 as well.
26279         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
26280
26281 2010-04-02  Bruno Haible  <bruno@clisp.org>
26282
26283         gnulib-tool: Ensure that long-running tests are executed last.
26284         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
26285         running tests after the one for the other tests.
26286
26287 2010-04-02  Bruno Haible  <bruno@clisp.org>
26288
26289         gnulib-tool: Ensure the tests in the main directory are executed first.
26290         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
26291         start with the current directory.
26292
26293 2010-04-02  Bruno Haible  <bruno@clisp.org>
26294
26295         Tests for module 'havelib', moved here from GNU gettext.
26296         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
26297         modifications.
26298         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
26299         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
26300         with modifications.
26301         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
26302         modifications.
26303         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
26304         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
26305         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
26306         with modifications.
26307         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
26308         with modifications.
26309         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
26310         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
26311         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
26312         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
26313         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
26314         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
26315         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
26316         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
26317         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
26318         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
26319         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
26320         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
26321         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
26322         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
26323         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
26324         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
26325         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
26326         with modifications.
26327         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
26328         with modifications.
26329         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
26330         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
26331         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
26332         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
26333         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
26334         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
26335         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
26336         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
26337         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
26338         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
26339         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
26340         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
26341         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
26342         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
26343         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
26344         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
26345         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
26346         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
26347         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
26348         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
26349         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
26350         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
26351         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
26352         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
26353         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
26354         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
26355         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
26356         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
26357         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
26358         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
26359         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
26360         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
26361         * tests/havelib/rpathx/rpathx.c: New file, from
26362         gettext/autoconf-lib-link.
26363         * tests/havelib/rpathx/Makefile.am: New file, from
26364         gettext/autoconf-lib-link.
26365         * tests/havelib/rpathx/configure.ac: New file, from
26366         gettext/autoconf-lib-link with modifications.
26367         * tests/havelib/rpathy/rpathy.c: New file, from
26368         gettext/autoconf-lib-link.
26369         * tests/havelib/rpathy/Makefile.am: New file, from
26370         gettext/autoconf-lib-link.
26371         * tests/havelib/rpathy/configure.ac: New file, from
26372         gettext/autoconf-lib-link with modifications.
26373         * tests/havelib/rpathz/rpathz.c: New file, from
26374         gettext/autoconf-lib-link.
26375         * tests/havelib/rpathz/Makefile.am: New file, from
26376         gettext/autoconf-lib-link.
26377         * tests/havelib/rpathz/configure.ac: New file, from
26378         gettext/autoconf-lib-link with modifications.
26379         * tests/havelib/rpathlx/usex.c: New file, from
26380         gettext/autoconf-lib-link.
26381         * tests/havelib/rpathlx/Makefile.am: New file, from
26382         gettext/autoconf-lib-link.
26383         * tests/havelib/rpathlx/configure.ac: New file, from
26384         gettext/autoconf-lib-link with modifications.
26385         * tests/havelib/rpathly/usey.c: New file, from
26386         gettext/autoconf-lib-link.
26387         * tests/havelib/rpathly/Makefile.am: New file, from
26388         gettext/autoconf-lib-link.
26389         * tests/havelib/rpathly/configure.ac: New file, from
26390         gettext/autoconf-lib-link with modifications.
26391         * tests/havelib/rpathlz/usez.c: New file, from
26392         gettext/autoconf-lib-link.
26393         * tests/havelib/rpathlz/Makefile.am: New file, from
26394         gettext/autoconf-lib-link.
26395         * tests/havelib/rpathlz/configure.ac: New file, from
26396         gettext/autoconf-lib-link with modifications.
26397         * tests/havelib/rpathlyx/usey.c: New file, from
26398         gettext/autoconf-lib-link.
26399         * tests/havelib/rpathlyx/Makefile.am: New file, from
26400         gettext/autoconf-lib-link.
26401         * tests/havelib/rpathlyx/configure.ac: New file, from
26402         gettext/autoconf-lib-link with modifications.
26403         * tests/havelib/rpathlzyx/usez.c: New file, from
26404         gettext/autoconf-lib-link.
26405         * tests/havelib/rpathlzyx/Makefile.am: New file, from
26406         gettext/autoconf-lib-link.
26407         * tests/havelib/rpathlzyx/configure.ac: New file, from
26408         gettext/autoconf-lib-link with modifications.
26409         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
26410         with modifications.
26411
26412 2010-04-02  Bruno Haible  <bruno@clisp.org>
26413
26414         gnulib-tool: Create distributed built sources also for the tests.
26415         * gnulib-tool (func_create_testdir): Also generate distributed built
26416         sources in the tests directory.
26417
26418 2010-04-02  Bruno Haible  <bruno@clisp.org>
26419
26420         gnulib-tool: Obey user's environment variables.
26421         * gnulib-tool (func_create_testdir): When creating built sources,
26422         respect the environment variables for autoconf, automake, etc. given by
26423         the user.
26424
26425 2010-04-02  Bruno Haible  <bruno@clisp.org>
26426
26427         gnulib-tool: Provide the value of --m4-base to modules.
26428         * gnulib-tool (func_import, func_create_testdir): Emit a definition
26429         of gl_m4_base.
26430
26431 2010-04-02  Eric Blake  <eblake@redhat.com>
26432
26433         maint.mk: fix some fallout
26434         * NEWS: Document the incompatible change, and its effect on cfg.mk.
26435         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
26436
26437 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26438
26439         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
26440         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
26441         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
26442         (sc_cast_of_x_alloc_return_value): Likewise.
26443         (sc_cast_of_alloca_return_value): Likewise.
26444         (sc_space_tab): Likewise.
26445         (sc_prohibit_atoi_atof): Likewise.
26446         (sc_prohibit_magic_number_exit): Likewise.
26447         (sc_error_exit_success): Likewise.
26448         (sc_file_system): Likewise.
26449         (sc_prohibit_have_config_h): Likewise.
26450         (sc_require_config_h): Likewise.
26451         (sc_prohibit_HAVE_MBRTOWC): Likewise.
26452         (sc_obsolete_symbols): Likewise.
26453         (sc_changelog): Likewise.
26454         (sc_program_name): Likewise.
26455         (sc_the_the): Likewise.
26456         (sc_trailing_blank): Likewise.
26457         (sc_two_space_separator_in_usage): Likewise.
26458         (sc_useless_cpp_parens): Likewise.
26459         (sc_GPL_version): Likewise.
26460         (sc_GFDL_version): Likewise.
26461         (sc_texinfo_acronym): Likewise.
26462         (sc_prohibit_cvs_keyword): Likewise.
26463         (sc_prohibit_stat_st_blocks): Likewise.
26464         (sc_prohibit_S_IS_definition): Likewise.
26465         (sc_redundant_const): Likewise.
26466         (sc_makefile_TAB_only_indentation): Likewise.
26467         (sc_m4_quote_check): Likewise.
26468         (sc_makefile_path_separator_check): Likewise.
26469         (sc_copyright_check): Likewise.
26470         (sc_Wundef_boolean): Likewise.
26471         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26472
26473         maint.mk: match 0 or more whitespace-before-function-call '('
26474         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
26475         that have zero or two-and-more spaces between the function name
26476         and the open parenthesis.
26477         (sc_error_message_warn_fatal): Likewise.
26478         (sc_error_message_uppercase): Likewise.
26479         (sc_error_message_period): Likewise.
26480
26481 2010-03-31  Eric Blake  <eblake@redhat.com>
26482
26483         maint.mk: check for [ as well as test
26484         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
26485         Based on a libvirt report by Matthias Bolte.
26486
26487         gnumakefile: don't squelch _version output
26488         * top/GNUmakefile (_version): Create one-shot dependency rather
26489         than using $(shell) when version must be regenerated.
26490         (_autoreconf): Run verbosely, by default.
26491
26492         sys_time: avoid compiler warnings
26493         * lib/sys_time.in.h (includes): Ensure gcc pragma is
26494         unconditional, fixing regression from 2010-03-29.
26495         Reported by Simon Josefsson.
26496
26497 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26498
26499         maint.mk: s/_header_without_use/_sc_header_without_use/
26500         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
26501         (sc_prohibit_assert_without_use): Use the new name.
26502         (sc_prohibit_close_stream_without_use): Likewise.
26503         (sc_prohibit_getopt_without_use): Likewise.
26504         (sc_prohibit_quotearg_without_use): Likewise.
26505         (sc_prohibit_quote_without_use): Likewise.
26506         (sc_prohibit_long_options_without_use): Likewise.
26507         (sc_prohibit_inttostr_without_use): Likewise.
26508         (sc_prohibit_ignore_value_without_use): Likewise.
26509         (sc_prohibit_error_without_use): Likewise.
26510         (sc_prohibit_xalloc_without_use): Likewise.
26511         (sc_prohibit_hash_without_use): Likewise.
26512         (sc_prohibit_hash_pjw_without_use): Likewise.
26513         (sc_prohibit_safe_read_without_use): Likewise.
26514         (sc_prohibit_argmatch_without_use): Likewise.
26515         (sc_prohibit_canonicalize_without_use): Likewise.
26516         (sc_prohibit_root_dev_ino_without_use): Likewise.
26517         (sc_prohibit_openat_without_use): Likewise.
26518         (sc_prohibit_c_ctype_without_use): Likewise.
26519         (sc_prohibit_signal_without_use): Likewise.
26520         (sc_prohibit_intprops_without_use): Likewise.
26521
26522 2010-03-30  Eric Blake  <eblake@redhat.com>
26523
26524         maint: improve module indicators
26525         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
26526         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
26527         columns, and avoid extra macro expansion.
26528
26529         fdopendir: work around FreeBSD bug
26530         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26531         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
26532         * modules/dirent (Makefile.am): Substitute it.
26533         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
26534         declaration.
26535         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
26536         fix.
26537         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26538
26539 2010-03-29  Bruno Haible  <bruno@clisp.org>
26540
26541         Emit #pragma system_header after the inclusion guard, not before.
26542         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
26543         guard that spans the entire file, not before. This enables an
26544         optimization in GCC's preprocessor.
26545         * lib/ctype.in.h: Likewise.
26546         * lib/dirent.in.h: Likewise.
26547         * lib/errno.in.h: Likewise.
26548         * lib/float.in.h: Likewise.
26549         * lib/getopt.in.h: Likewise.
26550         * lib/iconv.in.h: Likewise.
26551         * lib/langinfo.in.h: Likewise.
26552         * lib/locale.in.h: Likewise.
26553         * lib/math.in.h: Likewise.
26554         * lib/netdb.in.h: Likewise.
26555         * lib/netinet_in.in.h: Likewise.
26556         * lib/pty.in.h: Likewise.
26557         * lib/sched.in.h: Likewise.
26558         * lib/se-selinux.in.h: Likewise.
26559         * lib/search.in.h: Likewise.
26560         * lib/spawn.in.h: Likewise.
26561         * lib/stdarg.in.h: Likewise.
26562         * lib/stdint.in.h: Likewise.
26563         * lib/string.in.h: Likewise.
26564         * lib/strings.in.h: Likewise.
26565         * lib/sys_file.in.h: Likewise.
26566         * lib/sys_ioctl.in.h: Likewise.
26567         * lib/sys_time.in.h: Likewise.
26568         * lib/sys_times.in.h: Likewise.
26569         * lib/sys_utsname.in.h: Likewise.
26570         * lib/sys_wait.in.h: Likewise.
26571         * lib/sysexits.in.h: Likewise.
26572         * lib/wctype.in.h: Likewise.
26573
26574 2010-03-28  James Youngman  <jay@gnu.org>
26575
26576         save-cwd: don't leak a file descriptor when the caller execs.
26577         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
26578         saved file descriptor.
26579         * modules/save-cwd (Depends-on): Depend on cloexec.
26580
26581 2010-03-29  Bruno Haible  <bruno@clisp.org>
26582
26583         Remove vestiges of fts-lgpl module.
26584         * lib/fts_.h: Assume GNULIB_FTS is 1.
26585         * lib/fts.c: Likewise.
26586         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26587
26588 2010-03-28  Bruno Haible  <bruno@clisp.org>
26589
26590         Fix definition of tests witness macro.
26591         * gnulib-tool (func_import): Fix definition of witness macro.
26592
26593 2010-03-28  Bruno Haible  <bruno@clisp.org>
26594
26595         Fix ioctl's protoype on glibc systems.
26596         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
26597         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
26598         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
26599         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
26600         signature. If not, arrange to replace the ioctl function.
26601         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26602         REPLACE_IOCTL.
26603         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
26604         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
26605         Reported by Ludovic Courtès <ludo@gnu.org>.
26606
26607 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
26608
26609         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
26610         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
26611         made it so grep -r --include=GLOB* ... did not work.
26612
26613 2010-03-26  Jim Meyering  <meyering@redhat.com>
26614             Eric Blake  <eblake@redhat.com>
26615
26616         maint.mk: prohibit use of test's -o and -a operators
26617         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
26618
26619 2010-03-28  Bruno Haible  <bruno@clisp.org>
26620
26621         Remove unused GNULIB_XYZ macro definitions.
26622         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
26623         invocation.
26624
26625 2010-03-28  Bruno Haible  <bruno@clisp.org>
26626
26627         Mark privileged tests modules.
26628         * modules/idpriv-drop-tests (Status): New section.
26629         * modules/idpriv-droptemp-tests (Status): New section.
26630
26631 2010-03-28  Bruno Haible  <bruno@clisp.org>
26632
26633         Split C++ tests into separate tests modules.
26634         * modules/dirent-c++-tests: New file, extracted from
26635         modules/dirent-tests.
26636         * modules/dirent-tests: Depend on it.
26637         * modules/fcntl-h-c++-tests: New file, extracted from
26638         modules/fcntl-h-tests.
26639         * modules/fcntl-h-tests: Depend on it.
26640         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
26641         * modules/glob-tests: Depend on it.
26642         * modules/iconv-h-c++-tests: New file, extracted from
26643         modules/iconv-h-tests.
26644         * modules/iconv-h-tests: Depend on it.
26645         * modules/langinfo-c++-tests: New file, extracted from
26646         modules/langinfo-tests.
26647         * modules/langinfo-tests: Depend on it.
26648         * modules/locale-c++-tests: New file, extracted from
26649         modules/locale-tests.
26650         * modules/locale-tests: Depend on it.
26651         * modules/math-c++-tests: New file, extracted from modules/math-tests.
26652         * modules/math-tests: Depend on it.
26653         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
26654         * modules/pty-tests: Depend on it.
26655         * modules/search-c++-tests: New file, extracted from
26656         modules/search-tests.
26657         * modules/search-tests: Depend on it.
26658         * modules/signal-c++-tests: New file, extracted from
26659         modules/signal-tests.
26660         * modules/signal-tests: Depend on it.
26661         * modules/spawn-c++-tests: New file, extracted from
26662         modules/spawn-tests.
26663         * modules/spawn-tests: Depend on it.
26664         * modules/stdio-c++-tests: New file, extracted from
26665         modules/stdio-tests.
26666         * modules/stdio-tests: Depend on it.
26667         * modules/stdlib-c++-tests: New file, extracted from
26668         modules/stdlib-tests.
26669         * modules/stdlib-tests: Depend on it.
26670         * modules/string-c++-tests: New file, extracted from
26671         modules/string-tests.
26672         * modules/string-tests: Depend on it.
26673         * modules/sys_ioctl-c++-tests: New file, extracted from
26674         modules/sys_ioctl-tests.
26675         * modules/sys_ioctl-tests: Depend on it.
26676         * modules/sys_select-c++-tests: New file, extracted from
26677         modules/sys_select-tests.
26678         * modules/sys_select-tests: Depend on it.
26679         * modules/sys_socket-c++-tests: New file, extracted from
26680         modules/sys_socket-tests.
26681         * modules/sys_socket-tests: Depend on it.
26682         * modules/sys_stat-c++-tests: New file, extracted from
26683         modules/sys_stat-tests.
26684         * modules/sys_stat-tests: Depend on it.
26685         * modules/sys_time-c++-tests: New file, extracted from
26686         modules/sys_time-tests.
26687         * modules/sys_time-tests: Depend on it.
26688         * modules/time-c++-tests: New file, extracted from modules/time-tests.
26689         * modules/time-tests: Depend on it.
26690         * modules/unistd-c++-tests: New file, extracted from
26691         modules/unistd-tests.
26692         * modules/unistd-tests: Depend on it.
26693         * modules/wchar-c++-tests: New file, extracted from
26694         modules/wchar-tests.
26695         * modules/wchar-tests: Depend on it.
26696         * modules/wctype-c++-tests: New file, extracted from
26697         modules/wctype-tests.
26698         * modules/wctype-tests: Depend on it.
26699         Reported by Simon Josefsson.
26700
26701 2010-03-28  Bruno Haible  <bruno@clisp.org>
26702
26703         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
26704         * gnulib-tool (func_exists_module): New function, extracted from
26705         func_verify_module.
26706         (func_verify_module): Use it.
26707         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
26708         'foo' only if 'foo' exists.
26709         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
26710         module.
26711
26712 2010-03-28  Bruno Haible  <bruno@clisp.org>
26713
26714         gnulib-tool: Add support for special categories of tests.
26715         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
26716         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
26717         (func_usage): Document them.
26718         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
26719         inc_unportable_tests, inc_all_tests): New variables.
26720         (func_acceptable): Consider these variables.
26721         (func_modules_transitive_closure): Make it work when the 'Status' field
26722         consists of multiple words.
26723         (func_import): Store and restore the values of inc_cxx_tests,
26724         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
26725         inc_all_tests in gnulib-comp.m4.
26726         (func_create_testdir): Set inc_all_tests to true.
26727         * doc/gnulib.texi (Extra tests modules): New section.
26728         Suggested by Jim Meyering.
26729
26730 2010-03-28  Bruno Haible  <bruno@clisp.org>
26731
26732         ansi-c++-opt: Allow turning off the C++ build by default.
26733         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
26734         gl_CXX_CHOICE_DEFAULT_NO is defined.
26735         Requested by Eric Blake.
26736
26737 2010-03-28  Bruno Haible  <bruno@clisp.org>
26738
26739         unistd: Avoid #define replacements in C++ mode.
26740         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
26741         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
26742         setsockopt, shutdown, select): In C++, attach a warning to the function
26743         if possible, rather than #defining the symbol to a dysfunctional alias.
26744         Reported by John W. Eaton <jwe@gnu.org>.
26745
26746 2010-03-28  Bruno Haible  <bruno@clisp.org>
26747
26748         Fix link errors on mingw.
26749         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
26750         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
26751         $(LIBSOCKET).
26752         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
26753         $(LIBSOCKET).
26754
26755 2010-03-28  Bruno Haible  <bruno@clisp.org>
26756             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26757
26758         lib-ignore: Determine different options for different compilers.
26759         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
26760         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
26761         Add comments.
26762         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
26763         * NEWS: Mention the change.
26764
26765 2010-03-27  Bruno Haible  <bruno@clisp.org>
26766
26767         Remove unused GNULIB_XYZ macro definitions.
26768         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26769         * modules/fseek (configure.ac): Likewise.
26770         * modules/ioctl (configure.ac): Likewise.
26771         * modules/open (configure.ac): Likewise.
26772         * modules/stdlib-safer (configure.ac): Likewise.
26773
26774 2010-03-27  Bruno Haible  <bruno@clisp.org>
26775
26776         Add a remark about certain modules.
26777         * modules/malloc (Comment): New section.
26778         * modules/realloc (Comment): Likewise.
26779         * modules/sigpipe (Comment): Likewise.
26780
26781 2010-03-27  Bruno Haible  <bruno@clisp.org>
26782
26783         Resolve conflict between the two kinds of module indicators.
26784         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
26785         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
26786         * modules/canonicalize (configure.ac): Invoke
26787         gl_MODULE_INDICATOR_FOR_TESTS.
26788         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
26789         GNULIB_XYZ.
26790         * tests/test-dirent-c++.cc: Likewise.
26791         * tests/test-dirent-safer.c: Likewise.
26792         * tests/test-dup2.c: Likewise.
26793         * tests/test-fchdir.c: Likewise.
26794         * tests/test-fcntl-h-c++.cc: Likewise.
26795         * tests/test-getopt.c: Likewise.
26796         * tests/test-getopt.h: Likewise.
26797         * tests/test-langinfo-c++.cc: Likewise.
26798         * tests/test-locale-c++.cc: Likewise.
26799         * tests/test-math-c++.cc: Likewise.
26800         * tests/test-pty-c++.cc: Likewise.
26801         * tests/test-search-c++.cc: Likewise.
26802         * tests/test-signal-c++.cc: Likewise.
26803         * tests/test-spawn-c++.cc: Likewise.
26804         * tests/test-stdio-c++.cc: Likewise.
26805         * tests/test-stdlib-c++.cc: Likewise.
26806         * tests/test-string-c++.cc: Likewise.
26807         * tests/test-sys_ioctl-c++.cc: Likewise.
26808         * tests/test-sys_select-c++.cc: Likewise.
26809         * tests/test-sys_socket-c++.cc: Likewise.
26810         * tests/test-sys_stat-c++.cc: Likewise.
26811         * tests/test-sys_time-c++.cc: Likewise.
26812         * tests/test-time-c++.cc: Likewise.
26813         * tests/test-unistd-c++.cc: Likewise.
26814         * tests/test-wchar-c++.cc: Likewise.
26815         * tests/uninorm/test-u8-nfc.c: Likewise.
26816         * tests/uninorm/test-u8-nfd.c: Likewise.
26817         * tests/uninorm/test-u8-nfkc.c: Likewise.
26818         * tests/uninorm/test-u8-nfkd.c: Likewise.
26819         * tests/uninorm/test-u16-nfc.c: Likewise.
26820         * tests/uninorm/test-u16-nfd.c: Likewise.
26821         * tests/uninorm/test-u16-nfkc.c: Likewise.
26822         * tests/uninorm/test-u16-nfkd.c: Likewise.
26823         * tests/uninorm/test-u32-nfc.c: Likewise.
26824         * tests/uninorm/test-u32-nfc-big.c: Likewise.
26825         * tests/uninorm/test-u32-nfd.c: Likewise.
26826         * tests/uninorm/test-u32-nfd-big.c: Likewise.
26827         * tests/uninorm/test-u32-nfkc.c: Likewise.
26828         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
26829         * tests/uninorm/test-u32-nfkd.c: Likewise.
26830         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
26831         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26832
26833 2010-03-27  Bruno Haible  <bruno@clisp.org>
26834
26835         Distinguish two kinds of module indicators.
26836         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
26837         gl_MODULE_INDICATOR.
26838         (gl_MODULE_INDICATOR): New macro.
26839         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26840         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
26841         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26842         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26843         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26844         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26845         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26846         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26847         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26848         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26849         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26850         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26851         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26852         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26853         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26854         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26855         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26856         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26857         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26858         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26859         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26860         * modules/cloexec (configure.ac): Likewise.
26861         * modules/getopt-gnu (configure.ac): Likewise.
26862         * modules/uninorm/u8-normalize (configure.ac): Likewise.
26863         * modules/uninorm/u16-normalize (configure.ac): Likewise.
26864         * modules/uninorm/u32-normalize (configure.ac): Likewise.
26865         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
26866
26867 2010-03-27  Bruno Haible  <bruno@clisp.org>
26868
26869         New module description field 'Comment'.
26870         * gnulib-tool: New option --extract-comment.
26871         (func_usage): Document it.
26872         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
26873         (func_get_comment): New function.
26874         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
26875
26876 2010-03-27  Bruno Haible  <bruno@clisp.org>
26877
26878         Addendum to 2010-02-07 commit.
26879         * gnulib-tool (func_usage): Document --extract-applicability option.
26880
26881 2010-03-27  Bruno Haible  <bruno@clisp.org>
26882
26883         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
26884         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
26885         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
26886         rather than link errors.
26887
26888 2010-03-27  Bruno Haible  <bruno@clisp.org>
26889
26890         Avoid side effects from tests-related modules on the compilation of lib.
26891         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
26892         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
26893         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
26894         parameter. Emit into AM_CPPFLAGS a definition of the designated C
26895         macro.
26896         (func_import): Define a witness macro. Assign it a value that depends
26897         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
26898         tests-related modules.
26899         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
26900         Reported by Jim Meyering.
26901
26902 2010-03-27  Bruno Haible  <bruno@clisp.org>
26903
26904         Factorize common .m4 code.
26905         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
26906         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
26907         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
26908         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
26909         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26910         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
26911         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
26912         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26913         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26914         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26915         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
26916         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26917         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26918         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26919         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26920         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
26921         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26922         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26923         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26924         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
26925         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
26926         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26927         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26928         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26929         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26930         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26931         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
26932         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
26933         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
26934         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26935         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26936         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26937
26938 2010-03-27  Bruno Haible  <bruno@clisp.org>
26939
26940         Fix a compilation error on Cygwin with g++ >= 4.3.
26941         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
26942         if it is undefined or if we alias it to chmod.
26943         (lstat): Don't warn about the use of this function if it is undefined
26944         or if we alias it to stat.
26945         Reported by Simon Josefsson.
26946
26947 2010-03-27  Bruno Haible  <bruno@clisp.org>
26948
26949         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
26950         * modules/getlogin (configure.ac): Update.
26951
26952         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
26953         * modules/getlogin_r (configure.ac): Update.
26954
26955         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
26956         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
26957         * modules/inet_ntop (configure.ac): Update.
26958
26959         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
26960         * modules/inet_pton (configure.ac): Update.
26961
26962         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
26963         * modules/mbslen (configure.ac): Update.
26964
26965         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
26966         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
26967         * modules/forkpty (configure.ac): Update.
26968         * modules/openpty (configure.ac): Update.
26969
26970 2010-03-26  Simon Josefsson  <simon@josefsson.org>
26971
26972         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
26973         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
26974
26975 2010-03-25  Eric Blake  <eblake@redhat.com>
26976
26977         maint: use pragma consistently across replacement headers
26978         * lib/ctype.in.h (system_header): Hoist for consistent placement.
26979         * lib/dirent.in.h (system_header): Likewise.
26980         * lib/errno.in.h (system_header): Likewise.
26981         * lib/float.in.h (system_header): Likewise.
26982         * lib/getopt.in.h (system_header): Likewise.
26983         * lib/iconv.in.h (system_header): Likewise.
26984         * lib/inttypes.in.h (system_header): Likewise.
26985         * lib/langinfo.in.h (system_header): Likewise.
26986         * lib/locale.in.h (system_header): Likewise.
26987         * lib/math.in.h (system_header): Likewise.
26988         * lib/netdb.in.h (system_header): Likewise.
26989         * lib/netinet_in.in.h (system_header): Likewise.
26990         * lib/pty.in.h (system_header): Likewise.
26991         * lib/sched.in.h (system_header): Likewise.
26992         * lib/se-selinux.in.h (system_header): Likewise.
26993         * lib/search.in.h (system_header): Likewise.
26994         * lib/spawn.in.h (system_header): Likewise.
26995         * lib/stdarg.in.h (system_header): Likewise.
26996         * lib/stdint.in.h (system_header): Likewise.
26997         * lib/string.in.h (system_header): Likewise.
26998         * lib/strings.in.h (system_header): Likewise.
26999         * lib/sys_file.in.h (system_header): Likewise.
27000         * lib/sys_ioctl.in.h (system_header): Likewise.
27001         * lib/sys_socket.in.h (system_header): Likewise.
27002         * lib/sys_times.in.h (system_header): Likewise.
27003         * lib/sys_utsname.in.h (system_header): Likewise.
27004         * lib/sys_wait.in.h (system_header): Likewise.
27005         * lib/sysexits.in.h (system_header): Likewise.
27006         * lib/unistd.in.h (system_header): Likewise.
27007         * lib/wctype.in.h (system_header): Likewise.
27008
27009         arpa/inet: fix mingw compilation warning
27010         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
27011         Reported by Matthew Bolte.
27012
27013 2010-03-25  Bruno Haible  <bruno@clisp.org>
27014
27015         Avoid collision between gnulib wrapper and libintl wrapper.
27016         * lib/printf.c (printf): Don't define if a printf wrapper is already
27017         defined in intl/printf.c.
27018         Reported by Michel Boaventura <michel@michelboaventura.com>.
27019
27020 2010-03-25  Bruno Haible  <bruno@clisp.org>
27021
27022         Use ANSI C.
27023         * lib/readutmp.h (getutent): Provide ANSI C prototype.
27024
27025 2010-03-25  Bruno Haible  <bruno@clisp.org>
27026
27027         Minor formatting changes.
27028         * lib/acosl.c: Insert space before function argument list.
27029         * lib/argz.c: Likewise.
27030         * lib/asinl.c: Likewise.
27031         * lib/expl.c: Likewise.
27032         * lib/gen-uni-tables.c: Likewise.
27033         * lib/gettext.h: Likewise.
27034         * lib/glthread/lock.h: Likewise.
27035         * lib/tanl.c: Likewise.
27036         * lib/uniname/uniname.c: Likewise.
27037         * tests/test-idpriv-drop.c: Likewise.
27038         * tests/test-idpriv-droptemp.c: Likewise.
27039         * tests/test-lock.c: Likewise.
27040         * tests/test-tls.c: Likewise.
27041         * lib/argp-help.c: Insert space before function-like macro argument
27042         list.
27043         * lib/memcmp.c: Likewise.
27044         * tests/test-base64.c: Likewise.
27045         * lib/localename.c: Insert space before sizeof's argument list.
27046         * lib/safe-alloc.h: Likewise.
27047         * lib/file-set.h: Insert space before macro argument list.
27048         * tests/test-argp.c: Likewise.
27049         * lib/argp-namefrob.h: Insert space before function parameter list.
27050         * lib/getaddrinfo.c: Likewise.
27051         * lib/netdb.in.h: Likewise.
27052         * lib/parse-duration.h: Likewise.
27053         * lib/parse-duration.c: Likewise.
27054         * lib/poll.c: Likewise.
27055         * lib/select.c: Likewise.
27056         * lib/trim.h: Likewise.
27057         * tests/test-usleep.c: Likewise.
27058         * lib/ldexpl.c: Insert space before function parameter list and before
27059         function argument list.
27060         * lib/logl.c: Likewise.
27061         * lib/sqrtl.c: Likewise.
27062         * lib/trim.c: Likewise.
27063         * lib/cosl.c: Use GNU style indentation. Insert space before function
27064         argument list.
27065         * lib/sinl.c: Likewise.
27066         * lib/tsearch.c: Insert space after 'for'.
27067         Reported by Jim Meyering.
27068
27069 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
27070
27071         * maint.mk (sc_Wundef_boolean): Check for the presence of the
27072         config header before grepping, as it's not present before
27073         autoreconf/configure are run.  Reported by Simon Josefsson.
27074
27075 2010-03-23  Bruno Haible  <bruno@clisp.org>
27076
27077         pt_chown: Make it work with automake < 1.11.
27078         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
27079         Reported by Simon Josefsson.
27080
27081 2010-03-23  Bruno Haible  <bruno@clisp.org>
27082
27083         pt_chown: Don't depend on GPLed modules.
27084         * lib/pt_chown.c: Don't include idpriv.h.
27085         (main): Don't drop privileges.
27086         * modules/pt_chown (Depends-on): Remove idpriv-drop.
27087         Reported by Simon Josefsson.
27088
27089 2010-03-24  Simon Josefsson  <simon@josefsson.org>
27090
27091         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
27092         suggestions from karl@freefriends.org (Karl Berry).
27093
27094 2010-03-22  Eric Blake  <eblake@redhat.com>
27095
27096         gethostname: further tweaks
27097         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
27098         are overriding gethostname.
27099         Suggested by Bruno Haible.
27100
27101 2010-03-21  Bruno Haible  <bruno@clisp.org>
27102
27103         Fix comments.
27104         * lib/forkpty.c (rpl_forkpty): Fix comment.
27105         * lib/openpty.c (rpl_openpty): Likewise.
27106         Reported by Eric Blake.
27107
27108 2010-03-22  Eric Blake  <eblake@redhat.com>
27109
27110         gethostname: fix build on mingw
27111         * lib/unistd.in.h (includes): Work around fact that mingw
27112         <winsock2.h> re-includes <unistd.h>, by avoiding any
27113         redeclarations if we are being included by <winsock2.h>.
27114         Reported by Matthias Bolte.
27115
27116 2010-03-21  Bruno Haible  <bruno@clisp.org>
27117
27118         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27119         * lib/forkpty.c (forkpty): New replacement function, from glibc with
27120         modifications.
27121         * lib/pty.in.h (forkpty): Update declaration. Add comments.
27122         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
27123         provide the replacement.
27124         * modules/forkpty (Depends-on): Add openpty, login_tty.
27125         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
27126         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
27127         * doc/glibc-functions/forkpty.texi: More supported platforms.
27128         * config/srclist.txt: Add forkpty.c (commented).
27129
27130 2010-03-21  Bruno Haible  <bruno@clisp.org>
27131
27132         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
27133         (Makefile.am): Verify that PTY_LIB is defined.
27134
27135         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
27136
27137 2010-03-21  Bruno Haible  <bruno@clisp.org>
27138
27139         Tests for module 'login_tty'.
27140         * modules/login_tty-tests: New file.
27141         * tests/test-login_tty.c: New file.
27142
27143         New module 'login_tty'.
27144         * lib/login_tty.c: New file.
27145         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
27146         * modules/login_tty: New file.
27147         * doc/glibc-functions/login_tty.texi: Mention the new module.
27148
27149 2010-03-21  Bruno Haible  <bruno@clisp.org>
27150
27151         login_tty: Documentation.
27152         * doc/glibc-functions/login_tty.texi: New file.
27153         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
27154
27155 2010-03-21  Bruno Haible  <bruno@clisp.org>
27156
27157         pty: Consistent macro naming.
27158         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
27159         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
27160         * modules/pty (configure.ac): Update.
27161
27162 2010-03-21  Bruno Haible  <bruno@clisp.org>
27163
27164         Tests for openpty: Make stricter.
27165         * tests/test-openpty.c (main): Add test of canonical processing and
27166         erase.
27167         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
27168
27169         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27170         * lib/openpty.c (openpty): New replacement function.
27171         * lib/pty.in.h: Include <termios.h>.
27172         (openpty): Update declaration. Add comments.
27173         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
27174         is not declared, arrange to provide the replacement. Check for _getpty
27175         and posix_openpt.
27176         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
27177         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
27178         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
27179         * modules/pty-tests (test_pty_c___LDADD): New variable.
27180         * doc/glibc-functions/openpty.texi: More supported platforms.
27181
27182 2010-03-21  Bruno Haible  <bruno@clisp.org>
27183
27184         setenv: Tweaks.
27185         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
27186         the test program.
27187         * doc/posix-functions/setenv.texi: Update platforms list.
27188
27189 2010-03-21  Bruno Haible  <bruno@clisp.org>
27190
27191         New module 'unlockpt'.
27192         * lib/unlockpt.c: New file, from glibc with modifications.
27193         * m4/unlockpt.m4: New file.
27194         * modules/unlockpt: New file.
27195         * lib/stdlib.in.h (unlockpt): New declaration.
27196         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
27197         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
27198         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
27199         HAVE_UNLOCKPT.
27200         * doc/posix-functions/unlockpt.texi: Mention the new module.
27201         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
27202         * config/srclist.txt: Add unlockpt.c (commented).
27203
27204 2010-03-21  Jim Meyering  <meyering@redhat.com>
27205
27206         maint.mk: prohibit inclusion of "intprops.h" without use
27207         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
27208
27209 2010-03-21  Bruno Haible  <bruno@clisp.org>
27210
27211         New module 'grantpt'.
27212         * lib/grantpt.c: New file, from glibc with modifications.
27213         * m4/grantpt.m4: New file.
27214         * modules/grantpt: New file.
27215         * lib/stdlib.in.h (grantpt): New declaration.
27216         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
27217         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
27218         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
27219         HAVE_GRANTPT.
27220         * doc/posix-functions/grantpt.texi: Mention the new module.
27221         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
27222         * config/srclist.txt: Add grantpt.c (commented).
27223
27224 2010-03-21  Bruno Haible  <bruno@clisp.org>
27225
27226         New module 'pt_chown'.
27227         * lib/pt_chown.c: New file, from glibc with modifications.
27228         * lib/pty-private.h: New file, from glibc with modifications.
27229         * modules/pt_chown: New file.
27230         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
27231
27232 2010-03-21  Bruno Haible  <bruno@clisp.org>
27233
27234         Tests for module 'ptsname'.
27235         * modules/ptsname-tests: New file.
27236         * tests/test-ptsname.c: New file.
27237
27238         New module 'ptsname'.
27239         * lib/ptsname.c: New file, from glibc with modifications.
27240         * m4/ptsname.m4: New file.
27241         * modules/ptsname: New file.
27242         * lib/stdlib.in.h (ptsname): New declaration.
27243         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
27244         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
27245         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
27246         HAVE_PTSNAME.
27247         * doc/posix-functions/ptsname.texi: Mention the new module.
27248         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
27249         * config/srclist.txt: Add ptsname.c (commented).
27250
27251 2010-03-21  Bruno Haible  <bruno@clisp.org>
27252
27253         Tests for module 'ttyname_r'.
27254         * modules/ttyname_r-tests: New file.
27255         * tests/test-ttyname_r.c: New file.
27256
27257         New module 'ttyname_r'.
27258         * lib/ttyname_r.c: New file.
27259         * m4/ttyname_r.m4: New file.
27260         * modules/ttyname_r: New file.
27261         * lib/unistd.in.h (ttyname_r): New declaration.
27262         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
27263         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
27264         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
27265         HAVE_TTYNAME_R.
27266         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
27267         * doc/posix-functions/ttyname_r.texi: Mention the new module.
27268
27269 2010-03-20  Bruno Haible  <bruno@clisp.org>
27270
27271         signal: Undefine macro definitions in C++ mode.
27272         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
27273         sigfillset): Undefine macro definitions from the system header in C++
27274         mode.
27275         Reported by John W. Eaton <jwe@gnu.org>.
27276
27277 2010-03-20  Bruno Haible  <bruno@clisp.org>
27278
27279         Ensure no #include statements inside extern "C" { ... }.
27280         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
27281         contain #include statements.
27282         * lib/time.in.h: Likewise.
27283
27284 2010-03-20  Bruno Haible  <bruno@clisp.org>
27285
27286         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
27287         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
27288         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
27289         Reported by John W. Eaton <jwe@gnu.org>.
27290
27291 2010-03-20  Bruno Haible  <bruno@clisp.org>
27292
27293         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
27294         Reported by Jim Meyering.
27295
27296 2010-03-20  Bruno Haible  <bruno@clisp.org>
27297
27298         pipe: Set errno upon failure.
27299         * lib/pipe.h: Specify that when -1 is returned, errno is set.
27300         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
27301         errno value in error message.
27302
27303 2010-03-20  Bruno Haible  <bruno@clisp.org>
27304             Jim Meyering  <meyering@redhat.com>
27305
27306         lchown: Avoid "unused variable" warning.
27307         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
27308
27309 2010-03-20  Bruno Haible  <bruno@clisp.org>
27310
27311         Work around unlink() bug on MacOS X 10.5.6.
27312         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
27313         attempting to unlink a parent directory.
27314         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
27315         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
27316         activate for the replacement function.
27317         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
27318
27319 2010-03-20  Bruno Haible  <bruno@clisp.org>
27320
27321         Fix link errors on Solaris 8.
27322         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
27323         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
27324
27325 2010-03-19  Jim Meyering  <meyering@redhat.com>
27326
27327         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
27328         The _LIBC implementation of build_range_exp correctly honors the
27329         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
27330         However, the non-_LIBC implementation would ignore that syntax-bit
27331         flag and return REG_ERANGE unconditionally.
27332         This change makes it honor that flag.
27333         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
27334         Make two pointer parameters "const".
27335         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
27336         (parse_bracket_exp): Update caller.
27337
27338         regex.m4: correct the reversed range endpoint ([b-a]) test
27339         * m4/regex.m4: When requiring that [b-a] evoke failure,
27340         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
27341         test pass once again for x86-based systems.
27342
27343 2010-03-19  Bruno Haible  <bruno@clisp.org>
27344
27345         scandir: Fix link error on Solaris 8.
27346         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
27347         macros.
27348
27349 2010-03-19  Bruno Haible  <bruno@clisp.org>
27350
27351         getusershell: Fix documentation.
27352         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
27353         module.
27354         * doc/glibc-functions/setusershell.texi: Likewise.
27355
27356         getusershell: Provide declaration, missing on Solaris 9.
27357         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
27358         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
27359         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
27360         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
27361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27362         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
27363         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
27364         HAVE_GETUSERSHELL.
27365         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
27366
27367 2010-03-19  Bruno Haible  <bruno@clisp.org>
27368
27369         wctype: Provide iswblank function.
27370         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
27371         exists and is fine.
27372         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
27373         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
27374         * tests/test-wctype.c (main): Re-enable the iswblank tests.
27375         * doc/posix-functions/iswblank.texi: Update.
27376
27377 2010-03-19  Bruno Haible  <bruno@clisp.org>
27378
27379         Tests of module 'pty' in C++ mode.
27380         * modules/pty-tests: New file.
27381         * tests/test-pty-c++.cc: New file.
27382         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27383
27384 2010-03-19  Eric Blake  <eblake@redhat.com>
27385
27386         logb: fix documentation
27387         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
27388         1.5 declaration bug.
27389
27390         forkpty, openpty: prefer glibc's const-safe prototype
27391         * lib/forkpty.c (rpl_forkpty): New file.
27392         * lib/openpty.c (rpl_openpty): Likewise.
27393         * modules/forkpty (Files): Distribute it.
27394         * modules/openpty (Files): Likewise.
27395         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
27396         check...
27397         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
27398         replacement for for non-const BSD signature.
27399         * modules/pty (Makefile.am): Substitute witnesses.
27400         * lib/pty.in.h (forkpty, openpty): Declare replacements.
27401         * tests/test-forkpty.c: Update signature check.
27402         * tests/test-openpty.c: Likewise.
27403         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
27404         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27405
27406         forkpty, openpty: split functions into new modules
27407         * modules/pty (Makefile.am): Substitute new witnesses.
27408         (Libraries): Move library detection...
27409         * modules/forkpty: ...into new module.
27410         * modules/openpty: Another new module.
27411         * modules/pty-tests: Rename and split...
27412         * modules/forkpty-tests: ...to this...
27413         * modules/openpty-tests: ...and this.
27414         * tests/test-pty.c: Rename and split...
27415         * tests/test-forkpty.c: ...to this...
27416         * tests/test-openpty.c: ...and this.
27417         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
27418         (gl_PTY): Split library searching...
27419         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
27420         (gl_FORKPTY, gl_OPENPTY): New macros.
27421         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
27422         * NEWS: Mention the split.
27423         * MODULES.html.sh (Misc): Document the modules.
27424         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
27425         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27426
27427         pty: improve replacement header
27428         * lib/pty.in.h: New file.
27429         * modules/pty (Files): Ship it.
27430         (Makefile.am): Always build replacement.
27431         * m4/pty.m4: Rename...
27432         * m4/pty_h.m4: ...to this.
27433         (gl_PTY): Modernize setting of witness macros; update check of
27434         forkpty to take proper advantage of cache.
27435         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
27436
27437         getopt: avoid compiler warning
27438         * lib/getopt.c (attribute_hidden): Remove unused macro.
27439
27440 2010-03-18  Bruno Haible  <bruno@clisp.org>
27441
27442         Fix link errors on Solaris 8.
27443         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
27444         * modules/search-tests (test_search_c___LDADD): Likewise.
27445         * modules/signal-tests (test_signal_c___LDADD): Likewise.
27446         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
27447         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
27448         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
27449         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
27450         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
27451         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
27452
27453 2010-03-18  Bruno Haible  <bruno@clisp.org>
27454
27455         Fix bug introduced on 2010-03-14.
27456         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
27457         (gl_SPAWN_H): Require it.
27458         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
27459         Reported by Simon Josefsson.
27460
27461 2010-03-18  Bruno Haible  <bruno@clisp.org>
27462
27463         Fix typo introduced on 2009-12-31.
27464         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
27465         posix_spawn_file_actions_adddup2.
27466
27467 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
27468         and Eric Blake  <eblake@redhat.com>
27469
27470         test-vc-list-files-git: make more robust
27471         * tests/test-vc-list-files-git.sh: Unset problematic environment
27472         variables.  Chain commands together.
27473
27474 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
27475
27476         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
27477         `AC_CHECK_DECL' invocation.
27478
27479 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
27480
27481         * lib/inttostr.c (inttostr): Make sure the invocation of verify
27482         appears before executable statements. Suggested by Petr Sumbera
27483         <Petr.Sumbera@Sun.COM>.
27484
27485 2010-03-14  Bruno Haible  <bruno@clisp.org>
27486
27487         * tests/test-flock.c (test_exclusive): Comment out a test that causes
27488         portability problems. Instead use a simpler test.
27489         (main): Check that invalid arguments are rejected only on Linux.
27490
27491 2010-03-14  Bruno Haible  <bruno@clisp.org>
27492
27493         Fix bug introduced on 2009-12-31.
27494         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27495         gl_PREREQ_SYS_H_WINSOCK2 always.
27496         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
27497         SYS_SOCKET_H variable.
27498         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
27499         Update comments.
27500         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
27501         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27502         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27503         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27504         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
27505
27506 2010-03-14  Bruno Haible  <bruno@clisp.org>
27507
27508         Fix values returned by sinl, cosl.
27509         * lib/trigl.h: Add specification comments.
27510         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
27511         that combines the values from the precomputed table with the values of
27512         the Chebyshev polynomials.
27513
27514 2010-03-14  Bruno Haible  <bruno@clisp.org>
27515
27516         Fix compilation error when modules 'posix_spawn[p]' are not used.
27517         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
27518         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
27519
27520 2010-03-14  Bruno Haible  <bruno@clisp.org>
27521
27522         Fix compilation error on mingw when module 'time_r' is not used.
27523         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
27524         is 1.
27525         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
27526         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27527         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
27528         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
27529
27530 2010-03-14  Bruno Haible  <bruno@clisp.org>
27531
27532         Fix compilation error with Sun C.
27533         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
27534         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
27535         instead of GCC specific ULONG_LONG_MAX.
27536         * lib/xstrtoll.c: Likewise.
27537         * lib/xstrtoull.c: Likewise.
27538
27539 2010-03-13  Bruno Haible  <bruno@clisp.org>
27540
27541         Allow the user to disable C++ code and tests.
27542         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
27543         (gl_PROG_ANSI_CXX): Require it.
27544
27545 2010-03-13  Bruno Haible  <bruno@clisp.org>
27546
27547         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
27548         cases.
27549
27550 2010-03-13  Bruno Haible  <bruno@clisp.org>
27551
27552         Test that gnulib does not break the standard C++ headers.
27553         * tests/test-locale-c++2.cc: New file.
27554         * modules/locale-tests (Files): Add it.
27555         (Makefile.am): Compile it for test-locale-c++.
27556         * tests/test-math-c++2.cc: New file.
27557         * modules/math-tests (Files): Add it.
27558         (Makefile.am): Compile it for test-math-c++.
27559         * tests/test-signal-c++2.cc: New file.
27560         * modules/signal-tests (Files): Add it.
27561         (Makefile.am): Compile it for test-signal-c++.
27562         * tests/test-stdio-c++2.cc: New file.
27563         * modules/stdio-tests (Files): Add it.
27564         (Makefile.am): Compile it for test-stdio-c++.
27565         * tests/test-stdlib-c++2.cc: New file.
27566         * modules/stdlib-tests (Files): Add it.
27567         (Makefile.am): Compile it for test-stdlib-c++.
27568         * tests/test-string-c++2.cc: New file.
27569         * modules/string-tests (Files): Add it.
27570         (Makefile.am): Compile it for test-string-c++.
27571         * tests/test-time-c++2.cc: New file.
27572         * modules/time-tests (Files): Add it.
27573         (Makefile.am): Compile it for test-time-c++.
27574         Reported by John W. Eaton <jwe@gnu.org>.
27575
27576 2010-03-13  Bruno Haible  <bruno@clisp.org>
27577
27578         * gnulib-tool (func_usage): Clarify which options are available for
27579         --create-testdir and --create-megatestdir.
27580
27581 2010-03-13  Bruno Haible  <bruno@clisp.org>
27582
27583         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
27584         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
27585         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
27586         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27587         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
27588         when appropriate.
27589         Reported by Jim Meyering.
27590
27591 2010-03-12  Simon Josefsson  <simon@josefsson.org>
27592
27593         * gnulib-tool (func_import): Explain origin of code.
27594
27595 2010-03-12  Bruno Haible  <bruno@clisp.org>
27596
27597         Fix problem with automake's definition of CXXLINK.
27598         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
27599         Reported by Simon Josefsson and Ludovic Courtès.
27600
27601 2010-03-12  Bruno Haible  <bruno@clisp.org>
27602
27603         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
27604         stable releases.
27605
27606 2010-03-11  Bruno Haible  <bruno@clisp.org>
27607
27608         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
27609         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
27610         whether the system provides one variant or multiple variants of the
27611         function.
27612         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
27613         C++ compilers.
27614         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
27615         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
27616         Reported by Jim Meyering.
27617
27618 2010-03-09  Simon Josefsson  <simon@josefsson.org>
27619
27620         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
27621
27622 2010-03-08  Bruno Haible  <bruno@clisp.org>
27623
27624         gnulib-tool: Add support for --libtool in --create-testdir.
27625         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
27626         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
27627
27628 2010-03-08  Eric Blake  <eblake@redhat.com>
27629
27630         gnulib-tool.texi: mention possibility of git submodule
27631         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
27632         submodules.
27633         * doc/.gitignore: Ignore another generated file.
27634
27635 2010-03-08  Karl Berry  <karl@gnu.org>
27636
27637         * doc/gnulib-tool.texi (VCS Issues): Mention third option
27638         of committing gnulib files while skipping others.
27639
27640 2010-03-07  Bruno Haible  <bruno@clisp.org>
27641
27642         Tests of module 'wctype' in C++ mode.
27643         * tests/test-wctype-c++.cc: New file.
27644         * modules/wctype-tests (Files): Add it and tests/signature.h.
27645         (Depends-on): Add ansi-c++-opt.
27646         (Makefile.am): Arrange to compile and run test-wctype-c++.
27647
27648         Tests of module 'wchar' in C++ mode.
27649         * tests/test-wchar-c++.cc: New file.
27650         * modules/wchar-tests (Files): Add it and tests/signature.h.
27651         (Depends-on): Add ansi-c++-opt.
27652         (Makefile.am): Arrange to compile and run test-wchar-c++.
27653         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
27654         gl_MODULE_INDICATOR.
27655
27656         Tests of module 'unistd' in C++ mode.
27657         * tests/test-unistd-c++.cc: New file.
27658         * modules/unistd-tests (Files): Add it and tests/signature.h.
27659         (Depends-on): Add ansi-c++-opt.
27660         (Makefile.am): Arrange to compile and run test-unistd-c++.
27661         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
27662         gl_MODULE_INDICATOR.
27663
27664         Tests of module 'time' in C++ mode.
27665         * tests/test-time-c++.cc: New file.
27666         * modules/time-tests (Files): Add it and tests/signature.h.
27667         (Depends-on): Add ansi-c++-opt.
27668         (Makefile.am): Arrange to compile and run test-time-c++.
27669         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27670
27671         Tests of module 'sys_time' in C++ mode.
27672         * tests/test-sys_time-c++.cc: New file.
27673         * modules/sys_time-tests (Files): Add it and tests/signature.h.
27674         (Depends-on): Add ansi-c++-opt.
27675         (Makefile.am): Arrange to compile and run test-sys_time-c++.
27676         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
27677         gl_MODULE_INDICATOR.
27678
27679         Tests of module 'sys_stat' in C++ mode.
27680         * tests/test-sys_stat-c++.cc: New file.
27681         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
27682         (Depends-on): Add ansi-c++-opt.
27683         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
27684         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
27685         gl_MODULE_INDICATOR.
27686
27687         Tests of module 'sys_socket' in C++ mode.
27688         * tests/test-sys_socket-c++.cc: New file.
27689         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
27690         (Depends-on): Add ansi-c++-opt.
27691         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
27692         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
27693         gl_MODULE_INDICATOR.
27694
27695         Tests of module 'sys_select' in C++ mode.
27696         * tests/test-sys_select-c++.cc: New file.
27697         * modules/sys_select-tests (Files): Add it and tests/signature.h.
27698         (Depends-on): Add ansi-c++-opt.
27699         (Makefile.am): Arrange to compile and run test-sys_select-c++.
27700         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
27701         gl_MODULE_INDICATOR.
27702
27703         Tests of module 'sys_ioctl' in C++ mode.
27704         * tests/test-sys_ioctl-c++.cc: New file.
27705         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
27706         (Depends-on): Add ansi-c++-opt.
27707         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
27708         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
27709         gl_MODULE_INDICATOR.
27710
27711         Tests of module 'string' in C++ mode.
27712         * tests/test-string-c++.cc: New file.
27713         * modules/string-tests (Files): Add it and tests/signature.h.
27714         (Depends-on): Add ansi-c++-opt.
27715         (Makefile.am): Arrange to compile and run test-string-c++.
27716         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
27717         gl_MODULE_INDICATOR.
27718
27719         Tests of module 'stdlib' in C++ mode.
27720         * tests/test-stdlib-c++.cc: New file.
27721         * modules/stdlib-tests (Files): Add it and tests/signature.h.
27722         (Depends-on): Add ansi-c++-opt.
27723         (Makefile.am): Arrange to compile and run test-stdlib-c++.
27724         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
27725         gl_MODULE_INDICATOR.
27726
27727         Tests of module 'stdio' in C++ mode.
27728         * tests/test-stdio-c++.cc: New file.
27729         * modules/stdio-tests (Files): Add it and tests/signature.h.
27730         (Depends-on): Add ansi-c++-opt.
27731         (Makefile.am): Arrange to compile and run test-stdio-c++.
27732         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
27733         gl_MODULE_INDICATOR.
27734
27735         Tests of module 'spawn' in C++ mode.
27736         * tests/test-spawn-c++.cc: New file.
27737         * modules/spawn-tests (Files): Add it and tests/signature.h.
27738         (Depends-on): Add ansi-c++-opt.
27739         (Makefile.am): Arrange to compile and run test-spawn-c++.
27740         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
27741         gl_MODULE_INDICATOR.
27742
27743         Tests of module 'signal' in C++ mode.
27744         * tests/test-signal-c++.cc: New file.
27745         * modules/signal-tests (Files): Add it and tests/signature.h.
27746         (Depends-on): Add ansi-c++-opt.
27747         (Makefile.am): Arrange to compile and run test-signal-c++.
27748         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
27749         gl_MODULE_INDICATOR.
27750
27751         Tests of module 'search' in C++ mode.
27752         * tests/test-search-c++.cc: New file.
27753         * modules/search-tests (Files): Add it and tests/signature.h.
27754         (Depends-on): Add ansi-c++-opt.
27755         (Makefile.am): Arrange to compile and run test-search-c++.
27756         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
27757         gl_MODULE_INDICATOR.
27758
27759         Tests of module 'math' in C++ mode.
27760         * tests/test-math-c++.cc: New file.
27761         * modules/math-tests (Files): Add it and tests/signature.h.
27762         (Depends-on): Add ansi-c++-opt.
27763         (Makefile.am): Arrange to compile and run test-math-c++.
27764         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27765
27766         Tests of module 'locale' in C++ mode.
27767         * tests/test-locale-c++.cc: New file.
27768         * modules/locale-tests (Files): Add it and tests/signature.h.
27769         (Depends-on): Add ansi-c++-opt.
27770         (Makefile.am): Arrange to compile and run test-locale-c++.
27771         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
27772         gl_MODULE_INDICATOR.
27773
27774         Tests of module 'langinfo' in C++ mode.
27775         * tests/test-langinfo-c++.cc: New file.
27776         * modules/langinfo-tests (Files): Add it and tests/signature.h.
27777         (Depends-on): Add ansi-c++-opt.
27778         (Makefile.am): Arrange to compile and run test-langinfo-c++.
27779         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
27780         gl_MODULE_INDICATOR.
27781
27782         Tests of module 'iconv-h' in C++ mode.
27783         * tests/test-iconv-h-c++.cc: New file.
27784         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
27785         (Depends-on): Add ansi-c++-opt.
27786         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
27787
27788         Tests of module 'glob' in C++ mode.
27789         * tests/test-glob-c++.cc: New file.
27790         * modules/glob-tests (Files): Add it.
27791         (Depends-on): Add ansi-c++-opt.
27792         (Makefile.am): Arrange to compile and run test-glob-c++.
27793
27794         Tests of module 'fcntl-h' in C++ mode.
27795         * tests/test-fcntl-h-c++.cc: New file.
27796         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
27797         (Depends-on): Add ansi-c++-opt.
27798         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
27799         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
27800         gl_MODULE_INDICATOR.
27801
27802         Tests of module 'dirent' in C++ mode.
27803         * tests/test-dirent-c++.cc: New file.
27804         * modules/dirent-tests (Files): Add it and tests/signature.h.
27805         (Depends-on): Add ansi-c++-opt.
27806         (Makefile.am): Arrange to compile and run test-dirent-c++.
27807         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27808         gl_MODULE_INDICATOR.
27809
27810         New module 'ansi-c++-opt'.
27811         * modules/ansi-c++-opt: New file.
27812         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
27813
27814         Document C++ namespace mode.
27815         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
27816
27817         wctype: Avoid #define replacements in C++ mode.
27818         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
27819         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
27820         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
27821         In C++, define a namespaced alias symbol.
27822         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
27823         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
27824         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
27825         rule.
27826
27827         wchar: Avoid #define replacements in C++ mode.
27828         * lib/wchar.in.h: Include c++defs.h.
27829         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
27830         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
27831         symbol.
27832         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
27833         * modules/wchar (Depends-on): Add c++defs.
27834         (Makefile.am): Update wchar.h rule.
27835
27836         unistd: Avoid #define replacements in C++ mode.
27837         * lib/unistd.in.h: Include c++defs.h.
27838         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
27839         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
27840         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
27841         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
27842         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
27843         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
27844         symbol.
27845         (environ): Update.
27846         * modules/unistd (Depends-on): Add c++defs.
27847         (Makefile.am): Update unistd.h rule.
27848
27849         time: Avoid #define replacements in C++ mode.
27850         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
27851         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
27852         define a namespaced alias symbol.
27853         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
27854         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
27855         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
27856         * modules/time (Depends-on): Add c++defs, warn-on-use.
27857         (Makefile.am): Update time.h rule.
27858         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27859         * modules/nanosleep (configure.ac): Likewise.
27860         * modules/strptime (configure.ac): Likewise.
27861         * modules/timegm (configure.ac): Likewise.
27862
27863         sys_time: Avoid #define replacements in C++ mode.
27864         * lib/sys_time.in.h: Include c++defs.h.
27865         (gettimeofday): In C++, define a namespaced alias symbol.
27866         * modules/sys_time (Depends-on): Add c++defs.
27867         (Makefile.am): Update sys/time.h rule.
27868
27869         sys_stat: Avoid #define replacements in C++ mode.
27870         * lib/sys_stat.in.h: Include c++defs.h.
27871         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
27872         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
27873         namespaced alias symbol.
27874         In C++, define a namespaced alias symbol.
27875         * modules/sys_stat (Depends-on): Add c++defs.
27876         (Makefile.am): Update sys/stat.h rule.
27877
27878         sys_socket: Avoid #define replacements in C++ mode.
27879         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
27880         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
27881         definitions also when the system has a <sys/socket.h>.
27882         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27883         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
27884         In C++, define a namespaced alias symbol.
27885         * modules/sys_socket (Depends-on): Add c++defs.
27886         (Makefile.am): Update sys/socket.h rule.
27887
27888         sys_select: Avoid #define replacements in C++ mode.
27889         * lib/sys_select.in.h: Include c++defs.h. Enable the function
27890         definitions also when the system has a <sys/select.h>.
27891         (select): In C++, define a namespaced alias symbol.
27892         * modules/sys_select (Depends-on): Add c++defs.
27893         (Makefile.am): Update sys/select.h rule.
27894
27895         sys_ioctl: Avoid #define replacements in C++ mode.
27896         * lib/sys_ioctl.in.h: Include c++defs.h.
27897         (ioctl): In C++, define a namespaced alias symbol.
27898         * modules/sys_ioctl (Depends-on): Add c++defs.
27899         (Makefile.am): Update sys/ioctl.h rule.
27900
27901         string: Avoid #define replacements in C++ mode.
27902         * lib/string.in.h: Include c++defs.h.
27903         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
27904         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27905         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27906         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
27907         strsignal, strverscmp): In C++, define a namespaced alias symbol.
27908         * modules/string (Depends-on): Add c++defs.
27909         (Makefile.am): Update string.h rule.
27910
27911         stdlib: Avoid #define replacements in C++ mode.
27912         * lib/stdlib.in.h: Include c++defs.h.
27913         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
27914         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
27915         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
27916         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
27917         symbol.
27918         * modules/stdlib (Depends-on): Add c++defs.
27919         (Makefile.am): Update stdlib.h rule.
27920
27921         stdio: Avoid #define replacements in C++ mode.
27922         * lib/stdio.in.h: Include c++defs.h.
27923         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
27924         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
27925         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
27926         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
27927         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
27928         namespaced alias symbol.
27929         * modules/stdio (Depends-on): Add c++defs.
27930         (Makefile.am): Update stdio.h rule.
27931
27932         spawn: Avoid #define replacements in C++ mode.
27933         * lib/spawn.in.h: Include c++defs.h.
27934         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27935         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27936         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27937         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27938         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27939         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27940         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27941         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27942         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27943         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27944         In C++, define a namespaced alias symbol.
27945         * modules/spawn (Depends-on): Add c++defs.
27946         (Makefile.am): Update spawn.h rule.
27947
27948         signal: Avoid #define replacements in C++ mode.
27949         * lib/signal.in.h: Include c++defs.h.
27950         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27951         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
27952         namespaced alias symbol.
27953         * modules/signal (Depends-on): Add c++defs.
27954         (Makefile.am): Update signal.h rule.
27955
27956         search: Avoid #define replacements in C++ mode.
27957         * lib/search.in.h: Include c++defs.h.
27958         (_gl_search_compar_fn, _gl_search_action_fn): New types.
27959         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
27960         symbol.
27961         * modules/search (Depends-on): Add c++defs.
27962         (Makefile.am): Update search.h rule.
27963
27964         math: Avoid #define replacements in C++ mode.
27965         * lib/math.in.h: Include c++defs.h.
27966         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
27967         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
27968         trunc, truncl): In C++, define a namespaced alias symbol.
27969         * modules/math (Depends-on): Add c++defs.
27970         (Makefile.am): Update math.h rule.
27971
27972         locale: Avoid #define replacements in C++ mode.
27973         * lib/locale.in.h: Include c++defs.h.
27974         (duplocale): In C++, define a namespaced alias symbol.
27975         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
27976         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
27977         * modules/locale (Depends-on): Add c++defs.
27978         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
27979
27980         langinfo: Avoid #define replacements in C++ mode.
27981         * lib/langinfo.in.h: Include c++defs.h.
27982         (nl_langinfo): In C++, define a namespaced alias symbol.
27983         * modules/langinfo (Depends-on): Add c++defs.
27984         (Makefile.am): Update langinfo.h rule.
27985
27986         iconv-h: Avoid #define replacements in C++ mode.
27987         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
27988         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
27989         symbol.
27990         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
27991         whenever iconv is present.
27992         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
27993         (Makefile.am): Update iconv.h rule.
27994
27995         glob: Avoid #define replacements in C++ mode.
27996         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
27997         (_gl_glob_errfunc_fn): New type.
27998         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
27999         symbol.
28000         * modules/glob (Depends-on): Add c++defs, warn-on-use.
28001         (Makefile.am): Update glob.h rule.
28002
28003         fcntl-h: Avoid #define replacements in C++ mode.
28004         * lib/fcntl.in.h: Include c++defs.h.
28005         (fcntl, open, openat): In C++, define a namespaced alias symbol.
28006         * modules/fcntl-h (Depends-on): Add c++defs.
28007         (Makefile.am): Update fcntl.h rule.
28008
28009         dirent: Avoid #define replacements in C++ mode.
28010         * lib/dirent.in.h: Include c++defs.h.
28011         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
28012         namespaced alias symbol.
28013         (dirfd): Update declaration.
28014         * modules/dirent (Depends-on): Add c++defs.
28015         (Makefile.am): Update dirent.h rule.
28016
28017         ctype: Make it usable in C++ code.
28018         * lib/ctype.in.h: Include c++defs.h.
28019         (isblank): Declare as extern "C".
28020         * modules/ctype (Depends-on): Add c++defs.
28021         (Makefile.am): Update ctype.h rule.
28022
28023         New module 'c++defs'.
28024         * modules/c++defs: New file.
28025         * build-aux/c++defs.h: New file.
28026         Reported by John W. Eaton <jwe@gnu.org>.
28027
28028 2010-03-07  Bruno Haible  <bruno@clisp.org>
28029
28030         logb: Provide missing declaration for Cygwin.
28031         * lib/math.in.h (logb): New declaration.
28032         * m4/logb.m4: New file.
28033         * modules/logb (Files): Add m4/logb.m4.
28034         (Depends-on): Add math.
28035         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
28036         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
28037         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
28038         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
28039         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
28040
28041 2010-03-07  Bruno Haible  <bruno@clisp.org>
28042
28043         Fix test-cond link error.
28044         * tests/test-cond.c: Include <stdio.h>.
28045
28046 2010-03-07  Bruno Haible  <bruno@clisp.org>
28047
28048         Fix test-dirent-safer link error.
28049         * modules/dirent-safer-tests (Makefile.am): Define
28050         test_dirent_safer_LDADD.
28051
28052 2010-03-07  Bruno Haible  <bruno@clisp.org>
28053
28054         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
28055         among default module list.
28056
28057 2010-03-07  Bruno Haible  <bruno@clisp.org>
28058
28059         Fix link error on platforms with GNU libiconv.
28060         * modules/unistr/u8-strcoll-tests (Makefile): Define
28061         test_u8_strcoll_LDADD.
28062         * modules/unistr/u16-strcoll-tests (Makefile): Define
28063         test_u16_strcoll_LDADD.
28064         * modules/unistr/u32-strcoll-tests (Makefile): Define
28065         test_u32_strcoll_LDADD.
28066
28067 2010-03-07  Bruno Haible  <bruno@clisp.org>
28068
28069         Use POSIX declarations for socket functions.
28070         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
28071         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
28072         rpl_sendto): Change declaration to match POSIX.
28073         * lib/connect.c (rpl_connect): Likewise.
28074         * lib/accept.c (rpl_accept): Likewise.
28075         * lib/bind.c (rpl_bind): Likewise.
28076         * lib/getpeername.c (rpl_getpeername): Likewise.
28077         * lib/getsockname.c (rpl_getsockname): Likewise.
28078         * lib/recv.c (rpl_recv): Likewise.
28079         * lib/send.c (rpl_send): Likewise.
28080         * lib/recvfrom.c (rpl_recvfrom): Likewise.
28081         * lib/sendto.c (rpl_sendto): Likewise.
28082
28083 2010-03-06  Bruno Haible  <bruno@clisp.org>
28084
28085         Clarify access, euidaccess, faccessat.
28086         * doc/posix-functions/faccessat.texi: Mention security problem under
28087         "Other problems", not "Portability problems".
28088         * doc/posix-functions/access.texi: Likewise. Mention a related security
28089         problem.
28090         * doc/glibc-functions/euidaccess.texi: Mention security problems.
28091         * lib/euidaccess.c: Add comments about platforms.
28092         * lib/unistd.in.h (access, euidaccess): Add warnings.
28093
28094 2010-03-07  Bruno Haible  <bruno@clisp.org>
28095
28096         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
28097         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
28098         (POSIX_SPAWN_SETSCHEDULER): Likewise.
28099         (POSIX_SPAWN_USEVFORK): Define in a way that works when
28100         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28101         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
28102         declare when POSIX_SPAWN_SETSCHEDULER is zero.
28103         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
28104         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
28105         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
28106         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
28107         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
28108         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
28109         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
28110         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
28111         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
28112         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
28113         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
28114         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
28115         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
28116         Likewise.
28117         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
28118         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
28119         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
28120         Likewise.
28121         * tests/test-spawn.c (main): Make it work when
28122         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28123
28124 2010-03-07  Bruno Haible  <bruno@clisp.org>
28125
28126         Fix incorrect Makefile.am generation in German locale.
28127         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28128         Execute sed command with character range in C locale.
28129
28130 2010-03-06  Bruno Haible  <bruno@clisp.org>
28131
28132         Tests for module 'iconv-h'.
28133         * modules/iconv-h-tests: New file.
28134         * tests/test-iconv-h.c: New file.
28135
28136         New module 'iconv-h'.
28137         * modules/iconv-h: New file.
28138         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
28139         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
28140         (configure.ac): Remove gl_ICONV_H.
28141         (Makefile.am): Remove rule for iconv.h.
28142
28143 2010-03-06  Bruno Haible  <bruno@clisp.org>
28144
28145         More consistent naming of *.m4 files.
28146         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
28147         * modules/wctype (Files): Update.
28148
28149         More consistent naming of *.m4 files.
28150         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
28151         * modules/wchar (Files): Update.
28152
28153 2010-03-06  Jim Meyering  <meyering@redhat.com>
28154
28155         euidaccess: relax license to LGPLv2+
28156         * modules/euidaccess (License): Relax to LGPLv2+.
28157
28158 2010-03-06  Bruno Haible  <bruno@clisp.org>
28159
28160         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
28161         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
28162         (Makefile.am): Augment lib_SOURCES instead.
28163
28164 2010-03-04  Jim Meyering  <meyering@redhat.com>
28165
28166         utime: remove obsolete module
28167         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
28168         unnecessary for years, and has been marked as obsolete for 10 months.
28169         * modules/utime: Remove file.
28170         * lib/utime.c: Remove file.
28171         * m4/utime.m4: Remove file.
28172         * m4/utimes-null.m4: Remove file.
28173         * doc/posix-functions/utime.texi (utime): Remove reference to
28174         the module.  Move the sole "fixed by gnulib" item into the
28175         "problems not fixed by Gnulib" list.
28176         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
28177
28178 2010-03-05  Simon Josefsson  <simon@josefsson.org>
28179
28180         * modules/exit (License): Relax license to LGPLv2+.
28181         (Status): Mark as obsolete.
28182         * NEWS: Mention deprecated 'exit' module.
28183         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
28184         of now obsolete 'exit'.
28185
28186 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28187
28188         fts-lgpl: remove unused module
28189         * modules/fts-lgpl: Remove.
28190         * MODULES.html.sh (func_all_modules): Adjust.
28191         * check-module (find_included_lib_files): Adjust.
28192         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
28193
28194 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
28195
28196         copy-acl: enhance Solaris ACL error handling
28197         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
28198         * lib/set-mode-acl.c (qset_acl): Likewise.
28199
28200 2010-03-02  Bruno Haible  <bruno@clisp.org>
28201
28202         spawn: Don't override the system defined values on FreeBSD 8.
28203         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
28204         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
28205         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
28206         if HAVE_POSIX_SPAWN is 1.
28207         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
28208
28209 2010-03-01  Bruno Haible  <bruno@clisp.org>
28210
28211         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
28212         regarding Automake.
28213
28214 2010-02-25  Bruno Haible  <bruno@clisp.org>
28215
28216         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
28217         * gnulib-tool: Define 'echo' as a function only before the ksh alias
28218         setting, not afterwards.
28219         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
28220
28221 2010-02-24  Eric Blake  <eblake@redhat.com>
28222
28223         bootstrap, git-version-gen: use timestamp
28224         * build-aux/git-version-gen (scriptversion): Force UTC.
28225         * build-aux/bootstrap (scriptversion): New variable.
28226
28227         bootstrap: allow older git
28228         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
28229         older than 1.6.4.  Requested by the libvirt project.
28230
28231 2010-02-23  Eric Blake  <eblake@redhat.com>
28232
28233         warn-on-use: work with old autoconf
28234         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
28235         AS_VAR semantics of autoconf 2.60.
28236         Reported by Bruno Haible.
28237
28238         bootstrap: improve some comments
28239         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
28240         clarification comments.
28241
28242         gettimeofday: provide correct function
28243         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
28244         when replacement is declared, otherwise provide gettimeofday.
28245         Reported by Michael Goffioul.
28246
28247 2010-02-23  Jim Meyering  <meyering@redhat.com>
28248
28249         lib-ignore: relax license to "unlimited", not LGPLv2+
28250         * modules/lib-ignore (License): Relax to "unlimited".
28251
28252 2010-02-23  Jim Meyering  <meyering@redhat.com>
28253
28254         lib-ignore: relax license to LGPLv2+
28255         * modules/lib-ignore (License): Relax to LGPLv2+.
28256
28257 2010-02-22  Eric Blake  <eblake@redhat.com>
28258
28259         lseek: avoid bash 3.2 broken pipe bug
28260         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
28261         warning from bash 3.2.
28262         Reported by Ben Pfaff, with analysis from Bruno Haible.
28263
28264         bootstrap: support non-FSF copyright holder
28265         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
28266         bootstrap.conf override of COPYRIGHT_HOLDER.
28267         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
28268
28269         bootstrap: interoperate with gettext 0.14.1
28270         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
28271
28272         bootstrap: allow for alternate submodule location
28273         * build-aux/bootstrap (gnulib_path): New variable; use instead of
28274         hardcoding submodule location.
28275         (gnulib_mk): Allow direct use of Makefile.am.
28276
28277         bootstrap: use GNULIB_SRCDIR to reduce disk usage
28278         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
28279         rather than reconfiguring where the submodule points.
28280
28281         gettimeofday: restore support for platforms that lack function
28282         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
28283         replacement if function is missing.
28284         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
28285         * modules/sys_time (Makefile.am): Substitute it.
28286         * lib/sys_time.in.h (gettimeofday): Check it.
28287         Reported by Michael Goffioul.
28288
28289 2010-02-21  Bruno Haible  <bruno@clisp.org>
28290
28291         * lib/stdio.in.h (obstack_printf): Fix typo.
28292
28293 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
28294
28295         vc-list-files: use bzr ls's -R option
28296         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
28297         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
28298
28299 2010-02-21  Jim Meyering  <meyering@redhat.com>
28300
28301         init.sh: fix EXEEXT shims to work also for names like test-prog
28302         * tests/init.sh: Re-exec a better shell, when needed.
28303         If the current shell lacks support for posix $(...), an init.sh-using
28304         test will now try to find a shell that supports that.  If EXEEXT is
28305         nonempty, we also require support for hyphen-in-alias-name and shell
28306         substitutions like ${var#glob}.  Failure to find such a shell results
28307         in a skipped test.
28308
28309 2010-02-21  Bruno Haible  <bruno@clisp.org>
28310
28311         Really work around around "broken pipe" error message from bash 3.2.
28312         * gnulib-tool (func_reset_sigpipe): Remove function.
28313         (echo): In bash 3.2, define to a function that uses printf.
28314         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
28315
28316 2010-02-20  Bruno Haible  <bruno@clisp.org>
28317
28318         Restore support for automake 1.9.6 with autoconf 2.61.
28319         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
28320         Reported by James Youngman <jay@gnu.org>.
28321
28322 2010-02-20  Bruno Haible  <bruno@clisp.org>
28323
28324         Improve *printf warning condition.
28325         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
28326         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
28327         and the function is overridden due to SIGPIPE emulation.
28328
28329 2010-02-20  Bruno Haible  <bruno@clisp.org>
28330
28331         * lib/stdio.in.h: Tweak comments.
28332
28333 2010-02-19  Bruno Haible  <bruno@clisp.org>
28334
28335         Make it easier to find modules. New gnulib-tool option '--find'.
28336         * gnulib-tool: New option --find.
28337         (func_usage): Document it.
28338         (func_sanitize_modulelist): New function, extracted from
28339         func_all_modules.
28340         (func_all_modules): Invoke it.
28341         * doc/gnulib-tool.texi (Which modules?): New node.
28342
28343 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
28344
28345         * lib/sys_select.in.h: Provide select replacement even if
28346         sys/select.h exists on a system, for Interix.
28347
28348 2010-02-18  Jim Meyering  <meyering@redhat.com>
28349
28350         init.sh: don't use $(...) just yet
28351         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
28352         to accommodate e.g., Solaris' /bin/sh.
28353
28354 2010-02-17  Bruno Haible  <bruno@clisp.org>
28355
28356         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
28357         Reported by Ludovic Courtès <ludo@gnu.org>.
28358
28359 2010-02-16  Simon Josefsson  <simon@josefsson.org>
28360
28361         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
28362         linking with -lintl.
28363
28364 2010-02-17  Simon Josefsson  <simon@josefsson.org>
28365
28366         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
28367         if not provided by the system's netdb.h.  Reported by
28368         ludo@gnu.org (Ludovic Courtès).
28369
28370 2010-02-15  Jim Meyering  <meyering@redhat.com>
28371
28372         init.sh: improve portability and efficiency
28373         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
28374         "dummy" in a for loop.
28375         Use '!', not '^' to select the complement of a character set used
28376         in a "case" statement.
28377         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
28378         Suggestions from Eric Blake.
28379
28380         init.sh: automatically accommodate programs with the .exe suffix
28381         Automatically arrange for an invocation of "prog" to execute the
28382         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
28383         may use the simpler "prog", yet still work when built on a system
28384         that requires specifying the added suffix.
28385         Do this by constructing a function named "prog" that invokes
28386         "prog.exe" for each .exe file in selected directories.
28387         * tests/init.sh (find_exe_basenames_): New function.
28388         (create_exe_shim_functions_): New function.
28389         (path_prepend_): Use it.
28390
28391         maint.mk: mark syntax-check sc_*.m rules as .PHONY
28392         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
28393         "make -t syntax-check" doesn't create a ton of sc_*.m files.
28394
28395 2010-02-14  Jim Meyering  <meyering@redhat.com>
28396
28397         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
28398         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
28399         (sc_prohibit_hash_pjw_without_use): New rule.
28400
28401         maint.mk: allow the default upload destination dir to be overridden
28402         * top/maint.mk (upload_dest_dir_): Define with a default that
28403         preserves the status quo.
28404         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
28405         Reported by Peter Simons.
28406
28407         maint.mk: prohibit inclusion of "hash.h" without_use
28408         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
28409
28410 2010-02-10  Jim Meyering  <meyering@redhat.com>
28411
28412         maint.mk: prohibit inclusion of "ignore-value.h" without_use
28413         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
28414
28415 2010-02-09  Eric Blake  <ebb9@byu.net>
28416         and Bruno Haible  <bruno@clisp.org>
28417
28418         obstack-printf-posix: ensure declaration
28419         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
28420         extracted from gl_FUNC_OBSTACK_PRINTF.
28421         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
28422         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
28423         Likewise.
28424         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
28425         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
28426         0.
28427
28428 2010-02-08  Bruno Haible  <bruno@clisp.org>
28429
28430         gnulib-tool: Fix typo in 2010-02-07 commit.
28431         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
28432         Reported by Eric Blake.
28433
28434 2010-02-07  Bruno Haible  <bruno@clisp.org>
28435
28436         gnulib-tool: Fix up caching patches.
28437         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
28438         option --no-cache. Use associative arrays when supported by the shell.
28439         (sed_comments): New variable.
28440         (modcache): Renamed from do_cache.
28441         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
28442         abbreviate unnecessarily.
28443         (have_associative): New variable.
28444         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
28445         way also for ksh and zsh.
28446         (func_init_sed_convert_to_cache_statements): New function, extracted
28447         from func_cache_lookup_module. Add support for associative arrays.
28448         Don't set the c_MODULE_cached variable here. Ignore all lines before
28449         the first field header. Remove only the final newline, not all trailing
28450         newlines. Support empty fields correctly. Limit the use of 'eval' to
28451         assignments.
28452         (func_get_description, func_get_status, func_get_notice,
28453         func_get_applicability, func_get_filelist, func_get_dependencies,
28454         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
28455         func_get_automake_snippet, func_get_include_directive,
28456         func_get_link_directive, func_get_license, func_get_maintainer):
28457         Update documentation. List the unoptimized code first. Add support for
28458         associative arrays. Limit the use of 'eval' to assignments.
28459         (func_get_applicability): Undo stylistic pessimisations.
28460         (func_get_automake_snippet, func_get_include_directive): Reduce code
28461         duplication.
28462         (func_modules_transitive_closure, func_modules_add_dummy,
28463         func_modules_notice, func_modules_to_filelist, func_add_file,
28464         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
28465         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
28466         func_create_testdir, func_create_megatestdir): Update documentation.
28467
28468 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28469
28470         * gnulib-tool (func_cache_lookup_module): Store the module name
28471         belonging to the cache variable; error out if two different
28472         module names map to the same cache variable name.
28473
28474 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28475
28476         gnulib-tool: Make caching optional.
28477         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
28478         Update matching short versions of --no-changelog.
28479         (func_usage): Update.
28480         (sed_extract_cache_prog): Renamed from ...
28481         (sed_extract_prog): ... this; revert to old extraction script.
28482         (func_get_description, func_get_status)
28483         (func_get_notice, func_get_applicability, func_get_filelist)
28484         (func_get_dependencies, func_get_autoconf_early_snippet)
28485         (func_get_autoconf_snippet, func_get_automake_snippet)
28486         (func_get_include_directive, func_get_link_directive)
28487         (func_get_license, func_get_maintainer): If $do_cache is false,
28488         use old, non-caching extraction scripts.
28489         Suggestion by Bruno Haible.
28490
28491 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28492
28493         gnulib-tool: cache module metainformation.
28494         * gnulib-tool (sed_extract_prog): Match newline before each
28495         header, and rewrite header to a shell variable suffix.
28496         (func_cache_var, func_cache_lookup_module): New functions,
28497         to turn a module name into a cache variable prefix, and to
28498         look up and cache module metainformation.
28499         (func_get_description, func_get_status)
28500         (func_get_notice, func_get_applicability, func_get_filelist)
28501         (func_get_dependencies, func_get_autoconf_early_snippet)
28502         (func_get_autoconf_snippet, func_get_automake_snippet)
28503         (func_get_include_directive, func_get_link_directive)
28504         (func_get_license, func_get_maintainer): Use
28505         func_cache_lookup_module.
28506
28507 2010-02-07  Bruno Haible  <bruno@clisp.org>
28508
28509         fnctl: Fix missing dependency.
28510         * modules/fcntl (Depends-on): Add getdtablesize.
28511         Reported by John W. Eaton <jwe@gnu.org>.
28512
28513 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28514
28515         Argp: fix recognition of short alias options.
28516
28517         * lib/argp-parse.c (convert_options): Fix improper use of
28518         `|' between character values.
28519         * tests/test-argp.c (group1_option): New alias option
28520         --read (-r).
28521         (group1_parser): Special handling for 'r'.
28522         (test15): New test case.
28523         (test_fun): Add test15.
28524         * tests/test-argp-2.sh: Update expected --help and --usage
28525         outputs.
28526
28527 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28528
28529         * tests/test-argp.c: Fix indentation.
28530
28531 2010-02-04  Eric Blake  <ebb9@byu.net>
28532
28533         gettimeofday: expose type of second argument
28534         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
28535         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
28536         * tests/test-gettimeofday.c: Use it to silence warning.
28537         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
28538         the issue.
28539
28540 2010-02-03  Jim Meyering  <meyering@redhat.com>
28541
28542         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
28543         * lib/regcomp.c (TYPE_SIGNED): Define.
28544         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
28545
28546         regcomp.c: avoid a new -Wshadow warning
28547         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
28548
28549 2010-02-01  Jim Meyering  <meyering@redhat.com>
28550
28551         removing useless parentheses in cpp #define directives
28552         For motivation, see commit c0221df4, "define STREQ(a,b)
28553         consistently, removing useless parentheses"
28554         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
28555         * lib/mountlist.c (MNT_IGNORE): Likewise.
28556         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
28557
28558 2010-02-01  Eric Blake  <ebb9@byu.net>
28559
28560         sys_time: use link-warning
28561         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
28562         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
28563         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
28564         * modules/sys_time (Depends-on): Add warn-on-use.
28565         (Makefile.am): Always build replacement.
28566         (configure.ac): Update substitutions.
28567         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
28568         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
28569         bother with SYS_TIME_H.
28570         * modules/gettimeofday (configure.ac): Declare indicator.
28571         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
28572         in use.
28573
28574         closein-tests: silence compiler warning
28575         * tests/test-closein.c (main): Ignore fread result.
28576         * modules/closein-tests (Depends-on): Add ignore-value.
28577
28578         tests: silence warning about system return
28579         * tests/test-areadlink-with-size.c (main): Ignore system result.
28580         * tests/test-areadlink.c (main): Likewise.
28581         * tests/test-areadlinkat-with-size.c (main): Likewise.
28582         * tests/test-areadlinkat.c (main): Likewise.
28583         * tests/test-canonicalize-lgpl.c (main): Likewise.
28584         * tests/test-canonicalize.c (main): Likewise.
28585         * tests/test-chown.c (main): Likewise.
28586         * tests/test-fchownat.c (main): Likewise.
28587         * tests/test-fdutimensat.c (main): Likewise.
28588         * tests/test-fstatat.c (main): Likewise.
28589         * tests/test-futimens.c (main): Likewise.
28590         * tests/test-lchown.c (main): Likewise.
28591         * tests/test-link.c (main): Likewise.
28592         * tests/test-linkat.c (main): Likewise.
28593         * tests/test-lstat.c (main): Likewise.
28594         * tests/test-mkdir.c (main): Likewise.
28595         * tests/test-mkdirat.c (main): Likewise.
28596         * tests/test-mkfifo.c (main): Likewise.
28597         * tests/test-mkfifoat.c (main): Likewise.
28598         * tests/test-mknod.c (main): Likewise.
28599         * tests/test-readlink.c (main): Likewise.
28600         * tests/test-remove.c (main): Likewise.
28601         * tests/test-rename.c (main): Likewise.
28602         * tests/test-renameat.c (main): Likewise.
28603         * tests/test-rmdir.c (main): Likewise.
28604         * tests/test-symlink.c (main): Likewise.
28605         * tests/test-symlinkat.c (main): Likewise.
28606         * tests/test-unlink.c (main): Likewise.
28607         * tests/test-unlinkat.c (main): Likewise.
28608         * tests/test-utimens.c (main): Likewise.
28609         * tests/test-utimensat.c (main): Likewise.
28610         * modules/areadlink-tests (Depends-on): Add ignore-value.
28611         * modules/areadlink-with-size-tests (Depends-on): Likewise.
28612         * modules/areadlinkat-tests (Depends-on): Likewise.
28613         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
28614         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28615         * modules/canonicalize-tests (Depends-on): Likewise.
28616         * modules/chown-tests (Depends-on): Likewise.
28617         * modules/fdutimensat-tests (Depends-on): Likewise.
28618         * modules/futimens-tests (Depends-on): Likewise.
28619         * modules/lchown-tests (Depends-on): Likewise.
28620         * modules/link-tests (Depends-on): Likewise.
28621         * modules/linkat-tests (Depends-on): Likewise.
28622         * modules/lstat-tests (Depends-on): Likewise.
28623         * modules/mkdir-tests (Depends-on): Likewise.
28624         * modules/mkfifo-tests (Depends-on): Likewise.
28625         * modules/mkfifoat-tests (Depends-on): Likewise.
28626         * modules/mknod-tests (Depends-on): Likewise.
28627         * modules/openat-tests (Depends-on): Likewise.
28628         * modules/readlink-tests (Depends-on): Likewise.
28629         * modules/remove-tests (Depends-on): Likewise.
28630         * modules/rename-tests (Depends-on): Likewise.
28631         * modules/renameat-tests (Depends-on): Likewise.
28632         * modules/rmdir-tests (Depends-on): Likewise.
28633         * modules/symlink-tests (Depends-on): Likewise.
28634         * modules/symlinkat-tests (Depends-on): Likewise.
28635         * modules/unlink-tests (Depends-on): Likewise.
28636         * modules/utimens-tests (Depends-on): Likewise.
28637         * modules/utimensat-tests (Depends-on): Likewise.
28638
28639 2010-01-31  Bruno Haible  <bruno@clisp.org>
28640
28641         Perform the same test for many <math.h> functions.
28642         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
28643         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
28644         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
28645         of gl_MATHFUNC.
28646         * modules/acos (configure.ac): Likewise.
28647         * modules/asin (configure.ac): Likewise.
28648         * modules/atan (configure.ac): Likewise.
28649         * modules/atan2 (configure.ac): Likewise.
28650         * modules/cbrt (configure.ac): Likewise.
28651         * modules/copysign (configure.ac): Likewise.
28652         * modules/cos (configure.ac): Likewise.
28653         * modules/cosh (configure.ac): Likewise.
28654         * modules/erf (configure.ac): Likewise.
28655         * modules/erfc (configure.ac): Likewise.
28656         * modules/exp (configure.ac): Likewise.
28657         * modules/fmod (configure.ac): Likewise.
28658         * modules/hypot (configure.ac): Likewise.
28659         * modules/j0 (configure.ac): Likewise.
28660         * modules/j1 (configure.ac): Likewise.
28661         * modules/jn (configure.ac): Likewise.
28662         * modules/lgamma (configure.ac): Likewise.
28663         * modules/log (configure.ac): Likewise.
28664         * modules/log10 (configure.ac): Likewise.
28665         * modules/log1p (configure.ac): Likewise.
28666         * modules/pow (configure.ac): Likewise.
28667         * modules/remainder (configure.ac): Likewise.
28668         * modules/sin (configure.ac): Likewise.
28669         * modules/sinh (configure.ac): Likewise.
28670         * modules/tan (configure.ac): Likewise.
28671         * modules/tanh (configure.ac): Likewise.
28672         * modules/y0 (configure.ac): Likewise.
28673         * modules/y1 (configure.ac): Likewise.
28674         * modules/yn (configure.ac): Likewise.
28675         Suggested by Paolo Bonzini.
28676
28677 2010-01-31  Bruno Haible  <bruno@clisp.org>
28678
28679         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
28680
28681 2010-01-31  Bruno Haible  <bruno@clisp.org>
28682
28683         Work around getdelim() bug on FreeBSD 8.0.
28684         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
28685         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
28686         not work.
28687         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
28688         is 1.
28689         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
28690         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
28691         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
28692         a non-zero size.
28693         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
28694
28695 2010-01-31  Bruno Haible  <bruno@clisp.org>
28696
28697         Work around getline() bug on FreeBSD 8.0.
28698         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
28699         and a non-zero size.
28700         * tests/test-getline.c (main): Likewise.
28701         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
28702         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
28703
28704 2010-01-28  Eric Blake  <ebb9@byu.net>
28705
28706         regex: fix build failure
28707         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
28708         platforms.
28709
28710 2010-01-28  Jim Meyering  <meyering@redhat.com>
28711
28712         regex: do not ignore memory allocation failure
28713         * lib/regex_internal.c (create_cd_newstate): Detect
28714         re_node_set_init_copy failure.   Extracted from glibc commit
28715         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28716
28717         regex: sync more white-space changes from libc
28718         * lib/regex_internal.c: White-space only changes.
28719         * lib/regexec.c: Likewise.
28720
28721         regex: add many uses of __attribute_warn_unused_result__
28722         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
28723         * lib/regexec.c: Likewise.
28724         Extracted from a messy glibc commit.
28725
28726         regcomp.c: spelling and merge-artifact from glibc
28727         * lib/regcomp.c: Merge remainder of glibc's
28728         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28729
28730         regcomp.c: sync white-space changes from glibc
28731         * lib/regcomp.c: Merge to accommodate white space
28732         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28733
28734         regcomp.c: do not ignore internal return values
28735         * lib/regcomp.c: Do not ignore internal return values.
28736         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
28737         but without its white-space changes and spelling fixes.
28738
28739         regex_internal.h: define __attribute_warn_unused_result__
28740         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
28741
28742         maint: add a syntax-check rule to check for vulnerable Makefile.in
28743         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
28744
28745 2010-01-27  Jim Meyering  <meyering@redhat.com>
28746
28747         ncftpput-ftp: clean up spaces
28748         * build-aux/ncftpput-ftp: Make Copyright line consistent.
28749         Remove trailing blanks.
28750
28751 2010-01-27  Simon Josefsson  <simon@josefsson.org>
28752
28753         * build-aux/git-version-gen: Fix copyright statement.
28754         * build-aux/gnupload: Likewise.
28755         * tests/test-arcfour.c: Likewise.
28756         * tests/test-arctwo.c: Likewise.
28757         * tests/test-count-one-bits.c: Likewise.
28758         * tests/test-crc.c: Likewise.
28759         * tests/test-des.c: Likewise.
28760         * tests/test-gc-arcfour.c: Likewise.
28761         * tests/test-gc-arctwo.c: Likewise.
28762         * tests/test-gc-des.c: Likewise.
28763         * tests/test-gc-hmac-md5.c: Likewise.
28764         * tests/test-gc-hmac-sha1.c: Likewise.
28765         * tests/test-gc-md2.c: Likewise.
28766         * tests/test-gc-md4.c: Likewise.
28767         * tests/test-gc-md5.c: Likewise.
28768         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28769         * tests/test-gc-rijndael.c: Likewise.
28770         * tests/test-gc-sha1.c: Likewise.
28771         * tests/test-gc.c: Likewise.
28772         * tests/test-gethostname.c: Likewise.
28773         * tests/test-gettimeofday.c: Likewise.
28774         * tests/test-hash.c: Likewise.
28775         * tests/test-hmac-md5.c: Likewise.
28776         * tests/test-hmac-sha1.c: Likewise.
28777         * tests/test-md2.c: Likewise.
28778         * tests/test-md4.c: Likewise.
28779         * tests/test-md5.c: Likewise.
28780         * tests/test-memchr.c: Likewise.
28781         * tests/test-memchr2.c: Likewise.
28782         * tests/test-memcmp.c: Likewise.
28783         * tests/test-memmem.c: Likewise.
28784         * tests/test-memrchr.c: Likewise.
28785         * tests/test-rawmemchr.c: Likewise.
28786         * tests/test-read-file.c: Likewise.
28787         * tests/test-rijndael.c: Likewise.
28788         * tests/test-sockets.c: Likewise.
28789         * tests/test-strchrnul.c: Likewise.
28790         * tests/test-strstr.c: Likewise.
28791         * tests/test-strtod.c: Likewise.
28792         * build-aux/ncftpput-ftp: Likewise.
28793
28794 2010-01-26  Eric Blake  <ebb9@byu.net>
28795
28796         ignore-value: update recommended header name
28797         * modules/ignore-value (Include): Only use <> for headers that
28798         exist in glibc.
28799
28800 2010-01-26  Jim Meyering  <meyering@redhat.com>
28801
28802         test-userspec.c: avoid compiler warnings
28803         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
28804         and "initialization discards qualifiers..." warnings.
28805         Put the first "uid" in its own scope, and make char* members "const".
28806
28807 2010-01-25  Bruno Haible  <bruno@clisp.org>
28808
28809         gnulib-tool: Make warning diagnostics consistent.
28810         * gnulib-tool (func_warning): New function.
28811         Use it everywhere where gnulib-tool produces output to stderr and it is
28812         not a fatal error.
28813
28814 2010-01-25  Bruno Haible  <bruno@clisp.org>
28815
28816         Fix test dependencies.
28817         * modules/xstrtol-tests (Depends-on): Add inttypes.
28818         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
28819
28820 2010-01-25 Pádraig Brady <P@draigBrady.com>
28821
28822         syntax-check: detect incorrect boolean macro values in config.h
28823         * modules/maintainer-makefile (configure.ac): Parameterize the location
28824         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
28825         The logic is from Eric Blake and the location indicated by Jim Meyering.
28826         Note the more natural CONFIG_HEADER name is prohibited by automake
28827         for backwards compatibility reasons.
28828         * top/maint.mk (sc_Wundef_boolean): New rule.
28829
28830 2010-01-25  Jim Meyering  <meyering@redhat.com>
28831
28832         bootstrap: detect MacOS 10.6's shasum, too
28833         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
28834         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
28835
28836 2010-01-23  Jim Meyering  <meyering@redhat.com>
28837
28838         xstrtoll: new module
28839         * modules/xstrtoll: New file.
28840         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
28841         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
28842         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
28843         ./configure fails if you use this module and lack "long long".
28844         * modules/xstrtoll-tests: New module.
28845         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
28846         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
28847         new init.sh-based test framework.
28848
28849 2010-01-24  Bruno Haible  <bruno@clisp.org>
28850
28851         Tests for module 'yn'.
28852         * modules/yn-tests: New file.
28853         * tests/test-yn.c: New file.
28854
28855         Tests for module 'y1'.
28856         * modules/y1-tests: New file.
28857         * tests/test-y1.c: New file.
28858
28859         Tests for module 'y0'.
28860         * modules/y0-tests: New file.
28861         * tests/test-y0.c: New file.
28862
28863         Tests for module 'tanh'.
28864         * modules/tanh-tests: New file.
28865         * tests/test-tanh.c: New file.
28866
28867         Tests for module 'tan'.
28868         * modules/tan-tests: New file.
28869         * tests/test-tan.c: New file.
28870
28871         Tests for module 'sqrt'.
28872         * modules/sqrt-tests: New file.
28873         * tests/test-sqrt.c: New file.
28874
28875         Tests for module 'sinh'.
28876         * modules/sinh-tests: New file.
28877         * tests/test-sinh.c: New file.
28878
28879         Tests for module 'sin'.
28880         * modules/sin-tests: New file.
28881         * tests/test-sin.c: New file.
28882
28883         Tests for module 'rint'.
28884         * modules/rint-tests: New file.
28885         * tests/test-rint.c: New file.
28886
28887         Tests for module 'remainder'.
28888         * modules/remainder-tests: New file.
28889         * tests/test-remainder.c: New file.
28890
28891         Tests for module 'pow'.
28892         * modules/pow-tests: New file.
28893         * tests/test-pow.c: New file.
28894
28895         Tests for module 'nextafter'.
28896         * modules/nextafter-tests: New file.
28897         * tests/test-nextafter.c: New file.
28898
28899         Tests for module 'modf'.
28900         * modules/modf-tests: New file.
28901         * tests/test-modf.c: New file.
28902
28903         Tests for module 'logb'.
28904         * modules/logb-tests: New file.
28905         * tests/test-logb.c: New file.
28906
28907         Tests for module 'log1p'.
28908         * modules/log1p-tests: New file.
28909         * tests/test-log1p.c: New file.
28910
28911         Tests for module 'log10'.
28912         * modules/log10-tests: New file.
28913         * tests/test-log10.c: New file.
28914
28915         Tests for module 'log'.
28916         * modules/log-tests: New file.
28917         * tests/test-log.c: New file.
28918
28919         Tests for module 'lgamma'.
28920         * modules/lgamma-tests: New file.
28921         * tests/test-lgamma.c: New file.
28922
28923         Tests for module 'ldexp'.
28924         * modules/ldexp-tests: New file.
28925         * tests/test-ldexp.c: New file.
28926
28927         Tests for module 'jn'.
28928         * modules/jn-tests: New file.
28929         * tests/test-jn.c: New file.
28930
28931         Tests for module 'j1'.
28932         * modules/j1-tests: New file.
28933         * tests/test-j1.c: New file.
28934
28935         Tests for module 'j0'.
28936         * modules/j0-tests: New file.
28937         * tests/test-j0.c: New file.
28938
28939         Tests for module 'hypot'.
28940         * modules/hypot-tests: New file.
28941         * tests/test-hypot.c: New file.
28942
28943         Tests for module 'fmod'.
28944         * modules/fmod-tests: New file.
28945         * tests/test-fmod.c: New file.
28946
28947         Tests for module 'fabs'.
28948         * modules/fabs-tests: New file.
28949         * tests/test-fabs.c: New file.
28950
28951         Tests for module 'exp'.
28952         * modules/exp-tests: New file.
28953         * tests/test-exp.c: New file.
28954
28955         Tests for module 'erfc'.
28956         * modules/erfc-tests: New file.
28957         * tests/test-erfc.c: New file.
28958
28959         Tests for module 'erf'.
28960         * modules/erf-tests: New file.
28961         * tests/test-erf.c: New file.
28962
28963         Tests for module 'cosh'.
28964         * modules/cosh-tests: New file.
28965         * tests/test-cosh.c: New file.
28966
28967         Tests for module 'cos'.
28968         * modules/cos-tests: New file.
28969         * tests/test-cos.c: New file.
28970
28971         Tests for module 'copysign'.
28972         * modules/copysign-tests: New file.
28973         * tests/test-copysign.c: New file.
28974
28975         Tests for module 'cbrt'.
28976         * modules/cbrt-tests: New file.
28977         * tests/test-cbrt.c: New file.
28978
28979         Tests for module 'atan2'.
28980         * modules/atan2-tests: New file.
28981         * tests/test-atan2.c: New file.
28982
28983         Tests for module 'atan'.
28984         * modules/atan-tests: New file.
28985         * tests/test-atan.c: New file.
28986
28987         Tests for module 'asin'.
28988         * modules/asin-tests: New file.
28989         * tests/test-asin.c: New file.
28990
28991         Tests for module 'acos'.
28992         * modules/acos-tests: New file.
28993         * tests/test-acos.c: New file.
28994
28995 2010-01-24  Bruno Haible  <bruno@clisp.org>
28996
28997         Fix tests for common <math.h> functions.
28998         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
28999         code snippet that references the function pointer, rather than merely
29000         calling the function. Substitute the FUNC_LIBM variable.
29001         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
29002         * modules/acos (configure.ac): Likewise.
29003         * modules/asin (configure.ac): Likewise.
29004         * modules/atan (configure.ac): Likewise.
29005         * modules/atan2 (configure.ac): Likewise.
29006         * modules/cbrt (configure.ac): Likewise.
29007         * modules/copysign (configure.ac): Likewise.
29008         * modules/cos (configure.ac): Likewise.
29009         * modules/cosh (configure.ac): Likewise.
29010         * modules/erf (configure.ac): Likewise.
29011         * modules/erfc (configure.ac): Likewise.
29012         * modules/exp (configure.ac): Likewise.
29013         * modules/fabs (configure.ac): Likewise.
29014         * modules/fmod (configure.ac): Likewise.
29015         * modules/hypot (configure.ac): Likewise.
29016         * modules/j0 (configure.ac): Likewise.
29017         * modules/j1 (configure.ac): Likewise.
29018         * modules/jn (configure.ac): Likewise.
29019         * modules/ldexp (configure.ac): Likewise.
29020         * modules/lgamma (configure.ac): Likewise.
29021         * modules/log (configure.ac): Likewise.
29022         * modules/log10 (configure.ac): Likewise.
29023         * modules/log1p (configure.ac): Likewise.
29024         * modules/logb (configure.ac): Likewise.
29025         * modules/modf (configure.ac): Likewise.
29026         * modules/nextafter (configure.ac): Likewise.
29027         * modules/pow (configure.ac): Likewise.
29028         * modules/remainder (configure.ac): Likewise.
29029         * modules/rint (configure.ac): Likewise.
29030         * modules/sin (configure.ac): Likewise.
29031         * modules/sinh (configure.ac): Likewise.
29032         * modules/tan (configure.ac): Likewise.
29033         * modules/tanh (configure.ac): Likewise.
29034         * modules/y0 (configure.ac): Likewise.
29035         * modules/y1 (configure.ac): Likewise.
29036         * modules/yn (configure.ac): Likewise.
29037
29038 2010-01-24  Bruno Haible  <bruno@clisp.org>
29039
29040         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
29041         * tests/test-acosl.c (x): New variable.
29042         (main): Store argument in x and fetch it from x.
29043         * tests/test-asinl.c (x): New variable.
29044         (main): Store argument in x and fetch it from x.
29045         * tests/test-atanl.c (x): New variable.
29046         (main): Store argument in x and fetch it from x.
29047         * tests/test-cosl.c (x): New variable.
29048         (main): Store argument in x and fetch it from x.
29049         * tests/test-expl.c (x): New variable.
29050         (main): Store argument in x and fetch it from x.
29051         * tests/test-logl.c (x): New variable.
29052         (main): Store argument in x and fetch it from x.
29053         * tests/test-sinl.c (x): New variable.
29054         (main): Store argument in x and fetch it from x.
29055         * tests/test-sqrtl.c (x): New variable.
29056         (main): Store argument in x and fetch it from x.
29057         * tests/test-tanl.c (x): New variable.
29058         (main): Store argument in x and fetch it from x.
29059
29060 2010-01-24  Bruno Haible  <bruno@clisp.org>
29061
29062         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
29063         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
29064         assignments to the initial TESTS_ENVIRONMENT.
29065         * doc/gnulib.texi (Unit test modules): Document it.
29066         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
29067         TESTS_ENVIRONMENT.
29068         * modules/btowc-tests (Makefile.am): Likewise.
29069         * modules/c-stack-tests (Makefile.am): Likewise.
29070         * modules/c-strcase-tests (Makefile.am): Likewise.
29071         * modules/copy-file-tests (Makefile.am): Likewise.
29072         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
29073         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
29074         * modules/mbrtowc-tests (Makefile.am): Likewise.
29075         * modules/mbscasecmp-tests (Makefile.am): Likewise.
29076         * modules/mbscasestr-tests (Makefile.am): Likewise.
29077         * modules/mbschr-tests (Makefile.am): Likewise.
29078         * modules/mbscspn-tests (Makefile.am): Likewise.
29079         * modules/mbsinit-tests (Makefile.am): Likewise.
29080         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
29081         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
29082         * modules/mbspbrk-tests (Makefile.am): Likewise.
29083         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
29084         * modules/mbsrchr-tests (Makefile.am): Likewise.
29085         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
29086         * modules/mbsspn-tests (Makefile.am): Likewise.
29087         * modules/mbsstr-tests (Makefile.am): Likewise.
29088         * modules/nl_langinfo-tests (Makefile.am): Likewise.
29089         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
29090         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
29091         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
29092         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
29093         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
29094         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
29095         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
29096         * modules/wcrtomb-tests (Makefile.am): Likewise.
29097         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
29098         * modules/wcsrtombs-tests (Makefile.am): Likewise.
29099         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
29100         assignments from TESTS_ENVIRONMENT.
29101         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
29102         augmentation.
29103         * modules/argp-version-etc-tests (Makefile.am): Likewise.
29104         * modules/atexit-tests (Makefile.am): Likewise.
29105         * modules/binary-io-tests (Makefile.am): Likewise.
29106         * modules/closein-tests (Makefile.am): Likewise.
29107         * modules/dprintf-posix-tests (Makefile.am): Likewise.
29108         * modules/exclude-tests (Makefile.am): Likewise.
29109         * modules/fflush-tests (Makefile.am): Likewise.
29110         * modules/fpending-tests (Makefile.am): Likewise.
29111         * modules/fprintf-posix-tests (Makefile.am): Likewise.
29112         * modules/freadahead-tests (Makefile.am): Likewise.
29113         * modules/freadptr-tests (Makefile.am): Likewise.
29114         * modules/freadseek-tests (Makefile.am): Likewise.
29115         * modules/fseek-tests (Makefile.am): Likewise.
29116         * modules/fseeko-tests (Makefile.am): Likewise.
29117         * modules/ftell-tests (Makefile.am): Likewise.
29118         * modules/ftello-tests (Makefile.am): Likewise.
29119         * modules/idpriv-drop-tests (Makefile.am): Likewise.
29120         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
29121         * modules/lseek-tests (Makefile.am): Likewise.
29122         * modules/parse-duration-tests (Makefile.am): Likewise.
29123         * modules/perror-tests (Makefile.am): Likewise.
29124         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
29125         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
29126         * modules/pipe-tests (Makefile.am): Likewise.
29127         * modules/pread-tests (Makefile.am): Likewise.
29128         * modules/printf-posix-tests (Makefile.am): Likewise.
29129         * modules/select-tests (Makefile.am): Likewise.
29130         * modules/sigpipe-tests (Makefile.am): Likewise.
29131         * modules/tsearch-tests (Makefile.am): Likewise.
29132         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
29133         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
29134         * modules/uniname/uniname-tests (Makefile.am): Likewise.
29135         * modules/uniwidth/width-tests (Makefile.am): Likewise.
29136         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
29137         * modules/version-etc-tests (Makefile.am): Likewise.
29138         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
29139         * modules/vprintf-posix-tests (Makefile.am): Likewise.
29140         * modules/xalloc-die-tests (Makefile.am): Likewise.
29141         * modules/xprintf-posix-tests (Makefile.am): Likewise.
29142         * modules/xstrtoimax-tests (Makefile.am): Likewise.
29143         * modules/xstrtol-tests (Makefile.am): Likewise.
29144         * modules/xstrtoumax-tests (Makefile.am): Likewise.
29145         * modules/yesno-tests (Makefile.am): Likewise.
29146         Suggested by Jim Meyering.
29147
29148 2010-01-24  Bruno Haible  <bruno@clisp.org>
29149
29150         More documentation.
29151         * doc/gnulib.texi (Writing modules): New chapter.
29152         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
29153         the new chapter.
29154
29155 2010-01-24  Jim Meyering  <meyering@redhat.com>
29156
29157         maint.mk: do not prepend "./" after filtering
29158         * top/maint.mk (_prepend_srcdir_prefix): New variable
29159         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
29160         "./" when $(srcdir) is ".".
29161
29162         define STREQ(a,b) consistently, removing useless parentheses
29163         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
29164         since the only risk is that "a" or "b" contains an unparenthesized
29165         comma, but if either did that, STREQ would have 3 or more arguments.
29166         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
29167         * lib/fts.c (STREQ): Remove unnecessary parentheses.
29168         * lib/hash-triple.c (STREQ): Likewise.
29169         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
29170         * lib/getugroups.c (STREQ): Likewise.
29171
29172 2010-01-23  Jim Meyering  <meyering@redhat.com>
29173
29174         maint.mk: fix syntax-check in a non-srcdir build directory
29175         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
29176         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
29177
29178 2010-01-22  Jim Meyering  <meyering@redhat.com>
29179
29180         userspec: add unit tests
29181         * tests/test-userspec.c: New file.
29182         * modules/userspec-tests: Likewise.
29183
29184 2010-01-21  Jim Meyering  <meyering@redhat.com>
29185
29186         maint.mk: handle source file names containing "." robustly
29187         * top/maint.mk (_dot_escaped_srcdir): Define.
29188         (VC_LIST): Use it in LHS of sed substitution.
29189
29190 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
29191
29192         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
29193         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
29194         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
29195         from a non-srcdir build.
29196
29197 2010-01-20  Eric Blake  <ebb9@byu.net>
29198
29199         warn-on-use: use instead of link-warning
29200         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
29201         * modules/unistd (Depends-on, Makefile.am): Likewise.
29202         * modules/arpa_inet (Depends-on): Replace link-warning with
29203         warn-on-use.
29204         (Makefile.am): Update rules accordingly.
29205         * modules/ctype (Depends-on, Makefile.am): Likewise.
29206         * modules/dirent (Depends-on, Makefile.am): Likewise.
29207         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
29208         * modules/inttypes (Depends-on, Makefile.am): Likewise.
29209         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29210         * modules/locale (Depends-on, Makefile.am): Likewise.
29211         * modules/math (Depends-on, Makefile.am): Likewise.
29212         * modules/search (Depends-on, Makefile.am): Likewise.
29213         * modules/signal (Depends-on, Makefile.am): Likewise.
29214         * modules/spawn (Depends-on, Makefile.am): Likewise.
29215         * modules/stdlib (Depends-on, Makefile.am): Likewise.
29216         * modules/string (Depends-on, Makefile.am): Likewise.
29217         * modules/strings (Depends-on, Makefile.am): Likewise.
29218         * modules/sys_file (Depends-on, Makefile.am): Likewise.
29219         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
29220         * modules/sys_select (Depends-on, Makefile.am): Likewise.
29221         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
29222         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
29223         * modules/sys_times (Depends-on, Makefile.am): Likewise.
29224         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29225         * modules/wchar (Depends-on, Makefile.am): Likewise.
29226         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
29227         should be poisoned.
29228         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
29229         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
29230         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
29231         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29232         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29233         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29234         * m4/math_h.m4 (gl_MATH_H): Likewise.
29235         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29236         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
29237         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29238         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
29239         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
29240         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
29241         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
29242         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
29243         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29244         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29245         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29246         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
29247         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29248         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
29249         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29250         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29251         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
29252         GL_LINK_WARNING.
29253         * lib/ctype.in.h: Likewise.
29254         * lib/dirent.in.h: Likewise.
29255         * lib/fcntl.in.h: Likewise.
29256         * lib/inttypes.in.h: Likewise.
29257         * lib/langinfo.in.h: Likewise.
29258         * lib/locale.in.h: Likewise.
29259         * lib/math.in.h: Likewise.
29260         * lib/search.in.h: Likewise.
29261         * lib/signal.in.h: Likewise.
29262         * lib/spawn.in.h: Likewise.
29263         * lib/stdio.in.h: Likewise.
29264         * lib/stdlib.in.h: Likewise.
29265         * lib/string.in.h: Likewise.
29266         * lib/strings.in.h: Likewise.
29267         * lib/sys_file.in.h: Likewise.
29268         * lib/sys_ioctl.in.h: Likewise.
29269         * lib/sys_select.in.h: Likewise.
29270         * lib/sys_socket.in.h: Likewise.
29271         * lib/sys_stat.in.h: Likewise.
29272         * lib/sys_times.in.h: Likewise.
29273         * lib/sys_utsname.in.h: Likewise.
29274         * lib/unistd.in.h: Likewise.
29275         * lib/wchar.in.h: Likewise.
29276
29277 2010-01-20  Bruno Haible  <bruno@clisp.org>
29278
29279         Avoid duplicate -lm.
29280         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
29281         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
29282         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
29283         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
29284         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
29285         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
29286         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
29287         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
29288         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
29289         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
29290         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
29291         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29292         Reported by Paolo Bonzini.
29293
29294 2010-01-19  Bruno Haible  <bruno@clisp.org>
29295
29296         langinfo, nl_langinfo: Relicense under LGPLv2+.
29297         * modules/langinfo (License): Change to LGPLv2+.
29298         * modules/nl_langinfo (License): Likewise.
29299         Patch by David Lutterkort <lutter@redhat.com>.
29300
29301 2010-01-19  Bruno Haible  <bruno@clisp.org>
29302
29303         Avoid compilation error with cc on OSF/1 5.1.
29304         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
29305         statement, not before.
29306         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29307
29308 2010-01-18  Bruno Haible  <bruno@clisp.org>
29309
29310         Avoid a link error due to the __printf__ symbol.
29311         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
29312         and 2.6.x.
29313         (__format__, __printf__): Remove definitions.
29314         * lib/argp-fmtstream.h: Likewise.
29315         * lib/argp.h: Likewise.
29316         * lib/error.h: Likewise.
29317         * lib/vasnprintf.h: Likewise.
29318         * lib/xprintf.h: Likewise.
29319         * lib/xvasprintf.h: Likewise.
29320         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29321
29322 2010-01-18  Bruno Haible  <bruno@clisp.org>
29323
29324         Tests for module 'tanl'.
29325         * modules/tanl-tests: New file.
29326         * tests/test-tanl.c: New file.
29327
29328         Tests for module 'sqrtl'.
29329         * modules/sqrtl-tests: New file.
29330         * tests/test-sqrtl.c: New file.
29331
29332         Tests for module 'sinl'.
29333         * modules/sinl-tests: New file.
29334         * tests/test-sinl.c: New file.
29335
29336         Tests for module 'logl'.
29337         * modules/logl-tests: New file.
29338         * tests/test-logl.c: New file.
29339
29340         Tests for module 'expl'.
29341         * modules/expl-tests: New file.
29342         * tests/test-expl.c: New file.
29343
29344         Tests for module 'cosl'.
29345         * modules/cosl-tests: New file.
29346         * tests/test-cosl.c: New file.
29347
29348         Tests for module 'atanl'.
29349         * modules/atanl-tests: New file.
29350         * tests/test-atanl.c: New file.
29351
29352         Tests for module 'asinl'.
29353         * modules/asinl-tests: New file.
29354         * tests/test-asinl.c: New file.
29355
29356         Tests for module 'acosl'.
29357         * modules/acosl-tests: New file.
29358         * tests/test-acosl.c: New file.
29359
29360         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29361         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
29362         tanl): Use the standard gnulib idiom.
29363         * lib/cosl.c: Don't include trigl.c and sincosl.c.
29364         * lib/sinl.c: Likewise.
29365         * lib/tanl.c: Don't include trigl.c.
29366         (kernel_tanl): Make static.
29367         * lib/sincosl.c: Include trigl.h first.
29368         * lib/trigl.c: Likewise.
29369         * m4/acosl.m4: New file.
29370         * m4/asinl.m4: New file.
29371         * m4/atanl.m4: New file.
29372         * m4/cosl.m4: New file.
29373         * m4/expl.m4: New file.
29374         * m4/logl.m4: New file.
29375         * m4/sinl.m4: New file.
29376         * m4/sqrtl.m4: New file.
29377         * m4/tanl.m4: New file.
29378         * m4/mathl.m4: Remove file.
29379         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
29380         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29381         Don't initialize GNULIB_MATHL.
29382         * modules/acosl: New file.
29383         * modules/asinl: New file.
29384         * modules/atanl: New file.
29385         * modules/cosl: New file.
29386         * modules/expl: New file.
29387         * modules/logl: New file.
29388         * modules/sinl: New file.
29389         * modules/sqrtl: New file.
29390         * modules/tanl: New file.
29391         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
29392         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
29393         substitute GNULIB_MATHL.
29394         * modules/mathl: Rewritten.
29395         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
29396         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
29397         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
29398         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
29399         * doc/posix-functions/expl.texi: Mention the 'expl' module.
29400         * doc/posix-functions/logl.texi: Mention the 'logl' module.
29401         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
29402         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
29403         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
29404
29405 2010-01-18  Bruno Haible  <bruno@clisp.org>
29406
29407         sqrt: Make gl_FUNC_SQRT requirable.
29408         * m4/sqrt.m4: New file.
29409         * modules/sqrt (Files): Add it.
29410         (configure.ac): Invoke gl_FUNC_SQRT.
29411
29412 2010-01-18  Bruno Haible  <bruno@clisp.org>
29413
29414         New modules for common <math.h> functions.
29415         * m4/mathfunc.m4: New file.
29416         * modules/acos: New file.
29417         * modules/asin: New file.
29418         * modules/atan: New file.
29419         * modules/atan2: New file.
29420         * modules/cbrt: New file.
29421         * modules/copysign: New file.
29422         * modules/cos: New file.
29423         * modules/cosh: New file.
29424         * modules/erf: New file.
29425         * modules/erfc: New file.
29426         * modules/exp: New file.
29427         * modules/fabs: New file.
29428         * modules/fmod: New file.
29429         * modules/hypot: New file.
29430         * modules/j0: New file.
29431         * modules/j1: New file.
29432         * modules/jn: New file.
29433         * modules/ldexp: New file.
29434         * modules/lgamma: New file.
29435         * modules/log: New file.
29436         * modules/log10: New file.
29437         * modules/log1p: New file.
29438         * modules/logb: New file.
29439         * modules/modf: New file.
29440         * modules/nextafter: New file.
29441         * modules/pow: New file.
29442         * modules/remainder: New file.
29443         * modules/rint: New file.
29444         * modules/sin: New file.
29445         * modules/sinh: New file.
29446         * modules/sqrt: New file.
29447         * modules/tan: New file.
29448         * modules/tanh: New file.
29449         * modules/y0: New file.
29450         * modules/y1: New file.
29451         * modules/yn: New file.
29452         * doc/posix-functions/acos.texi: Mention the 'acos' module.
29453         * doc/posix-functions/asin.texi: Mention the 'asin' module.
29454         * doc/posix-functions/atan.texi: Mention the 'atan' module.
29455         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
29456         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
29457         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
29458         * doc/posix-functions/cos.texi: Mention the 'cos' module.
29459         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
29460         * doc/posix-functions/erf.texi: Mention the 'erf' module.
29461         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
29462         * doc/posix-functions/exp.texi: Mention the 'exp' module.
29463         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
29464         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
29465         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
29466         * doc/posix-functions/j0.texi: Mention the 'j0' module.
29467         * doc/posix-functions/j1.texi: Mention the 'j1' module.
29468         * doc/posix-functions/jn.texi: Mention the 'jn' module.
29469         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
29470         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
29471         * doc/posix-functions/log.texi: Mention the 'log' module.
29472         * doc/posix-functions/log10.texi: Mention the 'log10' module.
29473         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
29474         * doc/posix-functions/logb.texi: Mention the 'logb' module.
29475         * doc/posix-functions/modf.texi: Mention the 'modf' module.
29476         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
29477         * doc/posix-functions/pow.texi: Mention the 'pow' module.
29478         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
29479         * doc/posix-functions/rint.texi: Mention the 'rint' module.
29480         * doc/posix-functions/sin.texi: Mention the 'sin' module.
29481         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
29482         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
29483         * doc/posix-functions/tan.texi: Mention the 'tan' module.
29484         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
29485         * doc/posix-functions/y0.texi: Mention the 'y0' module.
29486         * doc/posix-functions/y1.texi: Mention the 'y1' module.
29487         * doc/posix-functions/yn.texi: Mention the 'yn' module.
29488
29489 2010-01-18  Jim Meyering  <meyering@redhat.com>
29490
29491         ignore-value: relax license to LGPLv2+
29492         * modules/ignore-value (License): Relax to LGPLv2+.
29493
29494         getdate: don't leak when TZ contains two or more '"'s
29495         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
29496         double quote in TZ after the first one.
29497
29498         readtokens: do not leak internal token_lengths buffer
29499         * lib/readtokens.c (readtokens): Free the local, lengths,
29500         when the supplied "token_lengths" parameter is NULL.
29501
29502 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29503
29504         Fix a couple of missing LIBTHREAD link failures on AIX.
29505         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
29506         $(LIBTHREAD).
29507         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
29508
29509         Link test-poll against INET_PTON_LIB.
29510         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
29511         for inet_pton on Solaris 10.
29512
29513 2010-01-17  Bruno Haible  <bruno@clisp.org>
29514
29515         unistdio/*-sprintf: Fix typo in module description.
29516         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
29517         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
29518         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
29519         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
29520         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
29521         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
29522         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
29523         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29524
29525 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29526
29527         gnulib-tool: fix filelist for AIX, HP-UX ksh.
29528         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
29529         variables in shell case patterns, for AIX and HP-UX ksh.
29530
29531         Split large sed scripts, for HP-UX sed.
29532         * modules/stdio: Split sed scripts around 50 sed commands,
29533         to avoid HP-UX limit of 99 commands, in the near future.
29534         * modules/string: Likewise.
29535         * modules/unistd: Likewise.
29536
29537         gnulib-tool: avoid writing in the current directory.
29538         * gnulib-tool (func_emit_lib_Makefile_am)
29539         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
29540         not in the current directory, so concurrent gnulib-tool
29541         instances do not interfere.
29542
29543 2010-01-16  Jim Meyering  <meyering@redhat.com>
29544
29545         doc: update users.txt
29546         * users.txt: Add grep.
29547         (diffutils, gzip): Update URLs.
29548
29549 2010-01-12  Bruno Haible  <bruno@clisp.org>
29550
29551         posix_spawn: Avoid test failure on Cygwin.
29552         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
29553         characters.
29554         Reported by Simon Josefsson.
29555
29556 2010-01-12  Bruno Haible  <bruno@clisp.org>
29557
29558         * tests/test-cond.c (main): When skipping the test, show the reason.
29559
29560 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29561
29562         * lib/striconv.c (str_cd_iconv): Avoid if before free.
29563
29564 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29565
29566         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
29567         VC_LIST_ALWAYS_EXCLUDE_REGEX.
29568
29569 2010-01-12  Eric Blake  <ebb9@byu.net>
29570
29571         build: guarantee AS_VAR_IF
29572         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
29573         (gl_AS_VAR_IF): Move...
29574         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
29575         Reported by Simon Josefsson.
29576
29577 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29578
29579         * lib/stdio.in.h: Fix typo.
29580
29581 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29582
29583         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
29584         libgpg-error.
29585
29586 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29587
29588         * tests/test-xalloc-die.sh: Use $EXEEXT.
29589
29590 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29591             Bruno Haible  <bruno@clisp.org>
29592
29593         getlogin, getlogin_r: Avoid test failure.
29594         * tests/test-getlogin.c: Include <stdio.h>.
29595         (main): Skip the test when the function fails because stdin is not a
29596         tty.
29597         * tests/test-getlogin_r.c: Include <stdio.h>.
29598         (main): Skip the test when the function fails because stdin is not a
29599         tty.
29600
29601 2010-01-11  Eric Blake  <ebb9@byu.net>
29602
29603         tests: avoid more large file warnings
29604         * tests/test-fflush.c: Avoid warning about ftell use.
29605         * tests/test-fseek.c: Avoid warning about fseek use.
29606
29607 2010-01-10  Bruno Haible  <bruno@clisp.org>
29608
29609         nproc: Work better on Linux when /proc and /sys are not mounted.
29610         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
29611         as lower bound when, on glibc/Linux systems,
29612         sysconf (_SC_NPROCESSORS_CONF) returns 1.
29613         Suggested by Pádraig Brady <P@draigbrady.com>.
29614         Reported by Dmitry V. Levin <ldv@altlinux.org>.
29615
29616         nproc: Refactor.
29617         * lib/nproc.c (num_processors_via_affinity_mask): New function,
29618         extracted from num_processors.
29619         (num_processors): Call it.
29620
29621 2010-01-11  Jim Meyering  <meyering@redhat.com>
29622
29623         utimecmp: avoid new warning from upcoming gcc-4.5.0
29624         * lib/utimecmp.c (BILLION): Define using #define rather than an
29625         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
29626
29627 2010-01-11  Eric Blake  <ebb9@byu.net>
29628
29629         math: add portability warnings for classification macros
29630         * modules/math (Depends-on): Add warn-on-use.
29631         (Makefile.am): Provide new substitutions.
29632         * m4/math_h.m4 (gl_MATH_H): Require inline.
29633         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
29634         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
29635         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
29636         implement warnings.
29637
29638         unistd: warn on use of environ without module
29639         * modules/unistd (Depends-on): Add warn-on-use.
29640         (Makefile.am): Provide new substitutions.
29641         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
29642         * lib/unistd.in.h (environ): Wrap with a warning helper function.
29643
29644         stdio: warn on suspicious uses
29645         * modules/stdio (Depends-on): Add warn-on-use.
29646         (Makefile.am): Provide new substitutions.
29647         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
29648         fseeko.
29649         * lib/stdio.in.h (gets): Always warn on use.
29650         (fseek, ftell): Adjust when warnings are issued, and honor
29651         _GL_NO_LARGE_FILES as a way to silence the warning.
29652         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
29653         any warning about large file offsets.
29654         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
29655         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
29656         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
29657         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
29658         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
29659         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
29660         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
29661         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
29662
29663         warn-on-use: new module
29664         * modules/warn-on-use: New file.
29665         * build-aux/warn-on-use.h: Likewise.
29666         * m4/warn-on-use.m4: Likewise.
29667         * MODULES.html.sh (Support for building): Mention it.
29668
29669 2010-01-10  Bruno Haible  <bruno@clisp.org>
29670
29671         Tests for module 'unistr/u32-strdup'.
29672         * modules/unistr/u32-strdup-tests: New file.
29673         * tests/unistr/test-u32-strdup.c: New file.
29674
29675         Tests for module 'unistr/u16-strdup'.
29676         * modules/unistr/u16-strdup-tests: New file.
29677         * tests/unistr/test-u16-strdup.c: New file.
29678
29679         Tests for module 'unistr/u8-strdup'.
29680         * modules/unistr/u8-strdup-tests: New file.
29681         * tests/unistr/test-u8-strdup.c: New file.
29682         * tests/unistr/test-strdup.h: New file.
29683
29684         Tests for module 'unistr/u32-strncmp'.
29685         * modules/unistr/u32-strncmp-tests: New file.
29686         * tests/unistr/test-u32-strncmp.c: New file.
29687
29688         Tests for module 'unistr/u16-strncmp'.
29689         * modules/unistr/u16-strncmp-tests: New file.
29690         * tests/unistr/test-u16-strncmp.c: New file.
29691
29692         Tests for module 'unistr/u8-strncmp'.
29693         * modules/unistr/u8-strncmp-tests: New file.
29694         * tests/unistr/test-u8-strncmp.c: New file.
29695         * tests/unistr/test-strncmp.h: New file.
29696
29697         Tests for module 'unistr/u32-strcoll'.
29698         * modules/unistr/u32-strcoll-tests: New file.
29699         * tests/unistr/test-u32-strcoll.c: New file.
29700
29701         Tests for module 'unistr/u16-strcoll'.
29702         * modules/unistr/u16-strcoll-tests: New file.
29703         * tests/unistr/test-u16-strcoll.c: New file.
29704
29705         Tests for module 'unistr/u8-strcoll'.
29706         * modules/unistr/u8-strcoll-tests: New file.
29707         * tests/unistr/test-u8-strcoll.c: New file.
29708
29709         Tests for module 'unistr/u32-strcmp'.
29710         * modules/unistr/u32-strcmp-tests: New file.
29711         * tests/unistr/test-u32-strcmp.c: New file.
29712         * tests/unistr/test-u32-strcmp.h: New file.
29713
29714         Tests for module 'unistr/u16-strcmp'.
29715         * modules/unistr/u16-strcmp-tests: New file.
29716         * tests/unistr/test-u16-strcmp.c: New file.
29717         * tests/unistr/test-u16-strcmp.h: New file.
29718
29719         Tests for module 'unistr/u8-strcmp'.
29720         * modules/unistr/u8-strcmp-tests: New file.
29721         * tests/unistr/test-u8-strcmp.c: New file.
29722         * tests/unistr/test-u8-strcmp.h: New file.
29723         * tests/unistr/test-strcmp.h: New file.
29724
29725         Tests for module 'unistr/u32-strncat'.
29726         * modules/unistr/u32-strncat-tests: New file.
29727         * tests/unistr/test-u32-strncat.c: New file.
29728
29729         Tests for module 'unistr/u16-strncat'.
29730         * modules/unistr/u16-strncat-tests: New file.
29731         * tests/unistr/test-u16-strncat.c: New file.
29732
29733         Tests for module 'unistr/u8-strncat'.
29734         * modules/unistr/u8-strncat-tests: New file.
29735         * tests/unistr/test-u8-strncat.c: New file.
29736         * tests/unistr/test-strncat.h: New file.
29737
29738         Tests for module 'unistr/u32-strcat'.
29739         * modules/unistr/u32-strcat-tests: New file.
29740         * tests/unistr/test-u32-strcat.c: New file.
29741
29742         Tests for module 'unistr/u16-strcat'.
29743         * modules/unistr/u16-strcat-tests: New file.
29744         * tests/unistr/test-u16-strcat.c: New file.
29745
29746         Tests for module 'unistr/u8-strcat'.
29747         * modules/unistr/u8-strcat-tests: New file.
29748         * tests/unistr/test-u8-strcat.c: New file.
29749         * tests/unistr/test-strcat.h: New file.
29750
29751         Tests for module 'unistr/u32-stpncpy'.
29752         * modules/unistr/u32-stpncpy-tests: New file.
29753         * tests/unistr/test-u32-stpncpy.c: New file.
29754
29755         Tests for module 'unistr/u16-stpncpy'.
29756         * modules/unistr/u16-stpncpy-tests: New file.
29757         * tests/unistr/test-u16-stpncpy.c: New file.
29758
29759         Tests for module 'unistr/u8-stpncpy'.
29760         * modules/unistr/u8-stpncpy-tests: New file.
29761         * tests/unistr/test-u8-stpncpy.c: New file.
29762         * tests/unistr/test-stpncpy.h: New file.
29763
29764         Tests for module 'unistr/u32-strncpy'.
29765         * modules/unistr/u32-strncpy-tests: New file.
29766         * tests/unistr/test-u32-strncpy.c: New file.
29767
29768         Tests for module 'unistr/u16-strncpy'.
29769         * modules/unistr/u16-strncpy-tests: New file.
29770         * tests/unistr/test-u16-strncpy.c: New file.
29771
29772         Tests for module 'unistr/u8-strncpy'.
29773         * modules/unistr/u8-strncpy-tests: New file.
29774         * tests/unistr/test-u8-strncpy.c: New file.
29775         * tests/unistr/test-strncpy.h: New file.
29776
29777         Tests for module 'unistr/u32-stpcpy'.
29778         * modules/unistr/u32-stpcpy-tests: New file.
29779         * tests/unistr/test-u32-stpcpy.c: New file.
29780
29781         Tests for module 'unistr/u16-stpcpy'.
29782         * modules/unistr/u16-stpcpy-tests: New file.
29783         * tests/unistr/test-u16-stpcpy.c: New file.
29784
29785         Tests for module 'unistr/u8-stpcpy'.
29786         * modules/unistr/u8-stpcpy-tests: New file.
29787         * tests/unistr/test-u8-stpcpy.c: New file.
29788         * tests/unistr/test-stpcpy.h: New file.
29789
29790         Tests for module 'unistr/u32-strcpy'.
29791         * modules/unistr/u32-strcpy-tests: New file.
29792         * tests/unistr/test-u32-strcpy.c: New file.
29793
29794         Tests for module 'unistr/u16-strcpy'.
29795         * modules/unistr/u16-strcpy-tests: New file.
29796         * tests/unistr/test-u16-strcpy.c: New file.
29797
29798         Tests for module 'unistr/u8-strcpy'.
29799         * modules/unistr/u8-strcpy-tests: New file.
29800         * tests/unistr/test-u8-strcpy.c: New file.
29801         * tests/unistr/test-strcpy.h: New file.
29802
29803         Tests for module 'unistr/u32-strnlen'.
29804         * modules/unistr/u32-strnlen-tests: New file.
29805         * tests/unistr/test-u32-strnlen.c: New file.
29806
29807         Tests for module 'unistr/u16-strnlen'.
29808         * modules/unistr/u16-strnlen-tests: New file.
29809         * tests/unistr/test-u16-strnlen.c: New file.
29810
29811         Tests for module 'unistr/u8-strnlen'.
29812         * modules/unistr/u8-strnlen-tests: New file.
29813         * tests/unistr/test-u8-strnlen.c: New file.
29814         * tests/unistr/test-strnlen.h: New file.
29815
29816         Tests for module 'unistr/u32-strlen'.
29817         * modules/unistr/u32-strlen-tests: New file.
29818         * tests/unistr/test-u32-strlen.c: New file.
29819
29820         Tests for module 'unistr/u16-strlen'.
29821         * modules/unistr/u16-strlen-tests: New file.
29822         * tests/unistr/test-u16-strlen.c: New file.
29823
29824         Tests for module 'unistr/u8-strlen'.
29825         * modules/unistr/u8-strlen-tests: New file.
29826         * tests/unistr/test-u8-strlen.c: New file.
29827
29828         Tests for module 'unistr/u32-prev'.
29829         * modules/unistr/u32-prev-tests: New file.
29830         * tests/unistr/test-u32-prev.c: New file.
29831
29832         Tests for module 'unistr/u16-prev'.
29833         * modules/unistr/u16-prev-tests: New file.
29834         * tests/unistr/test-u16-prev.c: New file.
29835
29836         Tests for module 'unistr/u8-prev'.
29837         * modules/unistr/u8-prev-tests: New file.
29838         * tests/unistr/test-u8-prev.c: New file.
29839
29840         Tests for module 'unistr/u32-next'.
29841         * modules/unistr/u32-next-tests: New file.
29842         * tests/unistr/test-u32-next.c: New file.
29843
29844         Tests for module 'unistr/u16-next'.
29845         * modules/unistr/u16-next-tests: New file.
29846         * tests/unistr/test-u16-next.c: New file.
29847
29848         Tests for module 'unistr/u8-next'.
29849         * modules/unistr/u8-next-tests: New file.
29850         * tests/unistr/test-u8-next.c: New file.
29851
29852         Tests for module 'unistr/u32-strmbtouc'.
29853         * modules/unistr/u32-strmbtouc-tests: New file.
29854         * tests/unistr/test-u32-strmbtouc.c: New file.
29855
29856         Tests for module 'unistr/u16-strmbtouc'.
29857         * modules/unistr/u16-strmbtouc-tests: New file.
29858         * tests/unistr/test-u16-strmbtouc.c: New file.
29859
29860         Tests for module 'unistr/u8-strmbtouc'.
29861         * modules/unistr/u8-strmbtouc-tests: New file.
29862         * tests/unistr/test-u8-strmbtouc.c: New file.
29863
29864         Tests for module 'unistr/u32-strmblen'.
29865         * modules/unistr/u32-strmblen-tests: New file.
29866         * tests/unistr/test-u32-strmblen.c: New file.
29867
29868         Tests for module 'unistr/u16-strmblen'.
29869         * modules/unistr/u16-strmblen-tests: New file.
29870         * tests/unistr/test-u16-strmblen.c: New file.
29871
29872         Tests for module 'unistr/u8-strmblen'.
29873         * modules/unistr/u8-strmblen-tests: New file.
29874         * tests/unistr/test-u8-strmblen.c: New file.
29875
29876         Tests for module 'unistr/u32-cpy-alloc'.
29877         * modules/unistr/u32-cpy-alloc-tests: New file.
29878         * tests/unistr/test-u32-cpy-alloc.c: New file.
29879
29880         Tests for module 'unistr/u16-cpy-alloc'.
29881         * modules/unistr/u16-cpy-alloc-tests: New file.
29882         * tests/unistr/test-u16-cpy-alloc.c: New file.
29883
29884         Tests for module 'unistr/u8-cpy-alloc'.
29885         * modules/unistr/u8-cpy-alloc-tests: New file.
29886         * tests/unistr/test-u8-cpy-alloc.c: New file.
29887         * tests/unistr/test-cpy-alloc.h: New file.
29888
29889         Tests for module 'unistr/u32-mbsnlen'.
29890         * modules/unistr/u32-mbsnlen-tests: New file.
29891         * tests/unistr/test-u32-mbsnlen.c: New file.
29892
29893         Tests for module 'unistr/u16-mbsnlen'.
29894         * modules/unistr/u16-mbsnlen-tests: New file.
29895         * tests/unistr/test-u16-mbsnlen.c: New file.
29896
29897         Tests for module 'unistr/u8-mbsnlen'.
29898         * modules/unistr/u8-mbsnlen-tests: New file.
29899         * tests/unistr/test-u8-mbsnlen.c: New file.
29900
29901         Tests for module 'unistr/u32-chr'.
29902         * modules/unistr/u32-chr-tests: New file.
29903         * tests/unistr/test-u32-chr.c: New file.
29904
29905         Tests for module 'unistr/u16-chr'.
29906         * modules/unistr/u16-chr-tests: New file.
29907         * tests/unistr/test-u16-chr.c: New file.
29908
29909         Tests for module 'unistr/u8-chr'.
29910         * modules/unistr/u8-chr-tests: New file.
29911         * tests/unistr/test-u8-chr.c: New file.
29912         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
29913
29914         Tests for module 'unistr/u32-cmp2'.
29915         * modules/unistr/u32-cmp2-tests: New file.
29916         * tests/unistr/test-u32-cmp2.c: New file.
29917
29918         Tests for module 'unistr/u16-cmp2'.
29919         * modules/unistr/u16-cmp2-tests: New file.
29920         * tests/unistr/test-u16-cmp2.c: New file.
29921
29922         Tests for module 'unistr/u8-cmp2'.
29923         * modules/unistr/u8-cmp2-tests: New file.
29924         * tests/unistr/test-u8-cmp2.c: New file.
29925         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
29926
29927         Tests for module 'unistr/u32-cmp'.
29928         * modules/unistr/u32-cmp-tests: New file.
29929         * tests/unistr/test-u32-cmp.c: New file.
29930
29931         Tests for module 'unistr/u16-cmp'.
29932         * modules/unistr/u16-cmp-tests: New file.
29933         * tests/unistr/test-u16-cmp.c: New file.
29934
29935         Tests for module 'unistr/u8-cmp'.
29936         * modules/unistr/u8-cmp-tests: New file.
29937         * tests/unistr/test-u8-cmp.c: New file.
29938         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
29939
29940         Tests for module 'unistr/u32-set'.
29941         * modules/unistr/u32-set-tests: New file.
29942         * tests/unistr/test-u32-set.c: New file.
29943
29944         Tests for module 'unistr/u16-set'.
29945         * modules/unistr/u16-set-tests: New file.
29946         * tests/unistr/test-u16-set.c: New file.
29947
29948         Tests for module 'unistr/u8-set'.
29949         * modules/unistr/u8-set-tests: New file.
29950         * tests/unistr/test-u8-set.c: New file.
29951         * tests/unistr/test-set.h: New file.
29952
29953         Tests for module 'unistr/u32-move'.
29954         * modules/unistr/u32-move-tests: New file.
29955         * tests/unistr/test-u32-move.c: New file.
29956
29957         Tests for module 'unistr/u16-move'.
29958         * modules/unistr/u16-move-tests: New file.
29959         * tests/unistr/test-u16-move.c: New file.
29960
29961         Tests for module 'unistr/u8-move'.
29962         * modules/unistr/u8-move-tests: New file.
29963         * tests/unistr/test-u8-move.c: New file.
29964         * tests/unistr/test-move.h: New file.
29965
29966         Tests for module 'unistr/u32-cpy'.
29967         * modules/unistr/u32-cpy-tests: New file.
29968         * tests/unistr/test-u32-cpy.c: New file.
29969
29970         Tests for module 'unistr/u16-cpy'.
29971         * modules/unistr/u16-cpy-tests: New file.
29972         * tests/unistr/test-u16-cpy.c: New file.
29973
29974         Tests for module 'unistr/u8-cpy'.
29975         * modules/unistr/u8-cpy-tests: New file.
29976         * tests/unistr/test-u8-cpy.c: New file.
29977         * tests/unistr/test-cpy.h: New file.
29978
29979 2010-01-09  Bruno Haible  <bruno@clisp.org>
29980
29981         Tests for module 'unistr/u32-uctomb'.
29982         * modules/unistr/u32-uctomb-tests: New file.
29983         * tests/unistr/test-u32-uctomb.c: New file.
29984
29985         Tests for module 'unistr/u16-uctomb'.
29986         * modules/unistr/u16-uctomb-tests: New file.
29987         * tests/unistr/test-u16-uctomb.c: New file.
29988
29989         Tests for module 'unistr/u8-uctomb'.
29990         * modules/unistr/u8-uctomb-tests: New file.
29991         * tests/unistr/test-u8-uctomb.c: New file.
29992
29993         Tests for module 'unistr/u32-mbtoucr'.
29994         * modules/unistr/u32-mbtoucr-tests: New file.
29995         * tests/unistr/test-u32-mbtoucr.c: New file.
29996
29997         Tests for module 'unistr/u16-mbtoucr'.
29998         * modules/unistr/u16-mbtoucr-tests: New file.
29999         * tests/unistr/test-u16-mbtoucr.c: New file.
30000
30001         Tests for module 'unistr/u8-mbtoucr'.
30002         * modules/unistr/u8-mbtoucr-tests: New file.
30003         * tests/unistr/test-u8-mbtoucr.c: New file.
30004
30005         Tests for module 'unistr/u32-mbtouc'.
30006         * modules/unistr/u32-mbtouc-tests: New file.
30007         * tests/unistr/test-u32-mbtouc.c: New file.
30008
30009         Tests for module 'unistr/u16-mbtouc'.
30010         * modules/unistr/u16-mbtouc-tests: New file.
30011         * tests/unistr/test-u16-mbtouc.c: New file.
30012
30013         Tests for module 'unistr/u8-mbtouc'.
30014         * modules/unistr/u8-mbtouc-tests: New file.
30015         * tests/unistr/test-u8-mbtouc.c: New file.
30016
30017         Tests for module 'unistr/u32-mbtouc-unsafe'.
30018         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
30019         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
30020         * tests/unistr/test-u32-mbtouc.h: New file.
30021
30022         Tests for module 'unistr/u16-mbtouc-unsafe'.
30023         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
30024         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
30025         * tests/unistr/test-u16-mbtouc.h: New file.
30026
30027         Tests for module 'unistr/u8-mbtouc-unsafe'.
30028         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
30029         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
30030         * tests/unistr/test-u8-mbtouc.h: New file.
30031
30032         Tests for module 'unistr/u32-mblen'.
30033         * modules/unistr/u32-mblen-tests: New file.
30034         * tests/unistr/test-u32-mblen.c: New file.
30035
30036         Tests for module 'unistr/u16-mblen'.
30037         * modules/unistr/u16-mblen-tests: New file.
30038         * tests/unistr/test-u16-mblen.c: New file.
30039
30040         Tests for module 'unistr/u8-mblen'.
30041         * modules/unistr/u8-mblen-tests: New file.
30042         * tests/unistr/test-u8-mblen.c: New file.
30043
30044         Tests for module 'unistr/u32-to-u16'.
30045         * modules/unistr/u32-to-u16-tests: New file.
30046         * tests/unistr/test-u32-to-u16.c: New file.
30047
30048         Tests for module 'unistr/u32-to-u8'.
30049         * modules/unistr/u32-to-u8-tests: New file.
30050         * tests/unistr/test-u32-to-u8.c: New file.
30051
30052         Tests for module 'unistr/u16-to-u32'.
30053         * modules/unistr/u16-to-u32-tests: New file.
30054         * tests/unistr/test-u16-to-u32.c: New file.
30055
30056         Tests for module 'unistr/u16-to-u8'.
30057         * modules/unistr/u16-to-u8-tests: New file.
30058         * tests/unistr/test-u16-to-u8.c: New file.
30059
30060         Tests for module 'unistr/u8-to-u32'.
30061         * modules/unistr/u8-to-u32-tests: New file.
30062         * tests/unistr/test-u8-to-u32.c: New file.
30063
30064         Tests for module 'unistr/u8-to-u16'.
30065         * modules/unistr/u8-to-u16-tests: New file.
30066         * tests/unistr/test-u8-to-u16.c: New file.
30067
30068         Tests for module 'unistr/u32-check'.
30069         * modules/unistr/u32-check-tests: New file.
30070         * tests/unistr/test-u32-check.c: New file.
30071
30072         Tests for module 'unistr/u16-check'.
30073         * modules/unistr/u16-check-tests: New file.
30074         * tests/unistr/test-u16-check.c: New file.
30075
30076         Tests for module 'unistr/u8-check'.
30077         * modules/unistr/u8-check-tests: New file.
30078         * tests/unistr/test-u8-check.c: New file.
30079
30080         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
30081         (category_equals): New function.
30082         (main): Add more tests.
30083         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
30084
30085         * tests/unictype/test-bidi_byname.c (main): Add more tests.
30086
30087 2010-01-10  Bruno Haible  <bruno@clisp.org>
30088
30089         unistr/u*-strcoll: Try harder to distinguish different strings.
30090         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
30091         compare s1 and s2 to see if they are different.
30092
30093 2010-01-10  Bruno Haible  <bruno@clisp.org>
30094
30095         unistr/u*-stpncpy: Fix the return value.
30096         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
30097         description of the return value consistent with stpncpy in glibc.
30098         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
30099         written non-NUL unit.
30100
30101 2010-01-10  Bruno Haible  <bruno@clisp.org>
30102
30103         unistr/u*-next: Add missing dependencies.
30104         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
30105         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
30106         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
30107
30108 2010-01-10  Bruno Haible  <bruno@clisp.org>
30109
30110         unistr/u8-mbsnlen: Fix return value for incomplete character.
30111         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
30112         u8_mblen.
30113         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
30114         Remove unistr/u8-mblen.
30115         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
30116         u16_mblen.
30117         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
30118         Remove unistr/u16-mblen.
30119
30120 2010-01-10  Bruno Haible  <bruno@clisp.org>
30121
30122         wchar: Fix compilation error when <wchar.h> is used from coreutils.
30123         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
30124         Reported by Brian Gough <bjg@gnu.org> and
30125         Chris Clayton <chris2553@googlemail.com> via
30126         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
30127
30128 2010-01-09  Bruno Haible  <bruno@clisp.org>
30129
30130         unistr/u16-to-u32: Reject invalid input.
30131         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
30132         u16_mbtouc.
30133         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
30134         Remove unistr/u16-mbtouc.
30135
30136         unistr/u16-to-u8: Reject invalid input.
30137         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
30138         u16_mbtouc.
30139         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
30140         Remove unistr/u16-mbtouc.
30141
30142         unistr/u8-to-u32: Reject invalid input.
30143         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
30144         u8_mbtouc.
30145         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
30146         Remove unistr/u8-mbtouc.
30147
30148         unistr/u8-to-u16: Reject invalid input.
30149         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
30150         u8_mbtouc.
30151         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
30152         Remove unistr/u8-mbtouc.
30153
30154 2010-01-09  Bruno Haible  <bruno@clisp.org>
30155
30156         Tests for module 'getlogin'.
30157         * modules/getlogin-tests: New file.
30158         * tests/test-getlogin.c: New file.
30159
30160         New module 'getlogin'.
30161         * lib/unistd.in.h (getlogin): New declaration.
30162         * lib/getlogin.c: New file.
30163         * m4/getlogin.m4: New file.
30164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
30165         HAVE_GETLOGIN.
30166         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
30167         HAVE_GETLOGIN.
30168         * modules/getlogin: New file.
30169         * doc/posix-functions/getlogin.texi: Mention the new module.
30170         Reported by John W. Eaton <jwe@gnu.org>.
30171
30172 2010-01-09  Bruno Haible  <bruno@clisp.org>
30173
30174         getlogin_r: Support for native Windows.
30175         * lib/getlogin_r.c: Include <windows.h>
30176         (getlogin_r): Implement for native Windows.
30177         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
30178         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
30179         via John W. Eaton <jwe@gnu.org>.
30180
30181 2010-01-09  Bruno Haible  <bruno@clisp.org>
30182
30183         getlogin_r: Small fixes.
30184         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
30185         succeeds.
30186         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
30187         before testing whether getlogin_r is declared. No need to set
30188         HAVE_DECL_GETLOGIN_R to 1.
30189         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
30190
30191 2010-01-09  Bruno Haible  <bruno@clisp.org>
30192
30193         * lib/unistd.in.h (getlogin_r): Add comment.
30194
30195 2010-01-09  Bruno Haible  <bruno@clisp.org>
30196
30197         Tests for module 'getlogin_r'.
30198         * modules/getlogin_r-tests: New file.
30199         * tests/test-getlogin_r.c: New file.
30200
30201 2010-01-09  Jim Meyering  <meyering@redhat.com>
30202
30203         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
30204         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
30205         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
30206
30207 2010-01-08  Simon Josefsson  <simon@josefsson.org>
30208
30209         * lib/dup2.c (rpl_dup2): Improve comment.
30210
30211 2010-01-08  Eric Blake  <ebb9@byu.net>
30212
30213         maint.mk: allow packages to add makefile @@ exceptions
30214         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
30215         (sc_makefile_check): Rename...
30216         (sc_makefile_at_at_check): ...to this, and use hook.
30217
30218         dup2: work around mingw bug
30219         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
30220         Reported by Simon Josefsson.
30221
30222 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
30223
30224         glob: Fix C++ compilation.
30225         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
30226         C++.
30227
30228 2010-01-07  Bruno Haible  <bruno@clisp.org>
30229
30230         Fix indentation of wctype.in.h, broken since 2007-01-06.
30231         * lib/wctype.in.h: Fix indentation of preprocessor directives.
30232
30233 2010-01-07  Bruno Haible  <bruno@clisp.org>
30234
30235         mbslen: Avoid collision with system function.
30236         * lib/string.in.h [MirBSD]: Include <wchar.h>.
30237         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
30238         * m4/mbslen.m4: New file.
30239         * modules/mbslen (Files): Add it.
30240         (configure.ac): Invoke gl_MBSLEN.
30241         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
30242         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
30243         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
30244         via Ian Beckwith <ianb@erislabs.net>.
30245
30246 2010-01-07  Bruno Haible  <bruno@clisp.org>
30247
30248         dirent: Document the last fix.
30249         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
30250
30251 2010-01-07  Bruno Haible  <bruno@clisp.org>
30252
30253         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
30254         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
30255         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
30256         va_list are defined.
30257         * doc/posix-headers/stdio.texi: Document the bug of missing types.
30258         Reported by Eric Blake.
30259
30260 2010-01-07  Bruno Haible  <bruno@clisp.org>
30261
30262         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
30263         * modules/xlist (Depends-on): Add 'list',
30264         * modules/xoset (Depends-on): Add 'oset'.
30265         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30266
30267 2010-01-07  Bruno Haible  <bruno@clisp.org>
30268
30269         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
30270         * doc/posix-functions/strncasecmp.texi: Likewise.
30271
30272 2010-01-07  Bruno Haible  <bruno@clisp.org>
30273
30274         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
30275
30276 2010-01-07  John W. Eaton  <jwe@octave.org>
30277
30278         wctype: allow C++ use
30279         * lib/wctype.in.h: Add extern "C" block for C++.
30280
30281 2010-01-06  Eric Blake  <ebb9@byu.net>
30282
30283         maint.mk: detect incorrect GFDL usage
30284         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
30285
30286 2010-01-06  Jim Meyering  <meyering@redhat.com>
30287         and Eric Blake  <ebb9@byu.net>
30288
30289         maint.mk: ignore multi-line copyright in NEWS
30290         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
30291
30292 2010-01-06  Eric Blake  <ebb9@byu.net>
30293
30294         select: add missing dependency
30295         * modules/select-tests (Depends-on): Move sockets dependency...
30296         * modules/select (Depends-on): ...here.
30297         Reported by Ian Beckwith.
30298
30299         doc: regenerate INSTALL
30300         * doc/INSTALL: Reflect recent autoconf update.
30301         * doc/INSTALL.ISO: Likewise.
30302         * doc/INSTALL.UTF-8: Likewise.
30303
30304         pread: fix compilation on glibc
30305         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
30306         Reported by Ralf Wildenhues.
30307
30308         dirent: fix test failure
30309         * lib/dirent.in.h (includes): Guarantee ino_t.
30310         Reported by Ralf Wildenhues.
30311
30312 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
30313
30314         linkat, renameat: avoid bad free
30315         * lib/at-func2.c (at_func2): Fix typo.
30316         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
30317
30318 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30319
30320         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
30321         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
30322         to avoid failure of symlink test later.
30323
30324 2010-01-06  Eric Blake  <ebb9@byu.net>
30325
30326         stdio, unistd: guarantee ssize_t
30327         * lib/unistd.in.h (includes): Ensure that types required by POSIX
30328         2008 are exposed when needed.
30329         * lib/stdio.in.h (includes): Likewise.
30330         Reported by Ralf Wildenhues.
30331
30332 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
30333
30334         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
30335         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
30336         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
30337
30338 2010-01-06  Jim Meyering  <meyering@redhat.com>
30339
30340         readtokens: this module *does* require xalloc.h
30341         It uses only functions that were omitted by the old syntax-check rule.
30342         * lib/readtokens.c: Include "xalloc.h" once again.
30343         * modules/readtokens (Depends-on): Add xalloc.
30344         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
30345
30346 2010-01-05  Eric Blake  <ebb9@byu.net>
30347
30348         maint: support 'make announcement' from a VPATH build
30349         * top/maint.mk (announcement): Look for correct NEWS file.
30350
30351 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
30352
30353         utimens (fdutimens): ignore a negative FD, per contract
30354         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
30355         when we have a valid file descriptor.  Otherwise, using a brand
30356         new glibc (with just-patched futimens that now fails with EBADF)
30357         would cause this function to fail with ENOSYS.
30358         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
30359         See also http://bugzilla.redhat.com/552320.
30360
30361 2010-01-05  Eric Blake  <ebb9@byu.net>
30362
30363         strcase: document what it provides
30364         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
30365         gnulib module.
30366         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
30367         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
30368
30369 2010-01-05  Jim Meyering  <meyering@redhat.com>
30370
30371         maint: remove useless inclusions of "xalloc.h"
30372         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
30373         * lib/readtokens.c: Likewise.
30374         * lib/same.c: Likewise.
30375         * modules/getloadavg (Depends-on): Remove xalloc.
30376         * modules/readtokens: Likewise.
30377         * modules/same: Likewise.
30378
30379         maint.mk: include 4 more function names in alloca.h-checking regexp
30380         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
30381         regexp.  Before, we would give a false-positive (saying alloca.h
30382         is included unnecessarily) when the only uses involved omitted symbols.
30383
30384         xalloc.h: use consistent formatting
30385         * lib/xalloc.h: Move declarations to start in the first column.
30386
30387 2010-01-05  Eric Blake  <ebb9@byu.net>
30388
30389         mkdir: avoid xalloc
30390         * lib/mkdir.c (includes): Drop unused header.
30391         Reported by John W. Eaton.
30392
30393 2010-01-04  Jim Meyering  <meyering@redhat.com>
30394
30395         nl_langinfo: avoid configure-time syntax error
30396         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
30397         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
30398         the empty string.  Don't let that provoke a shell syntax error.
30399
30400         regcomp, regexec, fnmatch: avoid array bounds read error
30401         * lib/regcomp.c (build_equiv_class): From glibc:
30402         Use only the low 24 bits of a findidx return value as an index
30403         into the weights array.  Patch by Ulrich Drepper:
30404         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
30405         * lib/regexec.c (check_node_accept_bytes): Likewise.
30406         * lib/fnmatch_loop.c (FCT): Likewise.
30407
30408         regcomp: skip collseq lookup when there are no rules
30409         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
30410         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
30411
30412         regcomp: recognize ill-formed { } expressions
30413         * lib/regcomp.c (parse_dup_op): From glibc:
30414         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
30415
30416         regcomp: fix typo in comment
30417         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
30418         s/satisfy/satisfies/.
30419
30420         regcomp: sync from glibc: remove dead store
30421         * lib/regcomp.c (duplicate_node_closure): Remove useless
30422         search_duplicated_node call and dead store.
30423
30424         regcomp: sync from glibc; always use nl_langinfo
30425         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
30426         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
30427         * modules/regex (Depends-on): Add nl_langinfo.
30428
30429 2010-01-04  Eric Blake  <ebb9@byu.net>
30430
30431         fdopendir: fix configure test
30432         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
30433
30434 2010-01-01  Bruno Haible  <bruno@clisp.org>
30435
30436         wchar: Remove unused configure check.
30437         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
30438
30439 2010-01-01  Eric Blake  <ebb9@byu.net>
30440
30441         headers: make check of system header explicit
30442         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
30443         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
30444         ourselves.
30445         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30446         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30447         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30448         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
30449         internals.
30450         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
30451         missing.
30452         Suggested by Bruno Haible.
30453
30454 2010-01-01  Jim Meyering  <meyering@redhat.com>
30455
30456         ChangeLog: tweak to eliminate unnecessary copyright line
30457         * ChangeLog: Remove a copyright line that was mistakenly updated
30458         by today's update-copyright run.  Reported by Eric Blake.
30459
30460         test-update-copyright: don't let envvar setting cause test failure
30461         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30462
30463 2010-01-01  Bruno Haible  <bruno@clisp.org>
30464
30465         localename: Avoid gcc warning.
30466         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
30467         function if it is not used.
30468
30469 2010-01-01  Jim Meyering  <meyering@redhat.com>
30470
30471         update nearly all FSF copyright year lists to include 2010
30472         Use the same procedure as for 2009, outlined in
30473         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
30474
30475         version-etc: set COPYRIGHT_YEAR to 2010
30476         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
30477
30478 2009-12-31  Eric Blake  <ebb9@byu.net>
30479
30480         doc: correct availability of cygwin 1.5.x getopt
30481         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
30482         variables.
30483         * doc/posix-functions/opterr.texi (opterr): Likewise.
30484         * doc/posix-functions/optind.texi (optind): Likewise.
30485         * doc/posix-functions/optopt.texi (optopt): Likewise.
30486         * doc/posix-functions/tzname.texi (tzname): Likewise.
30487
30488         openat: update maintainer
30489         * modules/openat (Maintainer): Add myself.
30490
30491         utimens: avoid shadowing warning
30492         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
30493         buffers into one, to avoid shadowing, as well as avoiding a
30494         redundant stat.
30495         Reported by Jim Meyering.
30496
30497         test-dup2: avoid compiler warning
30498         * tests/test-dup2.c (is_inheritable): Only define if used.
30499
30500 2010-01-01  Bruno Haible  <bruno@clisp.org>
30501
30502         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
30503         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
30504         defined, use wctomb instead of wcrtomb.
30505
30506 2010-01-01  Bruno Haible  <bruno@clisp.org>
30507
30508         iconv: Reject native Solaris iconv.
30509         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
30510         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
30511
30512 2009-12-31  Bruno Haible  <bruno@clisp.org>
30513
30514         * tests/test-signal.c (main): Remove test of 'SIG'.
30515
30516 2009-12-31  Bruno Haible  <bruno@clisp.org>
30517
30518         spawn: Fix incomplete fix.
30519         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30520         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30521         warnings for GNULIB_POSIXCHECK again.
30522         Reported by Eric Blake.
30523
30524 2009-12-31  Bruno Haible  <bruno@clisp.org>
30525
30526         Avoid namespace pollution on glibc systems.
30527         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
30528         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
30529         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
30530         glibc systems.
30531
30532 2009-12-31  Bruno Haible  <bruno@clisp.org>
30533
30534         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
30535         (gl_REPLACE_WCHAR_H): Turn into a no-op.
30536         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
30537         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
30538         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
30539         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
30540         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
30541
30542 2009-12-31  Bruno Haible  <bruno@clisp.org>
30543
30544         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30545         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
30546         afterwards.
30547
30548 2009-12-31  Bruno Haible  <bruno@clisp.org>
30549
30550         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
30551         SYS_UTSNAME_H.
30552
30553 2009-12-31  Bruno Haible  <bruno@clisp.org>
30554
30555         spawn: Fix misapplied patch.
30556         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30557         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30558         warnings for GNULIB_POSIXCHECK.
30559
30560 2009-12-31  Bruno Haible  <bruno@clisp.org>
30561
30562         times: Update after sys_times changed.
30563         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
30564         * modules/times (Files): Add it.
30565         (configure.ac): Invoke gl_FUNC_TIMES.
30566
30567 2009-12-31  Bruno Haible  <bruno@clisp.org>
30568
30569         Use AC_C_INLINE where necessary.
30570         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
30571         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30572         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
30573         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30574         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30575         * m4/mbiter.m4 (gl_MBITER): Likewise.
30576         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30577         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30578         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
30579         * modules/u64 (configure.ac): Likewise.
30580
30581 2009-12-31  Bruno Haible  <bruno@clisp.org>
30582
30583         Use AC_C_INLINE instead of module 'inline' where possible.
30584         * modules/inline (Description): Clarify purpose.
30585         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
30586         * modules/count-one-bits (Depends-on): Remove inline.
30587         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
30588         * modules/openat (Depends-on): Remove inline.
30589         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
30590         instead of depending on module 'inline'.
30591         * modules/filevercmp (Depends-on, configure.ac): Likewise.
30592         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
30593         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
30594         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
30595         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
30596         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
30597         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
30598         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
30599         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
30600         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
30601         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
30602         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
30603         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
30604         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
30605         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
30606         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
30607         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
30608         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
30609         Likewise.
30610         * modules/unictype/property-ascii-hex-digit (Depends-on,
30611         configure.ac): Likewise.
30612         * modules/unictype/property-bidi-arabic-digit (Depends-on,
30613         configure.ac): Likewise.
30614         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
30615         configure.ac): Likewise.
30616         * modules/unictype/property-bidi-block-separator (Depends-on,
30617         configure.ac): Likewise.
30618         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
30619         configure.ac): Likewise.
30620         * modules/unictype/property-bidi-common-separator (Depends-on,
30621         configure.ac): Likewise.
30622         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
30623         Likewise.
30624         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
30625         configure.ac): Likewise.
30626         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
30627         configure.ac): Likewise.
30628         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
30629         configure.ac): Likewise.
30630         * modules/unictype/property-bidi-european-digit (Depends-on,
30631         configure.ac): Likewise.
30632         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
30633         configure.ac): Likewise.
30634         * modules/unictype/property-bidi-left-to-right (Depends-on,
30635         configure.ac): Likewise.
30636         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
30637         configure.ac): Likewise.
30638         * modules/unictype/property-bidi-other-neutral (Depends-on,
30639         configure.ac): Likewise.
30640         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
30641         Likewise.
30642         * modules/unictype/property-bidi-segment-separator (Depends-on,
30643         configure.ac): Likewise.
30644         * modules/unictype/property-bidi-whitespace (Depends-on,
30645         configure.ac): Likewise.
30646         * modules/unictype/property-combining (Depends-on, configure.ac):
30647         Likewise.
30648         * modules/unictype/property-composite (Depends-on, configure.ac):
30649         Likewise.
30650         * modules/unictype/property-currency-symbol (Depends-on,
30651         configure.ac): Likewise.
30652         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
30653         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
30654         Likewise.
30655         * modules/unictype/property-default-ignorable-code-point (Depends-on,
30656         configure.ac): Likewise.
30657         * modules/unictype/property-deprecated (Depends-on, configure.ac):
30658         Likewise.
30659         * modules/unictype/property-diacritic (Depends-on, configure.ac):
30660         Likewise.
30661         * modules/unictype/property-extender (Depends-on, configure.ac):
30662         Likewise.
30663         * modules/unictype/property-format-control (Depends-on, configure.ac):
30664         Likewise.
30665         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
30666         Likewise.
30667         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
30668         Likewise.
30669         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
30670         Likewise.
30671         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
30672         Likewise.
30673         * modules/unictype/property-hyphen (Depends-on, configure.ac):
30674         Likewise.
30675         * modules/unictype/property-id-continue (Depends-on, configure.ac):
30676         Likewise.
30677         * modules/unictype/property-id-start (Depends-on, configure.ac):
30678         Likewise.
30679         * modules/unictype/property-ideographic (Depends-on, configure.ac):
30680         Likewise.
30681         * modules/unictype/property-ids-binary-operator (Depends-on,
30682         configure.ac): Likewise.
30683         * modules/unictype/property-ids-trinary-operator (Depends-on,
30684         configure.ac): Likewise.
30685         * modules/unictype/property-ignorable-control (Depends-on,
30686         configure.ac): Likewise.
30687         * modules/unictype/property-iso-control (Depends-on, configure.ac):
30688         Likewise.
30689         * modules/unictype/property-join-control (Depends-on, configure.ac):
30690         Likewise.
30691         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
30692         Likewise.
30693         * modules/unictype/property-line-separator (Depends-on, configure.ac):
30694         Likewise.
30695         * modules/unictype/property-logical-order-exception (Depends-on,
30696         configure.ac): Likewise.
30697         * modules/unictype/property-lowercase (Depends-on, configure.ac):
30698         Likewise.
30699         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
30700         * modules/unictype/property-non-break (Depends-on, configure.ac):
30701         Likewise.
30702         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
30703         Likewise.
30704         * modules/unictype/property-numeric (Depends-on, configure.ac):
30705         Likewise.
30706         * modules/unictype/property-other-alphabetic (Depends-on,
30707         configure.ac): Likewise.
30708         * modules/unictype/property-other-default-ignorable-code-point
30709         (Depends-on, configure.ac): Likewise.
30710         * modules/unictype/property-other-grapheme-extend (Depends-on,
30711         configure.ac): Likewise.
30712         * modules/unictype/property-other-id-continue (Depends-on,
30713         configure.ac): Likewise.
30714         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
30715         Likewise.
30716         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
30717         Likewise.
30718         * modules/unictype/property-other-math (Depends-on, configure.ac):
30719         Likewise.
30720         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
30721         Likewise.
30722         * modules/unictype/property-paired-punctuation (Depends-on,
30723         configure.ac): Likewise.
30724         * modules/unictype/property-paragraph-separator (Depends-on,
30725         configure.ac): Likewise.
30726         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
30727         Likewise.
30728         * modules/unictype/property-pattern-white-space (Depends-on,
30729         configure.ac): Likewise.
30730         * modules/unictype/property-private-use (Depends-on, configure.ac):
30731         Likewise.
30732         * modules/unictype/property-punctuation (Depends-on, configure.ac):
30733         Likewise.
30734         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
30735         Likewise.
30736         * modules/unictype/property-radical (Depends-on, configure.ac):
30737         Likewise.
30738         * modules/unictype/property-sentence-terminal (Depends-on,
30739         configure.ac): Likewise.
30740         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
30741         Likewise.
30742         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
30743         * modules/unictype/property-terminal-punctuation (Depends-on,
30744         configure.ac): Likewise.
30745         * modules/unictype/property-titlecase (Depends-on, configure.ac):
30746         Likewise.
30747         * modules/unictype/property-unassigned-code-value (Depends-on,
30748         configure.ac): Likewise.
30749         * modules/unictype/property-unified-ideograph (Depends-on,
30750         configure.ac): Likewise.
30751         * modules/unictype/property-uppercase (Depends-on, configure.ac):
30752         Likewise.
30753         * modules/unictype/property-variation-selector (Depends-on,
30754         configure.ac): Likewise.
30755         * modules/unictype/property-white-space (Depends-on, configure.ac):
30756         Likewise.
30757         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
30758         Likewise.
30759         * modules/unictype/property-xid-start (Depends-on, configure.ac):
30760         Likewise.
30761         * modules/unictype/property-zero-width (Depends-on, configure.ac):
30762         Likewise.
30763         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
30764         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
30765         Likewise.
30766
30767 2009-12-31  Bruno Haible  <bruno@clisp.org>
30768
30769         Remove unnecessary AC_C_INLINE invocation.
30770         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
30771         since 2009-08-21.
30772
30773 2009-12-31  Jim Meyering  <meyering@redhat.com>
30774
30775         maint.mk: don't require explicit gpg_key_ID in cfg.mk
30776         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
30777         With this change, we can all remove the gpg_key_ID = ... definition
30778         from our respective cfg.mk files.
30779
30780         maint.mk: create announcement template in ~/, not in /tmp
30781         * top/maint.mk (emit_upload_commands): Adjust.
30782         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
30783         Remove temporary file, .ci-msg.
30784
30785 2009-12-31  Eric Blake  <ebb9@byu.net>
30786
30787         link-warning: always build headers with link warnings
30788         * modules/arpa_inet (Makefile.am): Always build replacement
30789         header.
30790         * modules/ctype (Makefile.am): Likewise.
30791         * modules/dirent (Makefile.am): Likewise.
30792         * modules/inttypes (Makefile.am): Likewise.
30793         * modules/langinfo (Makefile.am): Likewise.
30794         * modules/locale (Makefile.am): Likewise.
30795         * modules/spawn (Makefile.am): Likewise.
30796         * modules/sys_file (Makefile.am): Likewise.
30797         * modules/sys_ioctl (Makefile.am): Likewise.
30798         * modules/sys_select (Makefile.am): Likewise.
30799         * modules/sys_socket (Makefile.am): Likewise.
30800         * modules/sys_times (Makefile.am): Likewise.
30801         * modules/sys_utsname (Makefile.am): Likewise.
30802         * modules/sys_wait (Makefile.am): Likewise.
30803         * modules/wchar (Makefile.am): Likewise.
30804         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
30805         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
30806         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
30807         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
30808         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
30809         Likewise.
30810         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30811         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30812         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
30813         Likewise.
30814         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
30815         Likewise.
30816         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
30817         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
30818         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
30819         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30820         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30821         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30822         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30823         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
30824         (gl_WCHAR_H_DEFAULTS): Likewise.
30825
30826 2009-12-31  Eric Blake  <ebb9@byu.net>
30827
30828         signal, spawn: use link warnings
30829         * lib/signal.in.h (sigset_t): Make unconditional.
30830         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
30831         (sigpending, sigprocmask, sigaction): Add link warnings.
30832         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
30833         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
30834         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
30835         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
30836         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
30837         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
30838         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
30839         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
30840         (posix_spawn_file_actions_destroy)
30841         (posix_spawn_file_actions_addopen)
30842         (posix_spawn_file_actions_addclose)
30843         (posix_spawn_file_actions_adddup2): Likewise.
30844         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
30845         * tests/test-signal.c (main): Enhance test.
30846
30847         spawn: improve wrapper support
30848         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
30849         (gl_SPAWN_H_DEFAULTS): New defaults.
30850         * modules/spawn (Makefile.am): Substitute them.
30851         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
30852         Only declare if missing or broken.
30853
30854         sys_times, sys_utsname: use include_next
30855         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
30856         header.
30857         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
30858         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30859         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30860         * modules/sys_times (Depends-on): Add include_next.
30861         (Makefile.am): Substitute additional values.
30862         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30863         * lib/sys_times.in.h (includes): Include native header, if
30864         available.
30865         * lib/sys_utsname.in.h (includes): Likewise.
30866         * tests/test-sys_times.c (main): Enhance test.
30867
30868         fdutimensat: revert prior patch
30869         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
30870         utimens.h.
30871         Reported by Bruno Haible.
30872
30873 2009-12-30  Eric Blake  <ebb9@byu.net>
30874
30875         sys_wait: drop link-warning dependency
30876         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
30877         link-warning efforts.
30878         * lib/sys_wait.in.h: Likewise.
30879
30880         fdutimensat: remove bogus dependency
30881         * modules/fdutimensat (Depends-on): Drop inline.
30882
30883         unistd: fix typo
30884         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
30885
30886 2009-12-30  Bruno Haible  <bruno@clisp.org>
30887
30888         Fix compilation error with Solaris cc.
30889         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
30890         * lib/unicase/u16-is-invariant.c: Likewise.
30891         * lib/unicase/u32-is-invariant.c: Likewise.
30892         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30893
30894 2009-12-30  Bruno Haible  <bruno@clisp.org>
30895
30896         Fix test crash.
30897         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
30898         locales.
30899         Reported by Simon Josefsson <simon@josefsson.org>.
30900
30901 2009-12-30  Bruno Haible  <bruno@clisp.org>
30902
30903         Fix compilation error on most platforms.
30904         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
30905         Reported by Simon Josefsson <simon@josefsson.org>
30906         and Nelson H. F. Beebe <beebe@math.utah.edu>.
30907
30908 2009-12-30  Eric Blake  <ebb9@byu.net>
30909
30910         futimens, utimensat: work around ntfs-3g bug
30911         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
30912         a ctime bug is present, and expand workaround to cover ntfs-3g.
30913         * lib/utimens.c (fdutimens, lutimens): Likewise.
30914         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
30915         (validate_timespec): Adjust return value.
30916         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
30917         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30918         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
30919
30920 2009-12-29  Eric Blake  <ebb9@byu.net>
30921
30922         link-warning: make usage consistent
30923         * modules/ctype (Depends-on): Add link-warning.
30924         (Makefile.am): Update rules accordingly.
30925         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30926         * modules/locale (Depends-on, Makefile.am): Likewise.
30927         * modules/sys_file (Makefile.am): Likewise.
30928         * modules/getopt-posix (Makefile.am): Delete unused link warning
30929         efforts.
30930         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
30931         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
30932         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
30933         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
30934
30935         stdio: remove unused variables
30936         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
30937         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
30938         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30939
30940         tests: test more substitute headers
30941         * modules/ctype-tests: New file.
30942         * modules/dirent-tests: Likewise.
30943         * modules/spawn-tests: Likewise.
30944         * modules/sys_file-tests: Likewise.
30945         * modules/sys_ioctl-tests: Likewise.
30946         * modules/sys_wait-tests: Likewise.
30947         * tests/test-ctype.c: Likewise.
30948         * tests/test-dirent.c: Likewise.
30949         * tests/test-spawn.c: Likewise.
30950         * tests/test-sys_file.c: Likewise.
30951         * tests/test-sys_ioctl.c: Likewise.
30952         * tests/test-sys_wait.c: Likewise.
30953         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
30954         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
30955         whether or not flock is in use.
30956
30957         tests: remove License section from module
30958         * modules/arpa_inet-tests: Remove unneeded section.
30959         * modules/byteswap-tests: Likewise.
30960         * modules/ceilf-tests: Likewise.
30961         * modules/ceill-tests: Likewise.
30962         * modules/crypto/des-tests: Likewise.
30963         * modules/crypto/gc-arcfour-tests: Likewise.
30964         * modules/crypto/gc-arctwo-tests: Likewise.
30965         * modules/crypto/gc-des-tests: Likewise.
30966         * modules/crypto/gc-hmac-md5-tests: Likewise.
30967         * modules/crypto/gc-hmac-sha1-tests: Likewise.
30968         * modules/crypto/gc-md2-tests: Likewise.
30969         * modules/crypto/gc-md4-tests: Likewise.
30970         * modules/crypto/gc-md5-tests: Likewise.
30971         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
30972         * modules/crypto/gc-rijndael-tests: Likewise.
30973         * modules/crypto/gc-sha1-tests: Likewise.
30974         * modules/crypto/gc-tests: Likewise.
30975         * modules/crypto/md2-tests: Likewise.
30976         * modules/crypto/md4-tests: Likewise.
30977         * modules/fcntl-h-tests: Likewise.
30978         * modules/floorf-tests: Likewise.
30979         * modules/floorl-tests: Likewise.
30980         * modules/frexp-nolibm-tests: Likewise.
30981         * modules/frexp-tests: Likewise.
30982         * modules/frexpl-nolibm-tests: Likewise.
30983         * modules/frexpl-tests: Likewise.
30984         * modules/getaddrinfo-tests: Likewise.
30985         * modules/inttypes-tests: Likewise.
30986         * modules/isfinite-tests: Likewise.
30987         * modules/isinf-tests: Likewise.
30988         * modules/ldexpl-tests: Likewise.
30989         * modules/locale-tests: Likewise.
30990         * modules/math-tests: Likewise.
30991         * modules/netdb-tests: Likewise.
30992         * modules/netinet_in-tests: Likewise.
30993         * modules/printf-frexp-tests: Likewise.
30994         * modules/printf-frexpl-tests: Likewise.
30995         * modules/priv-set-tests: Likewise.
30996         * modules/random_r-tests: Likewise.
30997         * modules/round-tests: Likewise.
30998         * modules/roundf-tests: Likewise.
30999         * modules/roundl-tests: Likewise.
31000         * modules/search-tests: Likewise.
31001         * modules/select-tests: Likewise.
31002         * modules/signal-tests: Likewise.
31003         * modules/stdbool-tests: Likewise.
31004         * modules/stddef-tests: Likewise.
31005         * modules/stdint-tests: Likewise.
31006         * modules/stdio-tests: Likewise.
31007         * modules/stdlib-tests: Likewise.
31008         * modules/string-tests: Likewise.
31009         * modules/strings-tests: Likewise.
31010         * modules/sys_select-tests: Likewise.
31011         * modules/sys_socket-tests: Likewise.
31012         * modules/sys_stat-tests: Likewise.
31013         * modules/sys_time-tests: Likewise.
31014         * modules/sys_utsname-tests: Likewise.
31015         * modules/sysexits-tests: Likewise.
31016         * modules/time-tests: Likewise.
31017         * modules/trunc-tests: Likewise.
31018         * modules/truncf-tests: Likewise.
31019         * modules/truncl-tests: Likewise.
31020         * modules/tsearch-tests: Likewise.
31021         * modules/unistd-tests: Likewise.
31022         * modules/wchar-tests: Likewise.
31023         * modules/wctype-tests: Likewise.
31024
31025         tests: fix license on several tests
31026         * tests/test-des.c: Update to GPLv3+.
31027         * tests/test-flock.c: Likewise.
31028         * tests/test-fsync.c: Likewise.
31029         * tests/test-futimens.h: Likewise.
31030         * tests/test-gc-arcfour.c: Likewise.
31031         * tests/test-gc-arctwo.c: Likewise.
31032         * tests/test-gc-des.c: Likewise.
31033         * tests/test-gc-hmac-md5.c: Likewise.
31034         * tests/test-gc-hmac-sha1.c: Likewise.
31035         * tests/test-gc-md2.c: Likewise.
31036         * tests/test-gc-md4.c: Likewise.
31037         * tests/test-gc-md5.c: Likewise.
31038         * tests/test-gc-pbkdf2-sha1.c: Likewise.
31039         * tests/test-gc-rijndael.c: Likewise.
31040         * tests/test-gc-sha1.c: Likewise.
31041         * tests/test-gc.c: Likewise.
31042         * tests/test-getcwd.c: Likewise.
31043         * tests/test-link.c: Likewise.
31044         * tests/test-link.h: Likewise.
31045         * tests/test-lutimens.h: Likewise.
31046         * tests/test-md2.c: Likewise.
31047         * tests/test-md4.c: Likewise.
31048         * tests/test-mkdir.h: Likewise.
31049         * tests/test-rename.c: Likewise.
31050         * tests/test-rename.h: Likewise.
31051         * tests/test-safe-alloc.c: Likewise.
31052         * tests/test-utimens-common.h: Likewise.
31053         * tests/test-utimens.h: Likewise.
31054
31055         maint: sync license texts
31056         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
31057         * doc/gpl-3.0.texi: Revert copyright year update.
31058         * doc/lgpl-3.0.texi: Likewise.
31059
31060 2009-12-29  Jim Meyering  <meyering@redhat.com>
31061
31062         update nearly all FSF copyright year lists to include 2009
31063         The files named by the following are exempted:
31064             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
31065               test -f "$dst" && { echo "$dst"; continue; }
31066               test -d "$dst" || continue
31067               echo "$dst"/$(basename "$src")
31068             done > exempt
31069             git ls-files tests/unictype >> exempt
31070         In the remaining files, convert to all-interval notation if
31071         - there is already at least one year interval like 2000-2003
31072         - the file is maintained by me
31073         - the file is in lib/uni*/, where that style already prevails
31074         Otherwise, use update-copyright's default.
31075
31076 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31077         and Eric Blake  <ebb9@byu.net>
31078
31079         tests: don't require debug system() to pass
31080         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
31081         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31082         * tests/test-unlink.h (test_unlink_func): Likewise.
31083         * tests/test-fstatat.c (main): ...into callers.
31084         * tests/test-lstat.c (main): Likewise.
31085         * tests/test-rmdir.c (main): Likewise.
31086         * tests/test-unlink.c (main): Likewise.
31087         * tests/test-unlinkat.c (main): Likewise.
31088         * tests/test-areadlink-with-size.c (main): Don't require a
31089         debug-only system call to pass, aiding cross-testing to mingw.
31090         * tests/test-areadlink.c (main): Likewise.
31091         * tests/test-areadlinkat-with-size.c (main): Likewise.
31092         * tests/test-areadlinkat.c (main): Likewise.
31093         * tests/test-canonicalize-lgpl.c (main): Likewise.
31094         * tests/test-canonicalize.c (main): Likewise.
31095         * tests/test-chown.c (main): Likewise.
31096         * tests/test-fchownat.c (main): Likewise.
31097         * tests/test-lchown.c (main): Likewise.
31098         * tests/test-fdutimensat.c (main): Likewise.
31099         * tests/test-futimens.c (main): Likewise.
31100         * tests/test-link.c (main): Likewise.
31101         * tests/test-linkat.c (main): Likewise.
31102         * tests/test-mkdir.c (main): Likewise.
31103         * tests/test-mkdirat.c (main): Likewise.
31104         * tests/test-mkfifo.c (main): Likewise.
31105         * tests/test-mkfifoat.c (main): Likewise.
31106         * tests/test-mknod.c (main): Likewise.
31107         * tests/test-readlink.c (main): Likewise.
31108         * tests/test-remove.c (main): Likewise.
31109         * tests/test-rename.c (main): Likewise.
31110         * tests/test-renameat.c (main): Likewise.
31111         * tests/test-symlink.c (main): Likewise.
31112         * tests/test-symlinkat.c (main): Likewise.
31113         * tests/test-utimens.c (main): Likewise.
31114         * tests/test-utimensat.c (main): Likewise.
31115
31116 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31117
31118         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
31119         on $(UNUSED_PARAMETER_H) to avoid build failure.
31120
31121 2009-12-28  Jim Meyering  <meyering@redhat.com>
31122
31123         update-copyright: you may specify a max. line length other than 72
31124         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31125
31126         maint: use consistent FSF copyright line syntax
31127         * lib/posixtm.c: Add missing comma in FSF copyright line.
31128         * lib/posixtm.h: Likewise.
31129         * lib/getugroups.c: Add missing ", Inc.".
31130
31131         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
31132         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
31133         FSF copyright line.  Remove trailing blanks.
31134
31135 2009-12-28  Eric Blake  <ebb9@byu.net>
31136
31137         test-dup2: reduce dependencies
31138         * modules/cloexec (Configure.ac): Set witness.
31139         * modules/dup2-tests (Depends-on): Drop cloexec.
31140         * tests/test-dup2.c (main): Skip portion of test if cloexec module
31141         not present.
31142         Suggested by Bruno Haible.
31143
31144 2009-12-26  Bruno Haible  <bruno@clisp.org>
31145
31146         Remove an unneeded dependency.
31147         * modules/fseterr (Depends-on): Remove dup2.
31148
31149 2009-12-26  Eric Blake  <ebb9@byu.net>
31150
31151         tests: use macros.h in more places
31152         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
31153         (ASSERT_STREAM): Provide default of stderr.
31154         * tests/test-dirent-safer.c: Include macros.h, using alternate
31155         stream for assertions.
31156         * tests/test-dup-safer.c: Likewise.
31157         * tests/test-freopen-safer.c: Likewise.
31158         * tests/test-getopt.c: Likewise.
31159         * tests/test-openat-safer.c: Likewise.
31160         * tests/test-pipe.c: Likewise.
31161         * tests/test-popen-safer.c: Likewise.
31162         * modules/dirent-safer-tests (Files): Include macros.h.
31163         * modules/unistd-safer-tests (Files): Likewise.
31164         * modules/freopen-safer-tests (Files): Likewise.
31165         * modules/getopt-posix-tests (Files): Likewise.
31166         * modules/openat-safer-tests (Files): Likewise.
31167         * modules/pipe-tests (Files): Likewise.
31168
31169 2009-12-26  Bruno Haible  <bruno@clisp.org>
31170
31171         javacomp: Portability fix.
31172         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
31173         that it also works on Solaris.
31174
31175 2009-12-26  Bruno Haible  <bruno@clisp.org>
31176
31177         localename: Fix storage allocation of gl_locale_name_thread's result.
31178         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
31179         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
31180         all platforms that have 'uselocale'.
31181         (gl_locale_name_thread_unsafe): New function, extracted from
31182         gl_locale_name_thread.
31183         (gl_locale_name_thread): Call struniq on all platforms that have
31184         'uselocale'.
31185         * tests/test-localename.c (test_locale_name_thread): Check that the
31186         resulting strings are permanently allocated.
31187         * modules/localename-tests (Depends-on): Add strdup.
31188
31189 2009-12-26  Bruno Haible  <bruno@clisp.org>
31190
31191         * tests/test-localename.c (categories): Fill in the strings.
31192
31193 2009-12-26  Jim Meyering  <meyering@redhat.com>
31194
31195         isdir: complete the removal of m4/isdir.m4
31196         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
31197
31198         isdir: clean up, since at least grep still uses it
31199         * lib/isdir.c: Include "isdir.h".
31200         (S_ISDIR): Remove now-unneeded definition.
31201         * modules/isdir (Files): Add lib/isdir.h.
31202         * lib/isdir.h: New file, with declaration.
31203         * m4/isdir.m4: Remove file -- unneeded.
31204
31205 2009-12-25  Bruno Haible  <bruno@clisp.org>
31206
31207         selinux-h: Make generated .h files standalone.
31208         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
31209         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
31210         * lib/se-selinux.in.h: Likewise.
31211         * modules/selinux-h (Depends-on): Add unused-parameter.
31212         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
31213         selinux/selinux.h and selinux/context.h.
31214         Suggested by Eric Blake.
31215
31216 2009-12-25  Bruno Haible  <bruno@clisp.org>
31217
31218         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
31219         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
31220         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
31221         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
31222         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
31223
31224 2009-12-24  Bruno Haible  <bruno@clisp.org>
31225
31226         openat: Fix warning.
31227         * lib/openat-proc.c: Include <unistd.h>.
31228
31229 2009-12-24  Bruno Haible  <bruno@clisp.org>
31230
31231         New module 'unused-parameter'.
31232         * build-aux/unused-parameter.h: New file, extracted from earlier
31233         gnulib-common.m4.
31234         * modules/unused-parameter: New file.
31235         * lib/unistr.h: Include unused-parameter.h.
31236         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
31237         _GL_UNUSED.
31238         * modules/unistr/base (Depends-on): Add unused-parameter.
31239
31240 2009-12-24  Bruno Haible  <bruno@clisp.org>
31241
31242         Add missing dependencies to 'extensions' module.
31243         * m4/extensions.m4: Add comment.
31244         * modules/accept4 (Depends-on): Add extensions.
31245         * modules/dup3 (Depends-on): Likewise.
31246         * modules/fcntl (Depends-on): Likewise.
31247         * modules/futimens (Depends-on): Likewise.
31248         * modules/mknod (Depends-on): Likewise.
31249         * modules/pipe2 (Depends-on): Likewise.
31250         * modules/stat-time (Depends-on): Likewise.
31251         * modules/strcasestr-simple (Depends-on): Likewise.
31252         * modules/strsignal (Depends-on): Likewise.
31253         * modules/utimensat (Depends-on): Likewise.
31254         * modules/localcharset (Depends-on): Likewise. Needed because of
31255         gl_FCNTL_O_FLAGS.
31256         * modules/wcrtomb (Depends-on): Likewise. Needed because of
31257         AC_TYPE_MBSTATE_T.
31258         * modules/wcsnrtombs (Depends-on): Likewise.
31259         * modules/wcsrtombs (Depends-on): Likewise.
31260
31261 2009-12-24  Bruno Haible  <bruno@clisp.org>
31262
31263         binary-io: Avoid gcc warning due to SET_BINARY.
31264         * lib/binary-io.h (SET_BINARY): Cast the result to void.
31265         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
31266
31267 2009-12-24  Bruno Haible  <bruno@clisp.org>
31268
31269         Avoid future namespace pollution on glibc systems.
31270         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
31271         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
31272         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
31273         glibc systems.
31274
31275 2009-12-24  Bruno Haible  <bruno@clisp.org>
31276
31277         Refactor common macros used in tests.
31278         * tests/macros.h: New file.
31279         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
31280         and/or <stdlib.h>, if appropriate.
31281         (ASSERT, SIZEOF): Remove macros.
31282         * tests/test-areadlink-with-size.c: Likewise.
31283         * tests/test-areadlinkat.c: Likewise.
31284         * tests/test-areadlinkat-with-size.c: Likewise.
31285         * tests/test-argmatch.c: Likewise.
31286         * tests/test-argv-iter.c: Likewise.
31287         * tests/test-array-mergesort.c: Likewise.
31288         * tests/test-array_list.c: Likewise.
31289         * tests/test-array_oset.c: Likewise.
31290         * tests/test-avltree_list.c: Likewise.
31291         * tests/test-avltree_oset.c: Likewise.
31292         * tests/test-avltreehash_list.c: Likewise.
31293         * tests/test-base64.c: Likewise.
31294         * tests/test-binary-io.c: Likewise.
31295         * tests/test-bitrotate.c: Likewise.
31296         * tests/test-btowc.c: Likewise.
31297         * tests/test-byteswap.c: Likewise.
31298         * tests/test-c-ctype.c: Likewise.
31299         * tests/test-c-stack.c: Likewise.
31300         * tests/test-c-strcasecmp.c: Likewise.
31301         * tests/test-c-strcasestr.c: Likewise.
31302         * tests/test-c-strncasecmp.c: Likewise.
31303         * tests/test-c-strstr.c: Likewise.
31304         * tests/test-canonicalize-lgpl.c: Likewise.
31305         * tests/test-canonicalize.c: Likewise.
31306         * tests/test-carray_list.c: Likewise.
31307         * tests/test-ceilf1.c: Likewise.
31308         * tests/test-ceilf2.c: Likewise.
31309         * tests/test-ceill.c: Likewise.
31310         * tests/test-chown.c: Likewise.
31311         * tests/test-cloexec.c: Likewise.
31312         * tests/test-copy-acl.c: Likewise.
31313         * tests/test-copy-file.c: Likewise.
31314         * tests/test-count-one-bits.c: Likewise.
31315         * tests/test-dprintf-posix.c: Likewise.
31316         * tests/test-dup2.c: Likewise.
31317         * tests/test-dup3.c: Likewise.
31318         * tests/test-duplocale.c: Likewise.
31319         * tests/test-fbufmode.c: Likewise.
31320         * tests/test-fchdir.c: Likewise.
31321         * tests/test-fchownat.c: Likewise.
31322         * tests/test-fcntl-safer.c: Likewise.
31323         * tests/test-fcntl.c: Likewise.
31324         * tests/test-fdopendir.c: Likewise.
31325         * tests/test-fdutimensat.c: Likewise.
31326         * tests/test-fflush2.c: Likewise.
31327         * tests/test-file-has-acl.c: Likewise.
31328         * tests/test-filevercmp.c: Likewise.
31329         * tests/test-flock.c: Likewise.
31330         * tests/test-floorf1.c: Likewise.
31331         * tests/test-floorf2.c: Likewise.
31332         * tests/test-floorl.c: Likewise.
31333         * tests/test-fnmatch.c: Likewise.
31334         * tests/test-fopen.h: Likewise.
31335         * tests/test-fpending.c: Likewise.
31336         * tests/test-fprintf-posix.c: Likewise.
31337         * tests/test-fpurge.c: Likewise.
31338         * tests/test-freadable.c: Likewise.
31339         * tests/test-freadahead.c: Likewise.
31340         * tests/test-freading.c: Likewise.
31341         * tests/test-freadptr.c: Likewise.
31342         * tests/test-freadptr2.c: Likewise.
31343         * tests/test-freadseek.c: Likewise.
31344         * tests/test-freopen.c: Likewise.
31345         * tests/test-frexp.c: Likewise.
31346         * tests/test-frexpl.c: Likewise.
31347         * tests/test-fseek.c: Likewise.
31348         * tests/test-fseeko.c: Likewise.
31349         * tests/test-fstatat.c: Likewise.
31350         * tests/test-fstrcmp.c: Likewise.
31351         * tests/test-fsync.c: Likewise.
31352         * tests/test-ftell.c: Likewise.
31353         * tests/test-ftello.c: Likewise.
31354         * tests/test-func.c: Likewise.
31355         * tests/test-futimens.c: Likewise.
31356         * tests/test-fwritable.c: Likewise.
31357         * tests/test-fwriting.c: Likewise.
31358         * tests/test-getcwd.c: Likewise.
31359         * tests/test-getdate.c: Likewise.
31360         * tests/test-getdelim.c: Likewise.
31361         * tests/test-getdtablesize.c: Likewise.
31362         * tests/test-getgroups.c: Likewise.
31363         * tests/test-getline.c: Likewise.
31364         * tests/test-getndelim2.c: Likewise.
31365         * tests/test-glob.c: Likewise.
31366         * tests/test-hash.c: Likewise.
31367         * tests/test-i-ring.c: Likewise.
31368         * tests/test-iconv-utf.c: Likewise.
31369         * tests/test-iconv.c: Likewise.
31370         * tests/test-idpriv-drop.c: Likewise.
31371         * tests/test-idpriv-droptemp.c: Likewise.
31372         * tests/test-inet_ntop.c: Likewise.
31373         * tests/test-inet_pton.c: Likewise.
31374         * tests/test-isblank.c: Likewise.
31375         * tests/test-isfinite.c: Likewise.
31376         * tests/test-isinf.c: Likewise.
31377         * tests/test-isnan.c: Likewise.
31378         * tests/test-isnand.h: Likewise.
31379         * tests/test-isnanf.h: Likewise.
31380         * tests/test-isnanl.h: Likewise.
31381         * tests/test-lchown.c: Likewise.
31382         * tests/test-ldexpl.c: Likewise.
31383         * tests/test-link.c: Likewise.
31384         * tests/test-linkat.c: Likewise.
31385         * tests/test-linked_list.c: Likewise.
31386         * tests/test-linkedhash_list.c: Likewise.
31387         * tests/test-localename.c: Likewise.
31388         * tests/test-lseek.c: Likewise.
31389         * tests/test-lstat.c: Likewise.
31390         * tests/test-mbmemcasecmp.c: Likewise.
31391         * tests/test-mbmemcasecoll.c: Likewise.
31392         * tests/test-mbrtowc.c: Likewise.
31393         * tests/test-mbscasecmp.c: Likewise.
31394         * tests/test-mbscasestr1.c: Likewise.
31395         * tests/test-mbscasestr2.c: Likewise.
31396         * tests/test-mbscasestr3.c: Likewise.
31397         * tests/test-mbscasestr4.c: Likewise.
31398         * tests/test-mbschr.c: Likewise.
31399         * tests/test-mbscspn.c: Likewise.
31400         * tests/test-mbsinit.c: Likewise.
31401         * tests/test-mbsncasecmp.c: Likewise.
31402         * tests/test-mbsnrtowcs.c: Likewise.
31403         * tests/test-mbspbrk.c: Likewise.
31404         * tests/test-mbspcasecmp.c: Likewise.
31405         * tests/test-mbsrchr.c: Likewise.
31406         * tests/test-mbsrtowcs.c: Likewise.
31407         * tests/test-mbsspn.c: Likewise.
31408         * tests/test-mbsstr1.c: Likewise.
31409         * tests/test-mbsstr2.c: Likewise.
31410         * tests/test-mbsstr3.c: Likewise.
31411         * tests/test-memchr.c: Likewise.
31412         * tests/test-memchr2.c: Likewise.
31413         * tests/test-memcmp.c: Likewise.
31414         * tests/test-memmem.c: Likewise.
31415         * tests/test-memrchr.c: Likewise.
31416         * tests/test-mkdir.c: Likewise.
31417         * tests/test-mkdirat.c: Likewise.
31418         * tests/test-mkfifo.c: Likewise.
31419         * tests/test-mkfifoat.c: Likewise.
31420         * tests/test-mknod.c: Likewise.
31421         * tests/test-nanosleep.c: Likewise.
31422         * tests/test-nl_langinfo.c: Likewise.
31423         * tests/test-obstack-printf.c: Likewise.
31424         * tests/test-open.c: Likewise.
31425         * tests/test-openat.c: Likewise.
31426         * tests/test-pipe-filter-gi1.c: Likewise.
31427         * tests/test-pipe-filter-gi2-main.c: Likewise.
31428         * tests/test-pipe-filter-ii1.c: Likewise.
31429         * tests/test-pipe-filter-ii2-main.c: Likewise.
31430         * tests/test-pipe2.c: Likewise.
31431         * tests/test-popen.h: Likewise.
31432         * tests/test-posixtm.c: Likewise.
31433         * tests/test-pread.c: Likewise.
31434         * tests/test-printf-frexp.c: Likewise.
31435         * tests/test-printf-frexpl.c: Likewise.
31436         * tests/test-printf-posix.c: Likewise.
31437         * tests/test-priv-set.c: Likewise.
31438         * tests/test-quotearg.c: Likewise.
31439         * tests/test-random_r.c: Likewise.
31440         * tests/test-rawmemchr.c: Likewise.
31441         * tests/test-rbtree_list.c: Likewise.
31442         * tests/test-rbtree_oset.c: Likewise.
31443         * tests/test-rbtreehash_list.c: Likewise.
31444         * tests/test-readlink.c: Likewise.
31445         * tests/test-remove.c: Likewise.
31446         * tests/test-rename.c: Likewise.
31447         * tests/test-renameat.c: Likewise.
31448         * tests/test-rmdir.c: Likewise.
31449         * tests/test-round1.c: Likewise.
31450         * tests/test-roundf1.c: Likewise.
31451         * tests/test-roundl.c: Likewise.
31452         * tests/test-safe-alloc.c: Likewise.
31453         * tests/test-sameacls.c: Likewise.
31454         * tests/test-set-mode-acl.c: Likewise.
31455         * tests/test-setenv.c: Likewise.
31456         * tests/test-sigaction.c: Likewise.
31457         * tests/test-signbit.c: Likewise.
31458         * tests/test-sleep.c: Likewise.
31459         * tests/test-snprintf-posix.c: Likewise.
31460         * tests/test-snprintf.c: Likewise.
31461         * tests/test-sprintf-posix.c: Likewise.
31462         * tests/test-stat-time.c: Likewise.
31463         * tests/test-stat.c: Likewise.
31464         * tests/test-strcasestr.c: Likewise.
31465         * tests/test-strchrnul.c: Likewise.
31466         * tests/test-strerror.c: Likewise.
31467         * tests/test-striconv.c: Likewise.
31468         * tests/test-striconveh.c: Likewise.
31469         * tests/test-striconveha.c: Likewise.
31470         * tests/test-strsignal.c: Likewise.
31471         * tests/test-strstr.c: Likewise.
31472         * tests/test-strtod.c: Likewise.
31473         * tests/test-strverscmp.c: Likewise.
31474         * tests/test-symlink.c: Likewise.
31475         * tests/test-symlinkat.c: Likewise.
31476         * tests/test-trunc1.c: Likewise.
31477         * tests/test-trunc2.c: Likewise.
31478         * tests/test-truncf1.c: Likewise.
31479         * tests/test-truncf2.c: Likewise.
31480         * tests/test-truncl.c: Likewise.
31481         * tests/test-uname.c: Likewise.
31482         * tests/test-unlink.c: Likewise.
31483         * tests/test-unlinkat.c: Likewise.
31484         * tests/test-unsetenv.c: Likewise.
31485         * tests/test-usleep.c: Likewise.
31486         * tests/test-utimens.c: Likewise.
31487         * tests/test-utimensat.c: Likewise.
31488         * tests/test-vasnprintf-posix.c: Likewise.
31489         * tests/test-vasnprintf-posix2.c: Likewise.
31490         * tests/test-vasnprintf.c: Likewise.
31491         * tests/test-vasprintf-posix.c: Likewise.
31492         * tests/test-vasprintf.c: Likewise.
31493         * tests/test-vdprintf-posix.c: Likewise.
31494         * tests/test-vfprintf-posix.c: Likewise.
31495         * tests/test-vprintf-posix.c: Likewise.
31496         * tests/test-vsnprintf-posix.c: Likewise.
31497         * tests/test-vsnprintf.c: Likewise.
31498         * tests/test-vsprintf-posix.c: Likewise.
31499         * tests/test-wcrtomb.c: Likewise.
31500         * tests/test-wcsnrtombs.c: Likewise.
31501         * tests/test-wcsrtombs.c: Likewise.
31502         * tests/test-wctype.c: Likewise.
31503         * tests/test-wcwidth.c: Likewise.
31504         * tests/test-xfprintf-posix.c: Likewise.
31505         * tests/test-xmemdup0.c: Likewise.
31506         * tests/test-xprintf-posix.c: Likewise.
31507         * tests/test-xvasprintf.c: Likewise.
31508         * tests/unicase/test-locale-language.c: Likewise.
31509         * tests/unicase/test-mapping-part1.h: Likewise.
31510         * tests/unicase/test-predicate-part1.h: Likewise.
31511         * tests/unicase/test-u8-casecmp.c: Likewise.
31512         * tests/unicase/test-u8-casecoll.c: Likewise.
31513         * tests/unicase/test-u8-casefold.c: Likewise.
31514         * tests/unicase/test-u8-is-cased.c: Likewise.
31515         * tests/unicase/test-u8-is-casefolded.c: Likewise.
31516         * tests/unicase/test-u8-is-lowercase.c: Likewise.
31517         * tests/unicase/test-u8-is-titlecase.c: Likewise.
31518         * tests/unicase/test-u8-is-uppercase.c: Likewise.
31519         * tests/unicase/test-u8-tolower.c: Likewise.
31520         * tests/unicase/test-u8-totitle.c: Likewise.
31521         * tests/unicase/test-u8-toupper.c: Likewise.
31522         * tests/unicase/test-u16-casecmp.c: Likewise.
31523         * tests/unicase/test-u16-casecoll.c: Likewise.
31524         * tests/unicase/test-u16-casefold.c: Likewise.
31525         * tests/unicase/test-u16-is-cased.c: Likewise.
31526         * tests/unicase/test-u16-is-casefolded.c: Likewise.
31527         * tests/unicase/test-u16-is-lowercase.c: Likewise.
31528         * tests/unicase/test-u16-is-titlecase.c: Likewise.
31529         * tests/unicase/test-u16-is-uppercase.c: Likewise.
31530         * tests/unicase/test-u16-tolower.c: Likewise.
31531         * tests/unicase/test-u16-totitle.c: Likewise.
31532         * tests/unicase/test-u16-toupper.c: Likewise.
31533         * tests/unicase/test-u32-casecmp.c: Likewise.
31534         * tests/unicase/test-u32-casecoll.c: Likewise.
31535         * tests/unicase/test-u32-casefold.c: Likewise.
31536         * tests/unicase/test-u32-is-cased.c: Likewise.
31537         * tests/unicase/test-u32-is-casefolded.c: Likewise.
31538         * tests/unicase/test-u32-is-lowercase.c: Likewise.
31539         * tests/unicase/test-u32-is-titlecase.c: Likewise.
31540         * tests/unicase/test-u32-is-uppercase.c: Likewise.
31541         * tests/unicase/test-u32-tolower.c: Likewise.
31542         * tests/unicase/test-u32-totitle.c: Likewise.
31543         * tests/unicase/test-u32-toupper.c: Likewise.
31544         * tests/unicase/test-ulc-casecmp.c: Likewise.
31545         * tests/unicase/test-ulc-casecoll.c: Likewise.
31546         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31547         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31548         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31549         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31550         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31551         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31552         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31553         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31554         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31555         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31556         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31557         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31558         * tests/unictype/test-bidi_byname.c: Likewise.
31559         * tests/unictype/test-bidi_name.c: Likewise.
31560         * tests/unictype/test-bidi_of.c: Likewise.
31561         * tests/unictype/test-bidi_test.c: Likewise.
31562         * tests/unictype/test-block_list.c: Likewise.
31563         * tests/unictype/test-block_of.c: Likewise.
31564         * tests/unictype/test-block_test.c: Likewise.
31565         * tests/unictype/test-categ_and.c: Likewise.
31566         * tests/unictype/test-categ_and_not.c: Likewise.
31567         * tests/unictype/test-categ_byname.c: Likewise.
31568         * tests/unictype/test-categ_name.c: Likewise.
31569         * tests/unictype/test-categ_none.c: Likewise.
31570         * tests/unictype/test-categ_of.c: Likewise.
31571         * tests/unictype/test-categ_or.c: Likewise.
31572         * tests/unictype/test-categ_test_withtable.c: Likewise.
31573         * tests/unictype/test-combining.c: Likewise.
31574         * tests/unictype/test-decdigit.c: Likewise.
31575         * tests/unictype/test-digit.c: Likewise.
31576         * tests/unictype/test-mirror.c: Likewise.
31577         * tests/unictype/test-numeric.c: Likewise.
31578         * tests/unictype/test-pr_byname.c: Likewise.
31579         * tests/unictype/test-pr_test.c: Likewise.
31580         * tests/unictype/test-predicate-part1.h: Likewise.
31581         * tests/unictype/test-scripts.c: Likewise.
31582         * tests/unictype/test-sy_c_ident.c: Likewise.
31583         * tests/unictype/test-sy_java_ident.c: Likewise.
31584         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
31585         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
31586         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
31587         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
31588         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
31589         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
31590         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
31591         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
31592         * tests/uninorm/test-canonical-decomposition.c: Likewise.
31593         * tests/uninorm/test-compat-decomposition.c: Likewise.
31594         * tests/uninorm/test-composition.c: Likewise.
31595         * tests/uninorm/test-decomposing-form.c: Likewise.
31596         * tests/uninorm/test-decomposition.c: Likewise.
31597         * tests/uninorm/test-u8-nfc.c: Likewise.
31598         * tests/uninorm/test-u8-nfd.c: Likewise.
31599         * tests/uninorm/test-u8-nfkc.c: Likewise.
31600         * tests/uninorm/test-u8-nfkd.c: Likewise.
31601         * tests/uninorm/test-u8-normcmp.c: Likewise.
31602         * tests/uninorm/test-u8-normcoll.c: Likewise.
31603         * tests/uninorm/test-u16-nfc.c: Likewise.
31604         * tests/uninorm/test-u16-nfd.c: Likewise.
31605         * tests/uninorm/test-u16-nfkc.c: Likewise.
31606         * tests/uninorm/test-u16-nfkd.c: Likewise.
31607         * tests/uninorm/test-u16-normcmp.c: Likewise.
31608         * tests/uninorm/test-u16-normcoll.c: Likewise.
31609         * tests/uninorm/test-u32-nfc.c: Likewise.
31610         * tests/uninorm/test-u32-nfd.c: Likewise.
31611         * tests/uninorm/test-u32-nfkc.c: Likewise.
31612         * tests/uninorm/test-u32-nfkd.c: Likewise.
31613         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31614         * tests/uninorm/test-u32-normcmp.c: Likewise.
31615         * tests/uninorm/test-u32-normcoll.c: Likewise.
31616         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
31617         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31618         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31619         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31620         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31621         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31622         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31623         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31624         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31625         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31626         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31627         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31628         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31629         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31630         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31631         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31632         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31633         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31634         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31635         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31636         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31637         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31638         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31639         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31640         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31641         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31642         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31643         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31644         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31645         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
31646         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
31647         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
31648         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
31649         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31650         * tests/uniwidth/test-u8-width.c: Likewise.
31651         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31652         * tests/uniwidth/test-u16-width.c: Likewise.
31653         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31654         * tests/uniwidth/test-u32-width.c: Likewise.
31655         * tests/uniwidth/test-uc_width.c: Likewise.
31656         * tests/uniwidth/test-uc_width2.c: Likewise.
31657         * modules/acl-tests (Files): Add tests/macros.h.
31658         * modules/areadlink-tests (Files): Likewise.
31659         * modules/areadlink-with-size-tests (Files): Likewise.
31660         * modules/areadlinkat-tests (Files): Likewise.
31661         * modules/areadlinkat-with-size-tests (Files): Likewise.
31662         * modules/argmatch-tests (Files): Likewise.
31663         * modules/argv-iter-tests (Files): Likewise.
31664         * modules/array-list-tests (Files): Likewise.
31665         * modules/array-mergesort-tests (Files): Likewise.
31666         * modules/array-oset-tests (Files): Likewise.
31667         * modules/avltree-list-tests (Files): Likewise.
31668         * modules/avltree-oset-tests (Files): Likewise.
31669         * modules/avltreehash-list-tests (Files): Likewise.
31670         * modules/base64-tests (Files): Likewise.
31671         * modules/binary-io-tests (Files): Likewise.
31672         * modules/bitrotate-tests (Files): Likewise.
31673         * modules/btowc-tests (Files): Likewise.
31674         * modules/byteswap-tests (Files): Likewise.
31675         * modules/c-ctype-tests (Files): Likewise.
31676         * modules/c-stack-tests (Files): Likewise.
31677         * modules/c-strcase-tests (Files): Likewise.
31678         * modules/c-strcasestr-tests (Files): Likewise.
31679         * modules/c-strstr-tests (Files): Likewise.
31680         * modules/canonicalize-lgpl-tests (Files): Likewise.
31681         * modules/canonicalize-tests (Files): Likewise.
31682         * modules/carray-list-tests (Files): Likewise.
31683         * modules/ceilf-tests (Files): Likewise.
31684         * modules/ceill-tests (Files): Likewise.
31685         * modules/chown-tests (Files): Likewise.
31686         * modules/cloexec-tests (Files): Likewise.
31687         * modules/copy-file-tests (Files): Likewise.
31688         * modules/count-one-bits-tests (Files): Likewise.
31689         * modules/dprintf-posix-tests (Files): Likewise.
31690         * modules/dup2-tests (Files): Likewise.
31691         * modules/dup3-tests (Files): Likewise.
31692         * modules/duplocale-tests (Files): Likewise.
31693         * modules/fbufmode-tests (Files): Likewise.
31694         * modules/fchdir-tests (Files): Likewise.
31695         * modules/fcntl-safer-tests (Files): Likewise.
31696         * modules/fcntl-tests (Files): Likewise.
31697         * modules/fdopendir-tests (Files): Likewise.
31698         * modules/fdutimensat-tests (Files): Likewise.
31699         * modules/fflush-tests (Files): Likewise.
31700         * modules/filevercmp-tests (Files): Likewise.
31701         * modules/flock-tests (Files): Likewise.
31702         * modules/floorf-tests (Files): Likewise.
31703         * modules/floorl-tests (Files): Likewise.
31704         * modules/fnmatch-tests (Files): Likewise.
31705         * modules/fopen-safer-tests (Files): Likewise.
31706         * modules/fopen-tests (Files): Likewise.
31707         * modules/fpending-tests (Files): Likewise.
31708         * modules/fprintf-posix-tests (Files): Likewise.
31709         * modules/fpurge-tests (Files): Likewise.
31710         * modules/freadable-tests (Files): Likewise.
31711         * modules/freadahead-tests (Files): Likewise.
31712         * modules/freading-tests (Files): Likewise.
31713         * modules/freadptr-tests (Files): Likewise.
31714         * modules/freadseek-tests (Files): Likewise.
31715         * modules/freopen-tests (Files): Likewise.
31716         * modules/frexp-nolibm-tests (Files): Likewise.
31717         * modules/frexp-tests (Files): Likewise.
31718         * modules/frexpl-nolibm-tests (Files): Likewise.
31719         * modules/frexpl-tests (Files): Likewise.
31720         * modules/fseek-tests (Files): Likewise.
31721         * modules/fseeko-tests (Files): Likewise.
31722         * modules/fstrcmp-tests (Files): Likewise.
31723         * modules/fsync-tests (Files): Likewise.
31724         * modules/ftell-tests (Files): Likewise.
31725         * modules/ftello-tests (Files): Likewise.
31726         * modules/func-tests (Files): Likewise.
31727         * modules/futimens-tests (Files): Likewise.
31728         * modules/fwritable-tests (Files): Likewise.
31729         * modules/fwriting-tests (Files): Likewise.
31730         * modules/getcwd-tests (Files): Likewise.
31731         * modules/getdate-tests (Files): Likewise.
31732         * modules/getdelim-tests (Files): Likewise.
31733         * modules/getdtablesize-tests (Files): Likewise.
31734         * modules/getgroups-tests (Files): Likewise.
31735         * modules/getline-tests (Files): Likewise.
31736         * modules/getndelim2-tests (Files): Likewise.
31737         * modules/glob-tests (Files): Likewise.
31738         * modules/hash-tests (Files): Likewise.
31739         * modules/i-ring-tests (Files): Likewise.
31740         * modules/iconv-tests (Files): Likewise.
31741         * modules/iconv_open-utf-tests (Files): Likewise.
31742         * modules/idpriv-drop-tests (Files): Likewise.
31743         * modules/idpriv-droptemp-tests (Files): Likewise.
31744         * modules/inet_ntop-tests (Files): Likewise.
31745         * modules/inet_pton-tests (Files): Likewise.
31746         * modules/isblank-tests (Files): Likewise.
31747         * modules/isfinite-tests (Files): Likewise.
31748         * modules/isinf-tests (Files): Likewise.
31749         * modules/isnan-tests (Files): Likewise.
31750         * modules/isnand-nolibm-tests (Files): Likewise.
31751         * modules/isnand-tests (Files): Likewise.
31752         * modules/isnanf-nolibm-tests (Files): Likewise.
31753         * modules/isnanf-tests (Files): Likewise.
31754         * modules/isnanl-nolibm-tests (Files): Likewise.
31755         * modules/isnanl-tests (Files): Likewise.
31756         * modules/lchown-tests (Files): Likewise.
31757         * modules/ldexpl-tests (Files): Likewise.
31758         * modules/link-tests (Files): Likewise.
31759         * modules/linkat-tests (Files): Likewise.
31760         * modules/linked-list-tests (Files): Likewise.
31761         * modules/linkedhash-list-tests (Files): Likewise.
31762         * modules/localename-tests (Files): Likewise.
31763         * modules/lseek-tests (Files): Likewise.
31764         * modules/lstat-tests (Files): Likewise.
31765         * modules/mbmemcasecmp-tests (Files): Likewise.
31766         * modules/mbmemcasecoll-tests (Files): Likewise.
31767         * modules/mbrtowc-tests (Files): Likewise.
31768         * modules/mbscasecmp-tests (Files): Likewise.
31769         * modules/mbscasestr-tests (Files): Likewise.
31770         * modules/mbschr-tests (Files): Likewise.
31771         * modules/mbscspn-tests (Files): Likewise.
31772         * modules/mbsinit-tests (Files): Likewise.
31773         * modules/mbsncasecmp-tests (Files): Likewise.
31774         * modules/mbsnrtowcs-tests (Files): Likewise.
31775         * modules/mbspbrk-tests (Files): Likewise.
31776         * modules/mbspcasecmp-tests (Files): Likewise.
31777         * modules/mbsrchr-tests (Files): Likewise.
31778         * modules/mbsrtowcs-tests (Files): Likewise.
31779         * modules/mbsspn-tests (Files): Likewise.
31780         * modules/mbsstr-tests (Files): Likewise.
31781         * modules/memchr-tests (Files): Likewise.
31782         * modules/memchr2-tests (Files): Likewise.
31783         * modules/memcmp-tests (Files): Likewise.
31784         * modules/memmem-tests (Files): Likewise.
31785         * modules/memrchr-tests (Files): Likewise.
31786         * modules/mkdir-tests (Files): Likewise.
31787         * modules/mkfifo-tests (Files): Likewise.
31788         * modules/mkfifoat-tests (Files): Likewise.
31789         * modules/mknod-tests (Files): Likewise.
31790         * modules/nanosleep-tests (Files): Likewise.
31791         * modules/nl_langinfo-tests (Files): Likewise.
31792         * modules/obstack-printf-tests (Files): Likewise.
31793         * modules/open-tests (Files): Likewise.
31794         * modules/openat-tests (Files): Likewise.
31795         * modules/pipe-filter-gi-tests (Files): Likewise.
31796         * modules/pipe-filter-ii-tests (Files): Likewise.
31797         * modules/pipe2-tests (Files): Likewise.
31798         * modules/popen-safer-tests (Files): Likewise.
31799         * modules/popen-tests (Files): Likewise.
31800         * modules/posixtm-tests (Files): Likewise.
31801         * modules/pread-tests (Files): Likewise.
31802         * modules/printf-frexp-tests (Files): Likewise.
31803         * modules/printf-frexpl-tests (Files): Likewise.
31804         * modules/printf-posix-tests (Files): Likewise.
31805         * modules/priv-set-tests (Files): Likewise.
31806         * modules/quotearg-tests (Files): Likewise.
31807         * modules/random_r-tests (Files): Likewise.
31808         * modules/rawmemchr-tests (Files): Likewise.
31809         * modules/rbtree-list-tests (Files): Likewise.
31810         * modules/rbtree-oset-tests (Files): Likewise.
31811         * modules/rbtreehash-list-tests (Files): Likewise.
31812         * modules/readlink-tests (Files): Likewise.
31813         * modules/remove-tests (Files): Likewise.
31814         * modules/rename-tests (Files): Likewise.
31815         * modules/renameat-tests (Files): Likewise.
31816         * modules/rmdir-tests (Files): Likewise.
31817         * modules/round-tests (Files): Likewise.
31818         * modules/roundf-tests (Files): Likewise.
31819         * modules/roundl-tests (Files): Likewise.
31820         * modules/safe-alloc-tests (Files): Likewise.
31821         * modules/setenv-tests (Files): Likewise.
31822         * modules/sigaction-tests (Files): Likewise.
31823         * modules/signbit-tests (Files): Likewise.
31824         * modules/sleep-tests (Files): Likewise.
31825         * modules/snprintf-posix-tests (Files): Likewise.
31826         * modules/snprintf-tests (Files): Likewise.
31827         * modules/sprintf-posix-tests (Files): Likewise.
31828         * modules/stat-tests (Files): Likewise.
31829         * modules/stat-time-tests (Files): Likewise.
31830         * modules/strcasestr-tests (Files): Likewise.
31831         * modules/strchrnul-tests (Files): Likewise.
31832         * modules/strerror-tests (Files): Likewise.
31833         * modules/striconv-tests (Files): Likewise.
31834         * modules/striconveh-tests (Files): Likewise.
31835         * modules/striconveha-tests (Files): Likewise.
31836         * modules/strsignal-tests (Files): Likewise.
31837         * modules/strstr-tests (Files): Likewise.
31838         * modules/strtod-tests (Files): Likewise.
31839         * modules/strverscmp-tests (Files): Likewise.
31840         * modules/symlink-tests (Files): Likewise.
31841         * modules/symlinkat-tests (Files): Likewise.
31842         * modules/trunc-tests (Files): Likewise.
31843         * modules/truncf-tests (Files): Likewise.
31844         * modules/truncl-tests (Files): Likewise.
31845         * modules/uname-tests (Files): Likewise.
31846         * modules/unicase/cased-tests (Files): Likewise.
31847         * modules/unicase/ignorable-tests (Files): Likewise.
31848         * modules/unicase/locale-language-tests (Files): Likewise.
31849         * modules/unicase/tolower-tests (Files): Likewise.
31850         * modules/unicase/totitle-tests (Files): Likewise.
31851         * modules/unicase/toupper-tests (Files): Likewise.
31852         * modules/unicase/u8-casecmp-tests (Files): Likewise.
31853         * modules/unicase/u8-casecoll-tests (Files): Likewise.
31854         * modules/unicase/u8-casefold-tests (Files): Likewise.
31855         * modules/unicase/u8-is-cased-tests (Files): Likewise.
31856         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
31857         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
31858         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
31859         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
31860         * modules/unicase/u8-tolower-tests (Files): Likewise.
31861         * modules/unicase/u8-totitle-tests (Files): Likewise.
31862         * modules/unicase/u8-toupper-tests (Files): Likewise.
31863         * modules/unicase/u16-casecmp-tests (Files): Likewise.
31864         * modules/unicase/u16-casecoll-tests (Files): Likewise.
31865         * modules/unicase/u16-casefold-tests (Files): Likewise.
31866         * modules/unicase/u16-is-cased-tests (Files): Likewise.
31867         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
31868         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
31869         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
31870         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
31871         * modules/unicase/u16-tolower-tests (Files): Likewise.
31872         * modules/unicase/u16-totitle-tests (Files): Likewise.
31873         * modules/unicase/u16-toupper-tests (Files): Likewise.
31874         * modules/unicase/u32-casecmp-tests (Files): Likewise.
31875         * modules/unicase/u32-casecoll-tests (Files): Likewise.
31876         * modules/unicase/u32-casefold-tests (Files): Likewise.
31877         * modules/unicase/u32-is-cased-tests (Files): Likewise.
31878         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
31879         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
31880         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
31881         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
31882         * modules/unicase/u32-tolower-tests (Files): Likewise.
31883         * modules/unicase/u32-totitle-tests (Files): Likewise.
31884         * modules/unicase/u32-toupper-tests (Files): Likewise.
31885         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
31886         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
31887         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
31888         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
31889         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
31890         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
31891         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
31892         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
31893         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
31894         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
31895         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
31896         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
31897         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
31898         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
31899         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
31900         * modules/unictype/bidicategory-name-tests (Files): Likewise.
31901         * modules/unictype/bidicategory-of-tests (Files): Likewise.
31902         * modules/unictype/bidicategory-test-tests (Files): Likewise.
31903         * modules/unictype/block-list-tests (Files): Likewise.
31904         * modules/unictype/block-of-tests (Files): Likewise.
31905         * modules/unictype/block-test-tests (Files): Likewise.
31906         * modules/unictype/category-C-tests (Files): Likewise.
31907         * modules/unictype/category-Cc-tests (Files): Likewise.
31908         * modules/unictype/category-Cf-tests (Files): Likewise.
31909         * modules/unictype/category-Cn-tests (Files): Likewise.
31910         * modules/unictype/category-Co-tests (Files): Likewise.
31911         * modules/unictype/category-Cs-tests (Files): Likewise.
31912         * modules/unictype/category-L-tests (Files): Likewise.
31913         * modules/unictype/category-Ll-tests (Files): Likewise.
31914         * modules/unictype/category-Lm-tests (Files): Likewise.
31915         * modules/unictype/category-Lo-tests (Files): Likewise.
31916         * modules/unictype/category-Lt-tests (Files): Likewise.
31917         * modules/unictype/category-Lu-tests (Files): Likewise.
31918         * modules/unictype/category-M-tests (Files): Likewise.
31919         * modules/unictype/category-Mc-tests (Files): Likewise.
31920         * modules/unictype/category-Me-tests (Files): Likewise.
31921         * modules/unictype/category-Mn-tests (Files): Likewise.
31922         * modules/unictype/category-N-tests (Files): Likewise.
31923         * modules/unictype/category-Nd-tests (Files): Likewise.
31924         * modules/unictype/category-Nl-tests (Files): Likewise.
31925         * modules/unictype/category-No-tests (Files): Likewise.
31926         * modules/unictype/category-P-tests (Files): Likewise.
31927         * modules/unictype/category-Pc-tests (Files): Likewise.
31928         * modules/unictype/category-Pd-tests (Files): Likewise.
31929         * modules/unictype/category-Pe-tests (Files): Likewise.
31930         * modules/unictype/category-Pf-tests (Files): Likewise.
31931         * modules/unictype/category-Pi-tests (Files): Likewise.
31932         * modules/unictype/category-Po-tests (Files): Likewise.
31933         * modules/unictype/category-Ps-tests (Files): Likewise.
31934         * modules/unictype/category-S-tests (Files): Likewise.
31935         * modules/unictype/category-Sc-tests (Files): Likewise.
31936         * modules/unictype/category-Sk-tests (Files): Likewise.
31937         * modules/unictype/category-Sm-tests (Files): Likewise.
31938         * modules/unictype/category-So-tests (Files): Likewise.
31939         * modules/unictype/category-Z-tests (Files): Likewise.
31940         * modules/unictype/category-Zl-tests (Files): Likewise.
31941         * modules/unictype/category-Zp-tests (Files): Likewise.
31942         * modules/unictype/category-Zs-tests (Files): Likewise.
31943         * modules/unictype/category-and-not-tests (Files): Likewise.
31944         * modules/unictype/category-and-tests (Files): Likewise.
31945         * modules/unictype/category-byname-tests (Files): Likewise.
31946         * modules/unictype/category-name-tests (Files): Likewise.
31947         * modules/unictype/category-none-tests (Files): Likewise.
31948         * modules/unictype/category-of-tests (Files): Likewise.
31949         * modules/unictype/category-or-tests (Files): Likewise.
31950         * modules/unictype/category-test-withtable-tests (Files): Likewise.
31951         * modules/unictype/combining-class-tests (Files): Likewise.
31952         * modules/unictype/ctype-alnum-tests (Files): Likewise.
31953         * modules/unictype/ctype-alpha-tests (Files): Likewise.
31954         * modules/unictype/ctype-blank-tests (Files): Likewise.
31955         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
31956         * modules/unictype/ctype-digit-tests (Files): Likewise.
31957         * modules/unictype/ctype-graph-tests (Files): Likewise.
31958         * modules/unictype/ctype-lower-tests (Files): Likewise.
31959         * modules/unictype/ctype-print-tests (Files): Likewise.
31960         * modules/unictype/ctype-punct-tests (Files): Likewise.
31961         * modules/unictype/ctype-space-tests (Files): Likewise.
31962         * modules/unictype/ctype-upper-tests (Files): Likewise.
31963         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
31964         * modules/unictype/decimal-digit-tests (Files): Likewise.
31965         * modules/unictype/digit-tests (Files): Likewise.
31966         * modules/unictype/mirror-tests (Files): Likewise.
31967         * modules/unictype/numeric-tests (Files): Likewise.
31968         * modules/unictype/property-alphabetic-tests (Files): Likewise.
31969         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
31970         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
31971         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
31972         Likewise.
31973         * modules/unictype/property-bidi-block-separator-tests (Files):
31974         Likewise.
31975         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
31976         Likewise.
31977         * modules/unictype/property-bidi-common-separator-tests (Files):
31978         Likewise.
31979         * modules/unictype/property-bidi-control-tests (Files): Likewise.
31980         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
31981         Likewise.
31982         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
31983         Likewise.
31984         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
31985         Likewise.
31986         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
31987         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
31988         Likewise.
31989         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
31990         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
31991         Likewise.
31992         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
31993         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
31994         * modules/unictype/property-bidi-segment-separator-tests (Files):
31995         Likewise.
31996         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
31997         * modules/unictype/property-byname-tests (Files): Likewise.
31998         * modules/unictype/property-combining-tests (Files): Likewise.
31999         * modules/unictype/property-composite-tests (Files): Likewise.
32000         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
32001         * modules/unictype/property-dash-tests (Files): Likewise.
32002         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
32003         * modules/unictype/property-default-ignorable-code-point-tests (Files):
32004         Likewise.
32005         * modules/unictype/property-deprecated-tests (Files): Likewise.
32006         * modules/unictype/property-diacritic-tests (Files): Likewise.
32007         * modules/unictype/property-extender-tests (Files): Likewise.
32008         * modules/unictype/property-format-control-tests (Files): Likewise.
32009         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
32010         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
32011         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
32012         * modules/unictype/property-hex-digit-tests (Files): Likewise.
32013         * modules/unictype/property-hyphen-tests (Files): Likewise.
32014         * modules/unictype/property-id-continue-tests (Files): Likewise.
32015         * modules/unictype/property-id-start-tests (Files): Likewise.
32016         * modules/unictype/property-ideographic-tests (Files): Likewise.
32017         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
32018         * modules/unictype/property-ids-trinary-operator-tests (Files):
32019         Likewise.
32020         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
32021         * modules/unictype/property-iso-control-tests (Files): Likewise.
32022         * modules/unictype/property-join-control-tests (Files): Likewise.
32023         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
32024         * modules/unictype/property-line-separator-tests (Files): Likewise.
32025         * modules/unictype/property-logical-order-exception-tests (Files):
32026         Likewise.
32027         * modules/unictype/property-lowercase-tests (Files): Likewise.
32028         * modules/unictype/property-math-tests (Files): Likewise.
32029         * modules/unictype/property-non-break-tests (Files): Likewise.
32030         * modules/unictype/property-not-a-character-tests (Files): Likewise.
32031         * modules/unictype/property-numeric-tests (Files): Likewise.
32032         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
32033         * modules/unictype/property-other-default-ignorable-code-point-tests
32034         (Files): Likewise.
32035         * modules/unictype/property-other-grapheme-extend-tests (Files):
32036         Likewise.
32037         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
32038         * modules/unictype/property-other-id-start-tests (Files): Likewise.
32039         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
32040         * modules/unictype/property-other-math-tests (Files): Likewise.
32041         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
32042         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
32043         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
32044         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
32045         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
32046         * modules/unictype/property-private-use-tests (Files): Likewise.
32047         * modules/unictype/property-punctuation-tests (Files): Likewise.
32048         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
32049         * modules/unictype/property-radical-tests (Files): Likewise.
32050         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
32051         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
32052         * modules/unictype/property-space-tests (Files): Likewise.
32053         * modules/unictype/property-terminal-punctuation-tests (Files):
32054         Likewise.
32055         * modules/unictype/property-test-tests (Files): Likewise.
32056         * modules/unictype/property-titlecase-tests (Files): Likewise.
32057         * modules/unictype/property-unassigned-code-value-tests (Files):
32058         Likewise.
32059         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
32060         * modules/unictype/property-uppercase-tests (Files): Likewise.
32061         * modules/unictype/property-variation-selector-tests (Files): Likewise.
32062         * modules/unictype/property-white-space-tests (Files): Likewise.
32063         * modules/unictype/property-xid-continue-tests (Files): Likewise.
32064         * modules/unictype/property-xid-start-tests (Files): Likewise.
32065         * modules/unictype/property-zero-width-tests (Files): Likewise.
32066         * modules/unictype/scripts-tests (Files): Likewise.
32067         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
32068         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
32069         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
32070         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
32071         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
32072         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
32073         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
32074         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
32075         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
32076         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
32077         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
32078         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
32079         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
32080         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
32081         * modules/uninorm/composition-tests (Files): Likewise.
32082         * modules/uninorm/decomposing-form-tests (Files): Likewise.
32083         * modules/uninorm/decomposition-tests (Files): Likewise.
32084         * modules/uninorm/filter-tests (Files): Likewise.
32085         * modules/uninorm/nfc-tests (Files): Likewise.
32086         * modules/uninorm/nfd-tests (Files): Likewise.
32087         * modules/uninorm/nfkc-tests (Files): Likewise.
32088         * modules/uninorm/nfkd-tests (Files): Likewise.
32089         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
32090         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
32091         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
32092         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
32093         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
32094         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
32095         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
32096         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32097         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
32098         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
32099         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
32100         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
32101         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32102         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
32103         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
32104         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
32105         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
32106         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32107         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
32108         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
32109         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
32110         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
32111         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32112         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
32113         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
32114         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
32115         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
32116         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
32117         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
32118         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
32119         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
32120         * modules/uniwidth/u8-width-tests (Files): Likewise.
32121         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
32122         * modules/uniwidth/u16-width-tests (Files): Likewise.
32123         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
32124         * modules/uniwidth/u32-width-tests (Files): Likewise.
32125         * modules/uniwidth/width-tests (Files): Likewise.
32126         * modules/unlink-tests (Files): Likewise.
32127         * modules/unsetenv-tests (Files): Likewise.
32128         * modules/usleep-tests (Files): Likewise.
32129         * modules/utimens-tests (Files): Likewise.
32130         * modules/utimensat-tests (Files): Likewise.
32131         * modules/vasnprintf-posix-tests (Files): Likewise.
32132         * modules/vasnprintf-tests (Files): Likewise.
32133         * modules/vasprintf-posix-tests (Files): Likewise.
32134         * modules/vasprintf-tests (Files): Likewise.
32135         * modules/vdprintf-posix-tests (Files): Likewise.
32136         * modules/vfprintf-posix-tests (Files): Likewise.
32137         * modules/vprintf-posix-tests (Files): Likewise.
32138         * modules/vsnprintf-posix-tests (Files): Likewise.
32139         * modules/vsnprintf-tests (Files): Likewise.
32140         * modules/vsprintf-posix-tests (Files): Likewise.
32141         * modules/wcrtomb-tests (Files): Likewise.
32142         * modules/wcsnrtombs-tests (Files): Likewise.
32143         * modules/wcsrtombs-tests (Files): Likewise.
32144         * modules/wctype-tests (Files): Likewise.
32145         * modules/wcwidth-tests (Files): Likewise.
32146         * modules/xmemdup0-tests (Files): Likewise.
32147         * modules/xprintf-posix-tests (Files): Likewise.
32148         * modules/xvasprintf-tests (Files): Likewise.
32149
32150 2009-12-24  Eric Blake  <ebb9@byu.net>
32151
32152         test-nanosleep: fix typo
32153         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
32154         patch.
32155         Reported by Bruno Haible.
32156
32157 2009-12-24  Bruno Haible  <bruno@clisp.org>
32158
32159         Reduce namespace pollution on glibc systems.
32160         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
32161         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
32162         systems.
32163         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
32164         <getopt.h> on glibc systems.
32165         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
32166         systems.
32167         * lib/fcntl.c: Include <unistd.h> here instead.
32168
32169 2009-12-24  Bruno Haible  <bruno@clisp.org>
32170
32171         * lib/stdlib.in.h (includes): Fix typo in today's commit.
32172
32173 2009-12-24  Eric Blake  <ebb9@byu.net>
32174
32175         tests: add signature checks
32176         * tests/signature.h (SIGNATURE_CHECK): New file.
32177         * modules/atexit-tests (Files): Use it.
32178         * modules/btowc-tests (Files): Likewise.
32179         * modules/canonicalize-lgpl-tests (Files): Likewise.
32180         * modules/ceilf-tests (Files): Likewise.
32181         * modules/ceill-tests (Files): Likewise.
32182         * modules/chown-tests (Files): Likewise.
32183         * modules/dprintf-posix-tests (Files): Likewise.
32184         * modules/dup2-tests (Files): Likewise.
32185         * modules/dup3-tests (Files): Likewise.
32186         * modules/duplocale-tests (Files): Likewise.
32187         * modules/fchdir-tests (Files): Likewise.
32188         * modules/fcntl-tests (Files): Likewise.
32189         * modules/fdopendir-tests (Files): Likewise.
32190         * modules/fflush-tests (Files): Likewise.
32191         * modules/flock-tests (Files): Likewise.
32192         * modules/floorf-tests (Files): Likewise.
32193         * modules/floorl-tests (Files): Likewise.
32194         * modules/fnmatch-tests (Files): Likewise.
32195         * modules/fopen-tests (Files): Likewise.
32196         * modules/fprintf-posix-tests (Files): Likewise.
32197         * modules/freopen-tests (Files): Likewise.
32198         * modules/frexp-nolibm-tests (Files): Likewise.
32199         * modules/frexp-tests (Files): Likewise.
32200         * modules/frexpl-nolibm-tests (Files): Likewise.
32201         * modules/frexpl-tests (Files): Likewise.
32202         * modules/fseek-tests (Files): Likewise.
32203         * modules/fseeko-tests (Files): Likewise.
32204         * modules/fsync-tests (Files): Likewise.
32205         * modules/ftell-tests (Files): Likewise.
32206         * modules/ftello-tests (Files): Likewise.
32207         * modules/futimens-tests (Files): Likewise.
32208         * modules/getaddrinfo-tests (Files): Likewise.
32209         * modules/getcwd-tests (Files): Likewise.
32210         * modules/getdelim-tests (Files): Likewise.
32211         * modules/getdtablesize-tests (Files): Likewise.
32212         * modules/getgroups-tests (Files): Likewise.
32213         * modules/gethostname-tests (Files): Likewise.
32214         * modules/getline-tests (Files): Likewise.
32215         * modules/getopt-posix-tests (Files): Likewise.
32216         * modules/gettimeofday-tests (Files): Likewise.
32217         * modules/glob-tests (Files): Likewise.
32218         * modules/iconv-tests (Files): Likewise.
32219         * modules/inet_ntop-tests (Files): Likewise.
32220         * modules/inet_pton-tests (Files): Likewise.
32221         * modules/isblank-tests (Files): Likewise.
32222         * modules/lchown-tests (Files): Likewise.
32223         * modules/ldexpl-tests (Files): Likewise.
32224         * modules/link-tests (Files): Likewise.
32225         * modules/linkat-tests (Files): Likewise.
32226         * modules/lseek-tests (Files): Likewise.
32227         * modules/lstat-tests (Files): Likewise.
32228         * modules/mbrtowc-tests (Files): Likewise.
32229         * modules/mbsinit-tests (Files): Likewise.
32230         * modules/mbsnrtowcs-tests (Files): Likewise.
32231         * modules/mbsrtowcs-tests (Files): Likewise.
32232         * modules/memchr-tests (Files): Likewise.
32233         * modules/memcmp-tests (Files): Likewise.
32234         * modules/memmem-tests (Files): Likewise.
32235         * modules/memrchr-tests (Files): Likewise.
32236         * modules/mkdir-tests (Files): Likewise.
32237         * modules/mkfifo-tests (Files): Likewise.
32238         * modules/mkfifoat-tests (Files): Likewise.
32239         * modules/mknod-tests (Files): Likewise.
32240         * modules/nanosleep-tests (Files): Likewise.
32241         * modules/nl_langinfo-tests (Files): Likewise.
32242         * modules/obstack-printf-tests (Files): Likewise.
32243         * modules/open-tests (Files): Likewise.
32244         * modules/openat-tests (Files): Likewise.
32245         * modules/perror-tests (Files): Likewise.
32246         * modules/pipe2-tests (Files): Likewise.
32247         * modules/poll-tests (Files): Likewise.
32248         * modules/popen-tests (Files): Likewise.
32249         * modules/posix_spawn-tests (Files): Likewise.
32250         * modules/posix_spawnp-tests (Files): Likewise.
32251         * modules/pread-tests (Files): Likewise.
32252         * modules/printf-posix-tests (Files): Likewise.
32253         * modules/pty-tests (Files): Likewise.
32254         * modules/random_r-tests (Files): Likewise.
32255         * modules/rawmemchr-tests (Files): Likewise.
32256         * modules/readlink-tests (Files): Likewise.
32257         * modules/remove-tests (Files): Likewise.
32258         * modules/rename-tests (Files): Likewise.
32259         * modules/renameat-tests (Files): Likewise.
32260         * modules/rmdir-tests (Files): Likewise.
32261         * modules/round-tests (Files): Likewise.
32262         * modules/roundf-tests (Files): Likewise.
32263         * modules/roundl-tests (Files): Likewise.
32264         * modules/select-tests (Files): Likewise.
32265         * modules/setenv-tests (Files): Likewise.
32266         * modules/sigaction-tests (Files): Likewise.
32267         * modules/sleep-tests (Files): Likewise.
32268         * modules/snprintf-posix-tests (Files): Likewise.
32269         * modules/snprintf-tests (Files): Likewise.
32270         * modules/sprintf-posix-tests (Files): Likewise.
32271         * modules/stat-tests (Files): Likewise.
32272         * modules/strcasestr-tests (Files): Likewise.
32273         * modules/strchrnul-tests (Files): Likewise.
32274         * modules/strerror-tests (Files): Likewise.
32275         * modules/strsignal-tests (Files): Likewise.
32276         * modules/strstr-tests (Files): Likewise.
32277         * modules/strtod-tests (Files): Likewise.
32278         * modules/strverscmp-tests (Files): Likewise.
32279         * modules/symlink-tests (Files): Likewise.
32280         * modules/symlinkat-tests (Files): Likewise.
32281         * modules/times-tests (Files): Likewise.
32282         * modules/trunc-tests (Files): Likewise.
32283         * modules/truncf-tests (Files): Likewise.
32284         * modules/truncl-tests (Files): Likewise.
32285         * modules/tsearch-tests (Files): Likewise.
32286         * modules/uname-tests (Files): Likewise.
32287         * modules/unlink-tests (Files): Likewise.
32288         * modules/unsetenv-tests (Files): Likewise.
32289         * modules/usleep-tests (Files): Likewise.
32290         * modules/utimensat-tests (Files): Likewise.
32291         * modules/vasprintf-tests (Files): Likewise.
32292         * modules/vdprintf-posix-tests (Files): Likewise.
32293         * modules/vfprintf-posix-tests (Files): Likewise.
32294         * modules/vprintf-posix-tests (Files): Likewise.
32295         * modules/vsnprintf-posix-tests (Files): Likewise.
32296         * modules/vsnprintf-tests (Files): Likewise.
32297         * modules/vsprintf-posix-tests (Files): Likewise.
32298         * modules/wcrtomb-tests (Files): Likewise.
32299         * modules/wcsnrtombs-tests (Files): Likewise.
32300         * modules/wcsrtombs-tests (Files): Likewise.
32301         * modules/wcwidth-tests (Files): Likewise.
32302         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
32303         * tests/test-isinf.c (isinf): Likewise.
32304         * tests/test-isnan.c (isnan): Likewise.
32305         * tests/test-signbit.c (signbit): Likewise.
32306         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
32307         declaration, either as macro or with correct signature.
32308         (select): Ensure function under test is declared with correct
32309         signature in correct header.
32310         * tests/test-atexit.c (atexit): Likewise.
32311         * tests/test-btowc.c (btowc): Likewise.
32312         * tests/test-canonicalize-lgpl.c (realpath)
32313         (canonicalize_file_name): Likewise.
32314         * tests/test-ceilf1.c (ceilf): Likewise.
32315         * tests/test-ceill.c (ceill): Likewise.
32316         * tests/test-chown.c (chown): Likewise.
32317         * tests/test-dprintf-posix.c (dprintf): Likewise.
32318         * tests/test-dup2.c (dup2): Likewise.
32319         * tests/test-dup3.c (dup3): Likewise.
32320         * tests/test-duplocale.c (duplocale): Likewise.
32321         * tests/test-fchdir.c (fchdir): Likewise.
32322         * tests/test-fchownat.c (fchownat): Likewise.
32323         * tests/test-fcntl.c (fcntl): Likewise.
32324         * tests/test-fdopendir.c (fdopendir): Likewise.
32325         * tests/test-fflush.c (fflush): Likewise.
32326         * tests/test-flock.c (flock): Likewise.
32327         * tests/test-floorf1.c (floorf): Likewise.
32328         * tests/test-floorl.c (floorl): Likewise.
32329         * tests/test-fnmatch.c (fnmatch): Likewise.
32330         * tests/test-fopen.c (fopen): Likewise.
32331         * tests/test-fprintf-posix.c (fprintf): Likewise.
32332         * tests/test-freopen.c (freopen): Likewise.
32333         * tests/test-frexp.c (frexp): Likewise.
32334         * tests/test-frexpl.c (frexpl): Likewise.
32335         * tests/test-fseek.c (fseek): Likewise.
32336         * tests/test-fseeko.c (fseeko): Likewise.
32337         * tests/test-fstatat.c (fstatat): Likewise.
32338         * tests/test-fsync.c (fsync): Likewise.
32339         * tests/test-ftell.c (ftell): Likewise.
32340         * tests/test-ftello.c (ftello): Likewise.
32341         * tests/test-futimens.c (futimens): Likewise.
32342         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
32343         (gai_strerror): Likewise.
32344         * tests/test-getcwd.c (getcwd): Likewise.
32345         * tests/test-getdelim.c (getdelim): Likewise.
32346         * tests/test-getdtablesize.c (getdtablesize): Likewise.
32347         * tests/test-getgroups.c (getgroups): Likewise.
32348         * tests/test-gethostname.c (gethostname): Likewise.
32349         * tests/test-getline.c (getline): Likewise.
32350         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
32351         Likewise.
32352         * tests/test-gettimeofday.c (gettimeofday): Likewise.
32353         * tests/test-glob.c (glob, globfree): Likewise.
32354         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
32355         * tests/test-inet_ntop.c (inet_ntop): Likewise.
32356         * tests/test-inet_pton.c (inet_pton): Likewise.
32357         * tests/test-isblank.c (isblank): Likewise.
32358         * tests/test-lchown.c (lchown): Likewise.
32359         * tests/test-ldexpl.c (ldexpl): Likewise.
32360         * tests/test-link.c (link): Likewise.
32361         * tests/test-linkat.c (linkat): Likewise.
32362         * tests/test-lseek.c (lseek): Likewise.
32363         * tests/test-lstat.c (lstat): Likewise.
32364         * tests/test-mbrtowc.c (mbrtowc): Likewise.
32365         * tests/test-mbsinit.c (mbsinit): Likewise.
32366         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
32367         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
32368         * tests/test-memchr.c (memchr): Likewise.
32369         * tests/test-memcmp.c (memcmp): Likewise.
32370         * tests/test-memmem.c (memmem): Likewise.
32371         * tests/test-memrchr.c (memrchr): Likewise.
32372         * tests/test-mkdir.c (mkdir): Likewise.
32373         * tests/test-mkdirat.c (mkdirat): Likewise.
32374         * tests/test-mkfifo.c (mkfifo): Likewise.
32375         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
32376         * tests/test-mknod.c (mknod): Likewise.
32377         * tests/test-nanosleep.c (nanosleep): Likewise.
32378         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
32379         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
32380         Likewise.
32381         * tests/test-open.c (open): Likewise.
32382         * tests/test-openat.c (openat): Likewise.
32383         * tests/test-perror.c (perror): Likewise.
32384         * tests/test-pipe2.c (pipe2): Likewise.
32385         * tests/test-poll.c (poll): Likewise.
32386         * tests/test-popen.c (popen, pclose): Likewise.
32387         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
32388         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
32389         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
32390         (posix_spawn_file_actions_destroy)
32391         (posix_spawn_file_actions_addclose)
32392         (posix_spawn_file_actions_addopen)
32393         (posix_spawn_file_actions_adddup2): Likewise.
32394         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
32395         * tests/test-pread.c (pread): Likewise.
32396         * tests/test-printf-posix.c (printf): Likewise.
32397         * tests/test-pty.c (openpty, forkpty): Likewise.
32398         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
32399         (random_r): Likewise.
32400         * tests/test-rawmemchr.c (rawmemchr): Likewise.
32401         * tests/test-readlink.c (readlink): Likewise.
32402         * tests/test-remove.c (remove): Likewise.
32403         * tests/test-rename.c (rename): Likewise.
32404         * tests/test-renameat.c (renameat): Likewise.
32405         * tests/test-rmdir.c (rmdir): Likewise.
32406         * tests/test-round1.c (round): Likewise.
32407         * tests/test-roundf1.c (roundf): Likewise.
32408         * tests/test-roundl.c (roundl): Likewise.
32409         * tests/test-setenv.c (setenv): Likewise.
32410         * tests/test-sigaction.c (sigaction): Likewise.
32411         * tests/test-sleep.c (sleep): Likewise.
32412         * tests/test-snprintf.c (snprintf): Likewise.
32413         * tests/test-sprintf-posix.c (sprintf): Likewise.
32414         * tests/test-stat.c (stat): Likewise.
32415         * tests/test-stpncpy.c (stpncpy): Likewise.
32416         * tests/test-strcasestr.c (strcasestr): Likewise.
32417         * tests/test-strchrnul.c (strchrnul): Likewise.
32418         * tests/test-strerror.c (strerror): Likewise.
32419         * tests/test-strsignal.c (strsignal): Likewise.
32420         * tests/test-strstr.c (strstr): Likewise.
32421         * tests/test-strtod.c (strtod): Likewise.
32422         * tests/test-strverscmp.c (strverscmp): Likewise.
32423         * tests/test-symlink.c (symlink): Likewise.
32424         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
32425         * tests/test-times.c (times): Likewise.
32426         * tests/test-trunc1.c (trunc): Likewise.
32427         * tests/test-truncf1.c (truncf): Likewise.
32428         * tests/test-truncl.c (truncl): Likewise.
32429         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
32430         Likewise.
32431         * tests/test-uname.c (uname): Likewise.
32432         * tests/test-unlink.c (unlink): Likewise.
32433         * tests/test-unlinkat.c (unlinkat): Likewise.
32434         * tests/test-unsetenv.c (unsetenv): Likewise.
32435         * tests/test-usleep.c (usleep): Likewise.
32436         * tests/test-utimensat.c (utimensat): Likewise.
32437         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
32438         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
32439         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
32440         * tests/test-vprintf-posix.c (vprintf): Likewise.
32441         * tests/test-vsnprintf.c (vsnprintf): Likewise.
32442         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
32443         * tests/test-wcrtomb.c (wcrtomb): Likewise.
32444         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
32445         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
32446         * tests/test-wcwidth.c (wcwidth): Likewise.
32447
32448         build: pull in conditional headers during GNULIB_POSIXCHECK
32449         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
32450         definitions from any conditionally-included headers.
32451         * lib/stdlib.in.h (includes): Likewise.
32452         * lib/unistd.in.h (includes): Likewise.
32453
32454 2009-12-24  Bruno Haible  <bruno@clisp.org>
32455
32456         * tests/test-argv-iter.c: Include header file being tested immediately
32457         after config.h.
32458         * tests/test-base64.c: Likewise.
32459         * tests/test-flock.c: Likewise.
32460         * tests/test-fsync.c: Likewise.
32461         * tests/test-getdate.c: Likewise.
32462         * tests/test-getndelim2.c: Likewise.
32463         * tests/test-isfinite.c: Likewise.
32464         * tests/test-isinf.c: Likewise.
32465         * tests/test-strerror.c: Likewise.
32466         * tests/test-strsignal.c: Likewise.
32467
32468 2009-12-23  Eric Blake  <ebb9@byu.net>
32469
32470         unistd: work around cygwin bug
32471         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
32472         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
32473         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32474
32475 2009-12-23  Bruno Haible  <bruno@clisp.org>
32476
32477         localename: More tests.
32478         * tests/test-localename.c (SIZEOF): New macro.
32479         (categories): New variable.
32480         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
32481         test_locale_name_default): Add test w.r.t. thread locale.
32482         (test_locale_name_thread): New function.
32483         (main): Invoke it.
32484
32485         localename: Make aware of thread locale.
32486         * lib/localename.h (gl_locale_name_thread): New declaration.
32487         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
32488         behaviour with respect to thread locale.
32489         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
32490         <langinfo.h>, glthread/lock.h.
32491         (SIZE_BITS): New macro.
32492         (string_hash): New function.
32493         (struct hash_node): New type.
32494         (HASH_TABLE_SIZE): New macro.
32495         (struniq_hash_table, struniq_lock): New variables.
32496         (struniq): New function.
32497         (gl_locale_name_thread): New function.
32498         (gl_locale_name): Invoke it.
32499         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
32500         * modules/localename (Depends-on): Add lock.
32501         Reported by Mike Gran <spk121@yahoo.com>.
32502
32503 2009-12-23  Eric Blake  <ebb9@byu.net>
32504
32505         va-args: new module
32506         * modules/va-args: New file.
32507         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
32508         * MODULES.html.sh (Core language properties): Mention it.
32509
32510         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
32511         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
32512         named alias for __attribute__((__unused__)).
32513         * lib/chown.c: Update client.
32514         * lib/fchmodat.c: Likewise.
32515         * lib/fts.c: Likewise.
32516         * lib/getdate.y: Likewise.
32517         * lib/getgroups.c: Likewise.
32518         * lib/getopt.c: Likewise.
32519         * lib/getugroups.c: Likewise.
32520         * lib/mkdir.c: Likewise.
32521         * lib/mkfifo.c: Likewise.
32522         * lib/mkfifoat.c: Likewise.
32523         * lib/mknod.c: Likewise.
32524         * lib/mknodat.c: Likewise.
32525         * lib/readlink.c: Likewise.
32526         * lib/se-context.in.h: Likewise.
32527         * lib/se-selinux.in.h: Likewise.
32528         * lib/sockets.c: Likewise.
32529         * lib/symlink.c: Likewise.
32530         * lib/symlinkat.c: Likewise.
32531         * lib/unicodeio.c: Likewise.
32532         * lib/unistr.h: Likewise.
32533         * tests/test-areadlink.c: Likewise.
32534         * tests/test-areadlinkat.c: Likewise.
32535         * tests/test-filenamecat.c: Likewise.
32536         * tests/test-fseeko.c: Likewise.
32537         * tests/test-ftello.c: Likewise.
32538         * tests/test-getdate.c: Likewise.
32539         * tests/test-getgroups.c: Likewise.
32540         * tests/test-gethostname.c: Likewise.
32541         * tests/test-quotearg.c: Likewise.
32542         * tests/test-version-etc.c: Likewise.
32543         * tests/test-xalloc-die.c: Likewise.
32544         * tests/test-xfprintf-posix.c: Likewise.
32545         * tests/test-xprintf-posix.c: Likewise.
32546         * tests/test-xvasprintf.c: Likewise.
32547
32548         tests: avoid compiler warnings
32549         * tests/test-fcntl.c (main): Delete unused parameters.
32550         * tests/test-freopen-safer.c (main): Likewise.
32551         * tests/test-xalloc-die.c (main): Mark unused parameters.
32552         * tests/test-fseeko.c (main): Likewise.
32553         * tests/test-ftello.c (main): Likewise.
32554         * tests/test-nanosleep.c (main): Avoid declaration warning.
32555         * tests/test-sleep.c (main): Likewise.
32556         * tests/test-unsetenv.c (main): Silence warning about string
32557         literal.
32558         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
32559
32560 2009-12-23  Bruno Haible  <bruno@clisp.org>
32561
32562         * tests/test-localename.c (test_locale_name): New function, extracted
32563         from main. Also test mixed situations.
32564         (test_locale_name_posix, test_locale_name_environ,
32565         test_locale_name_default): New functions.
32566         (main): Invoke them all.
32567         * modules/localename-tests (configure.ac): Test for newlocale.
32568
32569 2009-12-23  Bruno Haible  <bruno@clisp.org>
32570
32571         unistd: Ensure getcwd gets declared before being overridden.
32572         * lib/unistd.in.h: Conditionally include <io.h>.
32573
32574 2009-12-22  Bruno Haible  <bruno@clisp.org>
32575
32576         wchar: Diagnose broken combination of glibc and gcc versions and flags.
32577         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
32578         (gl_WCHAR_H): Invoke it.
32579         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
32580         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
32581         Reported by Karl Berry <karl@freefriends.org>.
32582
32583 2009-12-22  Eric Blake  <ebb9@byu.net>
32584
32585         math, unistd: avoid redundant includes
32586         * lib/math.in.h (isnan): No need to re-include <math.h>.
32587         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
32588
32589         getsubopt: work around cygwin bug
32590         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
32591         avoid conflicting with system getsubopt.
32592         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
32593         bug.
32594
32595         getopt: synchronize from glibc
32596         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
32597         parameter order.  Adjust all callers.
32598         (_getopt_internal_r, main): Adjust quoting in error messages.
32599         Drop considerations for outdated POSIX 1003.2 error message.
32600         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
32601         callers.
32602         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
32603
32604         test-getopt: test stderr behavior
32605         * modules/getopt-posix-tests (Depends-on): Add dup2.
32606         * tests/test-getopt.c (ASSERT): Avoid stderr.
32607         (main): Move stderr to a temporary file.
32608         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
32609         Instead, add parameter to inform caller if output occurred.
32610         (test_getopt): Adjust all existing tests to expect silence, and
32611         add new tests of leading ":".
32612         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32613         glibc shortcomings with leading "-:" or "+:" in optstring.
32614         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32615         Likewise.
32616         * doc/posix-functions/getopt.texi (getopt): Likewise.
32617
32618         test-getopt: enhance test
32619         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
32620         supports optind=0.
32621         * tests/test-getopt.c (OPTIND_MIN): Move...
32622         * tests/test-getopt.h (OPTIND_MIN): ...here.
32623         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
32624         Require that optind=0 works, since modern BSD supports it in
32625         addition to optreset, and since coreutils expects it.
32626         (test_getopt_long_only): New test.
32627         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32628         glibc shortcomings with 'W;', and enforcement of optind=0.
32629         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32630         Likewise.
32631
32632 2009-12-21  Bruno Haible  <bruno@clisp.org>
32633
32634         localename: Improvements for MacOS X and Cygwin.
32635         * lib/localename.h (gl_locale_name_environ): New declaration.
32636         * lib/localename.c (gl_locale_name_environ): New function, extracted from
32637         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
32638         (gl_locale_name_posix): Invoke it.
32639         (gl_locale_name_default): Add comments. Use Windows native API also on
32640         Cygwin.
32641
32642 2009-12-21  Bruno Haible  <bruno@clisp.org>
32643
32644         Update list of Win32 locale ids.
32645         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
32646         (LANG_SAMI): Renamed from LANG_SAAMI.
32647         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
32648         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
32649         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
32650         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
32651         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
32652         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
32653         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
32654         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
32655         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
32656         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
32657         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
32658         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
32659         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
32660         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
32661         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
32662         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
32663         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
32664         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
32665         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
32666         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
32667         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
32668         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
32669         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
32670         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
32671         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
32672         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
32673         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
32674         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
32675         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
32676         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
32677         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
32678         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
32679         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
32680         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
32681         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
32682         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
32683         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
32684         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
32685         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
32686         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
32687         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
32688         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
32689         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
32690         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
32691         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
32692         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
32693         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
32694         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
32695         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
32696         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
32697         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
32698         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
32699         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
32700         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
32701         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
32702         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
32703         Add more languages and countries for Sami, Sorbian. Add more countries
32704         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
32705         for Pashto. Change country for Syriac, Tswana.
32706
32707 2009-12-21  Eric Blake  <ebb9@byu.net>
32708
32709         test-utimens: avoid spurious failure
32710         * tests/test-chown.h (nap): Factor...
32711         * tests/nap.h: ...into new file.
32712         * tests/test-lchown.h (nap): Avoid duplication.
32713         * tests/test-utimens-common.h (nap): Use shared implementation,
32714         necessary on file systems with 1-second resolution.
32715         * modules/chown-tests (Files): Include new file.
32716         * modules/fdutimensat-tests (Files): Likewise.
32717         * modules/futimens-tests (Files): Likewise.
32718         * modules/lchown-tests (Files): Likewise.
32719         * modules/openat-tests (Files): Likewise.
32720         * modules/utimens-tests (Files): Likewise.
32721         * modules/utimensat-tests (Files): Likewise.
32722
32723 2009-12-19  Eric Blake  <ebb9@byu.net>
32724
32725         futimens, utimensat: work around Linux bug
32726         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
32727         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32728         * lib/utimensat.c (rpl_utimensat): Work around it.
32729         * lib/futimens.c (rpl_futimens): Adjust comment.
32730
32731         utimens: work around Linux ctime bug
32732         * lib/utimens.c (detect_ctime_bug): New helper function.
32733         (update_timespec): Differentiate between workaround needed for
32734         this bug vs. what is needed for systems that lack utimensat.
32735         (fdutimens, lutimens): Work around bug.
32736
32737         utimens: check for ctime update
32738         * tests/test-utimens-common.h (check_ctime): Define.
32739         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
32740         * tests/test-futimens.h (test_futimens): Likewise.
32741         * tests/test-lutimens.h (test_lutimens): Likewise.
32742         * doc/posix-functions/futimens.texi (futimens): Document the bug.
32743         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32744
32745 2009-12-19  Bruno Haible  <bruno@clisp.org>
32746
32747         dprintf-posix: Check against memory leak fixed on 2009-12-15.
32748         * tests/test-dprintf-posix2.sh: New file.
32749         * tests/test-dprintf-posix2.c: New file.
32750         * modules/dprintf-posix-tests (Files): Add them.
32751         (configure.ac): Check for getrlimit and setrlimit.
32752         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32753
32754 2009-12-19  Bruno Haible  <bruno@clisp.org>
32755
32756         fprintf-posix: Check against memory leak fixed on 2009-12-15.
32757         * tests/test-fprintf-posix3.sh: New file.
32758         * tests/test-fprintf-posix3.c: New file.
32759         * modules/fprintf-posix-tests (Files): Add them.
32760         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32761
32762 2009-12-19  Eric Blake  <ebb9@byu.net>
32763
32764         dirfd: fix prototype
32765         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
32766         * lib/dirfd.c (dirfd): Likewise.
32767
32768         canonicalize: reduce memory usage
32769         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
32770         allocation to size.
32771         Reported by Solar Designer <solar@openwall.com>.
32772
32773 2009-12-19  Bruno Haible  <bruno@clisp.org>
32774
32775         New module attribute 'Applicability'.
32776         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
32777         * gnulib-tool: New option --extract-applicability.
32778         (func_usage): Document it.
32779         (sed_extract_prog): Recognize it.
32780         (func_get_applicability): New function.
32781         (func_import): Generalize handling of 'link-warning' module.
32782         * modules/link-warning (Applicability): New section.
32783         * modules/arg-nonnull (Applicability): New section.
32784         Repoted by Simon Josefsson <simon@josefsson.org>.
32785
32786 2009-12-19  Bruno Haible  <bruno@clisp.org>
32787
32788         fflush: tweak
32789         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
32790         * lib/fseeko.c (rpl_fseeko): Likewise.
32791
32792 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
32793
32794         * lib/gl_list.h: Fix typo in comment.
32795
32796 2009-12-16  Eric Blake  <ebb9@byu.net>
32797
32798         fcntl: use to simplify other modules
32799         * modules/cloexec (Depends-on): Add fcntl.
32800         * modules/fchdir (Depends-on): Likewise.
32801         * modules/fd-safer-flag (Depends-on): Likewise.
32802         * modules/unistd-safer (Depends-on): Likewise.
32803         * modules/dup3 (configure.ac): Set module indicator.
32804         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
32805         missing.
32806         * lib/fchdir.c (_gl_register_dup): Fix comment.
32807         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
32808         * lib/dup-safer.c (dup_safer): Likewise.
32809         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
32810         * lib/dup3.c (dup3): Likewise.
32811         * tests/test-fchdir.c (main): Enhance test.
32812         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
32813
32814         fcntl: port portions of fcntl to mingw
32815         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
32816         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
32817         replacement for mingw.
32818         * modules/fcntl (Description): Update.
32819         (Depends-on): Add dup2.
32820         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
32821         * modules/fcntl-h (Makefile.am): Substitute it.
32822         * lib/fcntl.in.h (fcntl): Update declaration.
32823         (F_DUPFD, F_GETFD): New macros, when needed.
32824         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32825         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
32826         * tests/test-fcntl.c (check_flags, main): Enhance test for items
32827         we now guarantee.
32828
32829         fcntl: work around cygwin bug in F_DUPFD
32830         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
32831         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
32832         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
32833         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
32834         * doc/posix-functions/fcntl.texi (fcntl): Document it.
32835
32836         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
32837         * modules/fcntl (Files): List new files.
32838         (configure.ac): Run a test.
32839         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
32840         * lib/fcntl.c (rpl_fcntl): Likewise.
32841         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
32842         (gl_FCNTL_H): Always replace fcntl.h.
32843         * modules/fcntl-h (Makefile.am): Substitute witnesses.
32844         * lib/fcntl.in.h (fcntl): Declare replacement.
32845         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
32846         needed, plus a witness.
32847         * doc/posix-functions/fcntl.texi (fcntl): Document this.
32848         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32849         * tests/test-fcntl.c: New file.
32850         * modules/fcntl-tests: Likewise.
32851
32852         binary-io: avoid potential compilation warning
32853         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
32854         directives.
32855
32856         fflush: avoid compilation error on NetBSD
32857         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
32858         between off_t and fpos_t, since the latter is sometimes a struct.
32859         * lib/fseeko.c (rpl_fseeko): Likewise.
32860         Reported by Alexander Nasonov <alnsn@yandex.ru>.
32861
32862 2009-12-15  Eric Blake  <ebb9@byu.net>
32863
32864         fcntl-h, stdio, sys_ioctl: fix declarations
32865         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
32866         function must not take arguments.
32867         * lib/sys_ioctl.in.h (ioctl): Likewise.
32868         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
32869         (open): Add a link warning.
32870
32871 2009-12-15  Jim Meyering  <meyering@redhat.com>
32872
32873         areadlink, areadlink-with-size: relax license to LGPLv2+
32874         * modules/areadlink (License): Relax to LGPLv2+.
32875         * modules/areadlink-with-size (License): Likewise.
32876
32877 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
32878             Bruno Haible  <bruno@clisp.org>
32879
32880         *printf: Fix memory leak.
32881         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
32882         * lib/vfprintf.c (vfprintf): Likewise.
32883         * lib/dprintf.c (dprintf): Likewise.
32884         * lib/vdprintf.c (vdprintf): Likewise.
32885
32886 2009-12-14  Eric Blake  <ebb9@byu.net>
32887
32888         accept4: adjust module dependencies
32889         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
32890
32891         utimens: one more try at avoiding compiler warning
32892         * lib/utimens.c (lutimens): Lower scope of result.
32893
32894 2009-12-13  Bruno Haible  <bruno@clisp.org>
32895
32896         Move the malloc checking from module 'list' to new module 'xlist'.
32897         * modules/xlist: New file.
32898         * lib/gl_xlist.h: New file.
32899         * lib/gl_xlist.c: New file.
32900         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
32901         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
32902         gl_list_add_last, gl_list_add_before, gl_list_add_after,
32903         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
32904         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
32905         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
32906         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
32907         gl_sortedlist_nx_add): New declarations.
32908         (struct gl_list_implementation): Rename and change methods accordingly.
32909         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
32910         (gl_list_nx_create): Renamed from gl_list_create.
32911         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32912         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32913         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32914         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32915         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32916         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32917         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32918         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32919         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
32920         gl_list_create_empty.
32921         (gl_list_nx_create): Renamed from gl_list_create.
32922         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32923         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32924         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32925         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32926         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32927         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32928         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32929         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32930         * lib/gl_array_list.c: Don't include xalloc.h.
32931         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
32932         NULL upon out-of-memory.
32933         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
32934         out-of-memory.
32935         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
32936         Change return type to 'int'.
32937         (gl_array_nx_set_at): Renamed from gl_array_set_at.
32938         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32939         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
32940         upon out-of-memory.
32941         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
32942         upon out-of-memory.
32943         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
32944         upon out-of-memory.
32945         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
32946         upon out-of-memory.
32947         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
32948         out-of-memory.
32949         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
32950         Update.
32951         (gl_array_list_implementation): Update.
32952         * lib/gl_carray_list.c: Don't include xalloc.h.
32953         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
32954         Return NULL upon out-of-memory.
32955         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
32956         out-of-memory.
32957         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
32958         Change return type to 'int'.
32959         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
32960         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32961         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
32962         upon out-of-memory.
32963         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
32964         upon out-of-memory.
32965         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
32966         out-of-memory.
32967         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
32968         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
32969         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
32970         Update.
32971         (gl_carray_list_implementation): Update.
32972         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
32973         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
32974         gl_linked_create_empty. Return NULL upon out-of-memory.
32975         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
32976         out-of-memory.
32977         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
32978         Change return type to 'int'. Return -1 upon out-of-memory.
32979         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
32980         out-of-memory.
32981         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
32982         upon out-of-memory.
32983         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
32984         upon out-of-memory.
32985         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
32986         NULL upon out-of-memory.
32987         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
32988         upon out-of-memory.
32989         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
32990         out-of-memory.
32991         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
32992         Update.
32993         * lib/gl_linked_list.c: Don't include xalloc.h.
32994         (gl_linked_list_implementation): Update.
32995         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
32996         (add_to_bucket): Change return type to 'int'.
32997         (gl_linkedhash_list_implementation): Update.
32998         * lib/gl_anytree_list1.h (free_subtree): New function.
32999         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
33000         gl_tree_create_empty. Return NULL upon out-of-memory.
33001         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
33002         Change return type to 'int'. Return -1 upon out-of-memory.
33003         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
33004         out-of-memory.
33005         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
33006         (gl_tree_remove_node): New function, moved here from
33007         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
33008         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
33009         Update.
33010         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
33011         malloc, not xmalloc. Return NULL upon out-of-memory.
33012         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
33013         out-of-memory.
33014         (gl_tree_remove_node_from_tree): New function, extracted from
33015         gl_tree_remove_node.
33016         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
33017         upon out-of-memory.
33018         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
33019         out-of-memory.
33020         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
33021         upon out-of-memory.
33022         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
33023         upon out-of-memory.
33024         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
33025         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
33026         not xmalloc. Return NULL upon out-of-memory.
33027         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
33028         out-of-memory.
33029         (gl_tree_remove_node_from_tree): New function, extracted from
33030         gl_tree_remove_node.
33031         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
33032         upon out-of-memory.
33033         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
33034         out-of-memory.
33035         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
33036         upon out-of-memory.
33037         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
33038         upon out-of-memory.
33039         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
33040         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
33041         gl_anytree_list1.h before gl_anyavltree_list2.h.
33042         (gl_avltree_list_implementation): Update.
33043         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
33044         gl_anytree_list1.h before gl_anyavltree_list2.h.
33045         (gl_rbtree_list_implementation): Update.
33046         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
33047         Change return type to 'int'. Return -1 upon out-of-memory. Use
33048         __builtin_expect.
33049         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
33050         (gl_avltreehash_list_implementation): Update.
33051         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
33052         (gl_rbtreehash_list_implementation): Update.
33053         * modules/array-list (Depends-on): Remove xalloc.
33054         * modules/carray-list (Depends-on): Likewise.
33055         * modules/linked-list (Depends-on): Likewise.
33056         * modules/linkedhash-list (Depends-on): Likewise.
33057         * modules/avltree-list (Depends-on): Likewise.
33058         * modules/rbtree-list (Depends-on): Likewise.
33059         * modules/avltreehash-list (Depends-on): Likewise.
33060         * modules/rbtreehash-list (Depends-on): Likewise.
33061
33062         * modules/xsublist: New file.
33063         * lib/gl_xsublist.h: New file.
33064         * lib/gl_xsublist.c: New file.
33065         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
33066         (gl_sublist_nx_create): New declaration.
33067         * lib/gl_sublist.c: Don't include xalloc.h.
33068         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
33069         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
33070         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
33071         Change return type to 'int'. Return -1 upon out-of-memory.
33072         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
33073         upon out-of-memory.
33074         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
33075         NULL upon out-of-memory.
33076         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
33077         upon out-of-memory.
33078         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
33079         NULL upon out-of-memory.
33080         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
33081         NULL upon out-of-memory.
33082         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
33083         upon out-of-memory.
33084         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
33085         (gl_sublist_list_implementation): Update.
33086         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
33087         upon out-of-memory.
33088         * modules/sublist (Depends-on): Remove xalloc.
33089
33090         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
33091         * tests/test-carray_list.c: Likewise.
33092         * tests/test-linked_list.c: Likewise.
33093         * tests/test-linkedhash_list.c: Likewise.
33094         * tests/test-avltree_list.c: Likewise.
33095         * tests/test-rbtree_list.c: Likewise.
33096         * tests/test-avltreehash_list.c: Likewise.
33097         * tests/test-rbtreehash_list.c: Likewise.
33098         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
33099         * modules/carray-list-tests (Makefile.am): Likewise.
33100         * modules/linked-list-tests (Makefile.am): Likewise.
33101         * modules/linkedhash-list-tests (Makefile.am): Likewise.
33102         * modules/avltree-list-tests (Makefile.am): Likewise.
33103         * modules/rbtree-list-tests (Makefile.am): Likewise.
33104         * modules/avltreehash-list-tests (Makefile.am): Likewise.
33105         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33106
33107         * NEWS: Mention the changes.
33108
33109         * lib/clean-temp.c: Include gl_xlist.h.
33110         * modules/clean-temp (Depends-on): Add xlist.
33111
33112         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
33113         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
33114
33115         * tests/test-array_oset.c: Include gl_xlist.h.
33116         * modules/array-oset-tests (Depends-on): Add xlist.
33117
33118         Reported by José E. Marchesi <jemarch@gnu.org>.
33119
33120 2009-12-13  Bruno Haible  <bruno@clisp.org>
33121
33122         Move the malloc checking from module 'oset' to new module 'xoset'.
33123         * modules/xoset: New file.
33124         * lib/gl_xoset.h: New file.
33125         * lib/gl_xoset.c: New file.
33126         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
33127         declarations.
33128         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
33129         (struct gl_oset_implementation): Rename and change methods accordingly.
33130         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
33131         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33132         'int'. Mark as __warn_unused_result__.
33133         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
33134         gl_oset_create_empty.
33135         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33136         'int'.
33137         * lib/gl_array_oset.c: Don't include xalloc.h.
33138         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
33139         malloc, not xmalloc.
33140         (grow): Change return type to 'int'. Don't call xalloc_die.
33141         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
33142         to 'int'.
33143         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
33144         'int'.
33145         (gl_array_oset_implementation): Update.
33146         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
33147         gl_tree_create_empty.
33148         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
33149         'int'.
33150         * lib/gl_avltree_oset.c: Don't include xalloc.h.
33151         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33152         xmalloc.
33153         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33154         not xmalloc.
33155         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33156         xmalloc.
33157         (gl_avltree_oset_implementation): Update.
33158         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
33159         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33160         xmalloc.
33161         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33162         not xmalloc.
33163         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33164         xmalloc.
33165         (gl_rbtree_oset_implementation): Update.
33166         * modules/array-oset (Depends-on): Remove xalloc.
33167         * modules/avltree-oset (Depends-on): Likewise.
33168         * modules/rbtree-oset (Depends-on): Likewise.
33169         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
33170         * tests/test-avltree_oset.c: Likewise.
33171         * tests/test-rbtree_oset.c: Likewise.
33172         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
33173         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
33174         * modules/rbtree-oset-tests (Makefile.am): Likewise.
33175         * NEWS: Mention the change.
33176
33177 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
33178
33179         maint.mk: allow a project to override release-prep commands
33180         * top/maint.mk (alpha, beta, stable): Move release-preparatory
33181         commands into a new rule.
33182         (release-prep): New rule.
33183         (release-prep-hook): New overridable variable.
33184
33185 2009-12-13  Bruno Haible  <bruno@clisp.org>
33186
33187         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
33188
33189 2009-12-13  Jim Meyering  <meyering@redhat.com>
33190
33191         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
33192         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
33193
33194 2009-12-12  Bruno Haible  <bruno@clisp.org>
33195
33196         duplocale: Tweak.
33197         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
33198
33199 2009-12-12  Karl Berry  <karl@gnu.org>
33200
33201         * config/srclist.txt (strtoll.c): tab changes, no more sync.
33202
33203 2009-12-12  Bruno Haible  <bruno@clisp.org>
33204
33205         * m4/po.m4: Undo incorrect untabification.
33206
33207 2009-12-12  Bruno Haible  <bruno@clisp.org>
33208
33209         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
33210         * modules/c-strtod (Depends-on): Add locale.
33211         * modules/c-strtold (Depends-on): Likewise.
33212
33213 2009-12-12  Bruno Haible  <bruno@clisp.org>
33214
33215         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
33216
33217 2009-12-11  Eric Blake  <ebb9@byu.net>
33218
33219         setenv: relax requirement in light of POSIX ruling
33220         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
33221         not NULL.
33222         * tests/test-setenv.c (main): Relax test.
33223         * tests/test-unsetenv.c (main): Likewise.
33224         * doc/posix-functions/setenv.texi (setenv): Document this.
33225         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33226
33227 2009-12-11  Bruno Haible  <bruno@clisp.org>
33228
33229         New module 'fd-safer-flag'.
33230         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
33231         * lib/dup-safer.c (dup_safer_flag): Remove function.
33232         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
33233         * lib/fd-safer.c (fd_safer_flag): Remove function.
33234         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
33235         * modules/cloexec (configure.ac): Drop indicator macro.
33236         * modules/fd-safer-flag: New file.
33237         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
33238         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
33239         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
33240
33241 2009-12-11  Bruno Haible  <bruno@clisp.org>
33242
33243         Tests for module 'nl_langinfo'.
33244         * modules/nl_langinfo-tests: New file.
33245         * tests/test-nl_langinfo.sh: New file.
33246         * tests/test-nl_langinfo.c: New file.
33247
33248         New module 'nl_langinfo'.
33249         * lib/nl_langinfo.c: New file.
33250         * m4/nl_langinfo.m4: New file.
33251         * modules/nl_langinfo: New file.
33252         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
33253
33254 2009-12-11  Bruno Haible  <bruno@clisp.org>
33255
33256         Tests for module 'langinfo'.
33257         * modules/langinfo-tests: New file.
33258         * tests/test-langinfo.c: New file.
33259
33260         New module 'langinfo'.
33261         * lib/langinfo.in.h: New file.
33262         * m4/langinfo_h.m4: New file.
33263         * modules/langinfo: New file.
33264         * doc/posix-headers/langinfo.texi: Mention the new module.
33265
33266 2009-12-11  Bruno Haible  <bruno@clisp.org>
33267
33268         * lib/config.charset: Untabify.
33269
33270 2009-12-11  Bruno Haible  <bruno@clisp.org>
33271
33272         * modules/unistd-safer (configure.ac): Drop indicator macro.
33273
33274 2009-12-11  Bruno Haible  <bruno@clisp.org>
33275
33276         Move pipe2-safer code to its own file.
33277         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
33278         * lib/pipe-safer.c (pipe2_safer): Remove function.
33279         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
33280         (Makefile.am): Add it to lib_SOURCES.
33281
33282 2009-12-10  Bruno Haible  <bruno@clisp.org>
33283
33284         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
33285
33286 2009-12-10  Bruno Haible  <bruno@clisp.org>
33287
33288         Declare which arguments expect non-NULL values, for GCC and clang.
33289         * build-aux/arg-nonnull.h: New file.
33290         * modules/arg-nonnull: New file.
33291         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
33292         (inet_ntop, inet_pton): Use it.
33293         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
33294         (closedir, dirfd, opendir, scandir, alphasort): Use it.
33295         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
33296         (open, openat): Use it.
33297         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
33298         (fnmatch): Use it.
33299         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
33300         (getopt, getopt_long, getopt_long_only): Use it.
33301         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
33302         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
33303         Use it.
33304         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
33305         (iconv_open): Use it.
33306         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
33307         (strtoimax, strtoumax): Use it.
33308         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
33309         (duplocale): Use it.
33310         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
33311         (frexp, frexpl): Use it.
33312         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
33313         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
33314         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
33315         (tsearch, tfind, tdelete, twalk): Use it.
33316         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
33317         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33318         sigpending): Use it.
33319         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
33320         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33321         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33322         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33323         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33324         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33325         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33326         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33327         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33328         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33329         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33330         Use it.
33331         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
33332         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
33333         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
33334         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
33335         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
33336         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
33337         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
33338         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
33339         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
33340         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
33341         strtoull, unsetenv): Use it.
33342         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
33343         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33344         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33345         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
33346         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
33347         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
33348         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
33349         (strcasecmp, strncasecmp): Use it.
33350         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
33351         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
33352         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
33353         rpl_setsockopt): Use it.
33354         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
33355         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
33356         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
33357         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
33358         (gettimeofday): Use it.
33359         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
33360         (times): Use it.
33361         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
33362         (uname): Use it.
33363         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
33364         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
33365         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
33366         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
33367         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
33368         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
33369         unlinkat, write): Use it.
33370         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
33371         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
33372         * lib/argv-iter.h: Include arg-nonnull.h.
33373         (_ATTRIBUTE_NONNULL_): Remove macro.
33374         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
33375         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
33376         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
33377         optimization.
33378         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
33379         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
33380         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
33381         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
33382         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
33383         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
33384         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
33385         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
33386         * modules/arpa_inet (Depends-on): Add arg-nonnull.
33387         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
33388         * modules/dirent (Depends-on): Add arg-nonnull.
33389         (Makefile.am): Insert arg-nonnull.h into dirent.h.
33390         * modules/fcntl-h (Depends-on): Add arg-nonnull.
33391         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
33392         * modules/fnmatch (Depends-on): Add arg-nonnull.
33393         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
33394         * modules/getopt-posix (Depends-on): Add arg-nonnull.
33395         (Makefile.am): Insert arg-nonnull.h into getopt.h.
33396         * modules/glob (Depends-on): Add arg-nonnull.
33397         (Makefile.am): Insert arg-nonnull.h into glob.h.
33398         * modules/iconv_open (Depends-on): Add arg-nonnull.
33399         (Makefile.am): Insert arg-nonnull.h into iconv.h.
33400         * modules/inttypes (Depends-on): Add arg-nonnull.
33401         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
33402         * modules/locale (Depends-on): Add arg-nonnull.
33403         (Makefile.am): Insert arg-nonnull.h into locale.h.
33404         * modules/math (Depends-on): Add arg-nonnull.
33405         (Makefile.am): Insert arg-nonnull.h into math.h.
33406         * modules/netdb (Depends-on): Add arg-nonnull.
33407         (Makefile.am): Insert arg-nonnull.h into netdb.h.
33408         * modules/search (Depends-on): Add arg-nonnull.
33409         (Makefile.am): Insert arg-nonnull.h into search.h.
33410         * modules/signal (Depends-on): Add arg-nonnull.
33411         (Makefile.am): Insert arg-nonnull.h into signal.h.
33412         * modules/spawn (Depends-on): Add arg-nonnull.
33413         (Makefile.am): Insert arg-nonnull.h into spawn.h.
33414         * modules/stdio (Depends-on): Add arg-nonnull.
33415         (Makefile.am): Insert arg-nonnull.h into stdio.h.
33416         * modules/stdlib (Depends-on): Add arg-nonnull.
33417         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
33418         * modules/string (Depends-on): Add arg-nonnull.
33419         (Makefile.am): Insert arg-nonnull.h into string.h.
33420         * modules/strings (Depends-on): Add arg-nonnull.
33421         (Makefile.am): Insert arg-nonnull.h into strings.h.
33422         * modules/sys_socket (Depends-on): Add arg-nonnull.
33423         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
33424         * modules/sys_stat (Depends-on): Add arg-nonnull.
33425         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
33426         * modules/sys_time (Depends-on): Add arg-nonnull.
33427         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
33428         * modules/sys_times (Depends-on): Add arg-nonnull.
33429         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
33430         * modules/sys_utsname (Depends-on): Add arg-nonnull.
33431         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
33432         * modules/time (Depends-on): Add arg-nonnull.
33433         (Makefile.am): Insert arg-nonnull.h into time.h.
33434         * modules/unistd (Depends-on): Add arg-nonnull.
33435         (Makefile.am): Insert arg-nonnull.h into unistd.h.
33436         * modules/wchar (Depends-on): Add arg-nonnull.
33437         (Makefile.am): Insert arg-nonnull.h into wchar.h.
33438         * modules/argv-iter (Depends-on): Add arg-nonnull.
33439         * tests/test-canonicalize.c (null_ptr): New function.
33440         (main): Use it.
33441         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
33442         (main): Use it.
33443         * tests/test-memmem.c (null_ptr): New function.
33444         (main): Use it.
33445         Reported by Jim Meyering.
33446
33447 2009-12-10  Bruno Haible  <bruno@clisp.org>
33448
33449         Use spaces for indentation, not tabs.
33450         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
33451         * m4/*.m4: Untabify.
33452         * build-aux/*.h: Untabify.
33453         * tests/**/*.[hc]: Untabify.
33454         * README: New section "Indent with spaces, not TABs", based on
33455         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
33456         * NEWS: Mention the change.
33457
33458 2009-12-10  Bruno Haible  <bruno@clisp.org>
33459
33460         pty test: Fix link error.
33461         * modules/pty-tests (Makefile.am): Add the default LDADD value to
33462         test_pty_LDADD.
33463
33464 2009-12-07  Simon Josefsson  <simon@josefsson.org>
33465
33466         * modules/pty: New file.
33467         * modules/pty-tests: New file.
33468         * m4/pty.m4: New file.
33469         * tests/test-pty.c: New file.
33470         * doc/glibc-headers/pty.texi: Modified.
33471         * doc/glibc-functions/forkpty.texi: Modified.
33472         * doc/glibc-functions/openpty.texi: Modified.
33473
33474 2009-12-10  Bruno Haible  <bruno@clisp.org>
33475
33476         Avoid syntax error in C++ mode.
33477         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
33478
33479 2009-12-10  Bruno Haible  <bruno@clisp.org>
33480
33481         Use sed with option -e.
33482         * gnulib-tool (func_version, func_emit_copyright_notice,
33483         func_emit_initmacro_end, func_import, func_create_testdir): Pass
33484         option -e to sed.
33485         * modules/link-warning (Makefile.am): Likewise.
33486
33487 2009-12-10  Jim Meyering  <meyering@redhat.com>
33488
33489         mgetgroups: do not write bytes beyond end of malloc'd buffer
33490         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
33491         username, we call getgroups with a one-element-shorter buffer,
33492         but still told it the length was original, max_n_groups.
33493
33494 2009-12-09  Eric Blake  <ebb9@byu.net>
33495
33496         cloexec: relax license
33497         * modules/cloexec (Maintainer): Add myself.
33498         (License): Use LGPL, not GPL.
33499
33500         link-warning: optimize generation
33501         * modules/link-warning (Makefile.am): Reduce process usage.
33502
33503 2009-12-09  Bruno Haible  <bruno@clisp.org>
33504
33505         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
33506         workaround was added on 2009-11-17.
33507
33508 2009-12-09  Jim Meyering  <meyering@redhat.com>
33509             Bruno Haible  <bruno@clisp.org>
33510
33511         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
33512         * modules/link-warning (Makefile.am): Make the comment-removing sed
33513         command more robust in the face of bootstrap-prepended comment lines.
33514
33515 2009-12-09  Bruno Haible  <bruno@clisp.org>
33516
33517         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
33518         most one group.
33519
33520 2009-12-09  Simon Josefsson <simon@josefsson.org>
33521             Bruno Haible  <bruno@clisp.org>
33522
33523         * build-aux/link-warning.h: Add copyright notice.
33524         * modules/link-warning (Makefile.am): Generate link-warning.h from
33525         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
33526         * NEWS: Mention change in link-warning module.
33527         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
33528         * modules/dirent (Makefile.am): Add dependency to dirent.h.
33529         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
33530         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
33531         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
33532         * modules/math (Makefile.am): Add dependency to math.h.
33533         * modules/search (Makefile.am): Add dependency to search.h.
33534         * modules/signal (Makefile.am): Add dependency to signal.h.
33535         * modules/spawn (Makefile.am): Add dependency to spawn.h.
33536         * modules/stdio (Makefile.am): Add dependency to stdio.h.
33537         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
33538         * modules/string (Makefile.am): Add dependency to string.h.
33539         * modules/strings (Makefile.am): Add dependency to strings.h.
33540         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
33541         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
33542         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
33543         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
33544         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
33545         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
33546         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
33547         * modules/unistd (Makefile.am): Add dependency to unistd.h.
33548         * modules/wchar (Makefile.am): Add dependency to wchar.h.
33549
33550 2009-12-09  Bruno Haible  <bruno@clisp.org>
33551
33552         fchdir: Optimize away rpl_fstat when possible.
33553         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
33554         REPLACE_OPEN_DIRECTORY.
33555         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
33556
33557 2009-12-09  Bruno Haible  <bruno@clisp.org>
33558
33559         * lib/fchdir.c: Update comment.
33560
33561 2009-12-09  Bruno Haible  <bruno@clisp.org>
33562
33563         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
33564
33565 2009-12-08  Eric Blake  <ebb9@byu.net>
33566
33567         fchdir: avoid memory leak on re-registration.
33568         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
33569
33570 2009-12-08  Jim Meyering  <meyering@redhat.com>
33571
33572         init.sh: avoid Solaris 10 /bin/sh portability problem
33573         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
33574         sourced script:
33575           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
33576           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
33577           bar
33578         tests/init.sh relied on that, accepting a --set-path=DIR argument,
33579         and two tests used that idiom.
33580         * tests/init.sh: Update suggested usage comments.
33581         (path_prepend_): New function, to be used in place
33582         of the --src-path=DIR option.
33583         (setup_): Move PATH-prepending code into path_prepend_.
33584         * tests/test-pread.sh: Adapt to new usage.
33585         * tests/test-xalloc-die.sh: Likewise.
33586
33587 2009-12-08  Simon Josefsson  <simon@josefsson.org>
33588
33589         * doc/gnulib.texi (Glibc pty.h): Add.
33590         * doc/glibc-functions/forkpty.texi: Add.
33591         * doc/glibc-functions/openpty.texi: Add.
33592         Suggested by Bruno Haible.
33593
33594 2009-12-08  Eric Blake  <ebb9@byu.net>
33595
33596         fchdir: fix logic bugs
33597         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
33598         * tests/test-fchdir.c (main): Enhance test.
33599         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
33600         is in use.
33601
33602         dup2: fix logic bugs
33603         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
33604         REPLACE_DUP2 to decide when rpl_dup2 is needed.
33605         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
33606         exists.
33607         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
33608
33609 2009-12-07  Eric Blake  <ebb9@byu.net>
33610
33611         unlink: fix m4 detection
33612         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
33613
33614         unistd-safer: add unit test
33615         * modules/unistd-safer-tests: New file.
33616         * tests/test-dup-safer.c: Likewise.
33617         * tests/test-cloexec.c (setmode): Avoid compiler warning.
33618         * tests/test-dup2.c (setmode): Likewise.
33619         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
33620
33621         cloexec: preserve text vs. binary across dup_cloexec
33622         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
33623         mode.
33624         * modules/dup2-tests (Depends-on): Add binary-io.
33625         * modules/cloexec-tests (Depends-on): Likewise.
33626         * tests/test-dup2.c (setmode, is_mode): New helpers.
33627         (main): Add tests that translation mode is preserved.
33628         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
33629         Reported by Bruno Haible.
33630
33631         mgetgroups: reduce duplicate listings
33632         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
33633         resulting array.
33634         * tests/test-chown.h (test_chown): Simplify client.
33635         * tests/test-lchown.h (test_lchown): Likewise.
33636
33637 2009-12-06  Bruno Haible  <bruno@clisp.org>
33638
33639         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
33640         value.
33641
33642 2009-12-06  Bruno Haible  <bruno@clisp.org>
33643
33644         * lib/progname.c: Include stdio.h, stdlib.h.
33645         (set_program_name): Reject a NULL argument.
33646
33647 2009-12-05  Eric Blake  <ebb9@byu.net>
33648
33649         pipe2-safer: new module
33650         * modules/pipe2-safer: New file.
33651         * lib/unistd-safer.h (pipe2_safer): New prototype.
33652         * lib/unistd--.h (pipe2): New wrapper.
33653         * lib/pipe-safer.c (pipe2_safer): New function.
33654         * modules/pipe (Depends-on): Add pipe2-safer.
33655         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
33656
33657         stdlib-safer: preserve cloexec flag for mkostemp[s]
33658         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
33659         fd_safer_flag.
33660
33661         unistd-safer: allow preservation of cloexec status via flag
33662         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
33663         prototypes.
33664         * lib/dup-safer.c (dup_safer_flag): New function.
33665         * lib/fd-safer.c (fd_safer_flag): Likewise.
33666         * modules/cloexec (configure.ac): Set witness.
33667
33668         test-dup2: enhance test
33669         * modules/dup2-tests (Depends-on): Add cloexec.
33670         * tests/test-dup2.c (main): Enhance test.
33671
33672         cloexec: add dup_cloexec
33673         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
33674         header and comments.
33675         * lib/cloexec.c (set_cloexec_flag): Add comments.
33676         (dup_cloexec): New function, with mingw implementation borrowed
33677         from...
33678         * lib/w32spawn.h (dup_noinherit): ...here.
33679         * modules/execute (Depends-on): Add cloexec.
33680         * modules/pipe (Depends-on): Likewise.
33681         * modules/cloexec (Depends-on): Add dup2.
33682         * modules/cloexec-tests (Files): New file.
33683         * tests/test-cloexec.c: Likewise.
33684
33685         test-xalloc-die: fix test for mingw
33686         * modules/xalloc-die-tests (Files): Add tests/init.sh.
33687         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
33688         directory and .exe suffix off argv[0] output.
33689
33690         test-fseeko: fix test for mingw
33691         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
33692         than undefining fseek, so test will pass on mingw.
33693
33694 2009-12-05  Bruno Haible  <bruno@clisp.org>
33695
33696         * lib/progname.h (set_program_name): Clarify specification.
33697         * lib/progname.c (set_program_name): Likewise.
33698         Reported by Jim Meyering.
33699
33700 2009-12-05  Jim Meyering  <meyering@redhat.com>
33701
33702         maint.mk: backslash-escape parens in default regexp
33703         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
33704         backslash-escape the literal parentheses.
33705
33706         maint.mk: news-date-check: use grep -E
33707         * top/maint.mk (today): Define a Make variable, not a...
33708         (news-date-check): ...shell variable.
33709         (news-date-regexp): Use the Make variable.
33710         Use grep's -E option.  Change the failing diagnostic to mention
33711         the variable, $(news-date-regexp).
33712
33713 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
33714
33715         maintainer-makefile: allow customization of NEWS entry format
33716         * top/maint.mk (news-date-regexp): New overridable variable.
33717         (news-date-check): Use it.
33718
33719 2009-12-04  Eric Blake  <ebb9@byu.net>
33720
33721         mgetgroups: add xgetgroups, and avoid ENOSYS failures
33722         * lib/mgetgroups.h (xgetgroups): New prototype.
33723         * lib/mgetgroups.c (xgetgroups): New wrapper.
33724         (mgetgroups): Handle ENOSYS.
33725         * modules/mgetgroups (Depends-on): Add realloc.
33726         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
33727
33728         mgetgroups: avoid argument promotion issues with -1
33729         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
33730         for invalid gid_t.
33731         * tests/test-chown.h (getegid, test_chown): Likewise.
33732         * tests/test-lchown.h (getegid, test_lchown): Likewise.
33733
33734 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
33735
33736         exclude: Fix header file problems.
33737         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
33738
33739 2009-12-01  Jim Meyering  <meyering@redhat.com>
33740
33741         fts: fts_open: do not let an empty string cause immediate failure
33742         This is required in support of GNU rm, for which the command
33743         "rm A '' B" must process and remove both A and B, in spite of
33744         the empty string argument.
33745         * lib/fts.c (fts_open): Do not let the presence of an empty string
33746         cause fts_open to fail immediately.  Most fts-using tools must be
33747         able to process all arguments, in order, and can be expected to
33748         diagnose such arguments themselves.
33749
33750 2009-11-30  Eric Blake  <ebb9@byu.net>
33751
33752         utimens: fix compilation error
33753         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
33754         Declare variable at right scope.
33755
33756 2009-11-29  Jim Meyering  <meyering@redhat.com>
33757
33758         bootstrap: handle perl-5.11's changed --version output
33759         * build-aux/bootstrap (get_version): Handle perl separately,
33760         since perl-5.11's --version output is different.
33761
33762 2009-11-28  Jim Meyering  <meyering@redhat.com>
33763
33764         userspec: depend on the inttostr module, too
33765         * modules/userspec (Depends-on): Add inttostr.
33766
33767         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
33768         * lib/userspec.c (parse_with_separator): Do not accept a user ID
33769         number of MAXUID when it evaluates to (uid_t) -1.
33770         Likewise for group ID.  Reported by Matt McCutchen in
33771         <http://savannah.gnu.org/bugs/?28113>
33772
33773         userspec: reformat to use spaces, not TABs
33774         * lib/userspec.c: Expand TABs to spaces.
33775         Add Emacs' "indent-tabs-mode: nil" hint.
33776
33777 2009-11-27  Eric Blake  <ebb9@byu.net>
33778
33779         getopt-gnu: flush out another BSD bug
33780         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
33781         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
33782         flush out BSD bug.
33783         * tests/test-getopt.h (test_getopt): End lists with NULL.
33784         * tests/test-getopt_long.h (test_getopt_long): Likewise.
33785         (test_getopt_long_posix): Enhance test.
33786         * modules/getopt-posix-tests (Depends-on): Add stdbool.
33787         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
33788         getopt-gnu.
33789         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33790         Likewise.
33791
33792 2009-11-27  Simon Josefsson  <simon@josefsson.org>
33793
33794         * modules/idpriv-droptemp-tests (Notice): Fix text.
33795
33796 2009-11-27  Jim Meyering  <meyering@redhat.com>
33797
33798         test-xalloc-die: avoid spurious failure due to libtool argv difference
33799         In a libtool-enabled project, this test would fail due to a difference
33800         in the emitted program name, e.g.,
33801         -test-xalloc-die: memory exhausted
33802         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
33803         Use program to avoid that.
33804         * modules/xalloc-die-tests (Depends-on): Add progname.
33805         * tests/test-xalloc-die.c: Include progname.h".
33806         (program_name): Remove decl.
33807         (main): Call set_program_name.
33808         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
33809
33810 2009-11-26  Richard Jones  <rjones@redhat.com>
33811
33812         w32sock: leave win32 error in place.
33813         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
33814
33815 2009-11-26  Eric Blake  <ebb9@byu.net>
33816
33817         init.sh: suggest to use skip_ and fail_ functions in comments
33818         * tests/init.sh: Add a sentence.
33819
33820 2009-11-25  Bruno Haible  <bruno@clisp.org>
33821
33822         init.sh: add documentation in comments
33823         * tests/init.sh: Add some developer and user documentation.
33824
33825 2009-11-26  Jim Meyering  <meyering@redhat.com>
33826
33827         init.sh: accommodate even those who specify bogus srcdir manually
33828         * tests/init.sh: Normally, srcdir is guaranteed by automake and
33829         configure-time tests to be sanitized, so that there is no need to
33830         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
33831         (with no double quotes) suffices.  However, since tests may be
33832         invoked manually, and since you may explicitly set srcdir to the
33833         name of a directory containing spaces, do quote its uses here.
33834         * tests/test-pread.sh: Likewise.
33835         Suggested by Bruno Haible.
33836
33837         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
33838         * tests/test-pread.sh: Write no data into the pipe, because
33839         test-pread actually reads none.  This avoids a diagnostic,
33840         "bash: echo: write error: Broken pipe", that arises in the unusual
33841         event something is ignoring SIGPIPE, and might be interpreted
33842         as some sort of failure.  Reported by Bruno Haible.
33843
33844 2009-11-25  Jim Meyering  <meyering@redhat.com>
33845
33846         test-pread: cover failure with ESPIPE and EINVAL
33847         * tests/test-pread.c (main): Test for failure, too.
33848         * tests/test-pread.sh: Invoke with stdin on a pipe.
33849         Suggested by Eric Blake.
33850
33851         pread: improvement and fix
33852         * modules/pread (Depends-on): Depend on lseek, for portability to
33853         e.g., mingw.  Suggested by Eric Blake.
33854         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
33855
33856         unistd.in.h: correct declaration of pread
33857         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
33858         Reported by Richard W.M. Jones.
33859
33860         test-pread.sh: distribute the test script
33861         * modules/pread-tests (Files): Include test-pread.sh.
33862
33863         test-pread.sh: clean up
33864         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
33865         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
33866         That is unnecessary, since it's always ".".
33867         Suggestion from Eric Blake.
33868
33869         test-pread.sh: make executable
33870         * tests/test-pread.sh: Set executable bit.
33871         Reported by Eric Blake.
33872
33873         correct typo in test-pread.sh
33874         * tests/test-pread.sh: Add #! line.
33875
33876         test pread
33877         * tests/test-pread.c: New file.
33878         * tests/test-pread.sh: Likewise.
33879         * modules/pread-tests: Likewise.
33880
33881         pread: new module
33882         * modules/pread: New file.
33883         * lib/unistd.in.h (pread): Define/declare.
33884         * lib/pread.c (pread): New file.
33885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
33886         * modules/unistd (Makefile.am): Substitute witnesses.
33887         * doc/posix-functions/pread.texi (pread): Update.
33888         * MODULES.html.sh: Add pread.
33889
33890 2009-11-25  Jim Meyering  <meyering@redhat.com>
33891
33892         tests/init.sh: new file to be used via most *.sh tests
33893         * tests/init.sh: New file.
33894
33895 2009-11-25  Eric Blake  <ebb9@byu.net>
33896
33897         utimens: work around older Linux failure with symlinks
33898         * lib/utimens.c (lutimensat_works_really): New variable.
33899         (fdutimens, lutimens): Use it to manage kernels that support
33900         nanosecond times on files, but not on symlinks.
33901         Reported by OndÅ™ej Vašík.
33902
33903         utimes: fix configure grammar
33904         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
33905
33906 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
33907
33908         regex: Fix fastmap for multibyte character ranges.
33909         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
33910         characters when a multibyte character range is included.
33911
33912 2009-11-22  Andy Wingo  <wingo@pobox.com>
33913
33914         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
33915         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
33916
33917 2009-11-24  Bruno Haible  <bruno@clisp.org>
33918
33919         doc: Most *_l functions exist in MacOS X 10.5.
33920         * doc/posix-functions/duplocale.texi: Update platforms list.
33921         * doc/posix-functions/freelocale.texi: Likewise.
33922         * doc/posix-functions/newlocale.texi: Likewise.
33923         * doc/posix-functions/uselocale.texi: Likewise.
33924         * doc/posix-functions/isalnum_l.texi: Likewise.
33925         * doc/posix-functions/isalpha_l.texi: Likewise.
33926         * doc/posix-functions/isblank_l.texi: Likewise.
33927         * doc/posix-functions/iscntrl_l.texi: Likewise.
33928         * doc/posix-functions/isdigit_l.texi: Likewise.
33929         * doc/posix-functions/isgraph_l.texi: Likewise.
33930         * doc/posix-functions/islower_l.texi: Likewise.
33931         * doc/posix-functions/isprint_l.texi: Likewise.
33932         * doc/posix-functions/ispunct_l.texi: Likewise.
33933         * doc/posix-functions/isspace_l.texi: Likewise.
33934         * doc/posix-functions/isupper_l.texi: Likewise.
33935         * doc/posix-functions/iswalnum_l.texi: Likewise.
33936         * doc/posix-functions/iswalpha_l.texi: Likewise.
33937         * doc/posix-functions/iswblank_l.texi: Likewise.
33938         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33939         * doc/posix-functions/iswctype_l.texi: Likewise.
33940         * doc/posix-functions/iswdigit_l.texi: Likewise.
33941         * doc/posix-functions/iswgraph_l.texi: Likewise.
33942         * doc/posix-functions/iswlower_l.texi: Likewise.
33943         * doc/posix-functions/iswprint_l.texi: Likewise.
33944         * doc/posix-functions/iswpunct_l.texi: Likewise.
33945         * doc/posix-functions/iswspace_l.texi: Likewise.
33946         * doc/posix-functions/iswupper_l.texi: Likewise.
33947         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33948         * doc/posix-functions/isxdigit_l.texi: Likewise.
33949         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
33950         * doc/posix-functions/strcasecmp_l.texi: Likewise.
33951         * doc/posix-functions/strcoll_l.texi: Likewise.
33952         * doc/posix-functions/strfmon_l.texi: Likewise.
33953         * doc/posix-functions/strftime_l.texi: Likewise.
33954         * doc/posix-functions/strncasecmp_l.texi: Likewise.
33955         * doc/posix-functions/strxfrm_l.texi: Likewise.
33956         * doc/posix-functions/tolower_l.texi: Likewise.
33957         * doc/posix-functions/toupper_l.texi: Likewise.
33958         * doc/posix-functions/towctrans_l.texi: Likewise.
33959         * doc/posix-functions/towlower_l.texi: Likewise.
33960         * doc/posix-functions/towupper_l.texi: Likewise.
33961         * doc/posix-functions/wcscoll_l.texi: Likewise.
33962         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33963         * doc/posix-functions/wctrans_l.texi: Likewise.
33964         * doc/posix-functions/wctype_l.texi: Likewise.
33965         * doc/glibc-functions/strptime_l.texi: Likewise.
33966         * doc/glibc-functions/strtod_l.texi: Likewise.
33967         * doc/glibc-functions/strtof_l.texi: Likewise.
33968         * doc/glibc-functions/strtol_l.texi: Likewise.
33969         * doc/glibc-functions/strtold_l.texi: Likewise.
33970         * doc/glibc-functions/strtoll_l.texi: Likewise.
33971         * doc/glibc-functions/strtoul_l.texi: Likewise.
33972         * doc/glibc-functions/strtoull_l.texi: Likewise.
33973         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33974         * doc/glibc-functions/wcstod_l.texi: Likewise.
33975         * doc/glibc-functions/wcstof_l.texi: Likewise.
33976         * doc/glibc-functions/wcstol_l.texi: Likewise.
33977         * doc/glibc-functions/wcstold_l.texi: Likewise.
33978         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33979         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33980         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33981
33982 2009-11-24  Bruno Haible  <bruno@clisp.org>
33983
33984         duplocale: Fix logic bug.
33985         * lib/duplocale.c: Don't include <langinfo.h>.
33986         (_NL_LOCALE_NAME): Remove macro.
33987         (rpl_duplocale): Use setlocale instead of nl_langinfo.
33988         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
33989
33990 2009-11-23  Jim Meyering  <meyering@redhat.com>
33991
33992         test-update-copyright: don't hard-code /usr/bin/perl
33993         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
33994         perl to print the current year.  Gilles Espinasse reported that
33995         the replaced use of perl was hard-coded as /usr/bin/perl.
33996
33997 2009-11-23  Bruno Haible  <bruno@clisp.org>
33998
33999         duplocale: Add support for glibc 2.3.x.
34000         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
34001
34002 2009-11-22  Bruno Haible  <bruno@clisp.org>
34003
34004         vasnprintf: Tiny optimization.
34005         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
34006         MacOS X.
34007
34008 2009-11-22  Bruno Haible  <bruno@clisp.org>
34009
34010         Tests for module 'duplocale'.
34011         * modules/duplocale-tests: New file.
34012         * tests/test-duplocale.c: New file.
34013
34014         New module 'duplocale'.
34015         * m4/duplocale.m4: New file.
34016         * lib/locale.in.h (duplocale): New declaration.
34017         * lib/duplocale.c: New file.
34018         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
34019         gl_LOCALE_H_DEFAULTS): New macros.
34020         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
34021         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
34022         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
34023         REPLACE_DUPLOCALE.
34024         * modules/duplocale: New file.
34025         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
34026
34027 2009-11-22  Bruno Haible  <bruno@clisp.org>
34028
34029         * modules/locale-tests (configure.ac): Test for newlocale function.
34030         * tests/test-locale.c: When the system has extended locale functions,
34031         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
34032
34033         locale: Make locale_t available when possible.
34034         * lib/locale.in.h: Include <xlocale.h> when it exists.
34035         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
34036         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
34037         * modules/locale (Depends-on): Add extensions.
34038         (Makefile.am): Also substitute HAVE_XLOCALE_H.
34039         * doc/posix-headers/locale.texi: Document the problem with locale_t.
34040
34041 2009-11-22  Bruno Haible  <bruno@clisp.org>
34042
34043         Add comments.
34044         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
34045         invocation.
34046         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
34047         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34048         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34049
34050 2009-11-22  Bruno Haible  <bruno@clisp.org>
34051
34052         error: account for the possibility of freopen (stdout).
34053         * lib/error.c: Include <unistd.h>.
34054         (flush_stdout): New function, extracted from error and error_at_line.
34055         Determine stdout's fd dynamically.
34056         (error, error_at_line): Invoke flush_stdout.
34057         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
34058         * modules/error (Depends-on): Add unistd.
34059
34060 2009-11-22  Bruno Haible  <bruno@clisp.org>
34061
34062         diffseq: Add comment.
34063         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
34064
34065 2009-11-22  Jim Meyering  <meyering@redhat.com>
34066
34067         c-stack: avoid defining an unused static function
34068         * lib/c-stack.c (find_stack_direction): Do not define this function
34069         when it will not be used.
34070
34071         diffseq: avoid spurious gcc warnings
34072         * lib/diffseq.h (IF_LINT2): Define.
34073         (compareseq): Use it to initialize two members of "part".
34074         This avoids two used-uninitialized warnings.
34075
34076 2009-11-21  Jim Meyering  <meyering@redhat.com>
34077
34078         c-stack: avoid "ignoring return value of `write'" warning
34079         * lib/c-stack.c: Include "ignore-value.h".
34080         (die): Explicitly ignore each write return value.
34081         * modules/c-stack (Depends-on): Add ignore-value.
34082
34083 2009-11-21  Bruno Haible  <bruno@clisp.org>
34084
34085         diffseq: reduce scope of variable 'best'.
34086         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
34087         variable, earlier used for two different purposes.
34088
34089 2009-11-21  Jim Meyering  <meyering@redhat.com>
34090
34091         diffseq: remove useless assignment to "best"
34092         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
34093         assignment.  At that point "best" is already guaranteed to be zero.
34094
34095 2009-11-20  Eric Blake  <ebb9@byu.net>
34096
34097         build: mention ftp redirector in release announcements
34098         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
34099         values that used to come from cfg.mk; mention FTP redirect URL.
34100         * build-aux/announce-gen: Mention the mirror list.
34101         Suggested by Karl Berry.
34102
34103         nanosleep: improve port to mingw
34104         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
34105         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
34106         LIB_NANOSLEEP, but only when needed.
34107         * modules/select (Link): Document LIBSOCKET.
34108         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
34109         enough.
34110
34111         nanosleep: work around cygwin bug
34112         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
34113         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
34114         bug.
34115         (getnow): Delete, not needed.
34116         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
34117         LIB_CLOCK_GETTIME.
34118         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
34119         clock-time, gettime.
34120         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
34121         bug.
34122         * modules/nanosleep-tests: New test.
34123         * tests/test-nanosleep.c: New file.
34124
34125         sleep: work around cygwin bug
34126         * lib/sleep.c (rpl_sleep): Work around the bug.
34127         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
34128         (gl_PREREQ_SLEEP): Delete unused macro.
34129         * modules/sleep (Depends-on): Add verify.
34130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34131         * modules/unistd (Makefile.am): Substitute witness.
34132         * lib/unistd.in.h (sleep): Update prototype.
34133         * doc/posix-functions/sleep.texi (sleep): Document the bug.
34134         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
34135         * modules/sleep-tests (Depends-on): Check for alarm.
34136
34137 2009-11-20  Jim Meyering  <meyering@redhat.com>
34138
34139         maint.mk: improve sc_prohibit_magic_number_exit
34140         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
34141         so it does not match uses like System.exit(1).
34142         Add comments showing how to correct all offenders.
34143
34144 2009-11-19  Eric Blake  <ebb9@byu.net>
34145
34146         xalloc-die-tests: add missing library
34147         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
34148
34149         test-xvasprintf: silence compiler warnings
34150         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
34151         empty string from gcc.
34152
34153 2009-11-19  Jim Meyering  <meyering@redhat.com>
34154
34155         xfreopen: new module, from coreutils
34156         * modules/xfreopen: New module.
34157         * lib/xfreopen.c: New file.
34158         * lib/xfreopen.h: New file.
34159         * MODULES.html.sh (File stream based Input/Output"): Add it.
34160
34161 2009-11-19  Eric Blake  <ebb9@byu.net>
34162
34163         manywarnings: depend on warnings
34164         * modules/manywarnings (Depends-on): Add warnings.
34165
34166         build: avoid compiler warnings
34167         * lib/select.c (rpl_select): Delete unused variable.
34168         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
34169
34170 2009-11-18  Eric Blake  <ebb9@byu.net>
34171
34172         tests: avoid false negative with --with-packager
34173         * tests/test-version-etc.sh: Discard packager information.
34174         * tests/test-argp-version-etc-1.sh: Likewise.
34175         Reported by Mike Frysinger.
34176
34177         utimens: fix regression on Solaris
34178         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
34179         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
34180         can only change fd timestamps via futimesat.  Instead, use an
34181         additional witness macro to avoid BSD bug.
34182         Reported by Jim Meyering.
34183
34184 2009-11-17  Eric Blake  <ebb9@byu.net>
34185
34186         usleep: use it to simplify tests
34187         * modules/stat-time-tests (Depends-on): Add usleep.
34188         (configure.ac): Drop usleep check.
34189         * modules/chown-tests (Depends-on, configure.ac): Likewise.
34190         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
34191         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
34192         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
34193         * modules/openat-tests (Depends-on, configure.ac): Likewise.
34194         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
34195         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
34196         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
34197         Likewise.
34198         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
34199         * tests/test-lchown.h (nap): Likewise.
34200         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
34201         * tests/test-stat-time.c (nap): Likewise.
34202         * tests/test-utimens-common.h (nap): Update comments.
34203
34204         usleep: new module
34205         * modules/usleep: New file.
34206         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
34207         * lib/usleep.c (usleep): Likewise.
34208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34209         * modules/unistd (Makefile.am): Substitute witnesses.
34210         * lib/unistd.in.h (usleep): Add declaration.
34211         * doc/pastposix-functions/usleep.texi (usleep): Document this.
34212         * MODULES.html.sh (Date and time): Likewise.
34213         * modules/usleep-tests (Depends-on): New test.
34214         * tests/test-usleep.c: New file.
34215
34216         chown: work around OpenBSD bug
34217         * lib/chown.c (rpl_chown): Work around the bug.
34218         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
34219         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
34220         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
34221         * modules/chown (Depends-on): Add stdbool.
34222         * modules/lchown (Depends-on): Likewise.
34223         * doc/posix-functions/chown.texi (chown): Document the bug.
34224         * doc/posix-functions/lchown.texi (lchown): Likewise.
34225         * tests/test-lchown.h (test_chown): Relax test.
34226
34227         mkstemp: avoid conflict with C++ keyword template
34228         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
34229         * lib/mkostemp.c (mkostemp): Likewise.
34230         * lib/mkostemps.c (mkostemps): Likewise.
34231         * lib/mkstemp.c (mkstemp): Likewise.
34232         * lib/mkstemps.c (mkstemps): Likewise.
34233
34234         xalloc-die-tests: optimize
34235         * tests/test-xalloc-die.sh: Reduce number of processes.
34236
34237 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34238
34239         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
34240         patch from ludo@gnu.org (Ludovic Courtès).
34241
34242 2009-11-17  Jim Meyering  <meyering@redhat.com>
34243
34244         version-etc: use proper license string
34245         * modules/version-etc (License): Use LGPL, not LGPLv3+.
34246         * modules/version-etc-fsf: Likewise.
34247
34248 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34249
34250         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
34251         printed to stdout.  Deal with EOL differences.
34252
34253 2009-11-17  Eric Blake  <ebb9@byu.net>
34254
34255         unsetenv: work around Solaris bug
34256         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
34257         * lib/unsetenv.c (rpl_unsetenv): Work around it.
34258         Reported by Jim Meyering.
34259
34260         vasnprintf: avoid compiler warnings
34261         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
34262         variables.
34263         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
34264
34265 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34266
34267         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
34268         settings since xalloc-die is no longer the self test,
34269         xalloc-die.sh is.
34270
34271 2009-11-17  Jim Meyering  <meyering@redhat.com>
34272
34273         test-xalloc-die.sh: make the code agree with the commit log
34274         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
34275         at the end, just in case you happen to have a test-xalloc-die
34276         program in some other PATH directory.
34277
34278         test-xalloc-die.sh: fix a portability bug
34279         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
34280         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
34281         Otherwise, argv[0] (as often seen in diagnostics) would be too
34282         system-dependent, sometimes with, and sometimes without the leading "./".
34283
34284         version-etc-fsf: relax license to LGPLv3+
34285         * modules/version-etc-fsf (License): Relax license.
34286
34287 2009-11-16  Eric Blake  <ebb9@byu.net>
34288
34289         xalloc-die-tests: avoid printing null pointer
34290         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
34291         shell script.
34292         * tests/test-xalloc-die.c (program_name): Declare.
34293         * tests/test-xalloc-die.sh (tmpfiles): New file.
34294
34295         setenv, unsetenv: work around various bugs
34296         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
34297         (setenv) [HAVE_SETENV]: Work around bugs.
34298         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
34299         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
34300         for bugs.
34301         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
34302         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
34303         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
34304         * modules/stdlib (Makefile.am): Update substitutions.
34305         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
34306         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
34307         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34308         * modules/setenv-tests: New test.
34309         * modules/unsetenv-tests: Likewise.
34310         * tests/test-setenv.c: New file.
34311         * tests/test-unsetenv.c: Likewise.
34312
34313 2009-11-16  Jim Meyering  <meyering@redhat.com>
34314
34315         version-etc: relax license to LGPLv3+
34316         * modules/version-etc (License): Relax license.
34317
34318         better AC_REQUIRE expanded-before-required-warning avoidance
34319         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
34320         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
34321         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
34322         which is no longer needed.
34323
34324 2009-11-16  Eric Blake  <ebb9@byu.net>
34325
34326         test-freading: clean up temporary file
34327         * tests/test-freading.c (main): Remove file on success, and use
34328         ASSERT more liberally.
34329         Reported by Jim Meyering.
34330
34331 2009-11-16  Jim Meyering  <meyering@redhat.com>
34332
34333         avoid new AC_REQUIRE expanded-before-required warnings
34334         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
34335         merely using it.
34336         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
34337         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
34338
34339 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34340
34341         * tests/test-xalloc-die.c: New file.
34342         * modules/xalloc-die-tests: New file.
34343         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
34344         XFAIL_TESTS so it can be appended by modules.
34345
34346 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34347
34348         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
34349         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
34350
34351 2009-11-14  Eric Blake  <ebb9@byu.net>
34352
34353         fnmatch: avoid compiler warning
34354         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
34355         to silence compiler warning about mismatch signedness in ?:.
34356         Reported by Robert Millan.
34357
34358         intprops: add double-inclusion guard
34359         * lib/intprops.h: Allow idempotent includes.
34360         Suggested by Bruce Korb.
34361
34362         openat: detect Solaris fchownat bug
34363         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
34364         penalizing glibc chownat when only lchownat is broken.
34365         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
34366         trailing slash bugs.
34367         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
34368         * modules/openat-tests (Files): Include more files.
34369         (Depends-on): Add mgetgroups, sleep, stat-time.
34370         (configure.ac): Add additional checks.
34371         (Makefile.am): Build new test.
34372         * tests/test-fchownat.c: New file.
34373
34374         lchown: detect Solaris and FreeBSD bug
34375         * lib/lchown.c (rpl_lchown): Work around bug.
34376         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
34377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34378         * modules/unistd (Makefile.am): Populate it.
34379         * lib/unistd.in.h (lchown): Update declaration.
34380         * doc/posix-functions/lchown.texi (lchown): Document the bug.
34381         * modules/lchown-tests: New file.
34382         * tests/test-lchown.h (test_lchown): Likewise.
34383         * tests/test-lchown.c (main): Likewise.
34384
34385         chown: detect Solaris and FreeBSD bug
34386         * lib/chown.c (rpl_chown): Work around bug.
34387         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
34388         (gl_PREREQ_CHOWN): Delete.
34389         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34390         * modules/unistd (Makefile.am): Populate it.
34391         * lib/unistd.in.h (chown): Update declaration.
34392         * lib/lchown.c (chown): Update client.
34393         * modules/lchown (Depends-on): Add lstat.
34394         * doc/posix-functions/chown.texi (chown): Document the bug.
34395         * doc/posix-functions/getgroups.texi (getgroups): Document
34396         getgroups pitfall.
34397         * modules/chown-tests: New file.
34398         * tests/test-chown.h (test_chown): Likewise.
34399         * tests/test-chown.c (main): Likewise.
34400
34401 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
34402
34403         gnulib-tool: correctly detect absence of m4 directories
34404         * gnulib-tool: Avoid extra newline on data passed to wc -l.
34405
34406 2009-11-14  Jim Meyering  <meyering@redhat.com>
34407
34408         maint.mk: Prohibit inclusion of "xalloc.h" without use.
34409         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34410
34411 2009-11-14  John W. Eaton  <jwe@gnu.org>
34412
34413         strftime.h: wrap funtion declaration in extern "C" block
34414         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
34415
34416 2009-11-13  Eric Blake  <ebb9@byu.net>
34417
34418         getgroups: avoid compiler warning
34419         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
34420
34421         getgroups: work around FreeBSD bug
34422         * lib/getgroups.c (rpl_getgroups): Work around the bug.
34423         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
34424         * doc/posix-functions/getgroups.texi (getgroups): Document it.
34425         * tests/test-getgroups.c (main): Fix buffer overrun.
34426
34427         getgroups: avoid compilation failure
34428         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
34429         * modules/getgroups (Depends-on): Add stdint.
34430
34431 2009-11-13  Jim Meyering  <meyering@redhat.com>
34432
34433         test-getgroups: avoid compilation failure
34434         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
34435
34436 2009-11-13  Eric Blake  <ebb9@byu.net>
34437
34438         mgetgroups: new module, taken from coreutils
34439         * modules/mgetgroups: New file.
34440         * lib/mgetgroups.h: Likewise.
34441         * lib/mgetgroups.c (mgetgroups): Likewise.
34442         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
34443         * MODULES.html.sh (Users and groups): Mention it.
34444
34445         getgroups: don't expose GETGROUPS_T to user
34446         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
34447         an element at a time if GETGROUPS_T is wrong size.
34448         * lib/getugroups.h (getugroups): Change signature.
34449         * lib/unistd.in.h (getgroups): Likewise.
34450         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
34451         signature needs fixing.
34452         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
34453         AC_TYPE_GETGROUPS.
34454         * modules/group-member (Depends-on): Add getgroups.
34455         * lib/group-member.c (group_info, get_group_info): Use gid_t.
34456         (group_member): Rely on getgroups replacement.
34457         * lib/getugroups.c (getugroups): Use gid_t.
34458         * tests/test-getgroups.c (main): Likewise.
34459         * NEWS: Mention the signature change.
34460         * doc/posix-functions/getgroups.texi (getgroups): Mention the
34461         problem with signature.
34462         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
34463         GETGROUPS_T is still useful for setgroups.
34464
34465         getgroups, getugroups: provide stubs for mingw
34466         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
34467         * lib/getugroups.c (getugroups): Likewise.
34468         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
34469         function.  Modernize replacement scheme.
34470         (gl_PREREQ_GETGROUPS): Delete.
34471         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
34472         * modules/getgroups (configure.ac): Declare witness.
34473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34474         * modules/unistd (Depends-on): Substitute witness.
34475         * lib/unistd.in.h (getgroups): Declare replacement.
34476
34477         getgroups: avoid calling exit
34478         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
34479         drop xalloc.
34480         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
34481         dependencies.
34482         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
34483         exiting, in the rare case of malloc failure.
34484
34485         getgroups: fix logic error
34486         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
34487         has more than 20 groups.
34488         * modules/getgroups-tests: New test.
34489         * tests/test-getgroups.c: New file.
34490
34491 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34492
34493         * tests/test-base64.c: Improve.
34494
34495 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34496
34497         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
34498         Blake <ebb9@byu.net>.
34499
34500 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34501
34502         * tests/test-xvasprintf.c: Add %s%s related checks.
34503
34504 2009-11-12  Eric Blake  <ebb9@byu.net>
34505
34506         version-etc: match standards.texi style
34507         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
34508         and use <> only for URLs.
34509
34510 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
34511
34512         fts: do not fail on a submount during traversal
34513         * lib/fts.c (fts_build): Read the stat info again after opening
34514         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
34515         Original report at http://bugzilla.redhat.com/501848.
34516
34517 2009-11-12  Jim Meyering  <meyering@redhat.com>
34518
34519         bootstrap: sync from coreutils
34520         * build-aux/bootstrap (bootstrap_epilogue): New function.
34521         Use git_modules_config in one more place.  This make bootstrap's
34522         --gnulib-srcdir option more useful for testing.
34523
34524         bootstrap: generalize autoheader check
34525         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
34526         AC_CONFIG_HEADERS.
34527
34528 2009-11-11  Eric Blake  <ebb9@byu.net>
34529
34530         mkfifoat: use new modules for Solaris and BSD bugs
34531         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
34532         * lib/mkfifoat.c (mknodat): Split...
34533         * lib/mknodat.c (mknodat): ...into new file.
34534         * modules/mkfifoat (Files): Ship new file.
34535         (Depends-on): Add mkfifo, mknod.
34536         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
34537         (Depends-on): Add symlink.
34538         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
34539         redundant with test_mkfifo.h.
34540         (do_mkfifoat, do_mknodat): New helpers.
34541
34542         mknod: new module
34543         * modules/mknod: New file.
34544         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
34545         * lib/mknod.c (mknod): Likewise.
34546         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34547         defaults.
34548         * modules/sys_stat (Makefile.am): Substitute them.
34549         * lib/sys_stat.in.h (mknod): Declare replacement.
34550         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34551         Document it.
34552         * doc/posix-functions/mknod.texi (mknod): Likewise.
34553         * modules/mknod-tests: New test.
34554         * tests/test-mknod.c: Likewise.
34555
34556         mkfifo: new module
34557         * modules/mkfifo: New file.
34558         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
34559         * lib/mkfifo.c (mkfifo): Likewise.
34560         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34561         defaults.
34562         * modules/sys_stat (Makefile.am): Substitute them.
34563         * lib/sys_stat.in.h (mkfifo): Declare replacement.
34564         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34565         Document it.
34566         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
34567         * modules/mkfifo-tests: New test.
34568         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
34569         from test-mkfifoat.c.
34570         * tests/test-mkfifo.c: New file.
34571
34572         readlink: detect FreeBSD bug
34573         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
34574         slash on symlink.
34575         * doc/posix-functions/readlink.texi (readlink): Document the bug.
34576         * tests/test-readlink.h (test_readlink): Enhance test.
34577
34578         symlink: detect FreeBSD bug
34579         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
34580         slash on symlink.
34581         * doc/posix-functions/symlink.texi (symlink): Document the bug.
34582         * tests/test-symlink.h (test_symlink): Enhance test.
34583
34584 2009-11-10  Eric Blake  <ebb9@byu.net>
34585
34586         link: detect FreeBSD bug
34587         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
34588         symlink.
34589         * doc/posix-functions/link.texi (link): Document the bug.
34590         * tests/test-link.h (test_link): Enhance test.
34591         * tests/test-linkat.c (main): Update caller.
34592
34593         unlink, remove: detect FreeBSD bug
34594         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
34595         slash on symlink.
34596         * doc/posix-functions/unlink.texi (unlink): Document the bug.
34597         * doc/posix-functions/remove.texi (remove): Likewise.
34598         * tests/test-unlink.h (test_unlink): Enhance test.
34599         * tests/test-remove.c (main): Likewise.
34600
34601 2009-11-09  Eric Blake  <ebb9@byu.net>
34602
34603         rename: detect FreeBSD bug
34604         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
34605         slash on symlink.
34606         * modules/renameat-tests (Depends-on): Add filenamecat.
34607         * tests/test-rename.h (test_rename): Allow one more errno.
34608         * tests/test-renameat.c (main): Likewise.
34609         * doc/posix-functions/rename.texi (rename): Document the bug.
34610
34611         open: detect FreeBSD bug
34612         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
34613         symlink.
34614         * doc/posix-functions/open.texi (open): Document the bug.
34615         * doc/posix-functions/utimes.texi (utimes): Likewise.
34616         * tests/test-open.h (test_open): Add parameters, and test symlink
34617         handling.
34618         * tests/test-open.c (main): Adjust caller.
34619         * tests/test-fcntl-safer.c (main): Likewise.
34620         * modules/open-tests (Depends-on): Add stdbool, symlink.
34621         * modules/fcntl-safer-tests (Depends-on): Likewise.
34622         * tests/test-openat.c (main): Add test-open tests.
34623
34624         stat: detect FreeBSD bug
34625         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
34626         symlink.
34627         * doc/posix-functions/stat.texi (stat): Document the bug.
34628         * tests/test-stat.h (test_stat_func): Add argument.
34629         * tests/test-stat.c (main): Adjust caller.
34630         * tests/test-fstatat.c (main): Likewise.
34631         * modules/stat-tests (Depends-on): Add stdbool, symlink.
34632         Reported by Jim Meyering.
34633
34634 2009-11-09  James Youngman  <jay@gnu.org>
34635
34636         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
34637         * lib/strftime.c: Correct placement of #include "ignore-value.h".
34638
34639 2009-11-08  Jim Meyering  <meyering@redhat.com>
34640
34641         utimens: remove invalid futimesat call
34642         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
34643         It used the file descriptor of the target file as the DIR_FD
34644         parameter and NULL as the file name.  That caused failure with
34645         errno == EFAULT on FreeBSD-8.0-rc2
34646
34647 2009-11-07  Eric Blake  <ebb9@byu.net>
34648
34649         fflush, freadseek: use fseeko, not fseek
34650         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
34651         (clear_ungetc_buffer): Avoid potential problems on large files.
34652         * lib/freadseek.c (freadseek): Likewise.
34653         * modules/freadseek (Depends-on): Add fseeko.
34654         * modules/fseek (configure.ac): Set a witness.
34655         * tests/test-fflush.c (main): Use fseeko.
34656         * tests/test-fpurge.c (fseek): Disable link warning.
34657         * tests/test-freadable.c (fseek): Likewise.
34658         * tests/test-freading.c (fseek): Likewise.
34659         * tests/test-fseeko.c (fseek): Likewise.
34660         * tests/test-ftell.c (fseek): Likewise.
34661         * tests/test-ftello.c (fseek): Likewise.
34662         * tests/test-fwritable.c (fseek): Likewise.
34663         * tests/test-fwriting.c (fseek): Likewise.
34664
34665 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34666
34667         * modules/memchr (Depends-on): Drop getpagesize dependency.
34668
34669 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34670
34671         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
34672         Reported by Ludovic Courtès.
34673         * build-aux/pmccabe2html: Improve example usage.
34674         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
34675
34676 2009-11-06  Jim Meyering  <meyering@redhat.com>
34677
34678         do-release-commit-and-tag: New module.
34679         Automate the release-commit and tag process.
34680         * build-aux/do-release-commit-and-tag: New script, from coreutils.
34681         * modules/do-release-commit-and-tag: New file.
34682         * MODULES.html.sh (Support for maintaining and releasing): Add it.
34683
34684 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34685
34686         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
34687         because test-select.c uses inet_pton.
34688
34689 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34690
34691         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
34692         GETADDRINFO_LIB.  Bump serial number.
34693         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
34694         Suggested by Eric Blake <ebb9@byu.net>.
34695
34696 2009-11-05  Eric Blake  <ebb9@byu.net>
34697
34698         strtod: detect darwin bug
34699         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
34700         Reported by Leo Davis.
34701
34702         freopen-safer: new module
34703         * modules/freopen-safer: New module.
34704         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
34705         * lib/freopen-safer.c (freopen_safer): New file.
34706         * lib/stdio-safer.h (freopen_safer): New declaration.
34707         * lib/stdio--.h (freopen): New override.
34708         * MODULES.html.sh (File stream based Input/Output): Mention it.
34709         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
34710         freopen-safer module.
34711         * doc/posix-functions/stderr.texi (stderr): Likewise.
34712         * doc/posix-functions/stdin.texi (stdin): Likewise.
34713         * doc/posix-functions/stdout.texi (stdout): Likewise.
34714         * modules/freopen-safer-tests: New test.
34715         * tests/test-reopen-safer.c: New file.
34716
34717 2009-11-05  Jim Meyering  <meyering@redhat.com>
34718
34719         maint.mk: Prohibit inclusion of "close-stream.h" without use.
34720         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34721
34722 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34723
34724         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
34725
34726 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34727
34728         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
34729
34730 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34731
34732         Fix link error.
34733         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34734         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34735
34736 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34737
34738         * tests/test-func.c: Also test value of __func__.
34739
34740 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34741
34742         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
34743         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
34744
34745 2009-11-05  Bruno Haible  <bruno@clisp.org>
34746
34747         Fix link error.
34748         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34749         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34750         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
34751
34752 2009-11-05  Bruno Haible  <bruno@clisp.org>
34753
34754         Tests for module 'inet_pton'.
34755         * modules/inet_pton-tests: New file.
34756         * tests/test-inet_pton.c: New file.
34757
34758 2009-11-05  Bruno Haible  <bruno@clisp.org>
34759
34760         Tests for module 'inet_ntop'.
34761         * modules/inet_ntop-tests: New file.
34762         * tests/test-inet_ntop.c: New file.
34763
34764 2009-11-04  Eric Blake  <ebb9@byu.net>
34765
34766         stdlib-safer: wrap all mkstemp variants
34767         * modules/mkostemp (configure.ac): Set witness.
34768         * modules/mkostemps (configure.ac): Likewise.
34769         * modules/mkstemps (configure.ac): Likewise.
34770         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
34771         (mkstemps_safer): Wrap more functions.
34772         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
34773         wrapping.
34774         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
34775         (mkstemps_safer): Implement the wrappers.
34776
34777         mkstemps, mkostemps: new modules
34778         * modules/mkostemps: New module.
34779         * modules/mkstemps: Likewise.
34780         * lib/mkostemps.c (mkostemps): New file.
34781         * lib/mkstemps.c (mkstemps): Likewise.
34782         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
34783         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
34784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
34785         * modules/stdlib (Makefile.am): Substitute them.
34786         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
34787         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
34788         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
34789         * doc/gnulib.texi (Glibc stdlib.h): Include them.
34790         * MODULES.html.sh (File system functions): Mention them.
34791
34792         tempname: resync from glibc
34793         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
34794         same values for __GT_FILE as glibc.  Abort even when assertions
34795         are disabled.
34796         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
34797         match its value otherwise.  Allow idempotent inclusion.
34798         * lib/mkdtemp.c (mkdtemp): Adjust caller.
34799         * lib/mkostemp.c (mkostemp): Likewise.
34800         * lib/mkstemp.c (mkstemp): Likewise.
34801         * lib/tmpfile.c (tmpfile): Likewise.
34802         * NEWS: Document this.
34803
34804         utimens: fix use of futimens on older Linux
34805         * lib/utimens.c (fdutimens): Use updated, rather than original,
34806         timespec to avoid bug in older Linux kernel.
34807         Reported by Simon Josefsson.
34808
34809 2009-11-04  Bruno Haible  <bruno@clisp.org>
34810
34811         Make num_processors more flexible and consistent.
34812         * lib/nproc.h (enum nproc_query): New type.
34813         (num_processors): Add a 'query' argument.
34814         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
34815         (num_processors): Add a 'query' argument. Test the value of the
34816         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
34817         mingw, count the number of CPUs available for the current process.
34818         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
34819         Check for sched_getaffinity and sched_getaffinity_np.
34820         * modules/nproc (Depends-on): Add c-ctype, extensions.
34821         * NEWS: Mention the change.
34822
34823 2009-11-03  Bruno Haible  <bruno@clisp.org>
34824
34825         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
34826
34827 2009-11-03  Jim Meyering  <meyering@redhat.com>
34828
34829         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
34830         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
34831         if it is defined.
34832
34833 2009-11-02  Eric Blake  <ebb9@byu.net>
34834
34835         mktime, timegm: share common declaration
34836         * lib/mktime-internal.h: New file.
34837         * lib/mktime.c: Use it rather than open-coding a declaration.
34838         * lib/timegm.c: Likewise.
34839         * modules/mktime (Files): Ship it.
34840         * modules/timegm (Files): Likewise.
34841         Suggested by Bruno Haible.
34842
34843         test-update-copyright: update test to match script changes
34844         * tests/test-update-copyright.sh: Avoid hard-coding perl
34845         location.  Don't update *.bak created by earlier runs.
34846
34847 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34848             Simon Josefsson  <simon@josefsson.org>
34849             Bruno Haible  <bruno@clisp.org>
34850
34851         Fix link error on Solaris 8.
34852         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
34853         also in libnsl. Define also INET_PTON_LIB.
34854         * modules/inet_pton (Link): New section.
34855
34856 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34857             Bruno Haible  <bruno@clisp.org>
34858
34859         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
34860         * modules/inet_ntop (Link): New section.
34861         Reported by Boyan Kasarov <bkasarov@gmail.com>.
34862
34863 2009-11-02  Eric Blake  <ebb9@byu.net>
34864
34865         maint: avoid compiler warnings in m4 macros
34866         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
34867         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
34868
34869 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34870
34871         * m4/pmccabe2html.m4: Remove file.
34872         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
34873         function.  Change maintainer.
34874         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
34875         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
34876         Courtès).
34877
34878 2009-10-31  Eric Blake  <ebb9@byu.net>
34879
34880         fseeko: fix m4 regression
34881         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
34882         regression from 2009-10-27.
34883         Reported by Ralf Wildenhues.
34884
34885 2009-10-31  Jim Meyering  <meyering@redhat.com>
34886
34887         inttostr: aesthetics and improved (compile-time) safety
34888         Define inttype_is_signed rather than inttype_is_unsigned,
34889         since the sole use is via "#if inttype_is_signed".
34890         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
34891         inttype_is_unsigned.
34892         * lib/offtostr.c (inttype_is_signed): Likewise.
34893         * lib/uinttostr.c (inttype_is_signed): Likewise.
34894         * lib/umaxtostr.c (inttype_is_signed): Likewise.
34895         * lib/inttostr.c (inttostr): Use verify to cross-check the
34896         inttype_is_signed value and the signedness of the actual type.
34897         * modules/inttostr (Depends-on): Add verify.
34898
34899 2009-10-30  Eric Blake  <ebb9@byu.net>
34900
34901         build: avoid compiler warnings
34902         * lib/fchmodat.c (lchmod): Mark unused variables.
34903         * lib/getopt.c (_getopt_initialize): Likewise.
34904         * lib/mktime.c (__mktime_internal): Provide prototype.
34905         * lib/inttostr.c (inttostr): Avoid compiler warning even with
34906         older gcc that do not understand #pragma GCC diagnostic.
34907         * lib/uinttostr.c (inttype_is_unsigned): Define.
34908         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
34909
34910 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34911
34912         stat: fix compilation on AIX
34913         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
34914         only see struct stat64.
34915
34916 2009-10-30  Eric Blake  <ebb9@byu.net>
34917
34918         exclude: make more robust
34919         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
34920         rather than masking a coding bug.
34921         Suggested by Bruno Haible.
34922
34923 2009-10-30  Jim Meyering  <meyering@redhat.com>
34924
34925         perl scripts: remove #!/usr/bin/perl in favor of more portable...
34926         Rather than putting #!/usr/bin/perl on the first line,
34927         start with a variant of what's recommended by "man perlrun" that
34928         invokes the first "perl" program from your shell's search path.
34929         * build-aux/gitlog-to-changelog: Replace #!... as above.
34930         Add a "Local Variables" perl mode setting.
34931         Prompted by a patch from Ludovic Courtès.
34932         Improved by Eric Blake.
34933         * build-aux/useless-if-before-free: Likewise.
34934         * build-aux/announce-gen: Likewise.
34935         * build-aux/update-copyright: Likewise.
34936
34937 2009-10-29  Eric Blake  <ebb9@byu.net>
34938
34939         filenamecat-lgpl: adjust clients
34940         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
34941         filenamecat.
34942         * modules/renameat (Depends-on): Likewise.
34943
34944         filenamecat: split into filenamecat-lgpl
34945         * modules/filenamecat-lgpl: New module.
34946         * modules/filenamecat (Files): Move library-safe files into
34947         filenamecat-lgpl.
34948         (Depends-on): Add filenamecat-lgpl.
34949         (configure.ac): Declare witness.
34950         * lib/filenamecat.h (file_name_concat): Only declare when using
34951         GPL module.
34952         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
34953         Move...
34954         * lib/filenamecat-lgpl.c: ...into new file.
34955         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
34956         (gl_FILE_NAME_CONCAT): Use it.
34957         * MODULES.html.sh (File system functions): Mention new module.
34958
34959         argp: avoid memory leak
34960         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
34961         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
34962         base_name, since the latter malloc()s and can call exit().
34963         Leak introduced 2006-07-03.
34964
34965         dirname-lgpl: adjust clients that don't need full dirname
34966         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
34967         * modules/filenamecat (Depends-on): Likewise.
34968         * modules/linkat (Depends-on): Likewise.
34969         * modules/mkancesdirs (Depends-on): Likewise.
34970         * modules/mkdir (Depends-on): Likewise.
34971         * modules/openat (Depends-on): Likewise.
34972         * modules/savewd (Depends-on): Likewise.
34973         * modules/rename (Depends-on): Likewise.
34974         (License): Relax license.
34975         * modules/mkdir-tests (Depends-on): Drop progname.
34976         (Makefile.am): Delete unneeded LDADD.
34977         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
34978
34979         dirname: split into dirname-lgpl
34980         * modules/dirname-lgpl: New module.
34981         * modules/dirname (Files): Move library-safe files into
34982         dirname-lgpl.
34983         (Depends-on): Add dirname-lgpl.
34984         (configure.ac): Declare witness.
34985         * modules/double-slash-root (License): Relax license.
34986         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
34987         module.
34988         * lib/dirname.c (dir_len, mdir_name): Move...
34989         * lib/dirname-lgpl.c: ...into new file.
34990         * lib/basename.c (last_component, base_len): Move...
34991         * lib/basename-lgpl.c: ...into new file.
34992         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
34993         (gl_DIRNAME): Use it.
34994         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
34995         Mention new module.
34996         * modules/dirname-tests (Depends-on): Add progname.
34997         * tests/test-dirname.c (program_name): Delete.
34998
34999         mkdir: make safe for libraries
35000         * modules/mkdir (Depends-on): Drop xalloc.
35001         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
35002         exit.
35003
35004         tests: avoid some compiler warnings
35005         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
35006         literals.
35007         * tests/test-memchr.c (main): Avoid type mismatch.
35008         * tests/test-arpa_inet.c (main): Avoid unused parameters.
35009         * tests/test-base64.c (main): Likewise.
35010         * tests/test-getdelim.c (main): Likewise.
35011         * tests/test-gethostname.c (main): Likewise.
35012         * tests/test-getline.c (main): Likewise.
35013         * tests/test-netinet_in.c (main): Likewise.
35014         * tests/test-select.c (open_server_socket, main): Likewise.
35015         * tests/test-select-stdin.c (main): Likewise.
35016         * tests/test-sockets.c (main): Likewise.
35017         * tests/test-strsignal.c (main): Likewise.
35018         * tests/test-sys_select.c (main): Likewise.
35019         * tests/test-sys_socket.c (main): Likewise.
35020         * tests/test-u64.c (main): Likewise.
35021         * tests/test-xfprintf-posix.c (main): Likewise.
35022         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
35023
35024         sockets: avoid compiler warning
35025         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
35026
35027         maint: detect usage(1) and other suspicious exits
35028         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
35029
35030 2009-10-29  Jim Meyering  <meyering@redhat.com>
35031
35032         timespec: long-to-int truncation could make timespec_cmp malfunction
35033         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
35034         a multiple of 2^32 nanoseconds as no difference.
35035
35036 2009-10-28  Jim Meyering  <meyering@redhat.com>
35037
35038         fprintftime: wrap macro code argument in "do {...} while(0)"
35039         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
35040         cpy macro must be a statement that can be followed by a semicolon.
35041         Now that the else clause contains a comment and is hence longer
35042         than one line, I require curly braces.  That in turn requires
35043         that we wrap this code block in the standard do...while(0).
35044
35045         fprintftime: remove stray semicolon from previous change
35046         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
35047
35048         fprintftime: avoid a warning about ignored fwrite return value
35049         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
35050         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
35051         that is unsafe.
35052         * modules/fprintftime (Depends-on): Add ignore-value.
35053
35054         exclude: avoid an unwarranted warning
35055         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
35056
35057 2009-10-27  Eric Blake  <ebb9@byu.net>
35058
35059         fseek: avoid compilation failure when fflush is replaced
35060         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
35061         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
35062         module is in use.
35063         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
35064         module is not in use; since REPLACE_FSEEK worked otherwise.
35065         (GNULIB_FTELLO): Likewise for ftell.
35066         Reported by Ian Beckwith and others.
35067
35068 2009-10-27  Bruno Haible  <bruno@clisp.org>
35069
35070         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
35071         Reported by Jim Meyering.
35072
35073 2009-10-27  Jim Meyering  <jim@meyering.net>
35074             Bruno Haible  <bruno@clisp.org>
35075
35076         Avoid warning despite dropping the return value of fwrite.
35077         * lib/unicodeio.c: Include ignore-value.h.
35078         (fwrite_success_callback): Explicitly ignore fwrite's return value.
35079         * modules/unicodeio (Depends-on): Add ignore-value.
35080
35081 2009-10-26  Eric Blake  <ebb9@byu.net>
35082
35083         areadlinkat: fix fallback path
35084         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
35085         pointer and zero.
35086
35087 2009-10-22  Pádraig Brady  <P@draigBrady.com>
35088
35089         Use a better IO block size for modern systems
35090         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
35091         * lib/md2.c: Likewise.
35092         * lib/md4.c: Likewise.
35093         * lib/md5.c: Likewise.
35094         * lib/sha1.c: Likewise.
35095         * lib/sha256.c: Likewise.
35096         * lib/sha512.c: Likewise.
35097
35098 2009-10-22  Eric Blake  <ebb9@byu.net>
35099
35100         tests: avoid several compiler warnings
35101         * tests/test-getcwd.c (main): Avoid buffer underflow.
35102         * tests/test-getdate.c (main): String literals are not safe with
35103         putenv, so use setenv.  Declare unused argument.
35104         * modules/getdate-tests (Depends-on): Add setenv.
35105         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
35106         problems with string literals in char *.
35107         * tests/test-hash.c (main): Avoid shadowing declaration.
35108         (insert_new): Treat string literals as char const *.
35109         * tests/test-getopt.h (test_getopt): Likewise.
35110         (getopt_loop): Alter types to minimize casting elsewhere.
35111         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
35112         (test_getopt_long_posix): Likewise.
35113         (do_getopt_long): Add wrapper to minimize casting.
35114         * tests/test-atexit.c (clear_temp_file): Use void.
35115         * tests/test-areadlink-with-size.c (main): Declare unused
35116         arguments.
35117         * tests/test-areadlink.c (main): Likewise.
35118         * tests/test-areadlinkat-with-size.c (main): Likewise.
35119         * tests/test-areadlinkat.c (main): Likewise.
35120         * tests/test-canonicalize-lgpl.c (main): Likewise.
35121         * tests/test-canonicalize.c (main): Likewise.
35122         * tests/test-dirent-safer.c (main): Likewise.
35123         * tests/test-dirname.c (main): Likewise.
35124         * tests/test-dup2.c (main): Likewise.
35125         * tests/test-fchdir.c (main): Likewise.
35126         * tests/test-fcntl-h.c (main): Likewise.
35127         * tests/test-fcntl-safer.c (main): Likewise.
35128         * tests/test-fdopendir.c (main): Likewise.
35129         * tests/test-fdutimensat.c (main): Likewise.
35130         * tests/test-fflush.c (main): Likewise.
35131         * tests/test-filenamecat.c (main): Likewise.
35132         * tests/test-filevercmp.c (main): Likewise.
35133         * tests/test-fopen-safer.c (main): Likewise.
35134         * tests/test-fopen.c (main): Likewise.
35135         * tests/test-fpending.c (main): Likewise.
35136         * tests/test-fpurge.c (main): Likewise.
35137         * tests/test-freading.c (main): Likewise.
35138         * tests/test-fstatat.c (main): Likewise.
35139         * tests/test-fsync.c (main): Likewise.
35140         * tests/test-futimens.c (main): Likewise.
35141         * tests/test-getndelim2.c (main): Likewise.
35142         * tests/test-gettimeofday.c (main): Likewise.
35143         * tests/test-getopt.c (main): Likewise.
35144         * tests/test-i-ring.c (main): Likewise.
35145         * tests/test-inttypes.c (main): Likewise.
35146         * tests/test-link.c (main): Likewise.
35147         * tests/test-lstat.c (main): Likewise.
35148         * tests/test-math.c (main): Likewise.
35149         * tests/test-md5.c (main): Likewise.
35150         * tests/test-memchr2.c (main): Likewise.
35151         * tests/test-memrchr.c (main): Likewise.
35152         * tests/test-mkdir.c (main): Likewise.
35153         * tests/test-mkdirat.c (main): Likewise.
35154         * tests/test-mkfifoat.c (main): Likewise.
35155         * tests/test-open.c (main): Likewise.
35156         * tests/test-openat-safer.c (main): Likewise.
35157         * tests/test-openat.c (main): Likewise.
35158         * tests/test-quotearg.c (main): Likewise.
35159         * tests/test-rawmemchr.c (main): Likewise.
35160         * tests/test-readlink.c (main): Likewise.
35161         * tests/test-remove.c (main): Likewise.
35162         * tests/test-rename.c (main): Likewise.
35163         * tests/test-renameat.c (main): Likewise.
35164         * tests/test-rmdir.c (main): Likewise.
35165         * tests/test-sha1.c (main): Likewise.
35166         * tests/test-signal.c (main): Likewise.
35167         * tests/test-sigaction.c (main): Likewise.
35168         * tests/test-stat.c (main): Likewise.
35169         * tests/test-stat-time.c (main): Likewise.
35170         * tests/test-stddef.c (main): Likewise.
35171         * tests/test-stdint.c (main): Likewise.
35172         * tests/test-stdio.c (main): Likewise.
35173         * tests/test-stdlib.c (main): Likewise.
35174         * tests/test-strchrnul.c (main): Likewise.
35175         * tests/test-strerror.c (main): Likewise.
35176         * tests/test-string.c (main): Likewise.
35177         * tests/test-strtod.c (main): Likewise.
35178         * tests/test-strverscmp.c (main): Likewise.
35179         * tests/test-symlink.c (main): Likewise.
35180         * tests/test-symlinkat.c (main): Likewise.
35181         * tests/test-sys_stat.c (main): Likewise.
35182         * tests/test-sys_time.c (main): Likewise.
35183         * tests/test-time.c (main): Likewise.
35184         * tests/test-unistd.c (main): Likewise.
35185         * tests/test-unlink.c (main): Likewise.
35186         * tests/test-unlinkat.c (main): Likewise.
35187         * tests/test-utimens.c (main): Likewise.
35188         * tests/test-utimensat.c (main): Likewise.
35189         * tests/test-version-etc.c (main): Likewise.
35190         * tests/test-wchar.c (main): Likewise.
35191         * tests/test-wctype.c (main): Likewise.
35192         * tests/test-xprintf-posix.c (main): Likewise.
35193         * tests/test-posixtm.c (main): Likewise.
35194         (STREQ): Delete unused macro.
35195         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
35196         shadowed variables.
35197         * tests/test-memchr.c (main): Likewise.
35198
35199 2009-10-21  Eric Blake  <ebb9@byu.net>
35200
35201         areadlinkat: avoid failure on older glibc
35202         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
35203         rather than mis-comparing 0 against FUNC_RESULT of char*.
35204
35205 2009-10-21  Bruno Haible  <bruno@clisp.org>
35206
35207         * modules/stpncpy (License): Relicense under LGPLv2+.
35208         Reported by David Lutterkort <lutter@redhat.com>.
35209
35210 2009-10-20  Eric Blake  <ebb9@byu.net>
35211
35212         utimensat: work around Solaris 9 bug
35213         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
35214         has trailing slash bugs.
35215         * tests/test-lutimens.h (test_lutimens): Enhance test.
35216         * tests/test-utimens.h (test_utimens): Likewise.
35217         * doc/posix-functions/utime.texi (utime): Enhance documentation.
35218         * doc/posix-functions/utimes.texi (utimes): Likewise.
35219         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35220         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
35221         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
35222         * doc/posix-functions/futimens.texi (futimens): Likewise.
35223
35224         fdutimensat: new module
35225         * modules/fdutimensat: New file.
35226         * lib/fdutimensat.c (fdutimensat): Likewise.
35227         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
35228         * MODULES.html.sh (File system functions): Mention module.
35229         * modules/fdutimensat-tests: New test.
35230         * tests/test-fdutimensat.c: Likewise.
35231
35232         doc: regenerate INSTALL
35233         * doc/INSTALL: Reflect recent autoconf update.
35234         * doc/INSTALL.ISO: Likewise.
35235         * doc/INSTALL.UTF-8: Likewise.
35236
35237 2009-10-20  Pádraig Brady  <P@draigBrady.com>
35238
35239         acl: warn if ACL support is not detected
35240         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
35241
35242 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
35243
35244         * lib/nproc.h: Add extern "C" block for C++.
35245
35246 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
35247             Bruno Haible  <bruno@clisp.org>
35248
35249         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
35250         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
35251         * doc/posix-functions/isalpha.texi: Likewise.
35252         * doc/posix-functions/isblank.texi: Likewise.
35253         * doc/posix-functions/iscntrl.texi: Likewise.
35254         * doc/posix-functions/isdigit.texi: Likewise.
35255         * doc/posix-functions/isgraph.texi: Likewise.
35256         * doc/posix-functions/islower.texi: Likewise.
35257         * doc/posix-functions/isprint.texi: Likewise.
35258         * doc/posix-functions/ispunct.texi: Likewise.
35259         * doc/posix-functions/isspace.texi: Likewise.
35260         * doc/posix-functions/isupper.texi: Likewise.
35261         * doc/posix-functions/isxdigit.texi: Likewise.
35262
35263 2009-10-18  Bruno Haible  <bruno@clisp.org>
35264
35265         Tests for module 'isblank'.
35266         * modules/isblank-tests: New file.
35267         * tests/test-isblank.c: New file.
35268
35269         New module 'isblank'.
35270         * lib/isblank.c: New file.
35271         * m4/isblank.m4: New file.
35272         * modules/isblank: New file.
35273         * doc/posix-functions/isblank.texi: Mention the new module.
35274
35275 2009-10-18  Bruno Haible  <bruno@clisp.org>
35276
35277         New module 'ctype'.
35278         * lib/ctype.in.h: New file.
35279         * m4/ctype.m4: New file.
35280         * modules/ctype: New file.
35281         * doc/posix-headers/ctype.texi: Mention the new module.
35282
35283 2009-10-18  Jim Meyering  <meyering@redhat.com>
35284
35285         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
35286         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
35287         right after its initialization, rather than farther down.
35288         Keeping these in close proximity makes it easier to ensure
35289         that each such variable is initialized.  E.g.,
35290
35291             LIB_CLOCK_GETTIME=
35292             AC_SUBST([LIB_CLOCK_GETTIME])
35293
35294         This change also increments these serial numbers.
35295         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
35296         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35297         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35298
35299 2009-10-18  Bruno Haible  <bruno@clisp.org>
35300
35301         Don't let environment variables perturb build.
35302         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
35303         (gl_PREREQ_GETHRXTIME): ... not here.
35304
35305 2009-10-18  Bruno Haible  <bruno@clisp.org>
35306
35307         Avoid symlink attack in localcharset module.
35308         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
35309         (O_NOFOLLOW): Define fallback.
35310         (get_charset_aliases): Don't open the file if it is a symbolic link.
35311         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
35312         gl_FCNTL_H.
35313         (gl_FCNTL_H): Require it.
35314         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
35315         * modules/localcharset (Files): Add m4/fcntl_h.m4.
35316         Reported by Fergal Glynn <fglynn@veracode.com>.
35317
35318 2009-10-18  Bruno Haible  <bruno@clisp.org>
35319
35320         Implement nproc for mingw.
35321         * lib/nproc.c: Include <windows.h>
35322         (num_processors): On native Windows platforms, try GetSystemInfo.
35323
35324 2009-10-18  Bruno Haible  <bruno@clisp.org>
35325
35326         Implement nproc for IRIX.
35327         * lib/nproc.c: Include <sys/sysmp.h>.
35328         (num_processors): On IRIX systems, try sysmp.
35329         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
35330
35331 2009-10-18  Bruno Haible  <bruno@clisp.org>
35332
35333         Implement nproc for HP-UX.
35334         * lib/nproc.c: Include <sys/pstat.h>
35335         (num_processors): On HP-UX systems, try pstat_getdynamic.
35336         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
35337         pstat_getdynamic.
35338
35339 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
35340             Bruno Haible  <bruno@clisp.org>
35341
35342         Implement nproc for NetBSD, OpenBSD.
35343         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
35344         (ARRAY_SIZE): New macro.
35345         (num_processors): On BSD systems, try sysctl of HW_NCPU.
35346         * m4/nproc.m4: New file.
35347         * modules/nproc (Files): Add m4/nproc.m4.
35348         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
35349         (Makefile.am): Instead, augment lib_SOURCES.
35350
35351 2009-10-18  Bruno Haible  <bruno@clisp.org>
35352
35353         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
35354         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
35355         sys/param.h.
35356
35357 2009-10-16  Eric Blake  <ebb9@byu.net>
35358
35359         utimensat: new module
35360         * modules/utimensat: New file.
35361         * lib/utimensat.c (utimensat): Likewise.
35362         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35363         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
35364         so we can work around Linux bugs.
35365         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35366         * modules/sys_stat (Makefile.am): Substitute them.
35367         * lib/sys_stat.in.h (utimensat): Declare it.
35368         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35369         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35370         * modules/utimensat-tests: New test.
35371         * tests/test-utimensat.c: Likewise.
35372
35373         utimens: let lutimens work on non-symlinks
35374         * lib/utimens.c (lutimens): Fall back to utimens rather than
35375         failing with ENOSYS, when file is not a symlink.
35376         (utimens): Reduce redirection.
35377         * tests/test-lutimens.h (test_lutimens): Update test to cover
35378         non-symlinks.
35379         * tests/test-utimens.h (test_utimens): Update test to cover
35380         symlinks.
35381         * tests/test-utimens.c (main): Update caller.
35382
35383         utimens: cache whether utimensat syscall works
35384         * lib/utimens.c (utimensat_works_really): New cache variable.
35385         (fdutimens, lutimens): Use it to avoid failing syscall.
35386
35387         test-stat-time, test-utimens: improve portability
35388         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
35389         ext4 on alpha, and for cygwin.
35390         * tests/test-utimens-common.h: New file.
35391         (nap): Factor delays into single function.
35392         * tests/test-lutimens.h (test_lutimens): Use new header.
35393         * tests/test-futimens.h (test_futimens): Likewise.
35394         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
35395         timestamps to occur from same machine, as was done previously for
35396         test_utimens.
35397         * modules/utimens-tests (Files): Ship new file.
35398         * modules/futimens-tests (Files): Likewise.
35399         Reported in part by Jim Meyering.
35400
35401         sys_stat: sort replacement declarations
35402         * lib/sys_stat.in.h: Sort declarations.
35403         * lib/futimens.c (futimens): Fix typo.
35404
35405 2009-10-15  Jim Meyering  <meyering@redhat.com>
35406
35407         don't let environment settings perturb build
35408         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
35409         could cause a configure-time and/or build-time malfunction.
35410         Typically, a configure-time function-in-library test is performed
35411         via code like this:
35412
35413           LIB_VAR=
35414           AC_SUBST([LIB_VAR])
35415           prefix_saved_LIBS=$LIBS
35416             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
35417                        [test "$ac_cv_search_FUNC" = "none required" ||
35418                         LIB_VAR=$ac_cv_search_FUNC])
35419           LIBS=$prefix_saved_LIBS
35420
35421         However, in each of the files affected by this change, the LIB_VAR=
35422         initialization was omitted.  Thus, when set in the environment, its
35423         value would propagate into generated Makefiles when FUNC is not found
35424         in LIB_NAME.
35425         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
35426         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35427         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35428
35429 2009-10-14  Eric Blake  <ebb9@byu.net>
35430
35431         fchdir: avoid infinite recursion in mingw
35432         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
35433         recursing.
35434
35435         test-stat-time: port to mingw
35436         * tests/test-stat-time.c (force_unlink): Return a value.
35437         (test_ctime) [W32]: Fix compilation error.
35438         (nap): Don't call usleep with too large an argument.  Use
35439         force_unlink.
35440         * doc/pastposix-functions/usleep.texi (usleep): Document the
35441         portability issue.
35442
35443 2009-10-13  Jim Meyering  <meyering@redhat.com>
35444
35445         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
35446         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
35447         * modules/pipe-filter-ii: Likewise.
35448         * modules/sys_socket-tests: Likewise.
35449         * modules/tsearch-tests: Likewise.
35450         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
35451         (check): Depend on it.
35452
35453 2009-10-12  Eric Blake  <ebb9@byu.net>
35454
35455         utimens-tests: port to NFS file systems
35456         * tests/test-utimens.h (test_utimens): Refactor utimecmp
35457         comparisons to avoid spurious failures from timestamp drift
35458         between NFS machines.
35459
35460 2009-10-12  Eric Blake  <ebb9@byu.net>
35461
35462         stat-time-tests: minor cleanups
35463         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
35464         * tests/test-stat-time.c (nap): Separate assignment from call.
35465         Suggested by Paolo Bonzini and Bruno Haible.
35466
35467         sys_stat: guarantee struct timespec
35468         * lib/sys_stat.in.h (includes): Always include <time.h>
35469         * modules/sys_stat (Depends-on): Add time.
35470         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
35471         mode_t permission values.
35472         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
35473         get at subsecond timestamps.
35474
35475 2009-10-10  Eric Blake  <ebb9@byu.net>
35476
35477         futimens: new module
35478         * modules/futimens: New file.
35479         * lib/futimens.c (futimens): Likewise.
35480         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
35481         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
35482         we can work around Linux bugs.
35483         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35484         * modules/sys_stat (Makefile.am): Substitute them.
35485         * lib/sys_stat.in.h (futimens): Declare it.
35486         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35487         * doc/posix-functions/futimens.texi (futimens): Likewise.
35488         * modules/futimens-tests: New test.
35489         * tests/test-futimens.c: Likewise.
35490
35491         utimens: introduce fdutimens
35492         * lib/utimens.h (fdutimens): New prototype.
35493         * lib/utimens.c (gl_futimens): Move guts...
35494         (fdutimens): ...to new interface.
35495         * tests/test-utimens.c (do_fdutimens): Use it.
35496
35497         utimens: add UTIME_NOW and UTIME_OMIT support
35498         * lib/utimens.c (validate_timespec, update_timespec): New helper
35499         functions.
35500         (gl_futimens, lutimens): Use them.
35501         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
35502         stdbool, sys_stat.
35503         (Link): Mention resulting library dependency.
35504         * modules/utimecmp (Link): Likewise.
35505         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
35506         (Makefile.am): Pick up library dependency.
35507         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
35508         definition.
35509         * tests/test-sys_stat.c: Test the definitions.
35510         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
35511         * NEWS: Document library dependency.
35512
35513         utimecmp: support symlink timestamps
35514         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
35515         hashing when possible.  Use pathconf when available.
35516         (SYSCALL_RESOLUTION): Recognize tighter resolution.
35517         * modules/utimecmp (Depends-on): Add lstat.
35518
35519         utimens: add lutimens interface
35520         * lib/utimens.c (lutimens): New function.
35521         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
35522         * lib/utimens.h (lutimens): Declare new interface.
35523         * tests/test-utimens.c (main): Enhance test.
35524         * tests/test-lutimens.h (test_lutimens): New file.
35525         * modules/utimens-tests (Files): Distribute it.
35526         (Depends-on): Add symlink.
35527         (configure.ac): Check for usleep.
35528
35529         utimens: validate futimens usage
35530         * lib/utimens.c (gl_futimens): Require valid fd up front, using
35531         fewer syscalls on failure later on.  Avoid compiler warning on
35532         mingw.
35533         * modules/utimens (Depends-on): Add dup2.
35534
35535         utimens: add test
35536         * modules/utimens-tests: New test.
35537         * tests/test-utimens.h: New file.
35538         * tests/test-futimens.h: Likewise.
35539         * tests/test-utimens.c: Likewise.
35540
35541         doc: mention timestamp portability issues
35542         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
35543         instead.
35544         * doc/posix-functions/utime.texi (utime): Likewise.
35545         * doc/posix-functions/utimes.texi (utimes): Likewise.
35546         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
35547         instead.
35548         * doc/posix-functions/futimens.texi (futimens): Mention utimens
35549         module.
35550         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35551         Mention weakness with symlink timestamps.
35552         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
35553         to utimensat/futimens instead.
35554         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
35555
35556         test-dup2: enhance test
35557         * tests/test-dup2.c (main): Also check AT_FDCWD.
35558
35559         test-stat-time: avoid more spurious failures
35560         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
35561         xfs; and avoid race if the two timestamps cross quantization edge.
35562
35563         relocatable: prefer 'file system' over 'filesystem'
35564         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
35565         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
35566         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
35567         * doc/relocatable.texi (Enabling Relocatability): Likewise.
35568         * lib/relocatable.c (compute_curr_prefix): Likewise.
35569
35570 2009-10-10  Jim Meyering  <meyering@redhat.com>
35571
35572         stat-time-tests: check for the usleep function
35573         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
35574
35575 2009-10-10  Bruno Haible  <bruno@clisp.org>
35576
35577         * modules/xnanosleep: Put the Link section after the Include section.
35578
35579 2009-10-09  Eric Blake  <ebb9@byu.net>
35580
35581         dup2: work around FreeBSD 6.1 bug
35582         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
35583         * doc/posix-functions/dup2.texi (dup2): Document it.
35584         Reported by Nelson H. F. Beebe and Jim Meyering.
35585
35586         test-stat-time: port to buggy NFS clients
35587         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
35588         (test_ctime): Also skip test if mtime and ctime are skewed.
35589
35590         maint: prefer 'file system' over 'filesystem'
35591         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35592         * doc/posix-functions/lstat.texi (lstat): Likewise.
35593         * lib/file-has-acl.c (file_has_acl): Likewise.
35594         * lib/fwriteerror.c [TEST]: Likewise.
35595         * tests/test-areadlink.h (test_areadlink): Likewise.
35596         * tests/test-areadlinkat-with-size.c (main): Likewise.
35597         * tests/test-areadlinkat.c (main): Likewise.
35598         * tests/test-canonicalize-lgpl.c (main): Likewise.
35599         * tests/test-canonicalize.c (main): Likewise.
35600         * tests/test-fstatat.c (main): Likewise.
35601         * tests/test-linkat.c (main): Likewise.
35602         * tests/test-lstat.h (test_lstat_func): Likewise.
35603         * tests/test-mkdir.h (test_mkdir): Likewise.
35604         * tests/test-readlink.h (test_readlink): Likewise.
35605         * tests/test-remove.c (main): Likewise.
35606         * tests/test-rename.h (test_rename): Likewise.
35607         * tests/test-renameat.c (main): Likewise.
35608         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35609         * tests/test-symlink.h (test_symlink): Likewise.
35610         * tests/test-symlinkat.c (main): Likewise.
35611         * tests/test-unlink.h (test_unlink_func): Likewise.
35612         * tests/test-unlinkat.c (main): Likewise.
35613
35614         maint: make realtime library usage explicit
35615         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
35616         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
35617         * modules/settime (Link): Likewise.
35618         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
35619
35620         test-stat-time: speed up execution
35621         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
35622         warning on mingw.
35623         (nap): New helper function.
35624         (prepare_test): Use it to reduce sleep time.
35625         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
35626         execution.
35627         * modules/stat-time-tests (configure.ac): Check for usleep.
35628
35629 2009-10-09  Jim Meyering  <meyering@redhat.com>
35630
35631         selinux-h: always use getfilecon wrappers
35632         * lib/getfilecon.c: New file.
35633         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
35634         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
35635         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
35636         (fgetfilecon): Provide a stub.
35637         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
35638         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
35639         file unconditionally.
35640         When <selinux/selinux.h> is found, arrange to use wrappers.
35641         * modules/selinux-h (Files): Add getfilecon.c.
35642         (Makefile.am): Substitute include-next-related bits
35643         into the now-always-generated selinux/selinux.h file.
35644         * doc/glibc-functions/lgetfilecon.texi: New file.
35645         * doc/glibc-functions/fgetfilecon.texi: New file.
35646         * doc/glibc-functions/getfilecon.texi: New file.
35647         * doc/glibc-functions/getfilecon-desc.texi: New file.
35648         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
35649         which to pull in the new files.
35650         * MODULES.html.sh (Misc): Add selinux-h.
35651
35652 2009-10-08  Jim Meyering  <meyering@redhat.com>
35653
35654         unistd: fix comment typo
35655         * lib/unistd.in.h (euidaccess): Fix a comment typo.
35656
35657 2009-10-08  Eric Blake  <ebb9@byu.net>
35658
35659         areadlink: use SIZE_MAX consistently
35660         * modules/areadlink (Depends-on): Add stdint.
35661         * modules/areadlink-with-size (Depends-on): Likewise.
35662         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
35663         gives NULL; drop sys/types, since unistd gives size_t; and add
35664         stdint for SIZE_MAX.
35665         (SIZE_MAX): Rely on headers.
35666         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
35667         and add stdint.
35668         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
35669         (SIZE_MAX): Likewise.
35670         (INITIAL_BUF_SIZE): Turn into enum.
35671         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
35672
35673 2009-10-08  Jim Meyering  <meyering@redhat.com>
35674
35675         areadlinkat: avoid compilation failure
35676         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
35677         Fix typo in comment.
35678
35679 2009-10-07  Eric Blake  <ebb9@byu.net>
35680
35681         areadlinkat-with-size: new module
35682         * modules/areadlinkat-with-size: New module.
35683         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
35684         * lib/areadlink.h (areadlinkat): Declare it.
35685         * MODULES.html.sh (File system functions): Mention it.
35686         * modules/areadlinkat-with-size-tests: New test.
35687         * tests/test-areadlinkat-with-size.c: New file.
35688
35689         xreadlinkat: new module
35690         * modules/xreadlinkat: New module.
35691         * lib/xreadlinkat.c (xreadlinkat): New file.
35692         * lib/xreadlink.h (xreadlinkat): Declare it.
35693         * MODULES.html.sh (File system functions): Mention it.
35694
35695         areadlinkat: new module
35696         * lib/at-func.c (FUNC_FAIL): New define.
35697         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
35698         * modules/areadlinkat: New module.
35699         * lib/linkat.c (areadlinkat): Move...
35700         * lib/areadlinkat.c (areadlinkat): ...to new file.
35701         * lib/areadlink.h (areadlinkat): Declare it.
35702         * modules/linkat (Depends-on): Add areadlinkat.
35703         * MODULES.html.sh (File system functions): Mention it.
35704         * modules/areadlinkat-tests: New test.
35705         * tests/test-areadlinkat.c: New file.
35706
35707         areadlink, areadlink-with-size: add tests
35708         * modules/areadlink-tests: New test.
35709         * modules/areadlink-with-size-tests: Likewise.
35710         * tests/test-areadlink.h: New file.
35711         * tests/test-areadlink.c: Likewise.
35712         * tests/test-areadlink-with-size.c: Likewise.
35713
35714         maint: minor cleanups
35715         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
35716         _UNUSED_PARAMETER_ instead.
35717         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
35718         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
35719         * modules/linkat-tests (Files): Distribute test-link.h.
35720
35721         openat, utimens: whitespace cleanup
35722         * lib/openat.c: Prefer space throughout, rather than mix of 8
35723         spaces vs. tabs.
35724         * lib/at-func.c: Likewise.
35725         * lib/utimens.c: Likewise.
35726
35727         openat: avoid using wrong fd
35728         * lib/openat.c (openat_permissive): Reject user's fd if saving the
35729         working directory chooses same fd.
35730         * lib/at-func.c (AT_FUNC_NAME): Likewise.
35731
35732         mkdir, mkdirat: fix cygwin 1.5.x bug
35733         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
35734         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
35735         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
35736         bug.
35737         (gl_PREREQ_MKDIR): Delete unused macro.
35738         * modules/mkdir (Files): Track file rename.
35739         (configure.ac): Update macro name.
35740         * modules/openat (Depends-on): Add mkdir.
35741         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
35742
35743         mkdir, mkdirat: add tests
35744         * modules/mkdir-tests: New test.
35745         * tests/test-mkdir.h: New file.
35746         * tests/test-mkdir.c: Likewise.
35747         * tests/test-mkdirat.c: Likewise.
35748         * modules/openat-tests (Files): Add new files.
35749         (Makefile.am): Run new test.
35750
35751 2009-10-06  Eric Blake  <ebb9@byu.net>
35752
35753         doc: tweak *at function documentation
35754         * doc/posix-functions/faccessat.texi (faccessat): Mention
35755         known issue with replacement.
35756         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
35757         * doc/posix-functions/linkat.texi (linkat): Likewise.
35758         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35759         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35760         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35761         * doc/posix-functions/renameat.texi (renameat): Likewise.
35762         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35763
35764         openat: fix GNU/Hurd bug in unlinkat
35765         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
35766         broken.
35767         * doc/posix-functions/unlink.texi (unlink): Document this.
35768         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
35769
35770         fdopendir: fix GNU/Hurd bug
35771         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
35772         allowing non-directory fds.
35773         * lib/fdopendir.c (rpl_fdopendir): Work around it.
35774         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35775         * modules/dirent (Makefile.am): Substitute it.
35776         * lib/dirent.in.h (fdopendir): Declare replacement.
35777         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
35778         * tests/test-fdopendir.c (main): Test something other than
35779         /dev/null, since on Hurd that behaves like a directory.
35780
35781         test-symlink: port to GNU/Hurd
35782         * tests/test-symlink.h (test_symlink): Relax expected errno.
35783
35784         doc: tweak more cygwin information
35785         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
35786         now compatible with glibc.
35787         * doc/posix-functions/getopt.texi (getopt): Likewise.
35788
35789         getopt-gnu: add another test
35790         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
35791         guarantee behavior relied on by m4.
35792         * tests/test-getopt.c (main): Use it.
35793         * modules/getopt-posix-tests (Depends-on): Add setenv.
35794         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
35795
35796         getopt: fix compilation on darwin
35797         * lib/getopt.in.h (includes): Leave breadcrumbs during system
35798         include.
35799         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
35800         Reported by Ludovic Courtès.
35801
35802 2009-10-06  Bruno Haible  <bruno@clisp.org>
35803
35804         * modules/size_max (Description): Discourage its use.
35805         Reported by Simon Josefsson.
35806
35807 2009-10-06  Jim Meyering  <meyering@redhat.com>
35808
35809         linkat: avoid compilation failure
35810         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
35811
35812 2009-10-05  Eric Blake  <ebb9@byu.net>
35813
35814         linkat: support Linux 2.6.17
35815         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
35816         linkat on Linux, but allow cache variable override.
35817         * lib/linkat.c (rpl_linkat): Define override.
35818         * modules/linkat (Depends-on): Add symlinkat.
35819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
35820         * modules/unistd (Makefile.am): Substitute it.
35821         * lib/unistd.in.h (linkat): Declare replacement.
35822         Reported by Pádraig Brady.
35823
35824         quotearg: port test to systems with C.UTF-8 locale
35825         * tests/test-quotearg.c (struct result_strings): Add another
35826         member, differentiating between C.ASCII and C.UTF-8 handling.
35827         (compare_strings): Add parameter.
35828         (main): Adjust all callers.
35829
35830         getopt: avoid clash with FreeBSD _getopt_internal
35831         * lib/getopt.in.h (_getopt_internal): Override the name.
35832         * lib/getopt_int.h (includes): Pick up any overrides.
35833         Reported by Reuben Thomas.
35834
35835         hash: allow C89 compilation
35836         * lib/hash.c (check_tuning): Move declaration before statement.
35837         Reported by Reuben Thomas.
35838
35839 2009-10-05  Karl Berry  <karl@gnu.org>
35840
35841         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
35842
35843 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
35844             Bruno Haible  <bruno@clisp.org>
35845
35846         * lib/uname.c (uname): Use a table-driven algorithm to compute
35847         Windows NT versions.
35848
35849 2009-10-04  Bruno Haible  <bruno@clisp.org>
35850
35851         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
35852         program_invocation_short_name.
35853         * modules/progname (configure.ac): Test for presence of
35854         program_invocation_short_name.
35855         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35856
35857 2009-10-04  Bruno Haible  <bruno@clisp.org>
35858
35859         * lib/progname.c (set_program_name): Fix comment.
35860         Reported by Jim Meyering.
35861
35862 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35863             Bruno Haible  <bruno@clisp.org>
35864
35865         * lib/uname.c: Include <string.h>.
35866         (uname): Do only one call to GetVersionEx in the common case.
35867
35868 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35869             Bruno Haible  <bruno@clisp.org>
35870
35871         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
35872         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
35873         (uname): Add support for Windows CE and various non-x86 CPU types.
35874
35875 2009-10-03  Bruno Haible  <bruno@clisp.org>
35876
35877         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
35878         invocation to tests/configure.ac.
35879         Reported by Ian Beckwith <ianb@erislabs.net>.
35880
35881 2009-10-02  Eric Blake  <ebb9@byu.net>
35882
35883         fchdir: avoid compiler warning
35884         * lib/fchdir.c (canonicalize_file_name)
35885         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
35886
35887         test-open: support mingw errno values
35888         * tests/test-open.h (test_open): Relax test.
35889         * tests/test-fopen.h (test_fopen): Likewise.
35890         * tests/test-openat-safer.c (main): Likewise.
35891
35892         open: fix opening directory on mingw
35893         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
35894
35895         test-open: on GNU/Hurd, /dev/null is a directory
35896         * tests/test-fopen.h (main): Rename...
35897         (test_fopen): ...to this.  Use a guaranteed non-directory when
35898         confirming open behavior on trailing slash.
35899         * tests/test-openat-safer.c (main): Likewise.
35900         * tests/test-open.h (main): Likewise....
35901         (test_open): ...to this.
35902         * tests/test-fopen.c (main): Adjust caller.
35903         * tests/test-fopen-safer.c (main): Likewise.
35904         * tests/test-open.c (main): Likewise.
35905         * tests/test-fcntl-safer.c (main): Likewise.
35906         Reported by Samuel Thibault.
35907
35908         rename, fchdir: don't ignore chdir failure
35909         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
35910         * lib/rename.c (rpl_rename) [W32]: Likewise.
35911         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
35912         an empty destination directory if source cannot be renamed,
35913         although there is still possibility for failure.
35914         * doc/posix-functions/rename.texi (rename): Document the race.
35915         Reported by Jim Meyering.
35916
35917         maint: cleanup whitespace in recent commits
35918         * lib/rename.c (rpl_rename): Remove tabs.
35919         * tests/test-link.h (test_link): Likewise.
35920         * lib/fchdir.c (get_name): Likewise.
35921         Reported by Jim Meyering.
35922
35923 2009-10-02  Ben Pfaff  <blp@gnu.org>
35924
35925         relocatable-prog-wrapper: Add missing dependency on
35926         double-slash-root.
35927         * modules/relocatable-prog-wrapper: Add dependency.
35928         Reported by Ian Beckwith <ianb@erislabs.net>.
35929
35930 2009-10-02  Eric Blake  <ebb9@byu.net>
35931
35932         renameat: fix Solaris bugs
35933         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
35934         needed fixing.
35935         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
35936         * modules/stdio (Makefile.am): Substitute it.
35937         * lib/stdio.in.h (renameat): Declare replacement.
35938         * lib/renameat.c (rpl_renameat): Implement fix.
35939
35940         renameat: new module
35941         * modules/renameat: New file.
35942         * lib/renameat.c (renameat): Likewise.
35943         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
35944         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35945         * modules/stdio (Makefile.am): Substitute them.
35946         * lib/stdio.in.h (renameat): Declare it.
35947         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35948         * doc/posix-functions/renameat.texi (renameat): Likewise.
35949         * modules/renameat-tests: New test.
35950         * tests/test-renameat.c: Likewise.
35951
35952         rename: fix mingw bugs
35953         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
35954         directory overwrite bugs.
35955
35956         rename: fix another cygwin 1.5 bug
35957         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
35958         checks.
35959         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
35960         unnecessary cygwin workarounds.  Also work around bug with moving
35961         full directory onto an empty one.
35962         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
35963
35964         rename-dest-slash: merge into rename module
35965         * modules/rename-dest-slash (Status): Mark obsolete.
35966         (Depends-on): Add rename.
35967         (Files): Let rename do it all.
35968         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
35969         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
35970         * m4/rename-dest-slash.m4: ...so this file can be deleted.
35971         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
35972         * lib/rename.c (rpl_rename): Update comments.
35973
35974         rename: fix cygwin 1.5.x bugs
35975         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
35976         * lib/rename.c (rpl_rename): Work around them.
35977         * modules/rename (Depends-on): Add same-inode.
35978
35979         rename: fix Solaris 10 bug
35980         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35981         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
35982         was the only bug.
35983
35984         rename: fix Solaris 9 bug
35985         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
35986         on non-directory.  Avoid calling exit.
35987         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
35988         strdup.
35989         * modules/rename-tests (Depends-on): Drop lstat.
35990         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35991         (gl_PREREQ_RENAME): Delete unused macro.
35992
35993         rename-dest-slash: fix NetBSD bug
35994         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
35995         links.
35996         * modules/rename-dest-slash (Depends-on): Add same-inode.
35997
35998         rename-tests: new test, exposes several platform bugs
35999         * modules/rename-tests: New file.
36000         * tests/test-rename.h: Likewise.
36001         * tests/test-rename.c: Likewise.
36002         * doc/posix-functions/rename.texi (rename): Improve documentation,
36003         including bugs that will eventually be fixed in gnulib.
36004
36005 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
36006
36007         * lib/uname.c: Include <stdlib.h>
36008         (uname): Assume version info is available.
36009
36010 2009-10-02  Jim Meyering  <meyering@redhat.com>
36011
36012         gnu-web-doc-update: correct --help output
36013         * build-aux/gnu-web-doc-update: Make --help output relevant.
36014
36015         gnu-web-doc-update: add standard options
36016         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
36017
36018         gnu-web-doc-update: New module.
36019         Use this script to automatically update the on-line web documentation
36020         for your GNU project at http://www.gnu.org/software/$pkg/manual/
36021         * modules/gnu-web-doc-update: New file, from coreutils.
36022         * build-aux/gnu-web-doc-update: New script.
36023
36024 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
36025
36026         link: LoadLibrary is not needed.
36027         * lib/link.c: Use GetModuleHandle.
36028
36029 2009-10-01  Eric Blake  <ebb9@byu.net>
36030
36031         getopt: bump serial number
36032         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
36033         change.
36034
36035         tests: tighten link, rmdir, and remove tests
36036         * tests/test-link.h (includes): No need to use <config.h> here.
36037         Clean up if directory hard link was created, otherwise test for
36038         trailing '.'.
36039         * tests/test-linkat.c (main): Simplify.
36040         * tests/test-remove.c (main): Enhance test for trailing '.'.
36041         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36042
36043 2009-10-01  Jim Meyering  <meyering@redhat.com>
36044
36045         maint.mk: requiring "make major" was annoying, for a "minor" release.
36046         What is intended is "stable", to contrast with alpha and beta,
36047         so require "make stable", not "make major".
36048         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
36049         (get_tool_versions): Likewise.
36050         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
36051
36052 2009-09-30  Ben Pfaff  <blp@gnu.org>
36053
36054         Fix broken build of replacement for Windows tmpfile().
36055         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
36056         flags argument added along with the 'mkostemp' module.
36057
36058 2009-09-28  Bruno Haible  <bruno@clisp.org>
36059
36060         Avoid identifier clash with POSIX function 'remove' defined as a macro.
36061         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
36062         to 'remove_elt'.
36063         (gl_list_remove): Update.
36064         * lib/gl_list.c (gl_list_remove): Update.
36065         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
36066         to 'remove_elt'.
36067         (gl_oset_remove): Update.
36068         * lib/gl_list.c (gl_oset_remove): Update.
36069         Reported by Eric Blake.
36070
36071 2009-09-28  Eric Blake  <ebb9@byu.net>
36072
36073         doc: mention yet more cygwin 1.7 status
36074         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
36075         cygwin.
36076         * doc/glibc-functions/execvpe.texi (execvpe): New file.
36077         * doc/gnulib.texi (Glibc unistd.h): Mention it.
36078
36079         argp: fix test failure
36080         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
36081         that are not upper-case.  Pass correct range to tolower.
36082
36083 2009-09-27  Jim Meyering  <meyering@redhat.com>
36084
36085         test-yesno: work around sparc-dash here-document infelicity
36086         Without this change, the literal \177 byte in a here document
36087         would make dash 0.5.5.1-3 access uninitialized memory.
36088         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
36089         Instead, use a marker, "@", and filter through tr to create the desired
36090         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
36091
36092 2009-09-27  Bruno Haible  <bruno@clisp.org>
36093
36094         Disable untested support for new flavours of ACLs on AIX.
36095         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
36096         progress.
36097         * lib/set-mode-acl.c (qset_acl): Likewise.
36098
36099 2008-12-07  Bruno Haible  <bruno@clisp.org>
36100
36101         Add support for new flavours of ACLs on AIX. (Untested.)
36102         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
36103         (file_has_acl): Add support for newer AIX.
36104         * lib/set-mode-acl.c (qset_acl): Likewise.
36105         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
36106         Rainer Tammer <tammer@tammer.net>.
36107
36108 2009-09-26  Eric Blake  <ebb9@byu.net>
36109
36110         argp: fix compilation of getopt
36111         * lib/getopt.in.h (includes): Use different guard than glibc.
36112         Reported by Sergey Poznyakoff.
36113
36114         doc: mention more cygwin 1.7 status
36115         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
36116         bug.
36117         * doc/posix-functions/execl.texi (execl): Likewise.
36118         * doc/posix-functions/execle.texi (execle): Likewise.
36119         * doc/posix-functions/execlp.texi (execlp): Likewise.
36120         * doc/posix-functions/execv.texi (execv): Likewise.
36121         * doc/posix-functions/execve.texi (execve): Likewise.
36122         * doc/posix-functions/execvp.texi (execvp): Likewise.
36123         * doc/glibc-functions/canonicalize_file_name.texi
36124         (canonicalize_file_name): Cygwin 1.7 now provides this.
36125         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
36126         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
36127         on AT_SYMLINK_NOFOLLOW.
36128
36129 2009-09-24  Eric Blake  <ebb9@byu.net>
36130
36131         test-linkat: make test more robust
36132         * tests/test-linkat.c (main): Avoid collision with EEXIST.
36133
36134         getopt: fix inclusion guards for cygwin
36135         * modules/getopt-posix (Depends-on): Add include-next.
36136         (Makefile.am): Substitute more items in replacement header.
36137         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
36138         <getopt.h>.
36139         * lib/getopt.in.h (includes): Use split inclusion guard, and
36140         prefer <getopt.h> over include <unistd.h> when one is present.
36141         (option): Also override name of 'struct option'.
36142
36143         same-inode: revert prior change; it is not yet ready
36144         * NEWS: Undo mention of this change.
36145         * lib/same-inode.h (same-inode.h): Undo tri-state change.
36146         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36147         * lib/cycle-check.c (cycle_check): Likewise.
36148         * lib/same.c (same_name): Likewise.
36149         * lib/at-func2.c (at_func2): Likewise.
36150
36151 2009-09-23  Eric Blake  <ebb9@byu.net>
36152
36153         linkat: new module
36154         * modules/linkat: New file.
36155         * lib/at-func2.c (at_func2): Likewise.
36156         * lib/linkat.c (linkat): Likewise.
36157         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
36158         * lib/openat-priv.h (at_func2): Add declaration.
36159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36160         * modules/unistd (Makefile.am): Substitute them.
36161         * lib/unistd.in.h (linkat): Declare it.
36162         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36163         * doc/posix-functions/linkat.texi (linkat): Likewise.
36164         * doc/posix-functions/link.texi (link): Tweak wording.
36165         * tests/test-link.c (main): Move guts...
36166         * tests/test-link.h (test_link): ...into new file.
36167         * modules/linkat-tests: New test.
36168         * tests/test-linkat.c: Likewise.
36169         * modules/link-tests (Files): Ship new file.
36170         (Depends-on): Add stdbool.
36171
36172         dirname: add library-safe mdir_name
36173         * lib/dirname.h (mdir_name): New prototype.
36174         * lib/dirname.c (dir_name): Move guts...
36175         (mdir_name): ...to new function that avoids xalloc_die.
36176
36177         fchdir: another mingw fix
36178         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
36179         * lib/fchdir.c (get_name): New helper method; skips canonicalize
36180         on mingw (where it has not yet been ported), and make it optional
36181         elsewhere.
36182         (_gl_register_fd): Use it.
36183
36184         same-inode: make SAME_INODE tri-state, to port to mingw
36185         * NEWS: Mention this change.
36186         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
36187         st_ino always being 0.
36188         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36189         * lib/cycle-check.c (cycle_check): Likewise.
36190         * lib/same.c (same_name): Likewise.
36191
36192         lstat: avoid mingw compilation error
36193         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
36194         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
36195         lstat ourselves.
36196         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
36197         was adequate.
36198         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
36199         the checks for lstat.
36200         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
36201
36202         link: fix test failure on Solaris 9
36203         * lib/link.c (rpl_link): Don't assume link will catch bogus
36204         trailing slash on source.
36205
36206         test-symlinkat: enhance test
36207         * tests/test-readlink.c (main): Move guts...
36208         * tests/test-readlink.h (test_readlink): ...into new file.
36209         * tests/test-symlink.c (main): Move guts...
36210         * tests/test-symlink.h (test_symlink): ...into new file.
36211         * tests/test-symlinkat.c (main): Use new files for further
36212         coverage.
36213         (do_symlink, do_readlink): New helper functions.
36214         * modules/symlink-tests (Files): Ship new file.
36215         (Depends-on): Add stdbool.
36216         * modules/readlink-tests (Files): Ship new file.
36217         (Depends-on): Add stdbool.
36218         * modules/symlinkat-tests (Files): Use new files.
36219
36220 2009-09-23  Eric Blake  <ebb9@byu.net>
36221
36222         readlink: document portability issue with symlink length
36223         * doc/posix-functions/lstat.texi (lstat): Mention that some file
36224         systems have bogus st_size on symlinks, and mention the
36225         areadlink-with-size module.
36226         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
36227         * doc/posix-functions/readlink.texi (readlink): Mention the
36228         areadlink module, and ERANGE failure.
36229         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36230         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
36231
36232         readlink: fix Solaris 9 bug with trailing slash
36233         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
36234         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
36235         * doc/posix-functions/readlink.texi (readlink): Document this.
36236         * modules/readlink-tests: New test.
36237         * tests/test-readlink.c: Likewise.
36238
36239         readlink: fix cygwin 1.5.x bug with return type
36240         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
36241         * lib/unistd.in.h (readlink): Use ssize_t.
36242         * lib/readlink.c (readlink): Likewise.
36243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36244         * modules/unistd (Makefile.am): Substitute it.
36245         * lib/unistd.in.h (readlink): Declare replacement.
36246         * doc/posix-functions/readlink.texi (readlink): Document this.
36247
36248         symlink: use throughout gnulib
36249         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
36250         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
36251         symlink is not used.
36252         * modules/symlinkat (Depends-on): Add symlink.
36253         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36254         * modules/canonicalize-tests (Depends-on): Likewise.
36255         * modules/lstat-tests (Depends-on): Likewise.
36256         * modules/openat-tests (Depends-on): Likewise.
36257         * modules/remove-tests (Depends-on): Likewise.
36258         * modules/rmdir-tests (Depends-on): Likewise.
36259         * modules/unlink-tests (Depends-on): Likewise.
36260         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
36261         * tests/test-canonicalize.c (symlink): Likewise.
36262         * tests/test-fstatat.c (symlink): Likewise.
36263         * tests/test-lstat.c (symlink): Likewise.
36264         * tests/test-remove.c (symlink): Likewise.
36265         * tests/test-rmdir.c (symlink): Likewise.
36266         * tests/test-unlink.c (symlink): Likewise.
36267         * tests/test-unlinkat.c (symlink): Likewise.
36268
36269         symlink: new module, for Solaris 9 bug
36270         * modules/symlink: New file.
36271         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
36272         * lib/symlink.c: Likewise.
36273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
36274         * modules/unistd (Makefile.am): Substitute them.
36275         * lib/unistd.in.h (symlink): Declare replacement.
36276         * MODULES.html.sh (File system functions): Mention it.
36277         * doc/posix-functions/symlink.texi (symlink): Likewise.
36278         * modules/symlink-tests: New test.
36279         * tests/test-symlink.c: Likewise.
36280
36281 2009-09-23  Bruno Haible  <bruno@clisp.org>
36282
36283         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
36284         when needed.
36285         Test case: gnulib-tool --import --with-tests atexit inttypes.
36286         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
36287
36288 2009-09-23  Bruno Haible  <bruno@clisp.org>
36289
36290         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
36291         subcommand, not in a subshell.
36292
36293 2009-09-22  Eric Blake  <ebb9@byu.net>
36294
36295         unistd: sort replacement declarations
36296         * lib/unistd.in.h: Sort declarations.
36297
36298         open, openat: minor optimization
36299         * lib/open.c (open): If open succeeded, len is non-zero.
36300         * lib/openat.c (rpl_openat): Likewise.
36301
36302         link-follow: ensure correct result
36303         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
36304         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
36305         distinguish between possible failures.
36306
36307 2009-09-21  Eric Blake  <ebb9@byu.net>
36308
36309         fts: avoid compiler warning
36310         * lib/fts.c (dirent_inode_sort_may_be_useful)
36311         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
36312
36313 2009-09-19  Bruno Haible  <bruno@clisp.org>
36314
36315         * lib/progreloc.c (canonicalize_file_name): New declaration.
36316
36317 2009-09-19  Eric Blake  <ebb9@byu.net>
36318
36319         link: fix quoting
36320         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
36321
36322         openat: fix openat bugs on Solaris 9
36323         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
36324         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
36325         * modules/openat (Depends-on): Add open.
36326         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
36327         * modules/fcntl-h (Makefile.am): Substitute it.
36328         * lib/fcntl.in.h (openat): Declare replacement.
36329         * doc/posix-functions/openat.texi (openat): Document this.
36330
36331         openat: move fstatat and unlinkat into correct files
36332         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
36333         compiled.
36334         * lib/openat.c (fstatat, unlinkat): Move...
36335         * lib/fstatat.c (fstatat): ...into correct files.
36336         * lib/unlinkat.c (unlinkat): Likewise.
36337
36338         openat: fix unlinkat bugs on Solaris 9
36339         * lib/unlinkat.c (unlinkat): New file.
36340         * modules/openat (Depends-on): Add unlink.
36341         (Files): Distribute it.
36342         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
36343         trailing slash behavior is broken.
36344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36345         * modules/unistd (Makefile.am): Substitute it.
36346         * lib/unistd.in.h (unlinkat): Declare replacement.
36347         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
36348
36349         openat: fix fstatat bugs on Solaris 9
36350         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
36351         stat.
36352         * doc/posix-functions/fstatat.texi (fstatat): Document this.
36353
36354         test-unlinkat: enhance test, to expose Solaris 9 bug
36355         * tests/test-unlink.c (main): Factor guts...
36356         * tests/test-unlink.h (test_rmdir_func): ...into new file.
36357         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
36358         * tests/test-rmdir.c (main): Adjust caller.
36359         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
36360         (unlinker): New helper function.
36361         (rmdirat): Enhance check.
36362         * modules/rmdir-tests (Depends-on): Add stdbool.
36363         * modules/unlink-tests (Depends-on): Likewise.
36364         (Files): Add test-unlink.h.
36365         * modules/openat-tests (Files): Likewise.
36366         (Depends-on): Add unlinkdir.
36367
36368         test-fstatat: new test, to expose Solaris 9 bugs
36369         * tests/test-stat.c (main): Factor guts...
36370         * tests/test-stat.h (test_stat_func): ...into new file.
36371         * tests/test-lstat.c (main): Factor guts...
36372         * tests/test-lstat.h (test_lstat_func): ...into new file.
36373         * tests/test-fstatat.c: New file.
36374         * modules/stat-tests (Files): Add test-stat.h.
36375         * modules/lstat-tests (Files): Add test-lstat.h.
36376         (Depends-on): Add stdbool.
36377         * modules/openat-tests (Depends-on): Add pathmax.
36378         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
36379         (Makefile.am): Run new test.
36380
36381         remove: new module, for mingw and Solaris 9 bugs
36382         * modules/remove: New file.
36383         * lib/remove.c: Likewise.
36384         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
36385         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36386         * modules/stdio (Makefile.am): Use them.
36387         * lib/stdio.in.h (remove): Declare replacement.
36388         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36389         * doc/posix-functions/remove.texi (remove): Likewise.
36390         * modules/remove-tests: New test.
36391         * tests/test-remove.c: Likewise.
36392
36393         unlink: new module, for Solaris 9 bug
36394         * modules/unlink: New file.
36395         * lib/unlink.c: Likewise.
36396         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
36397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36398         * modules/unistd (Makefile.am): Use them.
36399         * lib/unistd.in.h (stat): Declare replacement.
36400         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36401         * doc/posix-functions/unlink.texi (unlink): Likewise.
36402         * modules/unlink-tests: New test.
36403         * tests/test-unlink.c: Likewise.
36404
36405         lstat: fix Solaris 9 bug
36406         * lib/lstat.c (lstat): Also check for trailing slash on
36407         non-symlink, non-directories.  Use stat module to simplify logic.
36408         * doc/posix-functions/lstat.texi (lstat): Document it.
36409         * modules/lstat-tests (Depends-on): Add errno, same-inode.
36410         (configure.ac): Check for symlink.
36411         * tests/test-lstat.c (main): Add more tests.
36412
36413         stat: add as dependency to other modules
36414         * modules/chown (Depends-on): Add stat.
36415         * modules/euidaccess (Depends-on): Likewise.
36416         * modules/fchdir (Depends-on): Likewise.
36417         * modules/isdir (Depends-on): Likewise.
36418         * modules/link (Depends-on): Likewise.
36419         * modules/lstat (Depends-on): Likewise.
36420         * modules/mkdir-p (Depends-on): Likewise.
36421         * modules/modechange (Depends-on): Likewise.
36422         * modules/open (Depends-on): Likewise.
36423         * modules/readlink (Depends-on): Likewise.
36424         * modules/same (Depends-on): Likewise.
36425
36426         stat: fix Solaris 9 bug
36427         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
36428         slash.
36429         * lib/stat.c (rpl_stat): Work around it.
36430         * doc/posix-functions/stat.texi (stat): Update documentation.
36431
36432         stat: new module, for mingw bug
36433         * modules/stat: New file.
36434         * lib/stat.c: Likewise.
36435         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36436         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36437         * modules/sys_stat (Makefile.am): Use them.
36438         * lib/sys_stat.in.h (stat): Declare replacement.
36439         * lib/openat.c (fstatat): Deal with lstat and stat being function
36440         macros.
36441         * modules/openat (Depends-on): Add inline.
36442         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36443         * doc/posix-functions/stat.texi (stat): Likewise.
36444         * modules/stat-tests: New test.
36445         * tests/test-stat.c: Likewise.
36446
36447 2009-09-19  Jim Meyering  <meyering@redhat.com>
36448
36449         syntax-check: detect unnecessary inclusion of canonicalize.h
36450         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
36451
36452 2009-09-19  Eric Blake  <ebb9@byu.net>
36453
36454         canonicalize-lgpl: adjust clients to use correct header
36455         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36456         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
36457         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
36458         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
36459         * lib/progreloc.c (includes): Likewise.
36460
36461 2009-09-19  Jim Meyering  <meyering@redhat.com>
36462
36463         test-posixtm.c: correct a comment
36464         * tests/test-posixtm.c: Correct first-line comment.
36465         Spotted by Eric Blake.
36466
36467 2009-09-16  Jim Meyering  <meyering@redhat.com>
36468
36469         posixtm-tests: make T const-correct; add a test case
36470         * tests/test-posixtm.c (T): Declare const.
36471         Add a test for -(2^31+1).
36472         Remove useless can-succeed-only-in-2002 test.
36473
36474         posixtm-tests: adjust the sole failing test
36475         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
36476         expected output matches what mktime now produces.  Cross-checked via
36477         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
36478
36479         posixtm: move #ifdef'd tests into a new module
36480         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
36481         * tests/test-posixtm.c: ... this new file.
36482         * modules/posixtm-tests: New module.
36483
36484 2009-09-19  Eric Blake  <ebb9@byu.net>
36485
36486         openat: simplify use of at-func.c
36487         * lib/at-func.c (includes): Include prerequisites here, to
36488         simplify requirements on client files.
36489         * lib/openat-priv.h: Add double-inclusion guard.
36490         * lib/faccessat.c (includes): Simplify.
36491         * lib/fchmodat.c (includes): Likewise.
36492         * lib/fchownat.c (includes): Likewise.
36493         * lib/mkdirat.c (includes): Likewise.
36494         * lib/mkfifoat.c (includes): Likewise.
36495         * lib/symlinkat.c (includes): Likewise.
36496
36497         openat: allow return of fd 0
36498         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
36499         * modules/save-cwd (Depends-on): Replace fcntl-safer with
36500         unistd-safer.
36501         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
36502         <fcntl.h>; this module does not leak fds.
36503         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
36504         must be allowed to return 0, leaving openat_safer to add the
36505         safety.
36506         (openat_permissive): Avoid writing to just-opened fd 2 if
36507         restoring the current directory fails.
36508         * lib/openat-die.c (openat_restore_fail): Add comment.
36509         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
36510         (save_cwd): Guarantee safe fd, but without use of open_safer.
36511         * tests/test-openat.c: New test.
36512         * modules/openat-tests (Files, Makefile.am): Distribute and build
36513         new file.
36514
36515         relocatable-prog-wrapper: fix build
36516         * modules/relocatable-prog-wrapper (Files): Update name of
36517         canonicalize m4 file, broken on 2009-09-17.
36518         Reported by emad hajjar <aleppos@hotmail.com>.
36519
36520 2009-09-19  Bruno Haible  <bruno@clisp.org>
36521
36522         * lib/safe-alloc.h: Use the standard header with GPL copyright.
36523         * lib/safe-alloc.c: Likewise.
36524         Reported by Ian Beckwith <ianb@erislabs.net>.
36525
36526 2009-09-18  Bruno Haible  <bruno@clisp.org>
36527
36528         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
36529         Reported by <erobles@sensacd.com.mx>.
36530
36531 2009-09-17  Eric Blake  <ebb9@byu.net>
36532
36533         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
36534         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
36535         slashes when checking if last component is missing.
36536         * tests/test-canonicalize.c (main): Test this.
36537
36538         canonicalize, canonicalize-lgpl: honor // if distinct from /
36539         * modules/canonicalize (Files): Add double-slash-root.m4.
36540         * modules/canonicalize-lgpl (Files): Likewise.
36541         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36542         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
36543         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
36544         fallback definition.
36545         (canonicalize_filename_mode): Use it to protect //.
36546         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
36547         (__realpath): Likewise.
36548         * tests/test-canonicalize.c (main): Test this.
36549         * tests/test-canonicalize-lgpl.c (main): Likewise.
36550         * modules/canonicalize-tests (Depends-on): Add same-inode.
36551         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36552
36553         canonicalize-lgpl: fix glibc bug with trailing slash
36554         * m4/canonicalize-lgpl.m4: Move contents...
36555         * m4/canonicalize.m4: ...here.
36556         (gl_CANONICALIZE_LGPL): Factor realpath check...
36557         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
36558         glibc 2.3.5 bug, fixed 2005-04-27.
36559         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
36560         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
36561         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
36562         * modules/canonicalize-lgpl (Files): Manage file rename.
36563         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36564         * modules/stdlib (Makefile.am): Substitute witness.
36565         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
36566         is needed.
36567         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
36568         replacement is required.
36569         * lib/canonicalize.c (canonicalize_file_name): Likewise.
36570         * doc/glibc-functions/canonicalize_file_name.texi
36571         (canonicalize_file_name): Document this.
36572         * doc/posix-functions/realpath.texi (realpath): Likewise.
36573
36574         canonicalize-lgpl: reject non-directory with trailing slash
36575         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
36576         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
36577         catches failures in glibc 2.3.5.
36578         * tests/test-canonicalize.c (main): Likewise.
36579
36580         canonicalize-lgpl: use native realpath if it works
36581         * lib/canonicalize-lgpl.c (realpath): Guard with
36582         FUNC_REALPATH_WORKS.
36583         * lib/stdlib.in.h (realpath): Make declaration optional based on
36584         HAVE_REALPATH.
36585         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
36586         native realpath works.
36587         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36588         * modules/stdlib (Makefile.am): Substitute witness.
36589
36590         canonicalize, canonicalize-lgpl: use <stdlib.h>
36591         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
36592         (Include): Mention <stdlib.h>.
36593         (configure.ac): Mention functions we provide.
36594         * modules/canonicalize (configure.ac): Likewise.
36595         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
36596         realpath if canonicalize_file_name is missing.
36597         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
36598         * modules/stdlib (Makefile.am): Substitute witnesses.
36599         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
36600         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
36601         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
36602         * NEWS: Document this.
36603         * doc/glibc-functions/canonicalize_file_name.texi
36604         (canonicalize_file_name): Likewise.
36605         * doc/posix-functions/realpath.texi (realpath): Likewise.
36606         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
36607
36608         test-canonicalize: consolidate into single C program
36609         * tests/test-canonicalize.sh: Delete; move setup into...
36610         * tests/test-canonicalize.c (main): ...the program, making it
36611         easier to run in debugger.  Add some tests.
36612         * modules/canonicalize-tests (Files): Remove unused file.
36613         (Depends-on): Add progname.
36614         (configure.ac, Makefile.am): Simplify.
36615
36616         test-canonicalize-lgpl: consolidate into single C program
36617         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
36618         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
36619         easier to run in debugger.  Add some tests.
36620         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
36621         (configure.ac, Makefile.am): Simplify.
36622
36623         canonicalize: avoid resolvepath
36624         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
36625         unnecessary checks.
36626         * lib/canonicalize.c (includes): Simplify.
36627         (canonicalize_file_name): Drop resolvepath implementation.
36628         * modules/canonicalize (Depends-on): Drop filenamecat.
36629
36630         canonicalize: don't lose errno
36631         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
36632         over calls to free.
36633
36634         canonicalize: simplify errno handling
36635         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
36636         assignment.
36637
36638         canonicalize, canonicalize-lgpl: update module dependencies
36639         * modules/canonicalize (Depends-on): Add extensions, lstat,
36640         pathmax, stdlib.
36641         (Files): Drop pathmax.h.
36642         (configure.ac): Adjust macro name.
36643         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
36644         lstat, stdlib, sys_stat.
36645         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
36646         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
36647         extensions.
36648         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
36649         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
36650         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
36651         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
36652         declaration, if available.
36653         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
36654         we can rely on the readlink module.
36655         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
36656         (includes): Use <unistd.h> unconditionally.
36657
36658 2009-09-17  Eric Blake  <ebb9@byu.net>
36659
36660         maint: make Include sections of modules consistent
36661         * modules/alloca: Use only header name; no need to list #include.
36662         * modules/alloca-opt: Likewise.
36663         * modules/arpa_inet: Likewise.
36664         * modules/canon-host: Likewise.
36665         * modules/configmake: Likewise.
36666         * modules/dirent: Likewise.
36667         * modules/eealloc: Likewise.
36668         * modules/environ: Likewise.
36669         * modules/fchdir: Likewise.
36670         * modules/fcntl: Likewise.
36671         * modules/fcntl-h: Likewise.
36672         * modules/gethrxtime: Likewise.
36673         * modules/gettime: Likewise.
36674         * modules/ignore-value: Likewise.
36675         * modules/inet_ntop: Likewise.
36676         * modules/inet_pton: Likewise.
36677         * modules/inttypes: Likewise.
36678         * modules/isnand-nolibm: Likewise.
36679         * modules/isnanf-nolibm: Likewise.
36680         * modules/mbchar: Likewise.
36681         * modules/mbfile: Likewise.
36682         * modules/mbiter: Likewise.
36683         * modules/mbuiter: Likewise.
36684         * modules/netdb: Likewise.
36685         * modules/netinet_in: Likewise.
36686         * modules/nproc: Likewise.
36687         * modules/pagealign_alloc: Likewise.
36688         * modules/poll: Likewise.
36689         * modules/printf-frexp: Likewise.
36690         * modules/pthread: Likewise.
36691         * modules/putenv: Likewise.
36692         * modules/random_r: Likewise.
36693         * modules/relocatable-prog: Likewise.
36694         * modules/search: Likewise.
36695         * modules/select: Likewise.
36696         * modules/selinux-h: Likewise.
36697         * modules/settime: Likewise.
36698         * modules/signal: Likewise.
36699         * modules/size_max: Likewise.
36700         * modules/socklen: Likewise.
36701         * modules/ssize_t: Likewise.
36702         * modules/stdarg: Likewise.
36703         * modules/stdbool: Likewise.
36704         * modules/stddef: Likewise.
36705         * modules/stdint: Likewise.
36706         * modules/stdio: Likewise.
36707         * modules/stdlib: Likewise.
36708         * modules/string: Likewise.
36709         * modules/strings: Likewise.
36710         * modules/sys_file: Likewise.
36711         * modules/sys_ioctl: Likewise.
36712         * modules/sys_select: Likewise.
36713         * modules/sys_socket: Likewise.
36714         * modules/sys_stat: Likewise.
36715         * modules/sys_time: Likewise.
36716         * modules/sys_times: Likewise.
36717         * modules/sys_utsname: Likewise.
36718         * modules/sys_wait: Likewise.
36719         * modules/sysexits: Likewise.
36720         * modules/time: Likewise.
36721         * modules/times: Likewise.
36722         * modules/tmpfile: Likewise.
36723         * modules/trim: Likewise.
36724         * modules/unistd: Likewise.
36725         * modules/wchar: Likewise.
36726         * modules/wctype: Likewise.
36727
36728 2009-09-17  Bruno Haible  <bruno@clisp.org>
36729
36730         Make getdate.y compile on QNX and NetBSD 5 / i386.
36731         * m4/getdate.m4 (gl_GETDATE): Conditionally define
36732         TIME_T_FITS_IN_LONG_INT.
36733         * lib/getdate.y (long_time_t): New type.
36734         (relative_time): Change type of 'seconds' field to long_time_t.
36735         (get_date): Update types of local variables. Check against overflow
36736         during conversion from long_time_t to time_t.
36737         Reported by Matt Kraai <kraai@ftbfs.org>
36738         and Hasso Tepper <hasso@netbsd.org>.
36739
36740 2009-09-17  Bruno Haible  <bruno@clisp.org>
36741
36742         * modules/COPYING: Update copyright years.
36743         * modules/README: Likeiwse.
36744         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
36745         Reported by Ian Beckwith <ianb@erislabs.net>.
36746
36747 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36748
36749         * users.txt: Update references for gnuit package.
36750
36751 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36752
36753         * m4/getdelim.m4: Fix typo in copyright line.
36754
36755 2009-09-17  Bruno Haible  <bruno@clisp.org>
36756
36757         * lib/atoll.c: Use the standard header with GPL copyright.
36758         * lib/argz.in.h: Likewise.
36759         * lib/glob.c: Likewise.
36760         * lib/glob-libc.h: Likewise.
36761         * lib/random_r.c: Likewise.
36762         * lib/siglist.h: Likewise.
36763         * lib/strsignal.c: Likewise.
36764         Reported by Ian Beckwith <ianb@erislabs.net>.
36765
36766 2009-09-17  Eric Blake  <ebb9@byu.net>
36767
36768         rmdir: ensure correct dependency order
36769         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
36770
36771 2009-09-17  Bruno Haible  <bruno@clisp.org>
36772
36773         Disable assertion that fails on NetBSD 5 / i386.
36774         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
36775         Reported by Sam Steingold <sds@gnu.org>
36776         and Hasso Tepper <hasso@netbsd.org>.
36777
36778 2009-09-16  Eric Blake  <ebb9@byu.net>
36779
36780         unlinkdir: port to mingw
36781         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
36782         on which no one can unlink a directory.
36783
36784         stdlib: sort witness names
36785         * modules/stdlib (Makefile.am): Sort replacements.
36786         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36787         * lib/stdlib.in.h: Likewise.
36788
36789         parse-duration-tests: avoid link failure
36790         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
36791         LIBINTL.
36792         Reported by Tom G. Christensen.
36793
36794         openat-tests: ensure unlinkat behaves like rmdir
36795         * tests/test-rmdir.c (main): Factor guts...
36796         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
36797         * modules/rmdir-tests (Files): Ship new file.
36798         * modules/openat-tests: New test.
36799         * tests/test-unlinkat.c: Likewise.
36800
36801         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
36802         * modules/rmdir-errno (Status, Notice): Now obsolete.
36803
36804         rmdir: work around cygwin 1.5.x and mingw bugs
36805         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
36806         * lib/rmdir.c (rmdir): Work around it.
36807         * modules/rmdir (Status, Notice): No longer obsolete.
36808         (Files): Add dos.m4.
36809         (Depends-on): Add unistd.
36810         (configure.ac): Set witnesses.
36811         (License): Relax to LGPLv2+.
36812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
36813         * modules/unistd (Makefile.am): Substitute witnesses.
36814         * lib/unistd.in.h (rmdir): Declare replacement.
36815         * doc/posix-functions/rmdir.texi (rmdir): Document this.
36816         * modules/rmdir-tests: New tests.
36817         * tests/test-rmdir.c: Likewise.
36818
36819 2009-09-15  Eric Blake  <ebb9@byu.net>
36820
36821         fchdir: improve use of replacement functions
36822         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
36823         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
36824         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
36825         REPLACE_CLOSEDIR.
36826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
36827         * modules/sys_stat (Makefile.am): Substitute correct witness.
36828         * modules/dirent (Makefile.am): Likewise.
36829         * modules/unistd (Makefile.am): Likewise.
36830         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
36831         * lib/unistd.in.h (dup): Likewise.
36832         * lib/sys_stat.in.h (fstat): Likewise.
36833
36834         maint: ignore gnulib-tool temp files
36835         * .gitignore: Ignore files created during gnulib-tool --test.
36836
36837 2009-09-13  Jim Meyering  <meyering@redhat.com>
36838
36839         posixtm: don't reject a time that specify "60" as the number of seconds
36840         * lib/posixtm.c (posixtime): The code to reject invalid dates
36841         would also reject a time specified with the .60 suffix.
36842         But POSIX allows that, in order to accommodate leap seconds.
36843         So don't reject it.
36844         (main): Adjust tests accordingly.
36845         * modules/posixtm (Depends-on): Add stpcpy.
36846
36847 2009-09-11  Jim Meyering  <meyering@redhat.com>
36848
36849         announce-gen: include [$release_type] in emitted Subject:
36850         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
36851         e.g., [stable] in the emitted Subject: line.
36852
36853 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36854
36855         Remove obsolete macros from several modules.
36856         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
36857         obsolete Autoconf macros with their modern counterparts.
36858         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
36859         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
36860         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
36861         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
36862         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
36863         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36864         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
36865         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36866         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
36867         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
36868         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
36869         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
36870         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
36871         * m4/sockets.m4 (gl_SOCKETS): Likewise.
36872         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
36873         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
36874         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
36875         * m4/time_r.m4 (gl_TIME_R): Likewise.
36876         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
36877         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
36878         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36879
36880         Fix copyright header in build-aux scripts.
36881         * build-aux/git-version-gen: Fix copyright header to match GPLv3
36882         recommendation.
36883         * build-aux/ncftpput-ftp: Likewise.
36884         * build-aux/update-copyright: Likewise.
36885
36886 2009-09-09  Eric Blake  <ebb9@byu.net>
36887
36888         test-link: allow Linux choice of errno
36889         * tests/test-link.c (main): Relax test for alternate error.
36890
36891         strndup: fix improper m4 caching
36892         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
36893         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
36894         (gl_PREREQ_STRNDUP): Delete.
36895         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
36896         * modules/string (Makefile.am): Substitute it.
36897         * lib/string.in.h (strndup): Modernize prototype.
36898
36899         getcwd: port to mingw
36900         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
36901         different from the POSIX assumptions made throughout the getcwd
36902         module; fortunately, the mingw getcwd does not need replacement.
36903         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
36904         * modules/getcwd-tests: New test.
36905         * tests/test-getcwd.c: Likewise.
36906
36907         link: fix platform bugs
36908         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
36909         * lib/link.c (link): Work around them.  Fix related mingw bug.
36910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
36911         * modules/unistd (Makefile.am): Substitute it.
36912         * lib/unistd.in.h (link): Declare replacement.
36913         * doc/posix-functions/link.texi (link): Document this.
36914         * modules/link (Depends-on): Add strdup-posix, sys_stat.
36915
36916         test-link: consolidate into single C program, test more cases
36917         * tests/test-link.sh: Delete.
36918         * tests/test-link.c: Test more error conditions.  Exposes bugs on
36919         at least Cygwin and Solaris.
36920         * modules/link-tests (Files): Remove unused file.
36921         (Depends-on): Add errno, sys_stat.
36922         (Makefile.am): Simplify.
36923
36924 2009-09-08  Bruno Haible  <bruno@clisp.org>
36925
36926         Work around towlower, towupper bug on mingw.
36927         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
36928         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
36929         * doc/posix-functions/towlower.texi: Mention the mingw bug.
36930         * doc/posix-functions/towupper.texi: Likewise.
36931         Reported by Eric Blake.
36932
36933 2009-09-08  Jim Meyering  <meyering@redhat.com>
36934
36935         build: don't try to run autoheader if we don't use it
36936         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
36937         is not used in configure.ac.
36938
36939 2009-09-08  Eric Blake  <ebb9@byu.net>
36940
36941         euidaccess: fix compilation error
36942         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
36943
36944         rawmemchr: relax license
36945         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
36946         okay.
36947         Reported by Jim Meyering.
36948
36949         mkfifoat: new module
36950         * modules/mkfifoat: New file.
36951         * lib/mkfifoat.c: Likewise.
36952         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
36953         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36954         * modules/sys_stat (Makefile.am): Use them.
36955         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
36956         * MODULES.html.sh (File system functions): Mention module.
36957         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36958         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36959         * modules/mkfifoat-tests: New test.
36960         * tests/test-mkfifoat.c: Likewise.
36961
36962         strchrnul: relax license
36963         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
36964         okay.
36965         Reported by Jim Meyering.
36966
36967 2009-09-08  Eric Blake  <ebb9@byu.net>
36968
36969         fstatat: fix compilation on Solaris
36970         * lib/fstatat.c (includes): Add fcntl.h.
36971         Reported by Pádraig Brady.
36972
36973 2009-09-07  Eric Blake  <ebb9@byu.net>
36974
36975         rename: modernize replacement
36976         * modules/rename (Depends-on): Add stdio.
36977         (configure.ac): Declare witness.
36978         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
36979         stdio take care of replacement.
36980         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
36981         * modules/stdio (Makefile.am): Substitute them.
36982         * lib/stdio.in.h (rename): Declare replacement.
36983         * lib/rename.c (includes): Allow cross-compilation to non-windows
36984         machines.
36985         * doc/posix-functions/rename.texi (rename): Improve
36986         documentation.
36987
36988         stdio: sort witness names
36989         * modules/stdio (Makefile.am): Sort replacements.
36990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36991         * lib/stdio.in.h: Likewise.
36992
36993         getcwd: minor cleanups
36994         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
36995         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
36996
36997         openat: provide more convenience names
36998         * modules/faccessat (configure.ac): Add C witness.
36999         * lib/unistd.in.h (readlinkat): Fix typo.
37000         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
37001         convenience wrappers.
37002         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
37003         wrappers in syntax checks.
37004
37005 2009-09-06  Eric Blake  <ebb9@byu.net>
37006
37007         doc: fix comments in recent patches
37008         * lib/faccessat.c: Mention correct function.
37009         * lib/fchmodat.c: Likewise.
37010         * lib/fchownat.c: Likewise.
37011         * lib/symlinkat.c: Likewise.
37012         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
37013         constants.
37014
37015         faccessat, symlinkat: continue cleanup of previous patch
37016         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
37017         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37018         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
37019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
37020         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
37021         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
37022         set.
37023
37024 2009-09-06  Bruno Haible  <bruno@clisp.org>
37025
37026         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
37027         (fstatat): Declare if GNULIB_FSTATAT is set.
37028         (mkdirat): Declare if GNULIB_MKDIRAT is set.
37029         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
37030         (unlinkat): Declare if GNULIB_UNLINKAT is set.
37031         * modules/fcntl-h (Files): Remove m4/openat.m4.
37032         * modules/sys_stat (Files): Remove m4/openat.m4.
37033         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
37034         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
37035         * modules/unistd (Files): Remove m4/openat.m4.
37036         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
37037         GNULIB_OPENAT.
37038         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
37039         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
37040         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
37041         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
37042         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
37043         gl_OPENAT_DEFAULTS.
37044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
37045         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
37046         Don't require gl_OPENAT_DEFAULTS.
37047         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
37048         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
37049         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
37050         (gl_OPENAT_DEFAULTS): Remove macro.
37051
37052 2009-09-06  Bruno Haible  <bruno@clisp.org>
37053
37054         * modules/openat (configure.ac): Remove unneeded witness.
37055
37056 2009-09-06  Bruno Haible  <bruno@clisp.org>
37057
37058         Set errno to ENOSYS when a function is entirely unsupported.
37059         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
37060         EOPNOTSUPP.
37061         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37062         * modules/chown (Depends-on): Remove errno.
37063
37064 2009-09-06  Bruno Haible  <bruno@clisp.org>
37065
37066         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
37067
37068 2009-09-06  Bruno Haible  <bruno@clisp.org>
37069
37070         * lib/sys_stat.in.h: Fix preprocessor command indentation.
37071
37072 2009-09-06  Ben Pfaff  <blp@gnu.org>
37073             Bruno Haible  <bruno@clisp.org>
37074
37075         Work around a glibc bug in strtok_r.
37076         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
37077         Undefine if UNDEFINE_STRTOK_R is set.
37078         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
37079         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37080         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
37081         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
37082         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
37083         UNDEFINE_STRTOK_R.
37084         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
37085
37086 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
37087
37088         exclude: minor fix
37089         * lib/exclude.c: Include wctype.h
37090
37091 2009-09-06  Akim Demaille  <demaille@gostai.com>
37092
37093         bootstrap: improve error message
37094         * build-aux/bootstrap (find_tool): Upon failure, report the list
37095         of candidates.
37096         Honor the initial value of the envvar.
37097
37098 2009-09-05  Eric Blake  <ebb9@byu.net>
37099
37100         symlinkat: new module
37101         * modules/symlinkat: New file.
37102         * lib/symlinkat.c: Likewise.
37103         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
37104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37105         * modules/unistd (Makefile.am): Use them.
37106         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
37107         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
37108         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
37109         * MODULES.html.sh (File system functions): Mention module.
37110         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37111         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37112         * modules/symlinkat-tests: New test.
37113         * tests/test-symlinkat.c: Likewise.
37114
37115         test-openat-safer: add more checks
37116         * tests/test-openat-safer.c (main): Check more code paths.
37117
37118 2009-09-05  Jim Meyering  <meyering@redhat.com>
37119
37120         syntax-check: detect unnecessary inclusion of openat.h
37121         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
37122
37123 2009-09-05  Bruno Haible  <bruno@clisp.org>
37124
37125         Support towlower, towupper.
37126         * doc/posix-functions/towlower.texi: Mention module wctype.
37127         * doc/posix-functions/towupper.texi: Likewise.
37128         * lib/wctype.in.h (towlower, towupper): New functions.
37129         * tests/test-wctype.c: Include stdio.h, stdlib.h.
37130         (ASSERT): New macro.
37131         (e): New variable.
37132         (main): Test also towlower, towupper. Test WEOF argument.
37133         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37134
37135 2009-09-05  Bruno Haible  <bruno@clisp.org>
37136
37137         Fix conversion behaviour when the input is invalid.
37138         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
37139         mark occurring in first pass of indirect conversion.
37140         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
37141         input.
37142         Found by clang's static analyzer.
37143
37144 2009-09-05  Bruno Haible  <bruno@clisp.org>
37145
37146         * tests/test-striconveh.c (main): Test indirect conversion on platforms
37147         where direct conversion is possible.
37148
37149 2009-09-04  Eric Blake  <ebb9@byu.net>
37150
37151         openat: fail with ENOENT on empty name
37152         * lib/openat-proc.c (openat_proc_name): Special-case the empty
37153         buffer.
37154
37155         link-follow: fix logic bug in prior patch
37156         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
37157         reversed sense of yes and no in prior patch.  Avoid confusing
37158         compilation failure with desired semantics.
37159
37160         link-follow: accomodate mingw and cross-compilation
37161         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
37162         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
37163         cross-compilation results to -1, to make linkat easier to
37164         implement when cross-compiling.  Trivially support mingw.
37165         * modules/link-follow (configure.ac): Call new name.
37166         * NEWS: Mention this.
37167
37168 2009-09-03  Eric Blake  <ebb9@byu.net>
37169
37170         faccessat: compile replacement
37171         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
37172         needed.
37173
37174         fts: fix compilation error
37175         * lib/fts.c (includes): Re-add "openat.h", for
37176         openat_needs_fchdir.
37177
37178         faccessat: new module
37179         * modules/faccessat: New file.
37180         * lib/faccessat.c: Likewise.
37181         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37182         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37183         * modules/unistd (Makefile.am): Use it.
37184         * lib/unistd.in.h (faccessat): Declare it.
37185         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
37186         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
37187         * MODULES.html.sh (File system functions): Mention it.
37188         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
37189         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37190
37191         euidaccess: prefer POSIX over non-standard implementation
37192         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
37193         * lib/euidaccess.c (euidaccess): Use it if available.
37194
37195         openat: make template easier to use
37196         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
37197         AT_FUNC_F2 to be undefined.
37198         (VALIDATE_FLAG): New macro; use it to reject bad flags.
37199         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
37200         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
37201         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
37202         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
37203         Likewise.
37204         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
37205         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
37206         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
37207         Likewise.
37208
37209         openat: declare in POSIX headers
37210         * NEWS: Mention this.
37211         * modules/openat (configure.ac): Declare witnesses.
37212         (Depends-on): Add fcntl-h, sys_stat, unistd.
37213         (Include): Mention correct headers.
37214         * modules/fcntl-h (Depends-on): Add link-warning.
37215         (Files): Add openat.m4.
37216         (Makefile.am): Substitute witnesses.
37217         * modules/sys_stat (Files, Makefile.am): Likewise.
37218         * modules/unistd (Files, Makefile.am): Likewise.
37219         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
37220         (gl_OPENAT_DEFAULTS): New macro.
37221         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
37222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
37223         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
37224         (SYS_STAT_H): Remove unused variable.
37225         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
37226         * lib/fcntl--.h (includes): Remove unneeded header.
37227         * lib/openat-safer.c (includes): Likewise.
37228         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
37229         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
37230         appropriate headers.
37231         (__OPENAT_PREFIX): Delete.
37232         * lib/fcntl.in.h (openat): Provide declaration.
37233         (AT_FDCWD): Fix Solaris bug.
37234         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
37235         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
37236         * lib/fchmodat.c (includes):  Adjust to find declaration.
37237         * lib/fchownat.c (includes): Likewise.
37238         * lib/mkdirat.c (includes): Likewise.
37239         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
37240         still visible.
37241
37242 2009-09-02  Eric Blake  <ebb9@byu.net>
37243
37244         errno: use consistently
37245         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
37246         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
37247         * lib/canonicalize.c (ELOOP): Likewise.
37248         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
37249         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
37250         * lib/lchown.c (EOPNOTSUPP): Likewise.
37251         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
37252         * lib/savewd.c (ESTALE): Likewise.
37253         * lib/settime.c (ENOSYS): Likewise.
37254         * lib/utimens.c (ENOSYS): Likewise.
37255         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
37256         * lib/chdir-safer.c (ELOOP): Likewise.
37257         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
37258         * modules/c-stack (Depends-on): Add errno.
37259         * modules/canonicalize (Depends-on): Likewise.
37260         * modules/chdir-safer (Depends-on): Likewise.
37261         * modules/fdopendir (Depends-on): Likewise.
37262         * modules/inet_ntop (Depends-on): Likewise.
37263         * modules/inet_pton (Depends-on): Likewise.
37264         * modules/lchown (Depends-on): Likewise.
37265         * modules/openat (Depends-on): Likewise.
37266         * modules/savewd (Depends-on): Likewise.
37267         * modules/settime (Depends-on): Likewise.
37268         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
37269
37270         fts: avoid leaking fds
37271         * modules/fts (Depends-on): Add cloexec.
37272         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
37273         flag.
37274
37275         fts: make directory fds more robust
37276         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
37277         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
37278
37279         backupfile, chdir-long, fts, savedir: make safer
37280         * lib/backupfile.c (includes): Use "dirent--.h", since
37281         numbered_backup can write to stderr during readdir.
37282         * lib/savedir.c (includes): Likewise.
37283         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
37284         emulation can write to stderr on failure.
37285         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
37286         * lib/getcwd.c: Document why opendir_safer is unused.
37287         * lib/glob.c: Likewise.
37288         * lib/scandir.c: Likewise.
37289         * lib/openat-proc.c: Likewise, for open_safer.
37290         * modules/backupfile (Depends-on): Add dirent-safer.
37291         * modules/savedir (Depends-on): Likewise.
37292         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
37293         * modules/chdir-long (Depends-on): Add openat-safer.
37294
37295         openat-safer: new module
37296         * modules/openat-safer: New file.
37297         * lib/openat-safer.c: Likewise.
37298         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
37299         * lib/fcntl-safer.h (openat_safer): Declare.
37300         * lib/fcntl--.h (openat): Override.
37301         * MODULES.html.sh (File descriptor based I/O): Mention it.
37302         * lib/openat.h: Add double-inclusion guards.
37303         * lib/openat.c (includes): Only include "fcntl-safer.h", not
37304         "fcntl--.h", so we can implement openat.
37305         * modules/openat-safer-tests: New test.
37306         * tests/test-openat-safer.c: New file.
37307
37308         dirent-safer: new module
37309         * modules/dirent-safer: New file.
37310         * lib/dirent--.h: Likewise.
37311         * lib/dirent-safer.h: Likewise.
37312         * lib/opendir-safer.c: Likewise.
37313         * m4/dirent-safer.m4: Likewise.
37314         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
37315         * modules/dirent-safer-tests: New test.
37316         * tests/test-dirent-safer.c: New file.
37317         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
37318
37319         fdopendir: optimize on mingw
37320         * lib/unistd.in.h (_gl_directory_name): New prototype.
37321         * lib/fchdir.c (_gl_directory_name): Implement it.
37322         (fchdir): Use it to simplify implementation.
37323         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
37324         fchdir, when available, to avoid calling [f]chdir().
37325
37326         fdopendir: split into its own module
37327         * lib/openat.c (fdopendir): Move...
37328         * lib/fdopendir.c: ...into new file.
37329         * modules/fdopendir: New module.
37330         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
37331         * modules/openat (Depends-on): Add fdopendir.
37332         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
37333         fdopendir here.
37334         * modules/savedir (Depends-on): Only need fdopendir, not full
37335         openat.
37336         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
37337         * lib/openat.h (fdopendir): Drop prototype.
37338         * lib/dirent.in.h (fdopendir): Provide prototype.
37339         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
37340         * modules/dirent (Makefile.am): Substitute them.
37341         * MODULES.html.sh (File system functions): Mention it.
37342         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
37343         * modules/fdopendir-tests: New file.
37344         * tests/test-fdopendir.c: Likewise.
37345
37346         fchdir: use more consistent macro convention
37347         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
37348         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
37349         REPLACE_FCHDIR, rather than relying on config.h macros.
37350         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
37351         inside a single make-time REPLACE_FCHDIR block, rather than using
37352         the config.h FCHDIR_REPLACEMENT.
37353         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
37354         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
37355         Manage fstat replacement.
37356         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
37357         REPLACE_FCHDIR.
37358         * modules/sys_stat (Files): Add m4/unistd_h.m4.
37359         (Makefile.am): Substitute REPLACE_FCHDIR.
37360         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
37361         FCHDIR_REPLACEMENT.
37362         * lib/dup-safer.c (dup_safer): Likewise.
37363         * lib/dup2.c (rpl_dup2): Likewise.
37364         * lib/dup3.c (rpl_dup3): Likewise.
37365         * lib/open.c (rpl_open): Likewise.
37366
37367         fchdir: simplify error handling, and support dup3
37368         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
37369         stdbool, malloc-posix, realloc-posix.
37370         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
37371         (ensure_dirs_slot): Return false on allocation failure.
37372         (rpl_dup2): Delete.
37373         (_gl_register_dup): New function.
37374         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
37375         (_gl_register_fd): Close fd on allocation failure.
37376         * lib/fcntl.in.h (_gl_register_fd): Update signature.
37377         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
37378         prototype.
37379         (rpl_dup2_fchdir): Delete prototype.
37380         * lib/open.c (open): Update caller.
37381         * lib/dup2.c (dup2): Track fchdir metadata.
37382         * lib/dup3.c (dup3): Likewise.
37383         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
37384         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
37385
37386 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37387
37388         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
37389         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
37390         don't pass arguments to AC_OUTPUT.
37391
37392 2009-09-02  Bruno Haible  <bruno@clisp.org>
37393
37394         * modules/mkdtemp (License): Relicense under LGPLv2+.
37395         Reported by Paolo Bonzini.
37396
37397 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37398
37399         Replace uses of obsolete autoconf macros in Jim's modules.
37400         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
37401         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
37402         can evoke a warning from autoconf when run with -Wobsolete
37403         enabled.  They were declared obsolete for good reasons (see
37404         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
37405         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
37406         should not continue using the deprecated macros.
37407         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
37408         obsolete Autoconf macros with modern counterparts.
37409         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
37410         * m4/dos.m4 (gl_AC_DOS): Likewise.
37411         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
37412         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
37413         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
37414         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
37415         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
37416         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
37417         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
37418         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
37419         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
37420         Likewise.
37421         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
37422         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
37423         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
37424         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
37425         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37426         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
37427
37428 2009-09-01  Eric Blake  <ebb9@byu.net>
37429
37430         fchdir: fix off-by-one bug in previous patch
37431         * lib/fchdir.c (rpl_fstat): Use correct bounds.
37432         (_gl_unregister_fd): Delete useless if.
37433
37434 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
37435
37436         maint.mk: sort the list of syntax-check rules
37437         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
37438         easier to get a sense of progress when the rules are run sequentially
37439         and take a long time.
37440
37441 2009-09-01  Simon Josefsson  <simon@josefsson.org>
37442
37443         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
37444         * modules/netinet_in: Likewise.
37445         * modules/sys_file: Likewise.
37446         * modules/sys_ioctl: Likewise.
37447         * modules/sys_select: Likewise.
37448         * modules/sys_socket: Likewise.
37449         * modules/sys_stat: Likewise.
37450         * modules/sys_time: Likewise.
37451         * modules/sys_times: Likewise.
37452         * modules/sys_utsname: Likewise.
37453         * modules/sys_wait: Likewise.
37454
37455 2009-09-01  Jim Meyering  <meyering@redhat.com>
37456
37457         fts: help ensure that return values are not ignored
37458         * lib/fts_.h (__GNUC_PREREQ): Define.
37459         (__attribute_warn_unused_result__): Define.
37460         (fts_children, fts_close, fts_open, fts_read): Declare with
37461         __attribute_warn_unused_result__.
37462
37463         fts: fts_close now fails also when closing a dir file descriptor fails
37464         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
37465         and propagate to caller, along with errno.
37466
37467         announce-gen: correct formatting in --help output
37468         * build-aux/announce-gen (usage): Move the one-line description in
37469         --help output "up", to where it belongs, just after Usage:.
37470
37471 2009-08-31  Eric Blake  <ebb9@byu.net>
37472
37473         fchdir: port to mingw
37474         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
37475         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
37476         opened, then use a substitute.
37477         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
37478         replacement.
37479         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
37480         (_gl_register_fd): No need to check stat if open already filters
37481         all directories.
37482         (fchdir): Fix error condition to match POSIX.
37483         * modules/fchdir (Depends-on): Add sys_stat.
37484         * doc/posix-functions/open.texi (open): Document the limitation.
37485         * modules/fchdir-tests: New file.
37486         * tests/test-fchdir.c: Likewise.
37487
37488         canonicalize: allow cross-testing from cygwin to mingw
37489         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
37490         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
37491         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
37492         Likewise.
37493         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
37494         target does not support symlinks.
37495         * tests/test-canonicalize-lgpl.sh: Likewise.
37496
37497         chown: avoid compilation warning on mingw
37498         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
37499         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
37500         mingw.
37501         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37502         * modules/chown (Depends-on): Add errno.
37503
37504 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
37505
37506         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
37507         command.
37508
37509 2009-08-31  Jim Meyering  <meyering@redhat.com>
37510
37511         canonicalize: remove useless initialization
37512         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
37513         initialization of local, "end".
37514
37515 2009-08-30  Bruno Haible  <bruno@clisp.org>
37516
37517         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
37518         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
37519         ENOSYS.
37520
37521 2009-08-30  Bruno Haible  <bruno@clisp.org>
37522
37523         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
37524         /usr/xpg4/bin/tr when it exists.
37525         * tests/test-pipe-filter-gi1.sh: Likewise.
37526
37527 2009-08-30  Bruno Haible  <bruno@clisp.org>
37528
37529         Work around deficient /usr/bin/id program on Solaris.
37530         * tests/test-file-has-acl.sh (ID): New variable.
37531         * tests/test-set-mode-acl.sh (ID): Likewise.
37532         * tests/test-copy-acl.sh (ID): Likewise.
37533         * tests/test-copy-file.sh (ID): Likewise.
37534
37535 2009-08-30  Bruno Haible  <bruno@clisp.org>
37536
37537         New module 'xstriconveh'.
37538         * lib/xstriconveh.h: New file.
37539         * lib/xstriconveh.c: New file.
37540         * modules/xstriconveh: New file.
37541
37542 2009-08-30  Bruno Haible  <bruno@clisp.org>
37543
37544         Make it easier to use mem_cd_iconveh.
37545         * lib/striconveh.h (iconveh_t): New type.
37546         (iconveh_open, iconveh_close): New declarations.
37547         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37548         with a single 'const iconveh_t *' argument.
37549         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
37550         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37551         with a single 'const iconveh_t *' argument.
37552         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
37553         * tests/test-striconveh.c (main): Update.
37554         * NEWS: Mention the change.
37555
37556 2009-08-30  Bruno Haible  <bruno@clisp.org>
37557
37558         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
37559         problem.
37560
37561 2009-08-30  Bruno Haible  <bruno@clisp.org>
37562
37563         Work around iconv_open problem on Solaris.
37564         * lib/iconv_open-solaris.gperf: New file.
37565         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
37566         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
37567         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
37568         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
37569         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
37570         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
37571
37572 2009-08-29  Jim Meyering  <meyering@redhat.com>
37573
37574         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
37575         * top/maint.mk (cvs-check): Remove target; it was just an alias
37576         to the better-named vc-diff-check.
37577         (maintainer-distcheck): Remove rule.  It was used only from
37578         the (alpha/beta/major) target, and all of its commands but one
37579         were coreutils-specific.
37580         (vc-dist): Remove rule.
37581         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
37582         Run vc-diff-check, not vc-dist.
37583         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
37584
37585 2009-08-27  Bruno Haible  <bruno@clisp.org>
37586
37587         * tests/test-bitrotate.c (main): Remove test that uses a shift count
37588         of 0.
37589
37590 2009-08-27  Bruno Haible  <bruno@clisp.org>
37591
37592         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
37593         compilers.
37594         * doc/func.texi: Document the SunPRO C bug.
37595
37596 2009-08-27  Bruno Haible  <bruno@clisp.org>
37597
37598         Fix link error on Solaris.
37599         * tests/test-parse-duration.c (xstrdup): Remove function.
37600
37601 2009-08-26  Pádraig Brady  <P@draigbrady.com>
37602
37603         ignore-value: handle pointer types, too
37604         * lib/ignore-value.h (__attribute__): Remove definition.
37605         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
37606         of a more concise and more-often effective "(void) i" statement.
37607         (ignore_ptr): New function to suppress warnings from functions that
37608         return pointers, and to make it explicit that one function doesn't
37609         handle all cases.
37610
37611 2009-08-25  Bruno Haible  <bruno@clisp.org>
37612
37613         dup2: work around a Linux bug.
37614         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
37615         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
37616         * doc/posix-functions/dup2.texi: Mention the Linux bug.
37617         Reported by Simon Josefsson.
37618
37619 2009-08-25  Jim Meyering  <meyering@redhat.com>
37620
37621         libguestfs uses gnulib
37622         * users.txt: Add libguestfs.
37623
37624 2009-08-24  Eric Blake  <ebb9@byu.net>
37625
37626         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
37627         * lib/pipe2.c (includes): Add binary-io.h.
37628         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
37629
37630 2009-08-24  Bruno Haible  <bruno@clisp.org>
37631
37632         Tolerate declared but missing accept4 syscall.
37633         * lib/accept4.c (accept4): Invoke original accept4 function first, if
37634         available.
37635         * lib/sys_socket.in.h (accept4): If the function is already present,
37636         override it.
37637         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
37638         * modules/accept4 (Makefile.am): Compile accept4.c always.
37639         Reported by Paolo Bonzini and Eric Blake.
37640
37641 2009-08-23  Bruno Haible  <bruno@clisp.org>
37642
37643         New module 'accept4'.
37644         * lib/sys_socket.in.h (accept4): New declaration.
37645         * lib/accept4.c: New file.
37646         * m4/accept4.m4: New file.
37647         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37648         GNULIB_ACCEPT4, HAVE_ACCEPT4.
37649         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
37650         HAVE_ACCEPT4.
37651         * modules/accept4: New file.
37652         * doc/glibc-functions/accept4.texi: Mention the new module.
37653
37654 2009-08-24  Jim Meyering  <meyering@redhat.com>
37655
37656         progname: also set global program_invocation_name, when possible
37657         Before this change, a libtool-enabled program that calls glibc's
37658         error function would report the program name as
37659         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
37660         * modules/progname (configure.ac): Check for a declaration of
37661         program_invocation_name.
37662         * lib/progname.c:  Include <errno.h>.
37663         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
37664         Set program_invocation_name.
37665
37666 2009-08-23  Bruno Haible  <bruno@clisp.org>
37667
37668         * lib/dup3.c: Include <string.h>.
37669
37670 2009-08-23  Bruno Haible  <bruno@clisp.org>
37671
37672         * lib/dup3.c (dup3): Test only once whether the system actually exists.
37673         * lib/pipe2.c (pipe2): Likewise.
37674         Suggested by Eric Blake.
37675
37676 2009-08-23  Bruno Haible  <bruno@clisp.org>
37677
37678         Tolerate declared but missing dup3 syscall.
37679         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
37680         * lib/unistd.in.h (dup3): If the function is already present,
37681         override it.
37682         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
37683         * modules/dup3 (Makefile.am): Compile dup3.c always.
37684         Reported by Paolo Bonzini.
37685
37686 2009-08-23  Bruno Haible  <bruno@clisp.org>
37687
37688         Tolerate declared but missing pipe2 syscall.
37689         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
37690         available.
37691         * lib/unistd.in.h (pipe2): If the function is already present,
37692         override it.
37693         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
37694         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
37695         Reported by Paolo Bonzini.
37696
37697 2009-08-23  Bruno Haible  <bruno@clisp.org>
37698
37699         * lib/pipe2.c (pipe2): Move #ifs inside function.
37700
37701 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37702
37703         quotearg: document limitations of quote_these_too
37704         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
37705         those limitations are created.
37706         * lib/quotearg.h (set_char_quoting): Document that digits and
37707         letters that are special after backslash are not permitted.
37708         (quotearg_char): Cross-reference set_char_quoting documentation.
37709
37710 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
37711
37712         quotearg: implement custom_quoting_style
37713         * lib/quotearg.c: (struct quoting_options): Add left_quote and
37714         right_quote fields.
37715         (set_custom_quoting): New public function.
37716         (quotearg_buffer_restyled): Add left_quote and right_quote
37717         arguments, handle them very much like locale quoting, and update
37718         all uses.
37719         (quotearg_n_custom): New public function.
37720         (quotearg_n_custom_mem): New public function.
37721         (quotearg_custom): New public function.
37722         (quotearg_custom_mem): New public function.
37723         * lib/quotearg.h: Prototype and document new public functions.
37724         (enum quoting_style): For escape_quoting_style and
37725         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
37726         ignored even though they're otherwise like c_quoting_style.
37727         Add custom_quoting_style member and document with comparison to
37728         clocale_quoting_style.
37729         * tests/test-quotearg.c (custom_quotes): New array.
37730         (custom_results): New array.
37731         (main): Extend to test custom quoting.
37732
37733 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37734
37735         quotearg: fix right quote escaping when it's in quote_these_too
37736         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
37737         quote, be sure to prepend only one backslash.
37738         * tests/test-quotearg.c (use_quote_double_quotes): New function.
37739         (main): Test it.
37740
37741 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37742
37743         quotearg-tests: test escaping of embedded locale quotes
37744         * tests/test-quotearg.c (struct result_strings): Add member for
37745         new input.
37746         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
37747         (inputs): Add new input.
37748         (results_g): Add expected results.
37749         (flag_results): Likewise.
37750         (locale_results): Likewise.
37751         (compare_strings): Check those.
37752
37753 2009-08-23  Bruno Haible  <bruno@clisp.org>
37754
37755         Tests for module 'dup3'.
37756         * modules/dup3-tests: New file.
37757         * tests/test-dup3.c: New file.
37758
37759         New module 'dup3'.
37760         * lib/unistd.in.h (dup3): New declaration.
37761         * lib/dup3.c: New file.
37762         * m4/dup3.m4: New file.
37763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
37764         HAVE_DUP3.
37765         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
37766         * modules/dup3: New file.
37767         * doc/glibc-functions/dup3.texi: Mention the new module.
37768
37769 2009-08-23  Bruno Haible  <bruno@clisp.org>
37770
37771         Tweak the dup2 test.
37772         * tests/test-dup2.c (main): Create the test file empty. Verify that an
37773         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
37774         the test file is still empty. Fix argument order of lseek.
37775
37776 2009-08-23  Bruno Haible  <bruno@clisp.org>
37777
37778         Avoid test link errors when the modules getopt-gnu, gettext are used.
37779         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
37780         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37781
37782 2009-08-23  Bruno Haible  <bruno@clisp.org>
37783
37784         Fix getdtablesize() on mingw.
37785         * lib/getdtablesize.c (getdtablesize): Implement differently.
37786         * lib/unistd.in.h (getdtablesize): Improve comment.
37787
37788 2009-08-23  Bruno Haible  <bruno@clisp.org>
37789
37790         New module 'mkostemp'.
37791         Based on Ulrich Drepper's 2007-08-10 change in glibc.
37792         * lib/stdlib.in.h (mksotemp): New declaration.
37793         * lib/mkostemp.c: New file, from glibc with modifications.
37794         * lib/tempname.h (GT_FILE): Remove outdated comment.
37795         (gen_tempname): Add flags argument.
37796         * lib/tempname.c (__GT_BIGFILE): Remove macro.
37797         (__GT_FILE): Map to 1.
37798         (small_open, large_open): Remove macros.
37799         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
37800         * lib/mkstemp.c (mkstemp): Update.
37801         * lib/mkdtemp.c (mkdtemp): Likewise.
37802         * m4/mkostemp.m4: New file.
37803         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
37804         HAVE_MKOSTEMP.
37805         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
37806         HAVE_MKOSTEMP.
37807         * modules/mkostemp: New file, based on modules/mkstemp.
37808         * doc/glibc-functions/mkostemp.texi: Mention the new module.
37809         * NEWS: Mention the change.
37810
37811 2009-08-23  Bruno Haible  <bruno@clisp.org>
37812
37813         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
37814         Reported by Eric Blake.
37815
37816 2009-08-23  Bruno Haible  <bruno@clisp.org>
37817
37818         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
37819         Reported by Eric Blake.
37820
37821 2009-08-23  Bruno Haible  <bruno@clisp.org>
37822
37823         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
37824         * modules/pipe2 (Depends-on): Likewise.
37825
37826 2009-08-23  Eric Blake  <ebb9@byu.net>
37827
37828         fcntl-h: add O_TTY_INIT support
37829         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
37830         * tests/test-fcntl-h.c (o): Test it.
37831         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37832
37833         fcntl-h: rename from fcntl, in preparation for fcntl(2)
37834         * modules/fcntl: Move <fcntl.h> header replacement...
37835         * modules/fcntl-h: ...to new name, so as not to collide with
37836         like-named function.
37837         * tests/test-fcntl.c: Rename...
37838         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
37839         * modules/fcntl-tests: Rename...
37840         * modules/fcntl-h-tests: ...to this.  Update test file name.
37841         * modules/chdir-long (Depends-on): Update clients.
37842         * modules/chdir-safer (Depends-on): Likewise.
37843         * modules/fcntl-safer (Depends-on): Likewise.
37844         * modules/fts (Depends-on): Likewise.
37845         * modules/mkancesdirs (Depends-on): Likewise.
37846         * modules/mkdir-p (Depends-on): Likewise.
37847         * modules/open (Depends-on): Likewise.
37848         * modules/savewd (Depends-on): Likewise.
37849         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
37850         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37851
37852 2009-08-22  Bruno Haible  <bruno@clisp.org>
37853
37854         * modules/binary-io (License): Relicense under LGPL.
37855         * modules/pipe2 (License): Likewise.
37856
37857 2009-08-22  Bruno Haible  <bruno@clisp.org>
37858
37859         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
37860         return value.
37861         * lib/pipe-filter-gi.c (filter_init): Likewise.
37862         Reported by Eric Blake.
37863
37864 2009-08-22  Bruno Haible  <bruno@clisp.org>
37865
37866         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
37867         * modules/pipe (Depends-on): Add pipe2.
37868
37869 2009-08-22  Bruno Haible  <bruno@clisp.org>
37870
37871         Tests for module 'pipe2'.
37872         * modules/pipe2-tests: New file.
37873         * tests/test-pipe2.c: New file.
37874
37875         New module 'pipe2'.
37876         * lib/unistd.in.h (pipe2): New declaration.
37877         * lib/pipe2.c: New file.
37878         * m4/pipe2.m4: New file.
37879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
37880         HAVE_PIPE2.
37881         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
37882         * modules/pipe2: New file.
37883         * doc/glibc-functions/pipe2.texi: Mention the new module.
37884
37885 2009-08-22  Bruno Haible  <bruno@clisp.org>
37886
37887         Reference some new glibc functions.
37888         * doc/glibc-functions/accept4.texi: New file.
37889         * doc/glibc-functions/dup3.texi: New file.
37890         * doc/glibc-functions/mkostemp.texi: New file.
37891         * doc/glibc-functions/pipe2.texi: New file.
37892         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
37893         (Glibc sys/socket.h): Refer to accept4.
37894         (Glibc unistd.h): Refer to dup3, pipe2.
37895         Reported by Eric Blake.
37896
37897 2009-08-22  Jim Meyering  <meyering@redhat.com>
37898             Bruno Haible  <bruno@clisp.org>
37899
37900         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
37901         This makes it so packages using automake-1.11's silent-rules option
37902         can print e.g., a single "GEN    configmake.h" line, rather than
37903         the 30+ statements that perform the job.  If you want to see the
37904         actual commands, you can still run "make V=1".
37905         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
37906         so that make output is abbreviated when those variables are defined
37907         appropriately.
37908         * modules/argz: Likewise.
37909         * modules/arpa_inet: Likewise.
37910         * modules/byteswap: Likewise.
37911         * modules/configmake: Likewise.
37912         * modules/dirent: Likewise.
37913         * modules/errno: Likewise.
37914         * modules/fcntl: Likewise.
37915         * modules/float: Likewise.
37916         * modules/fnmatch: Likewise.
37917         * modules/getopt-posix: Likewise.
37918         * modules/glob: Likewise.
37919         * modules/iconv_open: Likewise.
37920         * modules/inttypes: Likewise.
37921         * modules/localcharset: Likewise.
37922         * modules/locale: Likewise.
37923         * modules/math: Likewise.
37924         * modules/netdb: Likewise.
37925         * modules/netinet_in: Likewise.
37926         * modules/poll: Likewise.
37927         * modules/posix_spawnp-tests: Likewise.
37928         * modules/sched: Likewise.
37929         * modules/search: Likewise.
37930         * modules/selinux-h: Likewise.
37931         * modules/signal: Likewise.
37932         * modules/spawn: Likewise.
37933         * modules/stdarg: Likewise.
37934         * modules/stdbool: Likewise.
37935         * modules/stddef: Likewise.
37936         * modules/stdint: Likewise.
37937         * modules/stdio: Likewise.
37938         * modules/stdlib: Likewise.
37939         * modules/string: Likewise.
37940         * modules/strings: Likewise.
37941         * modules/sys_file: Likewise.
37942         * modules/sys_ioctl: Likewise.
37943         * modules/sys_select: Likewise.
37944         * modules/sys_socket: Likewise.
37945         * modules/sys_stat: Likewise.
37946         * modules/sys_time: Likewise.
37947         * modules/sys_times: Likewise.
37948         * modules/sys_utsname: Likewise.
37949         * modules/sys_wait: Likewise.
37950         * modules/sysexits: Likewise.
37951         * modules/time: Likewise.
37952         * modules/unistd: Likewise.
37953         * modules/wchar: Likewise.
37954         * modules/wctype: Likewise.
37955
37956 2009-08-22  Jim Meyering  <meyering@redhat.com>
37957
37958         announce-gen: detect write failure
37959         * build-aux/announce-gen: Add Coda at end.
37960         Remove equivalent-but-more-verbose block at top.
37961
37962 2009-08-19  Akim Demaille  <demaille@gostai.com>
37963
37964         bootstrap: --help to stdout.
37965         * bootstrap (usage): Don't send --help to stderr.
37966         Use a here doc instead of a long string.
37967
37968 2009-08-21  Eric Blake  <ebb9@byu.net>
37969
37970         test-popen-safer: split from test-popen
37971         * tests/test-popen.c (main): Move...
37972         * tests/test-popen.h: ...into new file.
37973         * tests/test-popen-safer2.c: New file.
37974         * modules/popen-tests (Files): Add test-popen.h.
37975         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
37976         Suggested by Bruno Haible.
37977
37978         test-fcntl-safer: split from test-open
37979         * tests/test-open.c (main): Move...
37980         * tests/test-open.h: ...into new file.
37981         * tests/test-fcntl-safer.c: New file.
37982         * modules/open-tests (Files): Add test-open.h.
37983         * modules/fcntl-safer-tests: New file.
37984         Suggested by Bruno Haible.
37985
37986         test-fopen-safer: split from test-fopen
37987         * tests/test-fopen.c (main): Move...
37988         * tests/test-fopen.h: ...into new file.
37989         * tests/test-fopen-safer.c: New file.
37990         * modules/fopen-tests (Files): Add test-fopen.h.
37991         * modules/fopen-safer-tests: New file.
37992         Suggested by Bruno Haible.
37993
37994 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37995
37996         popen-safer: test O_CLOEXEC at run-time.
37997         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
37998
37999 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
38000
38001         fcntl: move more flags to the header
38002         * lib/cloexec.c: Do not define FD_CLOEXEC here.
38003         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
38004         * lib/fcntl.in.h: Do both things here.
38005
38006 2009-08-21  Jim Meyering  <meyering@redhat.com>
38007
38008         consistently remove $@-t before redirecting to it
38009         * modules/argz: Remove $@-t and $@ before redirecting to the former.
38010         * modules/alloca-opt: Likewise.
38011         * modules/byteswap: Likewise.
38012         * modules/fnmatch: Likewise.
38013         * modules/getopt-posix: Likewise.
38014         * modules/glob: Likewise.
38015         * modules/poll: Likewise.
38016         * modules/posix_spawnp-tests: Likewise.
38017         * modules/sys_socket: Likewise.
38018         * modules/sysexits: Likewise.
38019
38020 2009-08-21  Eric Blake  <ebb9@byu.net>
38021
38022         popen: simplify access to original popen
38023         * lib/popen.c (rpl_popen): No need to worry about popen being a
38024         macro.
38025         Reported by Bruno Haible.
38026
38027 2009-08-20  Eric Blake  <ebb9@byu.net>
38028
38029         build: avoid some compiler warnings
38030         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
38031         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
38032         type.
38033         (new_exclude_segment, excluded_file_pattern_p)
38034         (excluded_file_name_p): Reduce scope.
38035         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
38036         old-style declaration.
38037
38038 2009-08-20  Simon Josefsson  <simon@josefsson.org>
38039
38040         * tests/test-exclude1.sh: Handle Windows EOL.
38041         * tests/test-exclude2.sh: Likewise.
38042         * tests/test-exclude3.sh: Likewise.
38043         * tests/test-exclude4.sh: Likewise.
38044         * tests/test-exclude5.sh: Likewise.
38045         * tests/test-exclude6.sh: Likewise.
38046         * tests/test-exclude7.sh: Likewise.
38047
38048 2009-08-19  Akim Demaille  <demaille@gostai.com>
38049
38050         bootstrap: find sha1sum when named gsha1sum.
38051         * bootstrap (find_tool): New.
38052         ($SHA1SUM): New.
38053         Use it.
38054
38055 2009-08-20  Jim Meyering  <meyering@redhat.com>
38056
38057         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
38058         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
38059         expression that converts "." in a file name to "\." in the resulting
38060         regexp.  Start with a dummy statement, so that prior shell variable
38061         definitions are expanded portably.  Reported by Simon Josefsson.
38062
38063 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
38064
38065         Fix polling for writeability of a screen buffer.
38066         * lib/poll.c: Distinguish input and screen buffers for the
38067         Win32 implementation.
38068         * lib/select.c: Likewise.
38069
38070 2009-08-19  Eric Blake  <ebb9@byu.net>
38071
38072         popen-safer: prevent popen from clobbering std descriptors
38073         * modules/popen-safer: New file.
38074         * lib/popen-safer.c: Likewise.
38075         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
38076         * lib/stdio--.h (popen): Provide override.
38077         * lib/stdio-safer.h (popen_safer): Provide declaration.
38078         * tests/test-popen.c (includes): Partially test this.
38079         * modules/popen-safer-tests: New file, for more tests.
38080         * tests/test-popen-safer.c: Likewise.
38081         * MODULES.html.sh (file stream based Input/Output): Mention it.
38082
38083         tests: test some of the *-safer modules
38084         * modules/fopen-safer (Depends-on): Add fopen.
38085         * modules/fcntl-safer (Depends-on): Add fcntl.
38086         * modules/stdlib-safer (Depends-on): Add stdlib.
38087         (configure.ac): Set indicator.
38088         * modules/unistd-safer (configure.ac): Likewise.
38089         * modules/tmpfile-safer (configure.ac): Likewise.
38090         (Depends-on): Add tmpfile.
38091         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
38092         active.
38093         * tests/test-fopen.c (includes): Test safer versions when they are
38094         in use.
38095         * tests/test-open.c (includes): Likewise.
38096
38097         popen: fix cygwin 1.5 bug when stdin closed
38098         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
38099         * modules/popen: New file.
38100         * modules/popen-tests: Likewise.
38101         * tests/test-popen.c: Likewise.
38102         * m4/popen.m4: Likewise.
38103         * lib/popen.c: Likewise.
38104         * lib/stdio.in.h (popen): New declaration.
38105         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
38106         * modules/stdio (Makefile.am): Likewise.
38107         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
38108
38109 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
38110
38111         maint.mk: give full control over update-copyright exclusions
38112         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
38113         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
38114         (update-copyright): Don't force inclusion of top-level
38115         ChangeLog.  Don't force exclusion of all COPYING files, but make
38116         them the default exclusion instead.
38117
38118 2009-08-16  Bruno Haible  <bruno@clisp.org>
38119
38120         Fix test failures on Solaris 10.
38121         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
38122         tests when Solaris iconv() is used.
38123         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
38124         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
38125         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
38126         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
38127         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
38128
38129 2009-08-16  Bruno Haible  <bruno@clisp.org>
38130
38131         Fix test failures on Solaris 10.
38132         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
38133         'tr' program and pass it as first argument.
38134         * tests/test-pipe-filter-gi1.sh: Likewise.
38135         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
38136         program as first argument.
38137         * tests/test-pipe-filter-gi1.c (main): Likewise.
38138
38139 2009-08-16  Eric Blake  <ebb9@byu.net>
38140
38141         fpurge: fix previous commits
38142         * modules/fpurge (Makefile.am): Make replacement conditional,
38143         partially reverting 2007-04-29 change; missed in previous
38144         attempt.
38145         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
38146         is missing.
38147
38148 2009-08-16  Bruno Haible  <bruno@clisp.org>
38149
38150         Clarify fpurge's effect on the file position.
38151         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
38152         * tests/test-fpurge.c (main): Make a second pass for checking the file
38153         position.
38154
38155 2009-08-16  Bruno Haible  <bruno@clisp.org>
38156
38157         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
38158         declaration of fpurge is missing.
38159         * tests/test-fpurge.c (main): Check that the file has not more contents
38160         than expected. Close the file before removing it.
38161
38162 2009-08-15  Eric Blake  <ebb9@byu.net>
38163
38164         fpurge: don't wrap working cygwin implementation
38165         * lib/fpurge.c (fpurge): Fix comment typo.
38166         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
38167         1.7 to avoid replacement.
38168         * tests/test-fpurge.c (main): Enhance test.
38169
38170 2009-08-15  Eric Blake  <ebb9@byu.net>
38171         and Jim Meyering  <meyering@redhat.com>
38172
38173         test-update-copyright: skip if perl is insufficient
38174         * tests/test-update-copyright.sh: Failure to run maintainer tool
38175         should not cause testsuite failure on cygwin 1.5.
38176
38177 2009-08-14  Eric Blake  <ebb9@byu.net>
38178
38179         doc: mention more functions added in cygwin 1.7.0
38180         * doc/posix-headers/limits.texi (limits.h): Update for recent
38181         cygwin additions.
38182         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
38183         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
38184         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
38185         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
38186         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
38187
38188 2009-08-14  Eric Blake  <ebb9@byu.net>
38189
38190         maint.mk: simplify update-copyright rule
38191         * top/maint.mk (update-copyright-local): Delete, and document how
38192         to do it in cfg.mk instead.
38193         (update-copyright-exclude-regexp): Delete, and document how to do
38194         it in .x-update-copyright instead.
38195         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
38196         exclude ChangeLog.
38197
38198 2009-08-14  Bruno Haible  <bruno@clisp.org>
38199
38200         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
38201
38202 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38203
38204         maint.mk: support update-copyright-env
38205         * top/maint.mk (update-copyright-env): Define place-holder.
38206         (update-copyright): Expand $(update-copyright-env) before
38207         invoking update-copyright.
38208
38209 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38210
38211         update-copyright: implement forced reformatting
38212         * build-aux/update-copyright: Implement and document
38213         UPDATE_COPYRIGHT_FORCE.
38214         * tests/test-update-copyright.sh: Test it.
38215
38216 2009-08-14  Eric Blake  <ebb9@byu.net>
38217         and Bruno Haible  <bruno@clisp.org>
38218
38219         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
38220         * tests/test-locale.c: Revert previous patch related to NULL.
38221         * tests/test-stdio.c: Likewise.
38222         * tests/test-stdlib.c: Likewise.
38223         * tests/test-string.c: Likewise.
38224         * tests/test-unistd.c: Likewise.
38225         * modules/time-tests (Depends-on): Add verify.
38226         * modules/wchar-tests (Depends-on): Likewise.
38227         * tests/test-time.c: Test for NULL compliance.
38228         * tests/test-wchar.c: Likewise.
38229         * modules/locale (Depends-on): Add stddef.
38230         * modules/stdio (Depends-on): Likewise.
38231         * modules/stdlib (Depends-on): Likewise.
38232         * modules/string (Depends-on): Likewise.
38233         * modules/time (Depends-on): Likewise.
38234         * modules/unistd (Depends-on): Likewise.
38235         * modules/wchar (Depends-on): Likewise.
38236         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
38237         * lib/stdlib.in.h (includes): Likewise.
38238         * lib/string.in.h (includes): Likewise.
38239         * lib/time.in.h (includes): Likewise.
38240         * lib/unistd.in.h (includes): Likewise.
38241         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
38242         replaced.
38243         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38244         * m4/stddef_h.m4: New file.
38245         * modules/stddef: Likewise.
38246         * lib/stddef.in.h: Likewise.
38247         * modules/stddef-tests: Likewise.
38248         * tests/test-stddef.c: Likewise.
38249         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
38250         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
38251         * doc/posix-headers/locale.texi (locale.h): Likewise.
38252         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
38253         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
38254         * doc/posix-headers/string.texi (string.h): Likewise.
38255         * doc/posix-headers/time.texi (time.h): Likewise.
38256         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
38257         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
38258
38259 2009-08-14  Eric Blake  <ebb9@byu.net>
38260
38261         doc: improve git diff of texinfo files
38262         * .gitattributes: Add rule for *.texi files, with hint on how to
38263         use it.
38264         Copied from m4, and based on a report by Bruno Haible.
38265
38266 2009-08-14  Bruno Haible  <bruno@clisp.org>
38267
38268         Disable multithread support by default on Cygwin 1.5.x for real.
38269         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
38270
38271 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38272
38273         update-copyright: much ado about intervals
38274         * build-aux/update-copyright: Implement and document
38275         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
38276         of copyright year intervals.
38277         Also, document UPDATE_COPYRIGHT_YEAR.
38278         * tests/test-update-copyright.sh: Test it.
38279
38280         update-copyright: convert 2-digit to 4-digit years
38281         * build-aux/update-copyright: Implement and document.
38282         * tests/test-update-copyright.sh: Update.
38283
38284 2009-08-14  Jim Meyering  <meyering@redhat.com>
38285
38286         test-exclude: avoid coreutils "make check" failure
38287         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
38288         just as in test-argmatch.c.
38289
38290 2009-08-13  Eric Blake  <ebb9@byu.net>
38291
38292         test-dup2: fix bad assumption
38293         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
38294         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
38295
38296         test-version-etc: fix CRLF portability issue
38297         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
38298         recognize \r.
38299         * tests/test-argp-version-etc-1.sh: Likewise.
38300
38301         getopt: update client modules
38302         * modules/argp (Depends-on): Use getopt-gnu.
38303         * modules/git-merge-changelog (Depends-on): Likewise.
38304         * modules/long-options (Depends-on): Likewise.
38305         * modules/xstrtol (Depends-on): Likewise.
38306
38307 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38308
38309         * tests/test-version-etc.sh: Don't fail on different
38310         project/version.  Don't fail on CRLF differences.  Rewrite to use
38311         multiple -e instead of multiple sed forks, suggested by Eric Blake
38312         <ebb9@byu.net>.
38313         * tests/test-argp-version-etc-1.sh: Likewise.
38314
38315 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38316
38317         * tests/test-version-etc.sh: Don't fail on different
38318         project/version.
38319
38320 2009-08-12  Bruno Haible  <bruno@clisp.org>
38321
38322         Tests for modules 'getopt-posix', 'getopt-gnu'.
38323         * modules/getopt-posix-tests: New file.
38324         * tests/test-getopt.c: New file.
38325         * tests/test-getopt.h: New file.
38326         * tests/test-getopt_long.h: New file.
38327
38328         New modules 'getopt-posix', 'getopt-gnu'.
38329         * modules/getopt-gnu: New file, renamed from modules/getopt.
38330         * modules/getopt-posix: New file.
38331         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
38332         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
38333         (gl_GETOPT): Remove macro.
38334         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
38335         Disable the test against BSD systems that declare optreset. Test
38336         against mingw bug. Test against lack of support of optional arguments
38337         on many platforms.
38338         * doc/glibc-headers/getopt.texi: Update module name and list of
38339         relevant platforms.
38340         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
38341         'getopt-gnu' and more portability problems.
38342         * NEWS: Mention the changes.
38343
38344 2009-08-12  Bruno Haible  <bruno@clisp.org>
38345
38346         Ensure that optarg etc. get declared by <unistd.h>.
38347         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
38348         AC_USE_SYSTEM_EXTENSIONS.
38349         * modules/getopt (Depends-on): Add 'extensions'.
38350
38351 2009-08-12  Bruno Haible  <bruno@clisp.org>
38352
38353         Avoid test link errors.
38354         * modules/pipe-filter-ii-tests (Makefile.am): Define
38355         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
38356         * modules/pipe-filter-gi-tests (Makefile.am): Define
38357         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
38358         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38359
38360 2009-08-12  Bruno Haible  <bruno@clisp.org>
38361
38362         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
38363         gl_GETOPT_SUBSTITUTE before.
38364         (gl_GETOPT): Use it.
38365         * m4/argp.m4 (gl_ARGP): Update.
38366         Reported by Sergey Poznyakoff.
38367
38368         * m4/getopt.m4: Reorder macros.
38369         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
38370         (gl_GETOPT_SUBSTITUTE): Remove macro.
38371
38372 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38373
38374         Minor improvement in gitlog-to-changelog
38375
38376         * build-aux/gitlog-to-changelog: New option `--format' makes
38377         output format string configurable.
38378
38379 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38380
38381         Optimize exclude: use hash tables for non-wildcard patterns.
38382
38383         * lib/exclude.c: Include hash.h and mbuiter.h
38384         (struct exclude_pattern, exclude_segment): New data types.
38385         (struct exclude): Rewrite.
38386         (fnmatch_pattern_has_wildcards): New function.
38387         (new_exclude_segment, free_exclude_segment): New functions.
38388         (excluded_file_pattern_p, excluded_file_name_p): New functions.
38389         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
38390         * lib/exclude.h (is_fnmatch_pattern): New prototype.
38391         * modules/exclude: Depend on hash and mbuiter.
38392
38393         * modules/exclude-tests: New file.
38394         * tests/test-exclude.c: New file.
38395         * tests/test-exclude1.sh: New file.
38396         * tests/test-exclude2.sh: New file.
38397         * tests/test-exclude3.sh: New file.
38398         * tests/test-exclude4.sh: New file.
38399         * tests/test-exclude5.sh: New file.
38400         * tests/test-exclude6.sh: New file.
38401         * tests/test-exclude7.sh: New file.
38402
38403 2009-08-12  Bruno Haible  <bruno@clisp.org>
38404
38405         Ensure that getopt() gets declared by <unistd.h>.
38406         * lib/unistd.in.h: Conditionally include getopt.h.
38407         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
38408         Set GNULIB_UNISTD_H_GETOPT.
38409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38410         GNULIB_UNISTD_H_GETOPT.
38411         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
38412
38413 2009-08-12  Bruno Haible  <bruno@clisp.org>
38414
38415         Clarify logic.
38416         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
38417         gl_replace_getopt instead of GETOPT_H.
38418
38419 2009-08-12  Bruno Haible  <bruno@clisp.org>
38420
38421         * m4/getopt.m4: Add comments.
38422
38423 2009-08-12  Bruno Haible  <bruno@clisp.org>
38424
38425         Disable multithread support by default on Cygwin 1.5.x.
38426         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
38427         set gl_use_threads=no if not specified otherwise.
38428
38429 2009-08-11  Bruno Haible  <bruno@clisp.org>
38430
38431         Avoid compilation error on NetBSD 5.0.
38432         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
38433         * tests/test-stdio.c: Likewise.
38434         * tests/test-stdlib.c: Likewise.
38435         * tests/test-string.c: Likewise.
38436         * tests/test-unistd.c: Likewise.
38437         Reported by Greg Troxel <gdt@ir.bbn.com>
38438         at <https://savannah.gnu.org/support/?106973>.
38439
38440 2009-08-11  Bruno Haible  <bruno@clisp.org>
38441
38442         * modules/dup2-tests (Depends-on): Remove close.
38443
38444         Undo 2009-07-19 commit.
38445         * modules/acl-tests (Depends-on): Remove close.
38446         * modules/binary-io-tests (Depends-on): Likewise.
38447         * modules/closein-tests (Depends-on): Likewise.
38448         * modules/flock-tests (Depends-on): Likewise.
38449         * modules/fsync-tests (Depends-on): Likewise.
38450         * modules/lseek-tests (Depends-on): Likewise.
38451         * modules/pipe-tests (Depends-on): Likewise.
38452         * modules/posix_spawn-tests (Depends-on): Likewise.
38453         * modules/posix_spawnp-tests (Depends-on): Likewise.
38454         * modules/stat-time-tests (Depends-on): Likewise.
38455         * modules/yesno-tests (Depends-on): Likewise.
38456
38457 2009-08-10  Bruno Haible  <bruno@clisp.org>
38458
38459         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
38460
38461 2009-08-10  Bruno Haible  <bruno@clisp.org>
38462
38463         Fix a gcc warning.
38464         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
38465
38466 2009-08-10  Bruno Haible  <bruno@clisp.org>
38467
38468         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
38469         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
38470         not only the first time.
38471         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
38472         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
38473         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
38474         is 1, not only the the first time.
38475
38476 2009-08-10  Bruno Haible  <bruno@clisp.org>
38477
38478         Make it possible to use module 'gethostname' without module 'close'.
38479         * lib/unistd.in.h (close): Evoke a link error only if
38480         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38482         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38483         * modules/unistd (Makefile.am): Substitute
38484         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38485         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
38486         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38487         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
38488         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38489         * modules/sys_ioctl (Makefile.am): Substitute
38490         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38491         * modules/socket (configure.ac): On native Windows, set
38492         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
38493         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38494         Reported by Sam Steingold <sds@gnu.org>.
38495
38496 2009-08-10  Bruno Haible  <bruno@clisp.org>
38497
38498         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
38499         * modules/ioctl (configure.ac): Likewise.
38500
38501 2009-08-10  Bruno Haible  <bruno@clisp.org>
38502
38503         Avoid collision between gnulib wrapper and libintl wrapper.
38504         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
38505         already defined in intl/printf.c.
38506         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
38507         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
38508
38509 2009-08-09  Bruno Haible  <bruno@clisp.org>
38510
38511         Make <sys/select.h> really self-contained, also on Solaris 10.
38512         * lib/sys_select.in.h: Include <string.h>.
38513         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
38514         Solaris 10 problem.
38515         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
38516         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
38517         Reported by Jim Meyering.
38518
38519 2009-08-09  Bruno Haible  <bruno@clisp.org>
38520
38521         Avoid warnings from 'aclocal' that are due to a use of macro name
38522         AM_XGETTEXT_OPTION that is not defined in automake.
38523         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
38524         automake.
38525         * modules/error (configure.ac): Likewise.
38526         * modules/propername (configure.ac): Likewise.
38527         * modules/vasprintf (configure.ac): Likewise.
38528         * modules/verror (configure.ac): Likewise.
38529         * modules/xprintf (configure.ac): Likewise.
38530         * modules/xvasprintf (configure.ac): Likewise.
38531
38532 2009-08-08  Bruno Haible  <bruno@clisp.org>
38533
38534         Avoid compilation error in C++ mode.
38535         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
38536         Reported by Sam Steingold <sds@gnu.org>.
38537
38538 2009-08-08  Bruno Haible  <bruno@clisp.org>
38539
38540         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
38541         for the various Unix platforms.
38542         * doc/posix-headers/limits.texi: Update platforms list regarding
38543         HOST_NAME_MAX.
38544         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38545
38546 2009-08-07  Jim Meyering  <meyering@redhat.com>
38547
38548         selinux-at: fix typo in a comment
38549         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
38550         Spotted by Paolo Bonzini.
38551
38552         selinux-at: remove redundant m4 code, add documentation
38553         * modules/selinux-at (configure.ac): Remove redundant code.
38554         LIB_SELINUX is already set via the dependent module, selinux-h.
38555         (Include): Add quotes around selinux-at.h.
38556         * lib/selinux-at.h: Add documentation.
38557         Reported by Bruno Haible in
38558         http://marc.info/?l=gnulib-bug&m=124958988300749
38559
38560 2009-08-07  Bruno Haible  <bruno@clisp.org>
38561
38562         Avoid link error on MacOS X 10.3 and 10.4.
38563         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
38564         on non-ELF systems.
38565         * lib/argp-pv.c (argp_program_version): Likewise.
38566         Reported by Simon Josefsson.
38567
38568 2009-08-07  Simon Josefsson  <simon@josefsson.org>
38569
38570         * tests/test-version-etc.sh: Use $EXEEXT.
38571
38572 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
38573
38574         update-copyright: update documentation to point to maint.mk
38575         * build-aux/update-copyright: Here.
38576
38577 2009-08-06  Jim Meyering  <meyering@redhat.com>
38578
38579         maint.mk: support update-copyright-local
38580         * top/maint.mk (update-copyright-local): Define place-holder.
38581         (update-copyright): Depend on $(update-copyright-local).
38582
38583 2009-08-06  Jim Meyering  <meyering@redhat.com>
38584
38585         selinux-at: new module
38586         Initially written for coreutils, this module will soon be
38587         used by findutils, too.
38588         * MODULES.html.sh [Misc]: Add selinux-at.
38589         * lib/selinux-at.h: New file, from coreutils.
38590         * lib/selinux-at.c: Likewise.
38591         * modules/selinux-at: Likewise.
38592         (License): Change from LGPL to GPL, since it depends
38593         on the GPL'd openat module.
38594
38595         doc: update README
38596         * README: Remove references to cogito.
38597         Remove cvs-repo-updating instructions from 2007.
38598         Don't imply that CVS is better if you have limited disk space.
38599
38600 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38601
38602         update-copyright: support C-style comments
38603         * build-aux/update-copyright: Implement and document.
38604         * tests/test-update-copyright.sh: Test.
38605
38606 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38607
38608         update-copyright: support omitted "(C)"
38609         * build-aux/update-copyright: Implement and document.  Also,
38610         allow variable whitespace before "(C)".
38611         * tests/test-update-copyright.sh: Test.
38612
38613 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38614
38615         update-copyright: don't trip on non-FSF copyright statements
38616         * build-aux/update-copyright: Fix so that the first correctly
38617         formatted FSF copyright statement is recognized no matter what
38618         appears before it.  Update documentation.
38619         * tests/test-update-copyright.sh: Test that.
38620
38621 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38622
38623         update-copyright: clean up code a little
38624         * build-aux/update-copyright: Append "_re" to the name of any
38625         variable holding a regular expression.
38626         Replace "old" and "new" with "stmt" in variable names.
38627         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
38628         handled correctly.
38629         Format code more consistently.
38630
38631 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38632
38633         update-copyright-tests: improve portability
38634         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
38635         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
38636
38637 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38638
38639         update-copyright: support @copyright{} and &copy;
38640         * build-aux/update-copyright: Implement and document.
38641         * tests/test-update-copyright.sh: Test.
38642
38643 2009-08-04  Jim Meyering  <meyering@redhat.com>
38644
38645         update-copyright-tests: correctly test EOL=\r\n handling
38646         * tests/test-update-copyright.sh: Put \r at the end of some lines
38647         for the dos-eol tests.  Based on a patch by Joel E. Denny.
38648
38649         maint.mk: make update-copyright exclusion list more configurable
38650         * top/maint.mk (update-copyright): Default to excluding COPYING,
38651         but allow an override, in case someone does want to update that file.
38652
38653         maint.mk: don't update copyright date in COPYING
38654         * top/maint.mk (update-copyright): Exclude COPYING.
38655
38656         maint.mk: add a copyright-updating rule
38657         * top/maint.mk (update-copyright): New rule.
38658         Derived from coreutils/Makefile.am.
38659
38660         update-copyright: rename some variables
38661         * build-aux/update-copyright: Rename a few variables for clarity.
38662         Tweak syntax.  List Joel E. Denny as coauthor.
38663
38664 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38665
38666         update-copyright: fix bug for 2-digit last year and add tests
38667         * build-aux/update-copyright: Fix bug.
38668         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
38669         specified.
38670         * modules/update-copyright-tests: New
38671         * tests/test-update-copyright.sh: New.
38672
38673 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38674
38675         update-copyright: handle leading tabs in line prefix
38676         * build-aux/update-copyright: Count leading tabs as 8 spaces
38677         when computing margin.  This helps with the formatting of
38678         ChangeLogs, for example.
38679         Fix documentation a little.
38680
38681 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38682
38683         update-copyright: support EOL=\r\n
38684         * build-aux/update-copyright: Implement that.
38685
38686 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38687
38688         update-copyright: automatically format copyright statements
38689         * build-aux/update-copyright: Implement that.
38690         Also, be a little more predictable and safer by always failing
38691         when the full copyright format is not perfectly recognized as an
38692         unbroken whole.  Discussed at
38693         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
38694         Rewrite documentation.
38695
38696 2009-08-03  Bruno Haible  <bruno@clisp.org>
38697
38698         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
38699
38700 2009-08-02  Bruno Haible  <bruno@clisp.org>
38701
38702         Tests for module 'uname'.
38703         * modules/uname-tests: New file.
38704         * tests/test-uname.c: New file.
38705
38706         New module 'uname'.
38707         * lib/uname.c: New file.
38708         * m4/uname.m4: New file.
38709         * modules/uname: New file.
38710         * doc/posix-functions/uname.texi: Mention the new module.
38711
38712 2009-08-02  Bruno Haible  <bruno@clisp.org>
38713
38714         Tests for module 'sys_utsname'.
38715         * modules/sys_utsname-tests: New file.
38716         * tests/test-sys_utsname.c: New file.
38717
38718         New module 'sys_utsname'.
38719         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
38720         * m4/sys_utsname_h.m4: New file.
38721         * modules/sys_utsname: New file.
38722         * doc/posix-headers/sys_utsname.texi: Mention the new module.
38723
38724 2009-08-02  Bruno Haible  <bruno@clisp.org>
38725
38726         Implicitly initialize the sockets library.
38727         * lib/gethostname.c: Include sockets.h.
38728         (rpl_gethostname): Invoke gl_sockets_startup.
38729         * lib/socket.c: Include sockets.h.
38730         (rpl_socket): Invoke gl_sockets_startup.
38731         * modules/gethostname (Depends-on): Add sockets.
38732         * modules/socket (Depends-on): Likewise.
38733         * tests/test-poll.c: Don't include sockets.h.
38734         (main): Don't invoke gl_sockets_startup.
38735         * tests/test-select.c: Don't include sockets.h.
38736         (main): Don't invoke gl_sockets_startup.
38737
38738 2009-08-02  Bruno Haible  <bruno@clisp.org>
38739
38740         Allow multiple calls to gl_sockets_startup.
38741         * lib/sockets.c (initialized_sockets_version): New variable.
38742         (gl_sockets_startup): Do nothing if already called for this or a higher
38743         version.
38744         (gl_sockets_cleanup): Reset initialized_sockets_version.
38745
38746 2009-08-03  Simon Josefsson  <simon@josefsson.org>
38747
38748         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
38749         different project/version.
38750
38751 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
38752             Bruno Haible  <bruno@clisp.org>
38753
38754         Tests for module 'pipe-filter-gi'.
38755         * modules/pipe-filter-gi-tests: New file.
38756         * tests/test-pipe-filter-gi1.sh: New file.
38757         * tests/test-pipe-filter-gi1.c: New file.
38758         * tests/test-pipe-filter-gi2.sh: New file.
38759         * tests/test-pipe-filter-gi2-main.c: New file.
38760         * tests/test-pipe-filter-gi2-child.c: New file.
38761
38762         New module 'pipe-filter-gi'.
38763         * lib/pipe-filter-gi.c: New file.
38764         * modules/pipe-filter-gi: New file.
38765
38766 2009-08-02  Bruno Haible  <bruno@clisp.org>
38767             Paolo Bonzini  <bonzini@gnu.org>
38768
38769         Tests for module 'pipe-filter-ii'.
38770         * modules/pipe-filter-ii-tests: New file.
38771         * tests/test-pipe-filter-ii1.sh: New file.
38772         * tests/test-pipe-filter-ii1.c: New file.
38773         * tests/test-pipe-filter-ii2.sh: New file.
38774         * tests/test-pipe-filter-ii2-main.c: New file.
38775         * tests/test-pipe-filter-ii2-child.c: New file.
38776
38777         New module 'pipe-filter-ii'.
38778         * lib/pipe-filter.h: New file.
38779         * lib/pipe-filter-ii.c: New file.
38780         * lib/pipe-filter-aux.h: New file.
38781         * modules/pipe-filter-ii: New file.
38782
38783 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38784
38785         * lib/gc-libgcrypt.c: Change copyright to FSF.
38786         * lib/gc-gnulib.c: Likewise.
38787
38788 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
38789
38790         * lib/gethostname.c: Include limits.h.
38791
38792 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38793             Bruno Haible  <bruno@clisp.org>
38794
38795         Ensure HOST_NAME_MAX as part of the gethostname module.
38796         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
38797         define also HOST_NAME_MAX.
38798         * tests/test-gethostname.c: Include <limits.h>.
38799         (main): Check also HOST_NAME_MAX.
38800         * doc/posix-headers/limits.texi: Document the mingw problem.
38801
38802 2009-08-02  Bruno Haible  <bruno@clisp.org>
38803
38804         * lib/gethostname.c (gethostname): Fix handling of large len argument.
38805         Add comments.
38806
38807 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38808
38809         * lib/gethostname.c: Add Windows wrapper.
38810         * m4/gethostname.m4: Look for gethostname in -lws2_32.
38811         * modules/gethostname: Depend on sys_socket & errno, for also
38812         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
38813         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
38814
38815 2009-07-31  Jim Meyering  <meyering@redhat.com>
38816
38817         getloadavg: fix symbol name in comment
38818         * lib/getloadavg.c: Correct a typo I introduced when adding
38819         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
38820         Matt Kraai spotted the problem.
38821
38822 2009-07-29  Matt Kraai  <mkraai@beckman.com>
38823
38824         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
38825         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
38826         code also if ! defined N_NAME_POINTER.
38827         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
38828         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
38829         but the n_name member is a 12-byte array.
38830
38831 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
38832
38833         update-copyright: generalize comment handling
38834         * build-aux/update-copyright: Handle copyright statements
38835         within more comment styles.
38836         Document usage.
38837         Report any file with an external copyright holder or parse failure.
38838
38839 2009-07-29  Jim Meyering  <meyering@redhat.com>
38840
38841         mktime: correct setting of REPLACE_MKTIME
38842         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
38843
38844         update-copyright: new module
38845         * modules/update-copyright: New file.
38846         * build-aux/update-copyright: New file.
38847         * MODULES.html.sh (maint+release support): Add update-copyright.
38848
38849 2009-07-27  Bruno Haible  <bruno@clisp.org>
38850
38851         Fix compilation error when <ctime> is used and mktime is replaced.
38852         * lib/time.in.h (mktime): New declaration.
38853         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
38854         REPLACE_MKTIME instead of defining mktime in config.h.
38855         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
38856         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
38857         Reported by Ross McFarland <rwmcfa1@neces.com>.
38858
38859 2009-07-27  Bruno Haible  <bruno@clisp.org>
38860
38861         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
38862         Reported by Matt Kraai <mkraai@beckman.com>.
38863
38864 2009-07-25  Jim Meyering  <meyering@redhat.com>
38865
38866         maint.mk: avoid warnings about missing files
38867         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
38868         diagnostic when .prev-version does not exist.
38869         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
38870         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
38871         nonexistent cfg.mk.
38872         Suggestions from Simon Josefsson.
38873
38874 2009-07-25  Bruno Haible  <bruno@clisp.org>
38875
38876         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
38877         defined as macros. Needed on QNX 6.4.1.
38878         Reported by Matt Kraai <mkraai@beckman.com>.
38879
38880 2009-07-23  Jim Meyering  <meyering@redhat.com>
38881
38882         maint.mk: invoke "make dist" with a working value of XZ_OPT
38883         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
38884
38885 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
38886
38887         Make fseeko.c compile on QNX.
38888         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
38889
38890 2009-07-22  Peter Simons  <simons@cryp.to>
38891
38892         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
38893         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
38894         * lib/md4.h: Likewise.
38895         * lib/md5.h: Likewise.
38896         * lib/sha1.h: Likewise.
38897         * lib/sha256.h: Likewise.
38898         * lib/sha512.h: Likewise.
38899
38900         tests-sha1: don't assign literal string to 'char *' variable
38901         * tests/test-sha1.c (main): Declare locals with "const" to match
38902         attributes of the right hand side.
38903
38904 2009-07-21  Eric Blake  <ebb9@byu.net>
38905
38906         dup2: fix more mingw problems
38907         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
38908         fd to itself.
38909         * doc/posix-functions/dup2.texi (dup2): Document the bug.
38910         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
38911         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
38912         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
38913         care of mingw bugs.
38914
38915 2009-07-21  Jim Meyering  <meyering@redhat.com>
38916
38917         vc-list-files: avoid failure when /bin/sh is dash
38918         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
38919         On some Debian based systems, /bin/sh is a symlink to dash, and running
38920         this command would omit the "/" following each 'tests' prefix:
38921           dash -x build-aux/vc-list-files -C . tests
38922         That is because bash and dash work differently:
38923           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
38924           bash ok
38925           dash odd
38926
38927 2009-07-21  Eric Blake  <ebb9@byu.net>
38928
38929         dup2-tests: test previous patch
38930         * modules/dup2-tests: New file.
38931         * tests/test-dup2.c: Likewise.
38932         * tests/test-open.c (main): Avoid unspecified behavior.
38933         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
38934         test.
38935
38936         dup2: work around mingw and cygwin 1.5 bug
38937         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
38938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38939         * modules/unistd (Makefile.am): Substitute it.
38940         * lib/unistd.in.h (dup2): Declare the replacement.
38941         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
38942         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
38943         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
38944         * modules/execute (Depends-on): Add dup2.
38945         * modules/fseterr (Depends-on): Likewise.
38946         * modules/pipe (Depends-on): Likewise.
38947         * modules/posix_spawn-internal (Depends-on): Likewise.
38948
38949 2009-07-21  Bruno Haible  <bruno@clisp.org>
38950
38951         * modules/.gitattributes: New file.
38952
38953 2009-07-20  Bruno Haible  <bruno@clisp.org>
38954
38955         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
38956         (main): Use it.
38957
38958 2009-07-20  Eric Blake  <ebb9@byu.net>
38959
38960         test-pipe: make a bit more robust.
38961         * tests/test-pipe.c (myerr): Allow error messages regardless of
38962         what we do to stderr.
38963         (test_pipe): Rearrange to avoid deadlock.
38964         (child_main): Try a larger read, to ensure we avoided deadlock.
38965         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
38966         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
38967         if misused.
38968
38969 2009-07-19  Jim Meyering  <meyering@redhat.com>
38970
38971         fts: avoid false-positive cycle-detection
38972         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
38973         for each new command line argument.
38974
38975 2009-07-19  Bruno Haible  <bruno@clisp.org>
38976
38977         Fix build error on mingw with the modules sys_select and unistd.
38978         * modules/acl-tests (Depends-on): Add close.
38979         * modules/binary-io-tests (Depends-on): Likewise.
38980         * modules/closein-tests (Depends-on): Likewise.
38981         * modules/flock-tests (Depends-on): Likewise.
38982         * modules/fsync-tests (Depends-on): Likewise.
38983         * modules/lseek-tests (Depends-on): Likewise.
38984         * modules/pipe-tests (Depends-on): Likewise.
38985         * modules/posix_spawn-tests (Depends-on): Likewise.
38986         * modules/posix_spawnp-tests (Depends-on): Likewise.
38987         * modules/stat-time-tests (Depends-on): Likewise.
38988         * modules/yesno-tests (Depends-on): Likewise.
38989
38990 2009-07-19  Bruno Haible  <bruno@clisp.org>
38991
38992         Unify conditionals.
38993         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
38994         macros, not at the compiler macros.
38995         * lib/pipe.c: Likewise.
38996         * lib/execute.c: Likewise.
38997         * lib/spawni.c: Likewise.
38998
38999 2009-07-19  Bruno Haible  <bruno@clisp.org>
39000
39001         Fix handling of closed stdin/stdout/stderr on mingw.
39002         * lib/w32spawn.h: Include unistd.h.
39003         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
39004         file descriptor with O_NOINHERIT flag.
39005         (fd_safer_noinherit): New function, based on fd-safer.c.
39006         (dup_safer_noinherit): New function, based on dup-safer.c.
39007         (undup_safer_noinherit): New function.
39008         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
39009         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
39010         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
39011         instead of fd_safer.
39012         * tests/test-pipe.c: Include <windows.h>.
39013         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
39014         result.
39015
39016         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
39017         from main.
39018         (test_pipe): Pass an extra argument for disambiguation.
39019         (main): Invoke parent_main or child_main.
39020
39021         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
39022         consistently.
39023
39024 2009-07-18  Eric Blake  <ebb9@byu.net>
39025
39026         test-pipe: fix mingw build
39027         * tests/test-pipe.c (main): Avoid fcntl on mingw.
39028
39029 2009-07-18  Bruno Haible  <bruno@clisp.org>
39030
39031         * modules/pipe-tests (Makefile.am): Fix typo.
39032
39033 2009-07-18  Eric Blake  <ebb9@byu.net>
39034
39035         error: fix mingw build
39036         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
39037         Reported by Bruno Haible.
39038
39039         error: avoid undefined use of stdout
39040         * lib/error.c (error, error_at_line): Check that fd 1 is open
39041         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
39042         is handling faults and the close_stdout module wants to report the
39043         detection of closed stdout as an error.
39044
39045 2009-07-17  Eric Blake  <ebb9@byu.net>
39046
39047         pipe: be robust in face of closed fds
39048         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
39049         should cause child to misbehave.
39050         * modules/pipe-tests: New module.
39051         * tests/test-pipe.c: New file.
39052         * tests/test-pipe.sh: New file.
39053         Reported by Akim Demaille.
39054
39055 2009-07-14  Bruno Haible  <bruno@clisp.org>
39056
39057         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
39058         Reported by anonymous kc.
39059
39060 2009-07-07  Jim Meyering  <meyering@redhat.com>
39061
39062         maint.mk: don't look for translatable strings in *.m4 or *.mk
39063         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
39064         when searching for translatable strings.
39065
39066 2009-07-05  Jim Meyering  <meyering@redhat.com>
39067
39068         remove superfluous parentheses in STREQ definition
39069         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
39070         * lib/getugroups.c (STREQ): Likewise.
39071         * lib/fnmatch.c (STREQ): Likewise.
39072         Spotted by Bruno Haible.
39073
39074 2009-07-04  Jim Meyering  <meyering@redhat.com>
39075
39076         argv-iter: new module
39077         * MODULES.html.sh: Add argv-iter.
39078         * lib/argv-iter.c, lib/argv-iter.h: New files.
39079         * modules/argv-iter: New file.
39080         * modules/argv-iter-tests: New file.
39081         * tests/test-argv-iter.c: Test it.
39082
39083 2009-07-04  Bruno Haible  <bruno@clisp.org>
39084
39085         Fix assertion.
39086         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
39087         contains more exact copies of a given entry than file2, leave the extra
39088         copies unpaired rather than aborting.
39089         Reported by Eric Blake.
39090
39091 2009-07-02  Bruno Haible  <bruno@clisp.org>
39092
39093         Speedup git-merge-changelog for git cherry-pick.
39094         * lib/git-merge-changelog.c (struct entries_mapping): New type.
39095         (entries_mapping_get): New function, extracted from compute_mapping.
39096         (entries_mapping_reverse_get): New function.
39097         (compute_mapping): Add a 'full' argument. Return the result in a
39098         'struct entries_mapping'.
39099         (main): Update. Access the mappings through entries_mapping_get.
39100         Reported by Eric Blake.
39101
39102 2009-07-02  Bruno Haible  <bruno@clisp.org>
39103
39104         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
39105         best_i.
39106
39107 2009-07-02  Bruno Haible  <bruno@clisp.org>
39108
39109         Speed up approximate search for matching ChangeLog entries.
39110         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
39111         argument. Call fstrcmp_bounded instead of fstrcmp.
39112         (compute_mapping, try_split_merged_entry, main): Update callers.
39113
39114 2009-07-02  Bruno Haible  <bruno@clisp.org>
39115
39116         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
39117
39118 2009-06-30  Bruno Haible  <bruno@clisp.org>
39119
39120         Reduce the number of uc_is_cased calls.
39121         * lib/unicase.h (casing_suffix_context_t): Add
39122         'first_char_except_ignorable' field.
39123         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
39124         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
39125         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
39126         Update initializer.
39127         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
39128         case-ignorable characters.
39129         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
39130         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
39131         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
39132         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
39133         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
39134
39135 2009-06-30  Bruno Haible  <bruno@clisp.org>
39136
39137         Tests for module 'unicase/ignorable'.
39138         * modules/unicase/ignorable-tests: New file.
39139         * tests/unicase/test-ignorable.c: New file, generated by
39140         gen-uni-tables.
39141
39142         Tests for module 'unicase/cased'.
39143         * modules/unicase/cased-tests: New file.
39144         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
39145         * tests/unicase/test-predicate-part1.h: New file, derived from
39146         tests/unictype/test-predicate-part1.h.
39147         * tests/unicase/test-predicate-part2.h: New file, same as
39148         tests/unictype/test-predicate-part2.h.
39149
39150         Fix evaluation of "Before C" condition of FINAL_SIGMA.
39151         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
39152         (output_casing_properties): New function.
39153         (main): Call it.
39154         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
39155         * lib/unicase/cased.c: Include unictype/bitmap.h.
39156         (uc_is_cased): Define through a bitmap lookup.
39157         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
39158         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
39159         (uc_is_case_ignorable): Define through a bitmap lookup.
39160         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
39161         lib/unictype/bitmap.h.
39162         (Depends-on): Add inline. Clean up.
39163         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
39164         lib/unictype/bitmap.h.
39165         (Depends-on): Add inline. Clean up.
39166         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
39167         recognition.
39168         * tests/unicase/test-u16-tolower.c (main): Likewise.
39169         * tests/unicase/test-u32-tolower.c (main): Likewise.
39170
39171 2009-06-30  Bruno Haible  <bruno@clisp.org>
39172
39173         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
39174         * lib/unicase/u16-casemap.c: Likewise.
39175         * lib/unicase/u32-casemap.c: Likewise.
39176
39177 2009-06-29  Bruno Haible  <bruno@clisp.org>
39178
39179         Define u32_casefold as a wrapper around u32_ct_casefold.
39180         * lib/unicase/u32-casefold.c: Update.
39181         * modules/unicase/u32-casefold (Depends-on): Add
39182         unicase/u32-ct-casefold, unicase/empty-prefix-context,
39183         unicase/empty-suffix-context. Clean up.
39184
39185         Define u16_casefold as a wrapper around u16_ct_casefold.
39186         * lib/unicase/u16-casefold.c: Update.
39187         * modules/unicase/u16-casefold (Depends-on): Add
39188         unicase/u16-ct-casefold, unicase/empty-prefix-context,
39189         unicase/empty-suffix-context. Clean up.
39190
39191         Define u8_casefold as a wrapper around u8_ct_casefold.
39192         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
39193         * lib/unicase/u8-casefold.c: Update.
39194         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
39195         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39196
39197         Define u32_totitle as a wrapper around u32_ct_totitle.
39198         * lib/unicase/u32-totitle.c: Update.
39199         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
39200         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39201
39202         Define u16_totitle as a wrapper around u16_ct_totitle.
39203         * lib/unicase/u16-totitle.c: Update.
39204         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
39205         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39206
39207         Define u8_totitle as a wrapper around u8_ct_totitle.
39208         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
39209         functions.
39210         (FUNC): Delegate to U_CT_TOTITLE.
39211         * lib/unicase/u8-totitle.c: Update.
39212         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
39213         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39214
39215         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
39216         invocation.
39217         * modules/unicase/u32-tolower (Depends-on): Add
39218         unicase/empty-prefix-context, unicase/empty-suffix-context.
39219
39220         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
39221         invocation.
39222         * modules/unicase/u16-tolower (Depends-on): Add
39223         unicase/empty-prefix-context, unicase/empty-suffix-context.
39224
39225         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
39226         * modules/unicase/u8-tolower (Depends-on): Add
39227         unicase/empty-prefix-context, unicase/empty-suffix-context.
39228
39229         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
39230         invocation.
39231         * modules/unicase/u32-toupper (Depends-on): Add
39232         unicase/empty-prefix-context, unicase/empty-suffix-context.
39233
39234         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
39235         invocation.
39236         * modules/unicase/u16-toupper (Depends-on): Add
39237         unicase/empty-prefix-context, unicase/empty-suffix-context.
39238
39239         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
39240         * modules/unicase/u8-toupper (Depends-on): Add
39241         unicase/empty-prefix-context, unicase/empty-suffix-context.
39242
39243         New module 'unicase/u32-ct-casefold'.
39244         * lib/unicase/u32-ct-casefold.c: New file.
39245         * modules/unicase/u32-ct-casefold: New file.
39246
39247         New module 'unicase/u16-ct-casefold'.
39248         * lib/unicase/u16-ct-casefold.c: New file.
39249         * modules/unicase/u16-ct-casefold: New file.
39250
39251         New module 'unicase/u8-ct-casefold'.
39252         * lib/unicase/u8-ct-casefold.c: New file.
39253         * lib/unicase/u-ct-casefold.h: New file, derived from
39254         lib/unicase/u-casefold.h.
39255         * modules/unicase/u8-ct-casefold: New file.
39256
39257         New module 'unicase/u32-ct-totitle'.
39258         * lib/unicase/u32-ct-totitle.c: New file.
39259         * modules/unicase/u32-ct-totitle: New file.
39260
39261         New module 'unicase/u16-ct-totitle'.
39262         * lib/unicase/u16-ct-totitle.c: New file.
39263         * modules/unicase/u16-ct-totitle: New file.
39264
39265         New module 'unicase/u8-ct-totitle'.
39266         * lib/unicase/u8-ct-totitle.c: New file.
39267         * lib/unicase/u-ct-totitle.h: New file, derived from
39268         lib/unicase/u-totitle.h.
39269         * modules/unicase/u8-ct-totitle: New file.
39270
39271         New module 'unicase/u32-ct-tolower'.
39272         * lib/unicase/u32-ct-tolower.c: New file.
39273         * modules/unicase/u32-ct-tolower: New file.
39274
39275         New module 'unicase/u16-ct-tolower'.
39276         * lib/unicase/u16-ct-tolower.c: New file.
39277         * modules/unicase/u16-ct-tolower: New file.
39278
39279         New module 'unicase/u8-ct-tolower'.
39280         * lib/unicase/u8-ct-tolower.c: New file.
39281         * modules/unicase/u8-ct-tolower: New file.
39282
39283         New module 'unicase/u32-ct-toupper'.
39284         * lib/unicase/u32-ct-toupper.c: New file.
39285         * modules/unicase/u32-ct-toupper: New file.
39286
39287         New module 'unicase/u16-ct-toupper'.
39288         * lib/unicase/u16-ct-toupper.c: New file.
39289         * modules/unicase/u16-ct-toupper: New file.
39290
39291         New module 'unicase/u8-ct-toupper'.
39292         * lib/unicase/u8-ct-toupper.c: New file.
39293         * modules/unicase/u8-ct-toupper: New file.
39294
39295         Add context arguments to u*_casemap functions.
39296         * lib/unicase/unicasemap.h: Include unicase.h.
39297         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
39298         suffix_context arguments.
39299         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
39300         functions.
39301         (FUNC): Add prefix_context and suffix_context arguments. Use
39302         uc_is_cased and uc_is_case_ignorable.
39303         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
39304         * lib/unicase/u16-casemap.c: Likewise.
39305         * lib/unicase/u32-casemap.c: Likewise.
39306         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
39307         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39308         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
39309         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39310         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
39311         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39312
39313         New module 'unicase/u32-suffix-context'.
39314         * lib/unicase/u32-suffix-context.c: New file.
39315         * modules/unicase/u32-suffix-context: New file.
39316
39317         New module 'unicase/u16-suffix-context'.
39318         * lib/unicase/u16-suffix-context.c: New file.
39319         * modules/unicase/u16-suffix-context: New file.
39320
39321         New module 'unicase/u8-suffix-context'.
39322         * lib/unicase/u8-suffix-context.c: New file.
39323         * lib/unicase/u-suffix-context.h: New file.
39324         * modules/unicase/u8-suffix-context: New file.
39325
39326         New module 'unicase/empty-suffix-context'.
39327         * lib/unicase/empty-suffix-context.c: New file.
39328         * modules/unicase/empty-suffix-context: New file.
39329
39330         New module 'unicase/u32-prefix-context'.
39331         * lib/unicase/u32-prefix-context.c: New file.
39332         * modules/unicase/u32-prefix-context: New file.
39333
39334         New module 'unicase/u16-prefix-context'.
39335         * lib/unicase/u16-prefix-context.c: New file.
39336         * modules/unicase/u16-prefix-context: New file.
39337
39338         New module 'unicase/u8-prefix-context'.
39339         * lib/unicase/u8-prefix-context.c: New file.
39340         * lib/unicase/u-prefix-context.h: New file.
39341         * lib/unicase/context.h: New file.
39342         * modules/unicase/u8-prefix-context: New file.
39343
39344         New module 'unicase/empty-prefix-context'.
39345         * lib/unicase/empty-prefix-context.c: New file.
39346         * modules/unicase/empty-prefix-context: New file.
39347
39348         New module 'unicase/ignorable'.
39349         * lib/unicase/ignorable.c: New file.
39350         * modules/unicase/ignorable: New file.
39351
39352         New module 'unicase/cased'.
39353         * lib/unicase/caseprop.h: New file.
39354         * lib/unicase/cased.c: New file.
39355         * modules/unicase/cased: New file.
39356
39357         New functions for case mapping of substrings.
39358         * lib/unicase.h (casing_prefix_context_t): New type.
39359         (unicase_empty_prefix_context): New variable.
39360         (u8_casing_prefix_context, u16_casing_prefix_context,
39361         u32_casing_prefix_context, u8_casing_prefixes_context,
39362         u16_casing_prefixes_context, u32_casing_prefixes_context): New
39363         declarations.
39364         (casing_suffix_context_t): New type.
39365         (unicase_empty_suffix_context): New variable.
39366         (u8_casing_suffix_context, u16_casing_suffix_context,
39367         u32_casing_suffix_context, u8_casing_suffixes_context,
39368         u16_casing_suffixes_context, u32_casing_suffixes_context,
39369         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
39370         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
39371         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
39372         declarations.
39373
39374 2009-06-28  Jim Meyering  <meyering@redhat.com>
39375
39376         boostrap: indent only with spaces
39377         * build-aux/bootstrap: Indent only with spaces, never TABs.
39378
39379         bootstrap: split long lines
39380         * build-aux/bootstrap: Keep line length < 80.
39381
39382         bootstrap: sync from coreutils
39383         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
39384         just as autoreconf does.  Verify a list of prerequisite
39385         package-name,version-number pairs if defined in bootstrap.conf.
39386         Refer to README-prereq, if prerequisites are not satisfied.
39387
39388 2009-06-27  Eric Blake  <ebb9@byu.net>
39389
39390         tests: add test for bogus NULL definition
39391         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
39392         * tests/test-stdlib.c: Likewise.
39393         * tests/test-string.c: Likewise.
39394         * tests/test-locale.c: Likewise.
39395         * tests/test-unistd.c: Likewise.
39396         * modules/stdio-tests (Depends-on): Add verify.
39397         * modules/stdlib-tests (Depends-on): Likewise.
39398         * modules/string-tests (Depends-on): Likewise.
39399         * modules/locale-tests (Depends-on): Likewise.
39400         * modules/unistd-tests (Depends-on): Likewise.
39401
39402 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
39403
39404         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
39405         self-explaining comment.
39406         * m4/selinux-selinux-h: Update serial.
39407         (gl_LIBSELINUX): New macro, adding a warning for missing development
39408         packages to code extracted from...
39409         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
39410         Add warning for missing development packages here, too.
39411
39412 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
39413
39414         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
39415
39416 2009-06-25  Eric Blake  <ebb9@byu.net>
39417
39418         version-etc: fix regression
39419         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
39420         gcc.
39421         (version_etc): Use it, to catch bugs with trailing NULL.
39422         * lib/version-etc.c (version_etc_arn): Delete unused argument.
39423         (version_etc_va): Fix logic bug.
39424         * modules/version-etc-tests: Add test.
39425         * tests/test-version-etc.c: New file.
39426         * tests/test-version-etc.sh: Likewise.
39427
39428 2009-06-25  Sam Steingold  <sds@gnu.org>
39429
39430         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
39431         mbtowc declaration.
39432
39433 2009-06-25  Eric Blake  <ebb9@byu.net>
39434
39435         fpurge: migrate into <stdio.h>
39436         * lib/fpurge.h: Delete...
39437         * lib/stdio.in.h (fpurge): ...and declare here, instead.
39438         * lib/fpurge.c (fpurge): Change declaring header.
39439         * modules/fpurge (Files): Drop deleted file.
39440         (Depends-on): Add stdio.
39441         (configure.ac): Set witness.
39442         * modules/stdio (Makefile.am): Support fpurge macros.
39443         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39444         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
39445         * lib/fflush.c: Update client.
39446         * tests/test-fpurge.c: Likewise.
39447         * NEWS: Mention the change.
39448
39449 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39450
39451         * lib/argp-version-etc.c (program_authors): Add const
39452         qualifier.
39453         * lib/version-etc.c: Fix typos in the comments.
39454         * modules/argp-version-etc: Depends on version-etc.
39455
39456 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39457
39458         argp-version-etc: new module.
39459
39460         * lib/argp-version-etc.c: New file.
39461         * lib/argp-version-etc.h: New file.
39462         * modules/argp-version-etc: New file.
39463         * modules/argp-version-etc-tests: New file.
39464         * tests/test-argp-version-etc.c: New test.
39465         * tests/test-argp-version-etc-1.sh: New test.
39466
39467 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39468
39469         Provide additional interfaces and documentation for version-etc
39470         module.
39471
39472         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
39473         interfaces.
39474         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
39475         prototypes.
39476
39477 2009-06-24  Bruno Haible  <bruno@clisp.org>
39478
39479         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
39480         HAVE_LIB${NAME} macro.
39481         Reported by Sam Steingold <sds@gnu.org>.
39482
39483 2009-06-23  Simon Josefsson  <simon@josefsson.org>
39484
39485         * modules/hash-tests (test_hash_LDADD): Link to libintl when
39486         needed.
39487
39488 2009-06-21  Bruno Haible  <bruno@clisp.org>
39489
39490         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
39491         work.
39492         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
39493         together with LIB${NAME}, LTLIB${NAME}.
39494         Reported by Sam Steingold <sds@gnu.org>.
39495
39496 2009-06-20  Jim Meyering  <meyering@redhat.com>
39497
39498         tests: make sc_require_test_exit_idiom more generic
39499         * top/maint.mk (Exit_witness_file): New overridable variable.
39500         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
39501         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
39502
39503 2009-06-19  Jim Meyering  <meyering@redhat.com>
39504
39505         hash: reverse order of src/dst parameters in an internal interface
39506         * lib/hash.c (transfer_entries): Reverse order of parameters to
39507         put DST before SRC.  Adjust callers.
39508
39509         tests: test-hash: avoid wholesale duplication
39510         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
39511         Instead, use a loop and add a single conditional.
39512
39513         tests: test-hash: allow seed selection via a command line argument
39514         * tests/test-hash.c (get_seed): New function.
39515         (main): Use it.
39516
39517 2009-06-19  Eric Blake  <ebb9@byu.net>
39518
39519         hash: avoid memory leak on allocation failure
39520         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
39521         failure.  Factor repeated algorithm...
39522         (transfer_entries): ...into new helper routine.
39523         (hash_delete): React to hash_rehash return value.
39524
39525         hash: reduce memory pressure in hash_rehash no-op case
39526         * lib/hash.c (next_prime): Avoid overflow.
39527         (hash_initialize): Factor bucket size computation...
39528         (compute_bucket_size): ...into new helper function.
39529         (hash_rehash): Use new function and open coding to reduce memory
39530         pressure, and avoid a memory leak in USE_OBSTACK code.
39531         Reported by Jim Meyering.
39532
39533 2009-06-18  Eric Blake  <ebb9@byu.net>
39534
39535         hash: make rotation more obvious
39536         * modules/hash (Depends-on): Add bitrotate and stdint.
39537         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
39538         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
39539         (SIZE_MAX): Rely on headers for definition.
39540         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
39541         (raw_hasher): Use rotr_sz.
39542         Suggested by Jim Meyering.
39543
39544         hash: fix memory leak in last patch
39545         * lib/hash.c (hash_rehash): Avoid memory leak.
39546
39547         hash: avoid no-op rehashing
39548         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
39549
39550         hash: provide default callback functions
39551         * lib/hash.c (raw_hasher, raw_comparator): New functions.
39552         (hash_initialize): Use them as defaults.
39553         * tests/test-hash.c (main): Test this.
39554
39555         hash: minor optimization
39556         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
39557         when possible.
39558         (hash_initialize): Document this promise.
39559         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
39560         * tests/test-hash.c (hash_compare_strings): Test this.
39561
39562 2009-06-18  Bruno Haible  <bruno@clisp.org>
39563
39564         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
39565         going to be replaced anyway.
39566
39567 2009-06-18  Bruno Haible  <bruno@clisp.org>
39568
39569         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
39570         in one place.
39571         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
39572         be replaced anyway.
39573
39574 2009-06-18  Eric Blake  <ebb9@byu.net>
39575
39576         hash: check for resize before insertion
39577         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
39578         threshold before insertion, so that a pathological hash_rehash
39579         that fills every bucket can still trigger another rehash.
39580
39581 2009-06-18  Jim Meyering  <meyering@redhat.com>
39582
39583         hash-tests: add a loop around the small tests
39584         * tests/test-hash.c (main): Repeat small tests with selected
39585         small initial table sizes.
39586
39587 2009-06-17  Eric Blake  <ebb9@byu.net>
39588
39589         hash: minor cleanups
39590         * lib/hash.h (hash_entry): Make opaque, by moving...
39591         * lib/hash.c (hash_entry): ...here.
39592         (hash_insert): Clarify restrictions on what can be inserted.
39593         (hash_get_next): Clarify when it is safe to remove an element
39594         during traversal.
39595         (check_tuning): Skip verification when tuning is known safe.
39596         (hash_initialize): Clarify restrictions on tuning.
39597
39598 2009-06-17  Jim Meyering  <jim@meyering.net>
39599         and Eric Blake  <ebb9@byu.net>
39600
39601         hash-tests: new module
39602         * modules/hash-tests: New file.
39603         * tests/test-hash.c: New file.
39604
39605 2009-06-17  Eric Blake  <ebb9@byu.net>
39606
39607         strstr-simple: document new module
39608         * MODULES.html.sh: Document new module.
39609
39610         strstr, strcasestr: replace on platforms with broken memchr
39611         * modules/strstr: Split into...
39612         * modules/strstr-simple: ...new module that does not care about
39613         performance, but does care about glibc bug.
39614         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
39615         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
39616         if platform memchr is broken, per Debian bug 521737.
39617         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
39618         memchr.
39619         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
39620         * doc/posix-functions/strstr.texi (strstr): Document the fix.
39621         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39622         * modules/mountlist (Depends-on): Add strstr-simple.
39623         * modules/gen-uni-tables (Depends-on): Likewise.
39624         * modules/argz (Depends-on): Add strstr.
39625
39626 2009-06-17  Bruno Haible  <bruno@clisp.org>
39627
39628         * modules/posix_spawn-internal (Depends-on): Add errno.
39629
39630 2009-06-17  Bruno Haible  <bruno@clisp.org>
39631
39632         Define missing ESTALE on Interix 3.5.
39633         * lib/errno.in.h (ESTALE): Assign a value if missing.
39634         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
39635         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
39636         missing.
39637         * doc/posix-headers/errno.texi: Mention the Interix bug.
39638         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
39639
39640 2009-06-15  Eric Blake  <ebb9@byu.net>
39641
39642         memchr, memchr2: add valgrind exception
39643         * lib/memchr.valgrind: New file.
39644         * lib/memchr2.valgrind: New file.
39645         * modules/memchr (Files): Distribute valgrind file.
39646         * modules/memchr2 (Files): Likewise.
39647
39648         docs: memchr is no longer obsolete
39649         * MODULES.html.sh: Move memchr from obsolete to string.h section.
39650         * lib/string.in.h (memchr): Simplify logic.
39651
39652 2009-06-14  Jim Meyering  <meyering@redhat.com>
39653
39654         link-follow: fix the "checking..." message to not mention trailing slash
39655         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
39656         never considered trailing slashes.
39657
39658 2009-06-14  Bruno Haible  <bruno@clisp.org>
39659
39660         * m4/memchr.m4: Mention also the bug on IA-64.
39661         * doc/posix-functions/memchr.texi: Likewise.
39662
39663 2009-06-12  Eric Blake  <ebb9@byu.net>
39664
39665         memchr: detect broken x86_64 and alpha implementations
39666         * modules/memchr-tests (Depends-on): Move mmap detection...
39667         * modules/memchr (Depends-on): ...here.
39668         (configure.ac): Set indicator.
39669         * lib/string.in.h (memchr): Declare replacement.
39670         * modules/string (Makefile.am): Trigger replacement.
39671         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
39672         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
39673         bugs.
39674         * doc/posix-functions/memchr.texi (memchr): Document the bug.
39675         * modules/getpagesize (License): Relax license.
39676
39677 2009-06-11  Bruno Haible  <bruno@clisp.org>
39678
39679         * lib/idpriv.h: Add more references.
39680
39681 2009-06-08  Bruno Haible  <bruno@clisp.org>
39682
39683         Tests for module 'idpriv-droptemp'.
39684         * modules/idpriv-droptemp-tests: New file.
39685         * tests/test-idpriv-droptemp.sh: New file.
39686         * tests/test-idpriv-droptemp.su.sh: New file.
39687         * tests/test-idpriv-droptemp.c: New file.
39688
39689         New module 'idpriv-droptemp'.
39690         * lib/idpriv-droptemp.c: New file.
39691         * modules/idpriv-droptemp: New file.
39692
39693 2009-06-08  Bruno Haible  <bruno@clisp.org>
39694
39695         Tests for module 'idpriv-drop'.
39696         * modules/idpriv-drop-tests: New file.
39697         * tests/test-idpriv-drop.sh: New file.
39698         * tests/test-idpriv-drop.su.sh: New file.
39699         * tests/test-idpriv-drop.c: New file.
39700
39701         New module 'idpriv-drop'.
39702         * lib/idpriv.h: New file.
39703         * lib-idpriv-drop.c: New file.
39704         * m4/idpriv.m4: New file.
39705         * modules/idpriv-drop: New file.
39706
39707 2009-06-08  Bruno Haible  <bruno@clisp.org>
39708
39709         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
39710         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39711         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39712         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39713         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39714         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39715         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39716
39717 2009-06-08  Eric Blake  <ebb9@byu.net>
39718
39719         test-strstr: use memory fence, when possible
39720         * tests/test-strstr.c (main): Use memory fence, in order to be
39721         more likely to trigger Debian bug 521737.
39722         * modules/strstr-tests (Files): Pull in additional files.
39723
39724         memchr: no longer obsolete, for wider field testing
39725         * modules/memchr (Status, Notice): Delete, this module is no
39726         longer obsolete.
39727         * modules/vasnprintf (Depends-on): Add memchr.
39728
39729 2009-06-07  Jim Meyering  <meyering@redhat.com>
39730
39731         hash: declare some functions with the warn_unused_result attribute
39732         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
39733
39734 2009-06-07  Bruno Haible  <bruno@clisp.org>
39735
39736         * tests/test-alignof.c: Don't test int64_t if it does not exist.
39737         Reported by Eric Blake.
39738
39739 2009-06-06  Eric Blake  <ebb9@byu.net>
39740
39741         test-alignof: fix typo with long double
39742         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
39743         compiler error.
39744
39745 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
39746
39747         Escape non-texinfo { and }s.
39748         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
39749         markup error.
39750
39751 2009-06-04  Jim Meyering  <meyering@redhat.com>
39752
39753         gitlog-to-changelog: don't infloop on an empty commit log
39754         * build-aux/gitlog-to-changelog: Warn about an empty log message.
39755         Reported by Boris Petersen <transacid@centerim.org>.
39756
39757 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
39758
39759         version-etc: extend for packagers
39760         Add three new configure options, intended for packagers:
39761           --with-packager="packager name"
39762           --with-packager-version="packager-specific version"
39763           --with-packager-bug-reports="packager bug reporting"
39764         An example with coreutils:
39765           $ ./configure \
39766             --with-packager=Gentoo \
39767             --with-packager-bug-report=http://bugs.gentoo.org/ \
39768             --with-packager-version="patchset 1.6"
39769           $ ./src/ls --version | head -n2
39770           ls (GNU coreutils) 7.1-dirty
39771           Packaged by Gentoo (patchset 1.6)
39772         Note that the bug reporting info via --help doesn't show up because
39773         coreutils uses its own custom emit_bug_reporting_address() implementation
39774         in src/system.h.  If it didn't, it'd look like:
39775           $ ./src/ls --help | tail -n4
39776           Report bugs to <bug-coreutils@gnu.org>.
39777           Report Gentoo bugs to <http://bugs.gentoo.org/>.
39778           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
39779           General help using GNU software: <http://www.gnu.org/gethelp/>.
39780         * lib/version-etc.c: Print new information, if provided.
39781         * m4/version-etc.m4: New file.
39782         * modules/version-etc (Files): Add m4/version-etc.m4.
39783         (configure.ac): Add gl_VERSION_ETC.
39784
39785 2009-05-31  Bruno Haible  <bruno@clisp.org>
39786
39787         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
39788         and 'int64_t'.
39789         * modules/alignof-tests (Dependencies): Add stdint.
39790         Reported by Eric Blake.
39791
39792 2009-05-31  Bruno Haible  <bruno@clisp.org>
39793
39794         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
39795         restriction due to compiler bugs.
39796         Reported by Eric Blake.
39797
39798 2009-05-31  Simon Josefsson  <simon@josefsson.org>
39799             Bruno Haible  <bruno@clisp.org>
39800
39801         Fix test-alignof failure.
39802         * lib/alignof.h (alignof_slot): New macro.
39803         (alignof_type): New macro, with the same semantics as the previous
39804         'alignof'.
39805         (alignof): Alias to alignof_slot.
39806         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
39807         check that the results are usable as constant expressions.
39808
39809 2009-05-31  Bruno Haible  <bruno@clisp.org>
39810
39811         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
39812         * tests/test-memchr.c (main): Check that memchr does not read past the
39813         first occurrence of the byte.
39814         * tests/test-strstr.c (main): Update comment.
39815         Suggested by Eric Blake.
39816
39817 2009-05-30  Bruno Haible  <bruno@clisp.org>
39818
39819         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
39820         detail how to use dumpbin.
39821         Reported by David Byron <dbyron@dbyron.com>.
39822
39823 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39824
39825         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
39826
39827 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39828
39829         * m4/manywarnings.m4: Add GCC 4.4 warnings.
39830
39831 2009-05-28  Bruno Haible  <bruno@clisp.org>
39832
39833         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
39834         build-aux/ files.
39835
39836 2009-05-28  Simon Josefsson  <simon@josefsson.org>
39837
39838         * gnulib-tool (func_import): Transform license on build-aux/ files too.
39839
39840 2009-05-27  Simon Josefsson  <simon@josefsson.org>
39841
39842         * gnulib-tool (sed_transform_main_lib_file)
39843         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
39844         regexps.
39845
39846 2009-05-26  Simon Josefsson  <simon@josefsson.org>
39847
39848         * tests/test-strstr.c: Add another self-test.
39849         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
39850         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
39851
39852 2009-05-23  Bruno Haible  <bruno@clisp.org>
39853
39854         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
39855         change.
39856
39857 2009-05-21  Bruno Haible  <bruno@clisp.org>
39858
39859         Simplify use of mode_t varargs.
39860         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
39861         uses 'mode_t' or 'int'.
39862         * lib/openat.c (openat): Likewise.
39863         * lib/open-safer.c (open_safer): Likewise.
39864         * m4/mode_t.m4: New file.
39865         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
39866         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
39867         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
39868         * modules/open (Files): Add m4/mode_t.m4.
39869         * modules/openat (Files): Likewise.
39870         * modules/fcntl-safer (Files): Likewise.
39871         Suggested by Eric Blake.
39872
39873 2009-05-21  Pádraig Brady  <P@draigbrady.com>
39874
39875         * doc/glibc-functions/fallocate.texi: New file.
39876         * doc/gnulib.texi: Include it.
39877
39878 2009-05-21  Eric Blake  <ebb9@byu.net>
39879             Bruno Haible  <bruno@clisp.org>
39880
39881         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
39882         invocations.
39883         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39884
39885 2009-05-21  Eric Blake  <ebb9@byu.net>
39886             Bruno Haible  <bruno@clisp.org>
39887
39888         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
39889         include_next. Fix of 2008-11-20 commit.
39890         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
39891         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
39892         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
39893         NEXT_MATH_H.
39894         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
39895         instead of NEXT_MATH_H.
39896
39897 2009-05-21  Bruno Haible  <bruno@clisp.org>
39898
39899         Avoid redefinition warnings for SIZE_MAX.
39900         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
39901         Reported by Simon Josefsson.
39902
39903 2009-05-21  Bruno Haible  <bruno@clisp.org>
39904
39905         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
39906         AC_CACHE_VAL.
39907
39908 2009-05-20  Bruno Haible  <bruno@clisp.org>
39909
39910         Make zeroptr.h work on mingw.
39911         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
39912         mprotect.
39913         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
39914         * modules/memchr2-tests (configure.ac): Likewise.
39915         * modules/memcmp-tests (configure.ac): Likewise.
39916         * modules/memmem-tests (configure.ac): Likewise.
39917         * modules/memrchr-tests (configure.ac): Likewise.
39918         Reported by Simon Josefsson.
39919
39920 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39921
39922         * tests/test-glob.c: Include string.h for strcmp prototype.
39923
39924 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39925
39926         * modules/getdelim (Depends-on): Add explicit stdint, although it
39927         was implicitly already pulled in via realloc-posix.
39928         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
39929
39930 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39931
39932         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
39933         G. Christensen" <tgc@jupiterrise.com>.
39934         * m4/sys_socket_h.m4: Check for sa_family_t.
39935         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
39936         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
39937         * tests/test-sys_socket.c: Check that sa_family_t works.
39938
39939 2009-05-18  Eric Blake  <ebb9@byu.net>
39940
39941         maint.mk: allow gnulib_dir in VPATH build
39942         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
39943
39944 2009-05-15  Jim Meyering  <meyering@redhat.com>
39945
39946         maint.mk: Give gnulib_dir a default definition.
39947         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
39948         Thus, most packages no longer need to specify this variable in cfg.mk
39949
39950 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
39951
39952         rename.m4: fix typos that would make non-mingw cross-configure fail
39953         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
39954
39955 2009-05-13  Eric Blake  <ebb9@byu.net>
39956
39957         mmap-anon: avoid out-of-order autoconf expansion
39958         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
39959         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
39960         * modules/memchr-tests (Depends-on): Add extensions.
39961         * modules/memchr2-tests (Depends-on): Add extensions.
39962         * modules/memcmp-tests (Depends-on): Add extensions.
39963         * modules/memmem-tests (Depends-on): Add extensions.
39964         * modules/memrchr-tests (Depends-on): Add extensions.
39965
39966 2009-05-13  Bruno Haible  <bruno@clisp.org>
39967
39968         Make some tests ISO C 99 compliant.
39969         * tests/zerosize-ptr.h: New file.
39970         * tests/test-memchr.c: Include zerosize-ptr.h.
39971         (main): Use a zero-size object pointer instead of NULL.
39972         * tests/test-memchr2.c: Include zerosize-ptr.h.
39973         (main): Use a zero-size object pointer instead of NULL.
39974         * tests/test-memcmp.c: Include zerosize-ptr.h.
39975         (main): Use a zero-size object pointer instead of NULL.
39976         * tests/test-memmem.c: Include zerosize-ptr.h.
39977         (main): Use a zero-size object pointer instead of NULL.
39978         * tests/test-memrchr.c: Include zerosize-ptr.h.
39979         (main): Use a zero-size object pointer instead of NULL.
39980         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
39981         m4/mmap-anon.m4.
39982         (Depends-on): Add getpagesize.
39983         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39984         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
39985         m4/mmap-anon.m4.
39986         (Depends-on): Add getpagesize.
39987         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39988         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
39989         m4/mmap-anon.m4.
39990         (Depends-on): Add getpagesize.
39991         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39992         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
39993         m4/mmap-anon.m4.
39994         (Depends-on): Add getpagesize.
39995         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39996         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
39997         m4/mmap-anon.m4.
39998         (Depends-on): Add getpagesize.
39999         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40000
40001 2009-05-12  Bruno Haible  <bruno@clisp.org>
40002
40003         Tests for module 'alignof'.
40004         * modules/alignof-tests: New file.
40005         * tests/test-alignof.c: New file.
40006
40007 2009-05-12  Bruno Haible  <bruno@clisp.org>
40008
40009         Fix alignof macro.
40010         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
40011         vendor compilers that are always correct.
40012
40013 2009-05-12  Bruno Haible  <bruno@clisp.org>
40014
40015         Make the MAP_ANONYMOUS detection work on HP-UX 11.
40016         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
40017         not whether its fully works.
40018
40019 2009-05-12  Bruno Haible  <bruno@clisp.org>
40020
40021         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
40022
40023 2009-05-12  Jim Meyering  <meyering@redhat.com>
40024
40025         * top/maint.mk: Adjust backslash alignment.
40026
40027 2009-05-11  Simon Josefsson  <simon@josefsson.org>
40028
40029         * top/maint.mk: Make $(srcdir)/build-aux configurable.
40030
40031 2009-05-11  Eric Blake  <ebb9@byu.net>
40032
40033         argp: avoid undefined behavior
40034         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
40035         macros.
40036
40037 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40038
40039         * tests/test-vc-list-files-git.sh: Do git config of user.email and
40040         user.name to prevent git commit from complaining.
40041
40042 2009-05-10  Bruno Haible  <bruno@clisp.org>
40043
40044         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
40045         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
40046         it rewrites every file name only once.
40047         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
40048
40049 2009-05-08  Bruno Haible  <bruno@clisp.org>
40050
40051         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
40052         instead of 'max'.
40053
40054 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40055
40056         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
40057         sockaddr_storage test.
40058
40059 2009-05-07  Simon Josefsson  <simon@josefsson.org>
40060
40061         * modules/sys_socket (Makefile.am): Substitute
40062         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
40063         * m4/sys_socket_h.m4: Check for sockaddr_storage.
40064         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
40065         * tests/test-sys_socket.c: Check sockaddr_storage.
40066
40067 2009-05-08  Bruno Haible  <bruno@clisp.org>
40068
40069         New module 'alignof'.
40070         * lib/alignof.h: New file.
40071         * modules/alignof: New file.
40072
40073 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40074             Bruno Haible  <bruno@clisp.org>
40075
40076         Fix test-file-has-acl on FreeBSD.
40077         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
40078         mask is implicitly added.
40079         * tests/test-file-has-acl.c: Include <signal.h>.
40080         (main): Terminate the test after 5 seconds.
40081         * modules/acl-tests (configure.ac): Check for alarm function.
40082
40083 2009-05-04  Bruno Haible  <bruno@clisp.org>
40084
40085         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
40086         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
40087         * modules/errno (configure.ac): Drop AC_REQUIRE.
40088         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
40089         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
40090
40091 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40092
40093         * modules/glob-tests: New module.
40094         * tests/test-glob.c: Add.
40095
40096 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40097
40098         * modules/fnmatch-tests: New module.
40099         * tests/test-fnmatch.c: Add.
40100
40101 2009-05-04  Eric Blake  <ebb9@byu.net>
40102
40103         maint: make the new no-submodule-changes rule VPATH-safe
40104         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
40105
40106 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40107             Bruno Haible  <bruno@clisp.org>
40108
40109         acl: Fix infinite loop on FreeBSD.
40110         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
40111         of return value from acl_get_entry.
40112         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
40113         Likewise.
40114
40115 2009-05-03  Bruno Haible  <bruno@clisp.org>
40116
40117         * lib/acl-internal.h (acl_entries): Clarify return value.
40118         * lib/acl_entries.c (acl_entries): Likewise.
40119
40120 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40121
40122         Bug fix in acl module.
40123         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
40124
40125 2009-05-03  Bruno Haible  <bruno@clisp.org>
40126
40127         Create gperf-generated file in the source dir, not in the build dir.
40128         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
40129         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
40130         * modules/unicase/locale-language (unicase/locale-languages.h):
40131         Likewise.
40132         * modules/unicase/special-casing (unicase/special-casing-table.h):
40133         Likewise.
40134         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
40135         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
40136         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
40137         Reported by Ralf Wildenhues.
40138
40139 2009-05-03  Bruno Haible  <bruno@clisp.org>
40140
40141         * modules/fnmatch (Description, configure.ac): Taken from
40142         fnmatch-posix.
40143         * modules/fnmatch-posix: Turn into a symbolic reference to the
40144         'fnmatch' module, and deprecate.
40145         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
40146
40147 2009-05-03  Bruno Haible  <bruno@clisp.org>
40148
40149         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
40150         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
40151         Reported by Ralf Wildenhues.
40152
40153 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40154
40155         * m4/fnmatch.m4: Fix fnmatch re-define.
40156
40157 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40158
40159         priv-set: new module and tests; adapt write-any-file
40160         * lib/priv-set.c: New file.
40161         * lib/priv-set.h: New file.
40162         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
40163         * lib/write-any-file.c: Simplify by using priv-set module.
40164         * m4/priv-set.m4: New file.
40165         * modules/priv-set: New file.
40166         * modules/unlinkdir: Add dependency on priv-set module.
40167         * modules/write-any-file: Likewise.
40168
40169         Tests for module 'priv-set'.
40170         * modules/priv-set-tests: New file.
40171         * tests/test-priv-set.c: New file.
40172
40173 2009-05-03  Jim Meyering  <meyering@redhat.com>
40174             Bruno Haible  <bruno@clisp.org>
40175
40176         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
40177         use the converted UTF-8 variant of the name instead.
40178
40179 2009-05-03  Jim Meyering  <meyering@redhat.com>
40180
40181         tests: tighten some getdate tests
40182         * tests/test-getdate.c (main): Tighten tests: require equality,
40183         not just greater than.  Set TZ envvar to UTC0.
40184
40185 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
40186
40187         getdate: correctly interpret "next monday" when run on a Monday
40188         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
40189         that e.g., "next tues" (when run on a tuesday) results in a date
40190         that is one week in the future, and not today's date.
40191         I.e., add a week when the wday is the same as the current one.
40192         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
40193         and earlier by Martin Bernreuther and Jan Minář.
40194         * tests/test-getdate.c (main): Check that "next DAY" is always in
40195         the future and that "last DAY" is always in the past.
40196
40197 2009-05-02  Jim Meyering  <meyering@redhat.com>
40198
40199         build: ensure that a release build fails when a submodule is unclean
40200         * top/maint.mk (no-submodule-changes): New rule.
40201         (alpha beta major): Depend on it.
40202
40203 2009-05-02  Bruno Haible  <bruno@clisp.org>
40204
40205         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
40206         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
40207         shell variable gl_fnmatch_required to detect which variant is
40208         requested.
40209         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
40210         gl_FUNC_FNMATCH_POSIX.
40211         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
40212         exclude fnmatch-posix.
40213
40214 2009-05-02  Bruno Haible  <bruno@clisp.org>
40215
40216         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
40217         * modules/mbsrtowcs (License): Change to LGPLv2+.
40218         * modules/strnlen1 (License): Likewise.
40219         Reported by Simon Josefsson.
40220
40221 2009-05-02  Bruno Haible  <bruno@clisp.org>
40222
40223         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
40224         "cross".
40225         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
40226         gnulib-tool was called with option --source-base=lib.
40227
40228 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40229
40230         Use automake *-local hooks without commands, for extensibility.
40231         * modules/localcharset (Makefile.am): Rename install-exec-local
40232         rule to install-exec-localcharset, and make it a prerequisite of
40233         install-exec-local.  Likewise, rename the uninstall-local rule to
40234         uninstall-localcharset, and make it a prerequisite of the former.
40235
40236 2009-05-01  Bruno Haible  <bruno@clisp.org>
40237
40238         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
40239         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
40240         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
40241         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
40242         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
40243         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40244         m4/locale-zh.m4, m4/codeset.m4.
40245
40246         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
40247         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
40248         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40249         m4/locale-zh.m4.
40250
40251         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
40252         REPLACE_WCRTOMB if mbstate_t must be replaced.
40253         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
40254         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
40255
40256 2009-05-01  Bruno Haible  <bruno@clisp.org>
40257
40258         Avoid compiler warnings when redefining macros defined by <libintl.h>.
40259         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
40260         dngettext, dcngettext, textdomain, bindtextdomain,
40261         bind_textdomain_codeset): Undefine before redefining.
40262
40263 2009-04-30  Bruno Haible  <bruno@clisp.org>
40264
40265         Fix bug introduced on 2009-04-25.
40266         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
40267         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
40268         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
40269         is defined.
40270         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
40271         is defined.
40272         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
40273         is defined.
40274         Reported by Elbert_Pol <elbert.pol@gmail.com>.
40275
40276 2009-04-28  Bruno Haible  <bruno@clisp.org>
40277
40278         Comment tweaks.
40279         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
40280         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
40281         * lib/unicase.h (u*_casexfrm): Likewise.
40282         Reported by Paolo Bonzini.
40283
40284 2009-04-28  Bruno Haible  <bruno@clisp.org>
40285
40286         Fix a compilation error.
40287         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
40288         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40289         Reported by Jim Meyering.
40290
40291 2009-04-27  Bruno Haible  <bruno@clisp.org>
40292
40293         New module 'libunistring'.
40294         * modules/libunistring: New file.
40295         * m4/libunistring.m4: New file.
40296         * MODULES.html.sh (Unicode string functions): Add it.
40297
40298 2009-04-27  Eric Blake  <ebb9@byu.net>
40299
40300         maint.mk: allow package-specific header to provide <config.h>
40301         * top/maint.mk (sc_require_config_h): New variable.
40302         (sc_require_config_h, sc_require_config_h_first): Use it.
40303
40304 2009-04-27  Simon Josefsson  <simon@josefsson.org>
40305
40306         * top/maint.mk (sc_avoid_if_before_free): Except
40307         useless-if-before-free script.
40308
40309 2009-04-27  Eric Blake  <ebb9@byu.net>
40310
40311         maintainer-makefile: depend on all required helper scripts
40312         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
40313         useless-if-before-free.
40314         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
40315         version, rather than assuming gnulib checkout is available.
40316         Reported by Simen Josefsson.
40317
40318 2009-04-26  Bruno Haible  <bruno@clisp.org>
40319
40320         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
40321         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
40322         "../" or "..".
40323
40324 2009-04-26  Bruno Haible  <bruno@clisp.org>
40325
40326         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
40327         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
40328         AC_LIB_HAVE_LINKFLAGS.
40329
40330 2009-04-26  Bruno Haible  <bruno@clisp.org>
40331
40332         Simplify calling convention of u*_conv_from_encoding.
40333         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
40334         u32_conv_from_encoding): Expect a resultbuf argument and return the
40335         result directly as a pointer.
40336         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
40337         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
40338         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
40339         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
40340         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
40341         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40342         Update.
40343         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
40344         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
40345         * lib/vasnprintf.c (VASNPRINTF): Update.
40346         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
40347         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
40348         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
40349         * NEWS: Mention the change.
40350
40351 2009-04-26  Bruno Haible  <bruno@clisp.org>
40352
40353         Simplify calling convention of u*_conv_to_encoding.
40354         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40355         u32_conv_to_encoding): Expect a resultbuf argument and return the
40356         result directly as a pointer.
40357         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40358         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
40359         freeing scaled_offsets if mem_iconveha failed.
40360         * lib/unicase/u-casexfrm.h (FUNC): Update.
40361         * lib/uninorm/u-normxfrm.h (FUNC): Update.
40362         * lib/vasnprintf.c (VASNPRINTF): Update.
40363         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
40364         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
40365         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
40366         * NEWS: Mention the change.
40367
40368 2009-04-26  Bruno Haible  <bruno@clisp.org>
40369
40370         Avoid test failures on AIX and OSF/1.
40371         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
40372         malloc(0).
40373         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40374         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40375         Likewise.
40376         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
40377         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
40378         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
40379         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
40380         * doc/posix-functions/malloc.texi: Document the portability problem
40381         related to malloc(0).
40382
40383 2009-04-26  Bruno Haible  <bruno@clisp.org>
40384
40385         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
40386         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
40387         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
40388
40389 2009-04-25  Bruno Haible  <bruno@clisp.org>
40390
40391         Avoid link error when creating a namespace clean library.
40392         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
40393         as macro with arguments if already defined as an alias.
40394         * lib/signbitf.c (gl_signbitf): Don't undefine.
40395         * lib/signbitd.c (gl_signbitd): Don't undefine.
40396         * lib/signbitl.c (gl_signbitl): Don't undefine.
40397
40398 2009-04-25  Jim Meyering  <meyering@redhat.com>
40399
40400         vc-list-files: fix another quoting bug
40401         * build-aux/vc-list-files: Avoid sed backslash expansion
40402         of pathological directory names.
40403
40404 2009-04-25  Eric Blake  <ebb9@byu.net>
40405
40406         vc-list-files: fix shell quoting error
40407         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
40408         timestamp.
40409
40410 2009-04-25  Jim Meyering  <meyering@redhat.com>
40411
40412         vc-list-files: restore lost functionality with subdir argument
40413         * build-aux/vc-list-files: When given a non-"." sub-directory
40414         argument, substitute the $dir/ prefix back onto each resulting name.
40415         Otherwise, coreutils' root_tests check would fail.
40416
40417 2009-04-24  Eric Blake  <ebb9@byu.net>
40418
40419         vc-list-files: ignore git symlinks
40420         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
40421         than ls-files, to ignore git symlinks.
40422
40423         maint.mk: import improvements from m4
40424         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
40425         (move_if_change): Delete unused macro.
40426         (news-date-check, vc-diff-check): Support VPATH builds.
40427         (announcement): Likewise.  Split --bootstrap-tools list...
40428         (boostrap-tools): ...into separate list, which can be overridden
40429         in cfg.mk.
40430         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
40431         requiring dependency on useless-if-before-free module.
40432         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
40433         Support VPATH builds.
40434
40435 2009-04-24  Jim Meyering  <meyering@redhat.com>
40436
40437         maint.mk: remove coreutils-specific rules and variables
40438         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
40439         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
40440         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
40441
40442         maint.mk: remove obsolete rule
40443         * top/maint.mk (rel-check): Remove rule.
40444         (WGET, WGETFLAGS): Remove now-unused variables.
40445
40446 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40447
40448         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
40449         consistency.
40450
40451         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
40452         '$(PATH_SEPARATOR)' instead of ':'.
40453
40454 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40455
40456         * lib/getopt1.c (main): Use 'const' for static array.
40457
40458 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40459
40460         * top/maint.mk: Sync with coreutils.
40461         * NEWS: Explain incompatibilities.
40462
40463 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40464             Bruno Haible  <bruno@clisp.org>
40465
40466         Fix cross-compilation results.
40467         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
40468         statement, as third argument of AC_TRY_RUN.
40469         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
40470         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
40471         Likewise.
40472         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
40473         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
40474         Likewise.
40475         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40476         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
40477         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
40478
40479 2009-04-20  Bruno Haible  <bruno@clisp.org>
40480
40481         Avoid test failure on mingw.
40482         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
40483
40484 2009-04-20  Bruno Haible  <bruno@clisp.org>
40485
40486         Avoid compilation error on mingw.
40487         * modules/localename-tests (Depends-on): Add locale.
40488
40489 2009-04-19  Bruno Haible  <bruno@clisp.org>
40490
40491         Support for building a shared library on Windows platforms.
40492         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
40493         (main): Test the presence of UNINORM_NFC here.
40494         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
40495         (main): Test the presence of UNINORM_NFD here.
40496         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
40497         (main): Test the presence of UNINORM_NFKC here.
40498         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
40499         (main): Test the presence of UNINORM_NFKD here.
40500
40501 2009-04-19  Bruno Haible  <bruno@clisp.org>
40502
40503         Avoid a compiler warning.
40504         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
40505         Change type of variable 'sequence'.
40506
40507 2009-04-19  Bruno Haible  <bruno@clisp.org>
40508
40509         * modules/configmake (Makefile.am): When the contents of configmake.h
40510         does not change, arrange to preserve its modification time.
40511
40512 2009-04-17  Simon Josefsson  <simon@josefsson.org>
40513
40514         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
40515         gettext domain.
40516
40517 2009-04-16  Jim Meyering  <meyering@redhat.com>
40518
40519         useless-if-before-free: improve conversion code
40520         * build-aux/useless-if-before-free: Adjust code-in-comment to match
40521         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
40522
40523 2009-04-14  Bruno Haible  <bruno@clisp.org>
40524
40525         * modules/fcntl (Depends-on): Add extensions.
40526         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
40527
40528 2009-04-12  Ben Pfaff  <blp@gnu.org>
40529
40530         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
40531         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
40532
40533 2009-03-20  Ben Pfaff  <blp@gnu.org>
40534
40535         Make rename replace existing destinations on Windows.
40536         * m4/rename.m4: Add test for Mingw.
40537         * lib/rename.c: Add rename replacement that uses MoveFileEx with
40538         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
40539         * doc/posix-functions/rename.texi: Document.
40540
40541 2009-04-10  Bruno Haible  <bruno@clisp.org>
40542
40543         New include file "iconveh.h".
40544         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
40545         * lib/striconveh.h: Include it.
40546         (enum iconv_ilseq_handler): Remove definition.
40547         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
40548         striconveh.h.
40549         * lib/striconveha.c: Include striconveh.h.
40550         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
40551         * modules/striconveh (Files): Add lib/iconveh.h.
40552         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
40553         lib/striconveh.h.
40554
40555 2009-04-10  Bruno Haible  <bruno@clisp.org>
40556
40557         * lib/uniconv.h: Update comment.
40558
40559 2009-04-10  Bruno Haible  <bruno@clisp.org>
40560
40561         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
40562         always.
40563         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40564         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40565         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40566         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
40567         "unistring-notinline.h", so that the function gets defined always.
40568         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40569         * lib/unistr/u8-uctomb.c: Likewise.
40570         * lib/unistr/u16-mbtouc.c: Likewise.
40571         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40572         * lib/unistr/u16-uctomb.c: Likewise.
40573         * lib/unistr/u32-mbtouc.c: Likewise.
40574         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40575         * lib/unistr/u32-uctomb.c: Likewise.
40576
40577 2009-04-10  Bruno Haible  <bruno@clisp.org>
40578
40579         Mark 'utime' obsolete.
40580         * modules/utime (Status, Notice): New sections.
40581         Suggested by Jim Meyering.
40582
40583         Fix cross-compile guess for utime test.
40584         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
40585         autoconf.
40586         * doc/posix-functions/utime.texi: Give more precisions.
40587         Reported by Jan <ipif@ymail.com>.
40588
40589 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
40590
40591         filevercmp: correct today's change
40592         * lib/filevercmp.c: Also handle coreutils' test inputs.
40593         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
40594
40595         Fix regression in 'filevercmp' module. Thanks Sven Joachim
40596         for reporting it.
40597         * lib/filevercmp.c: Special handle for "", "." and "..".
40598         * tests/test-filevercmp.c: Enlarge the set suite.
40599
40600 2009-04-07  Jim Meyering  <meyering@redhat.com>
40601
40602         useless-if-before-free: show how to remove braced useless free, too
40603         * build-aux/useless-if-before-free: still only in a comment, though.
40604
40605 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
40606
40607         maint.mk: import changes to syntax-check macros from coreutils
40608         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
40609         Use them in the relevant macros.
40610
40611 2009-04-06  Bruno Haible  <bruno@clisp.org>
40612
40613         Fix unportable use of bit-fields.
40614         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
40615         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
40616         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
40617
40618 2009-04-06  Bruno Haible  <bruno@clisp.org>
40619
40620         Avoid test failures on AIX and OSF/1.
40621         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
40622         that malloc(0) = NULL.
40623         * tests/unicase/test-u8-tolower.c (check): Likewise.
40624         * tests/unicase/test-u8-totitle.c (check): Likewise.
40625         * tests/unicase/test-u8-toupper.c (check): Likewise.
40626         * tests/unicase/test-u16-casefold.c (check): Likewise.
40627         * tests/unicase/test-u16-tolower.c (check): Likewise.
40628         * tests/unicase/test-u16-totitle.c (check): Likewise.
40629         * tests/unicase/test-u16-toupper.c (check): Likewise.
40630         * tests/unicase/test-u32-casefold.c (check): Likewise.
40631         * tests/unicase/test-u32-tolower.c (check): Likewise.
40632         * tests/unicase/test-u32-totitle.c (check): Likewise.
40633         * tests/unicase/test-u32-toupper.c (check): Likewise.
40634         * tests/uninorm/test-u8-nfc.c (check): Likewise.
40635         * tests/uninorm/test-u8-nfd.c (check): Likewise.
40636         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
40637         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
40638         * tests/uninorm/test-u16-nfc.c (check): Likewise.
40639         * tests/uninorm/test-u16-nfd.c (check): Likewise.
40640         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
40641         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
40642         * tests/uninorm/test-u32-nfc.c (check): Likewise.
40643         * tests/uninorm/test-u32-nfd.c (check): Likewise.
40644         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
40645         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
40646
40647 2009-04-05  Bruno Haible  <bruno@clisp.org>
40648
40649         Work around an autoconf limitation.
40650         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
40651         comment line if it would be longer than 3 KB.
40652
40653 2009-04-05  Bruno Haible  <bruno@clisp.org>
40654
40655         Avoid test failure with libiconv-1.13.
40656         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
40657         of the expected test results.
40658
40659 2009-04-05  Bruno Haible  <bruno@clisp.org>
40660
40661         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
40662         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
40663         that it should be installed.
40664
40665 2009-04-05  Bruno Haible  <bruno@clisp.org>
40666
40667         * gnulib-tool: New option --copy-file.
40668         (func_usage): Document it.
40669         (func_dest_tmpfilename): Moved out of func_import.
40670         (func_add_file, func_update_file): New functions, extracted from
40671         func_import.
40672         (func_import): Update.
40673
40674 2009-04-05  Karl Berry  <karl@gnu.org>
40675
40676         * README: prominently mention gnulib-tool.
40677         Rearrange sections so getting the code is near the top.
40678
40679 2009-04-05  Bruno Haible  <bruno@clisp.org>
40680
40681         * lib/unicase.h: Mention u*_cmp2.
40682         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40683         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
40684         * lib/unicase/ulc-casecmp.c: Likewise.
40685         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
40686         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
40687         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
40688         unistr/u8-cmp.
40689         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
40690         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
40691         unistr/u16-cmp.
40692         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
40693         unistr/u32-cmp.
40694
40695         * lib/uninorm.h: Mention u*_cmp2.
40696         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40697         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
40698         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
40699         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
40700         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
40701         unistr/u8-cmp.
40702         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
40703         unistr/u16-cmp.
40704         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
40705         unistr/u32-cmp.
40706
40707         New module 'unistr/u32-cmp2'.
40708         * lib/unistr/u32-cmp2.c: New file.
40709         * modules/unistr/u32-cmp2: New file.
40710
40711         New module 'unistr/u16-cmp2'.
40712         * lib/unistr/u16-cmp2.c: New file.
40713         * modules/unistr/u16-cmp2: New file.
40714
40715         New module 'unistr/u8-cmp2'.
40716         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
40717         * lib/unistr/u8-cmp2.c: New file.
40718         * lib/unistr/u-cmp2.h: New file.
40719         * modules/unistr/u8-cmp2: New file.
40720
40721 2009-04-05  Bruno Haible  <bruno@clisp.org>
40722
40723         * lib/unictype.h (uc_property_is_valid): New macro.
40724         * tests/unictype/test-pr_byname.c (main): Use it.
40725
40726         * lib/unistr.h: Doc fixes.
40727         * lib/uniconv.h: Doc fixes.
40728         * lib/unictype.h: Doc fixes.
40729
40730 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
40731
40732         Port coreutils 7.2 to Solaris 8.
40733
40734         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
40735         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
40736         for Solaris 8.  This is a bit of a hack, as it means it's the
40737         caller's responsibility to add -lnsl if needed, but most likely it
40738         won't be needed since only getaddrinfo uses this and getaddrinfo
40739         isn't needed on Solaris 8.
40740
40741         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
40742         problem to Solaris 8 encountered with coreutils 7.2, which
40743         resulted in a message "fnmatch.c:292: warning: passing argument 4
40744         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
40745         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
40746
40747 2009-04-03  Simon Josefsson  <simon@josefsson.org>
40748
40749         * m4/ld-version-script.m4: Add FIXME comment.
40750
40751 2009-04-02  Simon Josefsson  <simon@josefsson.org>
40752
40753         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
40754         SOVERSION variable.
40755
40756 2009-04-02  Bruno Haible  <bruno@clisp.org>
40757
40758         * Makefile (info, html, dvi, pdf): Combine the rules.
40759         Suggested by Jim Meyering.
40760
40761 2009-04-01  Bruno Haible  <bruno@clisp.org>
40762
40763         * Makefile (info, html, dvi, pdf): New targets.
40764         Reported by Reuben Thomas <rrt@sc3d.org>.
40765
40766 2009-04-01  Bruno Haible  <bruno@clisp.org>
40767
40768         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
40769         can be put into PATH.
40770         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
40771
40772 2009-04-01  Bruno Haible  <bruno@clisp.org>
40773
40774         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
40775
40776 2009-04-01  Bruno Haible  <bruno@clisp.org>
40777
40778         Rename module 'visibility'.
40779         * modules/lib-symbol-visibility: Renamed from modules/visibility.
40780         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
40781         * doc/gnulib.texi: Update.
40782         * MODULES.html.sh (Misc): Update.
40783         * NEWS: Mention the change.
40784
40785 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40786
40787         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
40788         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
40789         Eric Blake <ebb9@byu.net> for review.
40790         * MODULES.html.sh: Add lib-msvc-compat.
40791         * doc/gnulib.texi: Link to new section.
40792         * m4/ld-output-def.m4: New file.
40793         * doc/ld-output-def.texi: New file.
40794
40795 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40796
40797         Rename ld-version-script to lib-symbol-versions.  Suggested by
40798         Bruno Haible <bruno@clisp.org>.
40799         * modules/ld-version-script: Renamed to lib-symbol-versions.
40800         * doc/ld-version-script.texi: Fix module name.
40801         * MODULES.html.sh: Add lib-symbol-versions.
40802
40803 2009-03-31  Simon Josefsson  <simon@josefsson.org>
40804
40805         * modules/u64-tests: New file.
40806         * tests/test-u64.c: New file.
40807
40808 2009-03-04  Simon Josefsson  <simon@josefsson.org>
40809
40810         * MODULES.html.sh: Mention u64.
40811         * modules/u64: New module.
40812         * modules/crypto/sha512: Depend on u64 module instead of providing
40813         u64.h.
40814
40815 2009-03-27  Eric Blake  <ebb9@byu.net>
40816
40817         test-strerror: make debugging EAI_SYSTEM easier
40818         * modules/getaddrinfo-tests (Depends-on): Add strerror.
40819         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
40820         failure was EAI_SYSTEM.
40821
40822 2009-03-25  Bruno Haible  <bruno@clisp.org>
40823
40824         Fix a problem with --enable-relocatable on Solaris 7.
40825         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
40826         since 2008-02-24.
40827
40828 2009-03-25  Eric Blake  <ebb9@byu.net>
40829
40830         test-sockets: avoid gcc warning
40831         * tests/test-sockets.c (main): Silence compiler warning.
40832
40833 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
40834
40835         New modules nproc, pthread, contributed by Glen Lenker.
40836
40837         * MODULES.html.sh: Add pthread, nproc.
40838         * lib/nproc.c: New file.
40839         * lib/nproc.h: New file.
40840         * lib/pthread.in.h: New file.
40841         * m4/pthread.m4: New file.
40842         * modules/nproc: New file.
40843         * modules/pthread: New file.
40844
40845 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40846
40847         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
40848         New variable.
40849
40850 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
40851
40852         filevercmp: handle simple~ and numbered.~3~ backup suffixes
40853         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
40854         * tests/test-filevercmp.c: Add tests for backup suffixes.
40855
40856 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40857
40858         * modules/stdlib (Depends-on): Add stdint, needed when defining
40859         struct random_data on, for example, HP-UX 10.20.  Reported by
40860         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40861
40862 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40863
40864         * lib/readline.c (readline): Call fflush on stdout after printing
40865         prompt.
40866
40867 2009-03-20  Bruno Haible  <bruno@clisp.org>
40868
40869         Remove dependency from 'close' module to -lws2_32 on native Windows.
40870         * lib/close-hook.h: New file.
40871         * lib/close-hook.c: New file.
40872         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
40873         w32sock.h.
40874         (_gl_close_fd_maybe_socket): Remove function.
40875         (rpl_close): Invoke execute_all_close_hooks instead of
40876         _gl_close_fd_maybe_socket.
40877         * lib/sockets.c: Include close-hook.h, w32sock.h.
40878         (close_fd_maybe_socket): New function, essentially from lib/close.c.
40879         (close_sockets_hook): New variable.
40880         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
40881         (gl_sockets_cleanup): Unregister it.
40882         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
40883         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
40884         * modules/close-hook: New file.
40885         * modules/close (Files): Remove lib/w32sock.h.
40886         (Depends-on): Add close-hook.
40887         (Link): Remove section.
40888         * modules/sockets (Files): Add lib/w32sock.h.
40889         (Depends-on): Add close-hook.
40890         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
40891         invocation.
40892         * NEWS: Mention that LIB_CLOSE is gone.
40893
40894 2009-03-23  Eric Blake  <ebb9@byu.net>
40895
40896         signal-tests: test previous patch
40897         * tests/test-signal.c: New file.
40898         * modules/signal-tests: Likewise.
40899
40900         signal.h: always support 'volatile sig_atomic_t'
40901         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
40902         (gl_SIGNAL_H_DEFAULTS): Add a default.
40903         * modules/signal (Makefile.am): Substitute if needed.
40904         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
40905         users can blindly add volatile.
40906         * doc/posix-headers/signal.texi (signal.h): Document it.
40907         Reported by Matthew Woehlke.
40908
40909 2009-03-23  Jim Meyering  <meyering@redhat.com>
40910
40911         pathmax: PATH_MAX: use pathconf only when available
40912         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
40913         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
40914         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
40915         This avoids a link failure in a PSP cross-compilation environment
40916         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
40917
40918         * lib/vasnprintf.c (divide): Fix typo in comment.
40919
40920 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40921
40922         * gnulib-tool (func_filter_filelist): Fix comment.
40923
40924 2009-03-20  Bruno Haible  <bruno@clisp.org>
40925
40926         Make sockets.h self-contained.
40927         * lib/sockets.c: Include sockets.h first.
40928         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
40929
40930 2009-03-19  Eric Blake  <ebb9@byu.net>
40931
40932         doc: mention more functions added in cygwin 1.7.0
40933         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
40934         addition.
40935         * doc/posix-functions/log2f.texi: Likewise.
40936
40937 2009-03-19  Jim Meyering  <meyering@redhat.com>
40938
40939         fsusage: avoid syntax error due to statement-before-declaration
40940         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
40941         after all declarations.  Reported by Matthew Woehlke in
40942         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
40943
40944 2009-03-18  Eric Blake  <ebb9@byu.net>
40945
40946         build-aux/compile: sync from automake
40947         * build-aux/compile: New file, from automake.
40948         * config/srclist.txt: Mention build-aux/compile.
40949
40950 2009-03-17  Bruno Haible  <bruno@clisp.org>
40951
40952         * lib/git-merge-changelog.c: Fix typo in comment.
40953         Reported by Reuben Thomas <rrt@sc3d.org>.
40954
40955 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
40956
40957         * m4/regex.m4: update and improve help for
40958         --without-included-regex.
40959
40960 2009-03-17  Simon Josefsson  <simon@josefsson.org>
40961
40962         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
40963         failure on missing include files.
40964
40965 2009-03-17  Eric Blake  <ebb9@byu.net>
40966
40967         doc: mention more functions added in cygwin 1.7.0
40968         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
40969         addition.
40970         * doc/posix-functions/fwscanf.texi: Likewise.
40971         * doc/posix-functions/swprintf.texi: Likewise.
40972         * doc/posix-functions/swscanf.texi: Likewise.
40973         * doc/posix-functions/vfwprintf.texi: Likewise.
40974         * doc/posix-functions/vfwscanf.texi: Likewise.
40975         * doc/posix-functions/vswprintf.texi: Likewise.
40976         * doc/posix-functions/vswscanf.texi: Likewise.
40977         * doc/posix-functions/vwprintf.texi: Likewise.
40978         * doc/posix-functions/vwscanf.texi: Likewise.
40979         * doc/posix-functions/wcscasecmp.texi: Likewise.
40980         * doc/posix-functions/wcsdup.texi: Likewise.
40981         * doc/posix-functions/wcsftime.texi: Likewise.
40982         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40983         * doc/posix-functions/wprintf.texi: Likewise.
40984         * doc/posix-functions/wscanf.texi: Likewise.
40985         * doc/glibc-functions/gethostbyname2.texi: Likewise.
40986
40987 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40988
40989         maint.mk: really add $(AM_MAKEFLAGS)
40990         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
40991         was inadvertently omitted in the last commit.
40992         Spotted by Bruno Haible.
40993
40994         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
40995         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
40996         $(AM_MAKEFLAGS)' rather than plain `make'.
40997
40998         gnulib-tool: execute $MAKE not make
40999         * gnulib-tool: Default $MAKE to 'make'.
41000         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
41001         than make.  Initialize $MAKE in the do-autobuild script.
41002
41003         gnulib-tool: use $MAKE not make in generated files
41004         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
41005         make, in generated files.  Initialize $MAKE in the do-autobuild
41006         script.
41007
41008         * top/GNUmakefile (_have-git-version-gen): Fix typo.
41009
41010         GNUmakefile: disable parallelism only for multiple, recursive targets
41011         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
41012         additions in the Makefile.
41013         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
41014         by Automake.
41015         (.NOTPARALLEL): Only disable parallel builds if multiple targets
41016         are listed on the command line and at least one of them is
41017         listed in $(ALL_RECURSIVE_TARGETS).
41018
41019 2009-03-14  Bruno Haible  <bruno@clisp.org>
41020
41021         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
41022         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
41023         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
41024         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
41025         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
41026         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
41027         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
41028         unistr/u8-uctomb.
41029         * modules/unistr/u8-strchr (Depends-on): Likewise.
41030         * modules/unistr/u8-strrchr (Depends-on): Likewise.
41031         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
41032         unistr/u16-uctomb.
41033         * modules/unistr/u16-strchr (Depends-on): Likewise.
41034         * modules/unistr/u16-strrchr (Depends-on): Likewise.
41035
41036 2009-03-12  Bruno Haible  <bruno@clisp.org>
41037
41038         Work around select() bug on Interix 3.5.
41039         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
41040         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
41041         * m4/select.m4: New file.
41042         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
41043         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
41044         * modules/select (Files): Add m4/select.m4.
41045         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
41046         * modules/nanosleep (Depends-on): Add select.
41047         * modules/poll (Depends-on): Likewise.
41048         * doc/posix-functions/select.texi: Mention the Interix bug.
41049         Reported by Markus Duft <mduft@gentoo.org>.
41050
41051         * lib/select.c: Renamed from lib/winsock-select.c.
41052         * modules/select (Files): Add lib/select.c, remove
41053         lib/winsock-select.c.
41054         (configure.ac): Update.
41055
41056 2009-03-12  Jim Meyering  <meyering@redhat.com>
41057
41058         avoid gcc warnings about unused macro definitions
41059         * lib/readtokens.c (STREQ): Remove unused definition.
41060         * lib/xmalloc.c (SIZE_MAX): Likewise.
41061         * lib/openat-die.c (N_): Likewise.
41062         * lib/mountlist.c (SIZE_MAX): Remove definition.
41063         Instead, include <stdint.h>.
41064         * lib/readutmp.c: Likewise.
41065         * modules/readutmp (Depends-on): Add stdint.
41066         * modules/mountlist (Depends-on): Add stdint.
41067         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
41068
41069 2009-03-10  Bruno Haible  <bruno@clisp.org>
41070
41071         Tests for module 'mbmemcasecoll'.
41072         * modules/mbmemcasecoll-tests: New file.
41073         * tests/test-mbmemcasecoll1.sh: New file.
41074         * tests/test-mbmemcasecoll2.sh: New file.
41075         * tests/test-mbmemcasecoll3.sh: New file.
41076         * tests/test-mbmemcasecoll.c: New file.
41077
41078         New module 'mbmemcasecoll'.
41079         * lib/mbmemcasecoll.h: New file.
41080         * lib/mbmemcasecoll.c: New file.
41081         * modules/mbmemcasecoll: New file.
41082
41083         * tests/test-mbmemcasecmp.h: New file, extracted from
41084         tests/test-mbmemcasecmp.c.
41085         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
41086         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
41087         (main): Update.
41088         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
41089
41090 2009-03-09  Bruno Haible  <bruno@clisp.org>
41091
41092         Tests for module 'mbmemcasecmp'.
41093         * modules/mbmemcasecmp-tests: New file.
41094         * tests/test-mbmemcasecmp1.sh: New file.
41095         * tests/test-mbmemcasecmp2.sh: New file.
41096         * tests/test-mbmemcasecmp3.sh: New file.
41097         * tests/test-mbmemcasecmp.c: New file.
41098
41099         New module 'mbmemcasecmp'.
41100         * lib/mbmemcasecmp.h: New file.
41101         * lib/mbmemcasecmp.c: New file.
41102         * modules/mbmemcasecmp: New file.
41103
41104 2009-03-09  Bruno Haible  <bruno@clisp.org>
41105
41106         Tests for module 'unicase/ulc-casecoll'.
41107         * modules/unicase/ulc-casecoll-tests: New file.
41108         * tests/unicase/test-ulc-casecoll1.sh: New file.
41109         * tests/unicase/test-ulc-casecoll2.sh: New file.
41110         * tests/unicase/test-ulc-casecoll.c: New file.
41111
41112         New module 'unicase/ulc-casecoll'.
41113         * lib/unicase.h (ulc_casecoll): New declaration.
41114         * lib/unicase/ulc-casecoll.c: New file.
41115         * modules/unicase/ulc-casecoll: New file.
41116
41117         New module 'unicase/ulc-casexfrm'.
41118         * lib/unicase.h (ulc_casexfrm): New declaration.
41119         * lib/unicase/ulc-casexfrm.c: New file.
41120         * modules/unicase/ulc-casexfrm: New file.
41121
41122 2009-03-09  Bruno Haible  <bruno@clisp.org>
41123
41124         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
41125         invocations.
41126
41127         * m4/mbscasecmp.m4: Remove file.
41128         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
41129         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
41130
41131         * m4/mbscasestr.m4: Remove file.
41132         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
41133         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
41134
41135         * m4/mbschr.m4: Remove file.
41136         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
41137         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
41138
41139         * m4/mbscspn.m4: Remove file.
41140         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
41141         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
41142
41143         * m4/mbslen.m4: Remove file.
41144         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
41145         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
41146
41147         * m4/mbsncasecmp.m4: Remove file.
41148         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
41149         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
41150
41151         * m4/mbsnlen.m4: Remove file.
41152         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
41153         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
41154
41155         * m4/mbspbrk.m4: Remove file.
41156         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
41157         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
41158
41159         * m4/mbspcasecmp.m4: Remove file.
41160         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
41161         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
41162
41163         * m4/mbsrchr.m4: Remove file.
41164         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
41165         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
41166
41167         * m4/mbssep.m4: Remove file.
41168         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
41169         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
41170
41171         * m4/mbsspn.m4: Remove file.
41172         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
41173         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
41174
41175         * m4/mbsstr.m4: Remove file.
41176         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
41177         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
41178
41179         * m4/mbstok_r.m4: Remove file.
41180         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
41181         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
41182
41183         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
41184
41185         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
41186         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
41187
41188         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
41189
41190 2009-03-08  Bruno Haible  <bruno@clisp.org>
41191
41192         Tests for module 'unicase/ulc-casecmp'.
41193         * modules/unicase/ulc-casecmp-tests: New file.
41194         * tests/unicase/test-ulc-casecmp1.sh: New file.
41195         * tests/unicase/test-ulc-casecmp2.sh: New file.
41196         * tests/unicase/test-ulc-casecmp.c: New file.
41197
41198         New module 'unicase/ulc-casecmp'.
41199         * lib/unicase.h (ulc_casecmp): New declaration.
41200         * lib/unicase/ulc-casecmp.c: New file.
41201         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
41202         'const SRC_UNIT *'.
41203         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
41204         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
41205         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
41206         * modules/unicase/ulc-casecmp: New file.
41207
41208         Tests for module 'unicase/u32-is-cased'.
41209         * modules/unicase/u32-is-cased-tests: New file.
41210         * tests/unicase/test-u32-is-cased.c: New file.
41211
41212         Tests for module 'unicase/u16-is-cased'.
41213         * modules/unicase/u16-is-cased-tests: New file.
41214         * tests/unicase/test-u16-is-cased.c: New file.
41215
41216         Tests for module 'unicase/u8-is-cased'.
41217         * modules/unicase/u8-is-cased-tests: New file.
41218         * tests/unicase/test-u8-is-cased.c: New file.
41219         * tests/unicase/test-is-cased.h: New file.
41220
41221         New module 'unicase/u32-is-cased'.
41222         * lib/unicase/u32-is-cased.c: New file.
41223         * modules/unicase/u32-is-cased: New file.
41224
41225         New module 'unicase/u16-is-cased'.
41226         * lib/unicase/u16-is-cased.c: New file.
41227         * modules/unicase/u16-is-cased: New file.
41228
41229         New module 'unicase/u8-is-cased'.
41230         * lib/unicase/u8-is-cased.c: New file.
41231         * lib/unicase/u-is-cased.h: New file.
41232         * modules/unicase/u8-is-cased: New file.
41233
41234         Tests for module 'unicase/u32-is-casefolded'.
41235         * modules/unicase/u32-is-casefolded-tests: New file.
41236         * tests/unicase/test-u32-is-casefolded.c: New file.
41237
41238         Tests for module 'unicase/u16-is-casefolded'.
41239         * modules/unicase/u16-is-casefolded-tests: New file.
41240         * tests/unicase/test-u16-is-casefolded.c: New file.
41241
41242         Tests for module 'unicase/u8-is-casefolded'.
41243         * modules/unicase/u8-is-casefolded-tests: New file.
41244         * tests/unicase/test-u8-is-casefolded.c: New file.
41245         * tests/unicase/test-is-casefolded.h: New file.
41246
41247         New module 'unicase/u32-is-casefolded'.
41248         * lib/unicase/u32-is-casefolded.c: New file.
41249         * modules/unicase/u32-is-casefolded: New file.
41250
41251         New module 'unicase/u16-is-casefolded'.
41252         * lib/unicase/u16-is-casefolded.c: New file.
41253         * modules/unicase/u16-is-casefolded: New file.
41254
41255         New module 'unicase/u8-is-casefolded'.
41256         * lib/unicase/u8-is-casefolded.c: New file.
41257         * modules/unicase/u8-is-casefolded: New file.
41258
41259         Tests for module 'unicase/u32-is-titlecase'.
41260         * modules/unicase/u32-is-titlecase-tests: New file.
41261         * tests/unicase/test-u32-is-titlecase.c: New file.
41262
41263         Tests for module 'unicase/u16-is-titlecase'.
41264         * modules/unicase/u16-is-titlecase-tests: New file.
41265         * tests/unicase/test-u16-is-titlecase.c: New file.
41266
41267         Tests for module 'unicase/u8-is-titlecase'.
41268         * modules/unicase/u8-is-titlecase-tests: New file.
41269         * tests/unicase/test-u8-is-titlecase.c: New file.
41270         * tests/unicase/test-is-titlecase.h: New file.
41271
41272         New module 'unicase/u32-is-titlecase'.
41273         * lib/unicase/u32-is-titlecase.c: New file.
41274         * modules/unicase/u32-is-titlecase: New file.
41275
41276         New module 'unicase/u16-is-titlecase'.
41277         * lib/unicase/u16-is-titlecase.c: New file.
41278         * modules/unicase/u16-is-titlecase: New file.
41279
41280         New module 'unicase/u8-is-titlecase'.
41281         * lib/unicase/u8-is-titlecase.c: New file.
41282         * modules/unicase/u8-is-titlecase: New file.
41283
41284         Tests for module 'unicase/u32-is-lowercase'.
41285         * modules/unicase/u32-is-lowercase-tests: New file.
41286         * tests/unicase/test-u32-is-lowercase.c: New file.
41287
41288         Tests for module 'unicase/u16-is-lowercase'.
41289         * modules/unicase/u16-is-lowercase-tests: New file.
41290         * tests/unicase/test-u16-is-lowercase.c: New file.
41291
41292         Tests for module 'unicase/u8-is-lowercase'.
41293         * modules/unicase/u8-is-lowercase-tests: New file.
41294         * tests/unicase/test-u8-is-lowercase.c: New file.
41295         * tests/unicase/test-is-lowercase.h: New file.
41296
41297         New module 'unicase/u32-is-lowercase'.
41298         * lib/unicase/u32-is-lowercase.c: New file.
41299         * modules/unicase/u32-is-lowercase: New file.
41300
41301         New module 'unicase/u16-is-lowercase'.
41302         * lib/unicase/u16-is-lowercase.c: New file.
41303         * modules/unicase/u16-is-lowercase: New file.
41304
41305         New module 'unicase/u8-is-lowercase'.
41306         * lib/unicase/u8-is-lowercase.c: New file.
41307         * modules/unicase/u8-is-lowercase: New file.
41308
41309         Tests for module 'unicase/u32-is-uppercase'.
41310         * modules/unicase/u32-is-uppercase-tests: New file.
41311         * tests/unicase/test-u32-is-uppercase.c: New file.
41312
41313         Tests for module 'unicase/u16-is-uppercase'.
41314         * modules/unicase/u16-is-uppercase-tests: New file.
41315         * tests/unicase/test-u16-is-uppercase.c: New file.
41316
41317         Tests for module 'unicase/u8-is-uppercase'.
41318         * modules/unicase/u8-is-uppercase-tests: New file.
41319         * tests/unicase/test-u8-is-uppercase.c: New file.
41320         * tests/unicase/test-is-uppercase.h: New file.
41321
41322         New module 'unicase/u32-is-uppercase'.
41323         * lib/unicase/u32-is-uppercase.c: New file.
41324         * modules/unicase/u32-is-uppercase: New file.
41325
41326         New module 'unicase/u16-is-uppercase'.
41327         * lib/unicase/u16-is-uppercase.c: New file.
41328         * modules/unicase/u16-is-uppercase: New file.
41329
41330         New module 'unicase/u8-is-uppercase'.
41331         * lib/unicase/u8-is-uppercase.c: New file.
41332         * modules/unicase/u8-is-uppercase: New file.
41333
41334         New module 'unicase/u32-is-invariant'.
41335         * lib/unicase/u32-is-invariant.c: New file.
41336         * modules/unicase/u32-is-invariant: New file.
41337
41338         New module 'unicase/u16-is-invariant'.
41339         * lib/unicase/u16-is-invariant.c: New file.
41340         * modules/unicase/u16-is-invariant: New file.
41341
41342         New module 'unicase/u8-is-invariant'.
41343         * lib/unicase/u8-is-invariant.c: New file.
41344         * lib/unicase/invariant.h: New file.
41345         * lib/unicase/u-is-invariant.h: New file.
41346         * modules/unicase/u8-is-invariant: New file.
41347
41348         Tests for module 'unicase/u32-casecoll'.
41349         * modules/unicase/u32-casecoll-tests: New file.
41350         * tests/unicase/test-u32-casecoll.c: New file.
41351
41352         Tests for module 'unicase/u16-casecoll'.
41353         * modules/unicase/u16-casecoll-tests: New file.
41354         * tests/unicase/test-u16-casecoll.c: New file.
41355
41356         Tests for module 'unicase/u8-casecoll'.
41357         * modules/unicase/u8-casecoll-tests: New file.
41358         * tests/unicase/test-u8-casecoll.c: New file.
41359
41360         New module 'unicase/u32-casecoll'.
41361         * lib/unicase/u32-casecoll.c: New file.
41362         * modules/unicase/u32-casecoll: New file.
41363
41364         New module 'unicase/u16-casecoll'.
41365         * lib/unicase/u16-casecoll.c: New file.
41366         * modules/unicase/u16-casecoll: New file.
41367
41368         New module 'unicase/u8-casecoll'.
41369         * lib/unicase/u8-casecoll.c: New file.
41370         * lib/unicase/u-casecoll.h: New file.
41371         * modules/unicase/u8-casecoll: New file.
41372
41373         New module 'unicase/u32-casexfrm'.
41374         * lib/unicase/u32-casexfrm.c: New file.
41375         * modules/unicase/u32-casexfrm: New file.
41376
41377         New module 'unicase/u16-casexfrm'.
41378         * lib/unicase/u16-casexfrm.c: New file.
41379         * modules/unicase/u16-casexfrm: New file.
41380
41381         New module 'unicase/u8-casexfrm'.
41382         * lib/unicase/u8-casexfrm.c: New file.
41383         * lib/unicase/u-casexfrm.h: New file.
41384         * modules/unicase/u8-casexfrm: New file.
41385
41386         Tests for module 'unicase/u32-casecmp'.
41387         * modules/unicase/u32-casecmp-tests: New file.
41388         * tests/unicase/test-u32-casecmp.c: New file.
41389
41390         Tests for module 'unicase/u16-casecmp'.
41391         * modules/unicase/u16-casecmp-tests: New file.
41392         * tests/unicase/test-u16-casecmp.c: New file.
41393
41394         Tests for module 'unicase/u8-casecmp'.
41395         * modules/unicase/u8-casecmp-tests: New file.
41396         * tests/unicase/test-u8-casecmp.c: New file.
41397         * tests/unicase/test-casecmp.h: New file.
41398
41399         New module 'unicase/u32-casecmp'.
41400         * lib/unicase/u32-casecmp.c: New file.
41401         * modules/unicase/u32-casecmp: New file.
41402
41403         New module 'unicase/u16-casecmp'.
41404         * lib/unicase/u16-casecmp.c: New file.
41405         * modules/unicase/u16-casecmp: New file.
41406
41407         New module 'unicase/u8-casecmp'.
41408         * lib/unicase/u8-casecmp.c: New file.
41409         * lib/unicase/u-casecmp.h: New file.
41410         * modules/unicase/u8-casecmp: New file.
41411
41412         Tests for module 'unicase/u32-casefold'.
41413         * modules/unicase/u32-casefold-tests: New file.
41414         * tests/unicase/test-u32-casefold.c: New file.
41415
41416         Tests for module 'unicase/u16-casefold'.
41417         * modules/unicase/u16-casefold-tests: New file.
41418         * tests/unicase/test-u16-casefold.c: New file.
41419
41420         Tests for module 'unicase/u8-casefold'.
41421         * modules/unicase/u8-casefold-tests: New file.
41422         * tests/unicase/test-u8-casefold.c: New file.
41423
41424         New module 'unicase/u32-casefold'.
41425         * lib/unicase/u32-casefold.c: New file.
41426         * modules/unicase/u32-casefold: New file.
41427
41428         New module 'unicase/u16-casefold'.
41429         * lib/unicase/u16-casefold.c: New file.
41430         * modules/unicase/u16-casefold: New file.
41431
41432         New module 'unicase/u8-casefold'.
41433         * lib/unicase/u8-casefold.c: New file.
41434         * lib/unicase/u-casefold.h: New file.
41435         * modules/unicase/u8-casefold: New file.
41436
41437         New module 'unicase/tocasefold'.
41438         * lib/unicase/casefold.h: New file.
41439         * lib/unicase/tocasefold.c: New file.
41440         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
41441         * modules/unicase/tocasefold: New file.
41442
41443         Tests for module 'unicase/u32-totitle'.
41444         * modules/unicase/u32-totitle-tests: New file.
41445         * tests/unicase/test-u32-totitle.c: New file.
41446
41447         Tests for module 'unicase/u16-totitle'.
41448         * modules/unicase/u16-totitle-tests: New file.
41449         * tests/unicase/test-u16-totitle.c: New file.
41450
41451         Tests for module 'unicase/u8-totitle'.
41452         * modules/unicase/u8-totitle-tests: New file.
41453         * tests/unicase/test-u8-totitle.c: New file.
41454
41455         New module 'unicase/u32-totitle'.
41456         * lib/unicase/u32-totitle.c: New file.
41457         * modules/unicase/u32-totitle: New file.
41458
41459         New module 'unicase/u16-totitle'.
41460         * lib/unicase/u16-totitle.c: New file.
41461         * modules/unicase/u16-totitle: New file.
41462
41463         New module 'unicase/u8-totitle'.
41464         * lib/unicase/u8-totitle.c: New file.
41465         * lib/unicase/u-totitle.h: New file.
41466         * modules/unicase/u8-totitle: New file.
41467
41468         Tests for module 'unicase/u32-tolower'.
41469         * modules/unicase/u32-tolower-tests: New file.
41470         * tests/unicase/test-u32-tolower.c: New file.
41471
41472         Tests for module 'unicase/u16-tolower'.
41473         * modules/unicase/u16-tolower-tests: New file.
41474         * tests/unicase/test-u16-tolower.c: New file.
41475
41476         Tests for module 'unicase/u8-tolower'.
41477         * modules/unicase/u8-tolower-tests: New file.
41478         * tests/unicase/test-u8-tolower.c: New file.
41479
41480         New module 'unicase/u32-tolower'.
41481         * lib/unicase/u32-tolower.c: New file.
41482         * modules/unicase/u32-tolower: New file.
41483
41484         New module 'unicase/u16-tolower'.
41485         * lib/unicase/u16-tolower.c: New file.
41486         * modules/unicase/u16-tolower: New file.
41487
41488         New module 'unicase/u8-tolower'.
41489         * lib/unicase/u8-tolower.c: New file.
41490         * modules/unicase/u8-tolower: New file.
41491
41492         Tests for module 'unicase/u32-toupper'.
41493         * modules/unicase/u32-toupper-tests: New file.
41494         * tests/unicase/test-u32-toupper.c: New file.
41495
41496         Tests for module 'unicase/u16-toupper'.
41497         * modules/unicase/u16-toupper-tests: New file.
41498         * tests/unicase/test-u16-toupper.c: New file.
41499
41500         Tests for module 'unicase/u8-toupper'.
41501         * modules/unicase/u8-toupper-tests: New file.
41502         * tests/unicase/test-u8-toupper.c: New file.
41503
41504         New module 'unicase/u32-toupper'.
41505         * lib/unicase/u32-toupper.c: New file.
41506         * modules/unicase/u32-toupper: New file.
41507
41508         New module 'unicase/u16-toupper'.
41509         * lib/unicase/u16-toupper.c: New file.
41510         * modules/unicase/u16-toupper: New file.
41511
41512         New module 'unicase/u8-toupper'.
41513         * lib/unicase/u8-toupper.c: New file.
41514         * modules/unicase/u8-toupper: New file.
41515
41516         New module 'unicase/u32-casemap'.
41517         * lib/unicase/u32-casemap.c: New file.
41518         * modules/unicase/u32-casemap: New file.
41519
41520         New module 'unicase/u16-casemap'.
41521         * lib/unicase/u16-casemap.c: New file.
41522         * modules/unicase/u16-casemap: New file.
41523
41524         New module 'unicase/u8-casemap'.
41525         * lib/unicase/unicasemap.h: New file.
41526         * lib/unicase/u8-casemap.c: New file.
41527         * lib/unicase/u-casemap.h: New file.
41528         * modules/unicase/u8-casemap: New file.
41529
41530         New module 'unicase/special-casing'.
41531         * lib/unicase/special-casing.h: New file.
41532         * lib/unicase/special-casing.c: New file.
41533         * lib/unicase/special-casing-table.gperf: New file, generated by
41534         gen-uni-tables.c.
41535         * modules/unicase/special-casing: New file.
41536
41537         Tests for module 'unicase/locale-language'.
41538         * modules/unicase/locale-language-tests: New file.
41539         * tests/unicase/test-locale-language.sh: New file.
41540         * tests/unicase/test-locale-language.c: New file.
41541
41542         New module 'unicase/locale-language'.
41543         * lib/unicase/locale-language.c: New file.
41544         * lib/unicase/locale-languages.gperf: New file.
41545         * modules/unicase/locale-language: New file.
41546
41547         Generate more tables for case conversion and case folding.
41548         * lib/gen-uni-tables.c (SCC_*): New enum items.
41549         (struct special_casing_rule): New type.
41550         (casing_rules, num_casing_rules, allocated_casing_rules): New
41551         variables.
41552         (add_casing_rule, fill_casing_rules): New functions.
41553         (struct casefold_rule): New type.
41554         (casefolding_rules, num_casefolding_rules,
41555         allocated_casefolding_rules): New variables.
41556         (fill_casefolding_rules): New function.
41557         (unicode_casefold): New variable.
41558         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
41559         sort_casing_rules, output_casing_rules): New functions.
41560         (main): Accept to more arguments: SpecialCasing.txt and
41561         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
41562         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
41563         Output mapping for casefolding.
41564
41565         * lib/unicase.h: Include stdbool.h, uninorm.h.
41566         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
41567         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
41568         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
41569         arguments.
41570         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
41571         resultp arguments.
41572         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
41573         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
41574         resultp arguments.
41575         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
41576         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
41577         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
41578         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
41579         declarations.
41580         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
41581
41582 2009-03-08  Bruno Haible  <bruno@clisp.org>
41583
41584         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41585         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
41586         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
41587         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41588
41589 2009-03-07  Bruno Haible  <bruno@clisp.org>
41590
41591         Adjust u*_normcmp, u*_normcoll API.
41592         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41593         u16_normcoll, u32_normcoll): Change failure conventions.
41594         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
41595         errno and return -1.
41596         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41597
41598 2009-03-07  Bruno Haible  <bruno@clisp.org>
41599
41600         Tests for module 'uninorm/u32-normcoll'.
41601         * modules/uninorm/u32-normcoll-tests: New file.
41602         * tests/uninorm/test-u32-normcoll.c: New file.
41603
41604         Tests for module 'uninorm/u16-normcoll'.
41605         * modules/uninorm/u16-normcoll-tests: New file.
41606         * tests/uninorm/test-u16-normcoll.c: New file.
41607
41608         Tests for module 'uninorm/u8-normcoll'.
41609         * modules/uninorm/u8-normcoll-tests: New file.
41610         * tests/uninorm/test-u8-normcoll.c: New file.
41611
41612 2009-03-07  Bruno Haible  <bruno@clisp.org>
41613
41614         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
41615         tests/uninorm/test-u32-normcmp.c.
41616         * tests/uninorm/test-u32-normcmp.c: Include it.
41617         (test_nonascii): New function, extracted from main. Add some more
41618         tests.
41619         (main): Invoke test_ascii and test_nonascii.
41620         * modules/uninorm/u32-normcmp-tests (Files): Add
41621         tests/uninorm/test-u32-normcmp.h.
41622         (Depends-on): Remove uninorm/u32-normcmp.
41623
41624         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
41625         tests/uninorm/test-u16-normcmp.c.
41626         * tests/uninorm/test-u16-normcmp.c: Include it.
41627         (test_nonascii): New function, extracted from main. Add some more
41628         tests.
41629         (main): Invoke test_ascii and test_nonascii.
41630         * modules/uninorm/u16-normcmp-tests (Files): Add
41631         tests/uninorm/test-u16-normcmp.h.
41632         (Depends-on): Remove uninorm/u16-normcmp.
41633
41634         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
41635         tests/uninorm/test-u8-normcmp.c.
41636         * tests/uninorm/test-u8-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/u8-normcmp-tests (Files): Add
41641         tests/uninorm/test-u8-normcmp.h.
41642         (Depends-on): Remove uninorm/u8-normcmp.
41643
41644 2009-03-07  Bruno Haible  <bruno@clisp.org>
41645
41646         New module 'uninorm/u32-normcoll'.
41647         * lib/uninorm/u32-normcoll.c: New file.
41648         * modules/uninorm/u32-normcoll: New file.
41649
41650         New module 'uninorm/u16-normcoll'.
41651         * lib/uninorm/u16-normcoll.c: New file.
41652         * modules/uninorm/u16-normcoll: New file.
41653
41654         New module 'uninorm/u8-normcoll'.
41655         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
41656         declarations.
41657         * lib/uninorm/u8-normcoll.c: New file.
41658         * lib/uninorm/u-normcoll.h: New file.
41659         * modules/uninorm/u8-normcoll: New file.
41660
41661         New module 'uninorm/u32-normxfrm'.
41662         * lib/uninorm/u32-normxfrm.c: New file.
41663         * modules/uninorm/u32-normxfrm: New file.
41664
41665         New module 'uninorm/u16-normxfrm'.
41666         * lib/uninorm/u16-normxfrm.c: New file.
41667         * modules/uninorm/u16-normxfrm: New file.
41668
41669         New module 'uninorm/u8-normxfrm'.
41670         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
41671         declarations.
41672         * lib/uninorm/u8-normxfrm.c: New file.
41673         * lib/uninorm/u-normxfrm.h: New file.
41674         * modules/uninorm/u8-normxfrm: New file.
41675
41676 2009-03-07  Bruno Haible  <bruno@clisp.org>
41677
41678         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
41679         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
41680         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
41681
41682 2009-03-07  Bruno Haible  <bruno@clisp.org>
41683
41684         New module 'memxfrm'.
41685         * lib/memxfrm.h: New file.
41686         * lib/memxfrm.c: New file.
41687         * modules/memxfrm: New file.
41688
41689 2009-03-07  Bruno Haible  <bruno@clisp.org>
41690
41691         New module 'memcmp2'.
41692         * lib/memcmp2.h: New file.
41693         * lib/memcmp2.c: New file.
41694         * modules/memcmp2: New file.
41695
41696 2009-03-07  Bruno Haible  <bruno@clisp.org>
41697
41698         Tests for module 'uninorm/decomposing-form'.
41699         * modules/uninorm/decomposing-form-tests: New file.
41700         * tests/uninorm/test-decomposing-form.c: New file.
41701
41702         New module 'uninorm/decomposing-form'.
41703         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
41704         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
41705         Add 'decomposing_variant' field.
41706         * lib/uninorm/decomposing-form.c: New file.
41707         * lib/uninorm/nfc.c (uninorm_nfc): Update.
41708         * lib/uninorm/nfd.c (uninorm_nfd): Update.
41709         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
41710         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
41711         * modules/uninorm/decomposing-form: New file.
41712         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
41713         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
41714
41715 2009-03-07  Bruno Haible  <bruno@clisp.org>
41716
41717         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
41718         strings.
41719
41720 2009-03-06  Bruno Haible  <bruno@clisp.org>
41721
41722         Tests for module 'uninorm/u32-normcmp'.
41723         * tests/uninorm/test-u32-normcmp.c: New file.
41724         * modules/uninorm/u32-normcmp-tests: New file.
41725
41726         Tests for module 'uninorm/u16-normcmp'.
41727         * tests/uninorm/test-u16-normcmp.c: New file.
41728         * modules/uninorm/u16-normcmp-tests: New file.
41729
41730         Tests for module 'uninorm/u8-normcmp'.
41731         * tests/uninorm/test-u8-normcmp.c: New file.
41732         * modules/uninorm/u8-normcmp-tests: New file.
41733
41734         New module 'uninorm/u32-normcmp'.
41735         * lib/uninorm/u32-normcmp.c: New file.
41736         * modules/uninorm/u32-normcmp: New file.
41737
41738         New module 'uninorm/u16-normcmp'.
41739         * lib/uninorm/u16-normcmp.c: New file.
41740         * modules/uninorm/u16-normcmp: New file.
41741
41742         New module 'uninorm/u8-normcmp'.
41743         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
41744         declarations.
41745         * lib/uninorm/u8-normcmp.c: New file.
41746         * lib/uninorm/u-normcmp.h: New file.
41747         * modules/uninorm/u8-normcmp: New file.
41748
41749 2009-03-06  Bruno Haible  <bruno@clisp.org>
41750
41751         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
41752         Reported by Eric Blake.
41753
41754 2009-03-06  Eric Blake  <ebb9@byu.net>
41755             Bruno Haible  <bruno@clisp.org>
41756
41757         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
41758         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
41759         condition.
41760         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41761         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
41762         condition.
41763         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41764
41765 2009-03-06  Eric Blake  <ebb9@byu.net>
41766
41767         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
41768         to avoid compiler warnings.
41769         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
41770
41771 2009-03-05  Bruno Haible  <bruno@clisp.org>
41772
41773         * tests/test-ftell.c (main): Disable test beyond end of file on
41774         FreeMiNT.
41775         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41776
41777 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
41778
41779         * lib/filevercmp.c: Move hidden files up in ordering.
41780         * tests/test-filevercmp.c: Add tests for hidden files.
41781
41782 2009-03-04  Bruno Haible  <bruno@clisp.org>
41783
41784         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
41785         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
41786         AM_CFLAGS.
41787         Reported by Simon Josefsson.
41788
41789 2009-03-03  Bruno Haible  <bruno@clisp.org>
41790
41791         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
41792         Reported by Simon Josefsson.
41793
41794         * doc/ld-version-script.texi: Update node reference.
41795
41796 2009-03-03  Bruno Haible  <bruno@clisp.org>
41797
41798         * modules/visibility (License): Change to 'unlimited'.
41799         Suggested by Simon Josefsson.
41800
41801 2009-03-03  Jim Meyering  <meyering@redhat.com>
41802
41803         unlinkdir: cannot_unlink_dir may modify process state
41804         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
41805         it's neither thread-safe nor appropriate for use in a library.
41806
41807 2009-03-03  Eric Blake  <ebb9@byu.net>
41808
41809         test-closein: silence test under Darwin
41810         * tests/test-closein.sh: Ignore stderr from cat, since we don't
41811         care if it dies from EPIPE or EBADF.
41812
41813 2009-03-03  Bruno Haible  <bruno@clisp.org>
41814
41815         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
41816         earlier.
41817         * doc/visibility.texi: Fix @node and @section.
41818
41819 2009-03-03  Simon Josefsson  <simon@josefsson.org>
41820
41821         * doc/gnulib.texi: Link to sections for ld version script and
41822         visibility.
41823         * doc/visibility.texi: Add @node and @section.
41824         * modules/ld-version-script: New module.
41825         * m4/ld-version-script.m4: New file.
41826         * doc/ld-version-script.texi: New file.
41827
41828 2009-03-02  David Lutterkort  <lutter@redhat.com>
41829
41830         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
41831         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41832
41833 2009-03-02  Bruno Haible  <bruno@clisp.org>
41834
41835         * doc/visibility.texi: Mention libtool's -export-symbols option.
41836
41837 2009-03-02  Jim Meyering  <meyering@redhat.com>
41838
41839         announce-gen: new option: --no-print-checksums
41840         * build-aux/announce-gen (usage): Describe it.
41841         (print_checksums): Print a newline here, not in the [*] footnote.
41842         (main): Honor it.
41843
41844 2009-03-01  Bruno Haible  <bruno@clisp.org>
41845
41846         Use socklen_t in the native Windows replacements prototypes.
41847         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
41848         instead of 'int'.
41849         * lib/getsockopt.c (rpl_getsockopt): Likewise.
41850         * lib/setsockopt.c (rpl_setsockopt): Likewise.
41851         * modules/getsockopt (Depends-on): Add socklen.
41852         * modules/setsockopt (Depends-on): Add socklen.
41853
41854 2009-03-01  Bruno Haible  <bruno@clisp.org>
41855
41856         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
41857         least 4.2.
41858
41859 2009-03-01  Eric Blake  <ebb9@byu.net>
41860             Bruno Haible  <bruno@clisp.org>
41861
41862         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
41863         error messages.
41864         * lib/wait-process.c (wait_subprocess): Omit error message about
41865         deadly signal sent to the child of termsigp != NULL.
41866
41867 2009-03-01  Eric Blake  <ebb9@byu.net>
41868
41869         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
41870
41871 2009-03-01  Bruno Haible  <bruno@clisp.org>
41872
41873         Avoid a gcc warning.
41874         * tests/test-sched.c (b): Make global.
41875         Reported by Eric Blake.
41876
41877 2009-01-19  Martin Lambers  <marlam@marlam.de>
41878
41879         Provide POSIX semantics for socket timeout options on W32.
41880         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
41881         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
41882         * modules/setsockopt: Depend on sys_time module for struct timeval.
41883         * modules/getsockopt: Depend on sys_time module for struct timeval.
41884
41885 2009-03-01  Simon Josefsson  <simon@josefsson.org>
41886
41887         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
41888         __USE_GNU, for consistency with netdb.in.h.
41889         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41890
41891 2009-03-01  Bruno Haible  <bruno@clisp.org>
41892
41893         More support for FreeMiNT.
41894         * lib/fseeko.c (rpl_fseeko): Complete last commit.
41895         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41896
41897 2009-03-01  Bruno Haible  <bruno@clisp.org>
41898
41899         More support for FreeMiNT.
41900         * lib/fpurge.c (fpurge): Correct last commit.
41901         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41902
41903 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41904
41905         Fix unportable awk script in vc-list-files.
41906         * build-aux/vc-list-files: In the replacement awk script, use
41907         substr with a second argument of 1, not zero.
41908         Report by Simon Josefsson.
41909
41910 2009-02-28  Bruno Haible  <bruno@clisp.org>
41911
41912         More support for FreeMiNT.
41913         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
41914         to FreeMiNT today.
41915         * lib/fwriting.c (fwriting): Likewise.
41916         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
41917
41918 2009-02-28  Bruno Haible  <bruno@clisp.org>
41919
41920         * tests/test-freadseek.c (main): Disable test beyond end of file on
41921         FreeMiNT.
41922         * tests/test-ftello.c (main): Likewise.
41923         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41924
41925 2009-02-28  Bruno Haible  <bruno@clisp.org>
41926
41927         Add tentative support for FreeMiNT.
41928         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
41929         * lib/fpurge.c (fpurge): Likewise.
41930         * lib/freadable.c (freadable): Likewise.
41931         * lib/freading.c (freading): Likewise.
41932         * lib/freadptr.c (freadptr): Likewise.
41933         * lib/freadseek.c (freadptrinc): Likewise.
41934         * lib/fseeko.c (rpl_fseeko): Likewise.
41935         * lib/fseterr.c (fseterr): Likewise.
41936         * lib/fwritable.c (fwritable): Likewise.
41937         * lib/fwriting.c (fwriting): Likewise.
41938         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
41939         Hourihane.
41940         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41941
41942 2009-02-28  Bruno Haible  <bruno@clisp.org>
41943
41944         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
41945         SIGCHLD.
41946         Reported by Jim Meyering.
41947
41948 2009-02-28  Bruno Haible  <bruno@clisp.org>
41949
41950         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
41951         Mention the results of these tests on various platforms.
41952         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
41953         order.
41954         * doc/posix-functions/printf.texi: Likewise.
41955         * doc/posix-functions/snprintf.texi: Likewise.
41956         * doc/posix-functions/sprintf.texi: Likewise.
41957         * doc/posix-functions/vfprintf.texi: Likewise.
41958         * doc/posix-functions/vprintf.texi: Likewise.
41959         * doc/posix-functions/vsnprintf.texi: Likewise.
41960         * doc/posix-functions/vsprintf.texi: Likewise.
41961         * doc/glibc-functions/obstack_printf.texi: Likewise.
41962         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
41963
41964 2009-02-28  Bruno Haible  <bruno@clisp.org>
41965
41966         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
41967         Reported by Loïc Minier <lool@dooz.org>.
41968
41969 2009-02-27  Bruno Haible  <bruno@clisp.org>
41970
41971         * gnulib-tool (func_import): Make the sed expression used to create the
41972         sed script for updating the .gitignore file POSIX compliant.
41973         Reported by Eric Blake.
41974
41975 2009-02-27  Bruno Haible  <bruno@clisp.org>
41976
41977         * gnulib-tool (sed): Don't alias as "sed --posix".
41978         Reported by Eric Blake.
41979
41980 2009-02-27  Bruno Haible  <bruno@clisp.org>
41981
41982         Avoid test link errors.
41983         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
41984         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
41985         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
41986         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
41987         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41988
41989 2009-02-27  Bruno Haible  <bruno@clisp.org>
41990
41991         Avoid spurious "(cached)" in configure output.
41992         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
41993         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
41994         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
41995         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
41996         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
41997         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
41998         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41999         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
42000         Reported by Eric Blake.
42001
42002 2009-02-27  Eric Blake  <ebb9@byu.net>
42003
42004         printf: fix regression in previous patch
42005         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
42006
42007 2009-02-27  Bruno Haible  <bruno@clisp.org>
42008
42009         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
42010         value.
42011         * lib/stdint.in.h: Likewise.
42012         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
42013
42014 2009-02-27  Eric Blake  <ebb9@byu.net>
42015
42016         doc: mention more functions added in cygwin 1.7.0
42017         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
42018         addition.
42019         * doc/posix-functions/open_wmemstream.texi: Likewise.
42020         * doc/posix-functions/wcsnlen.texi: Likewise.
42021         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42022         * doc/posix-functions/wcstod.texi: Likewise.
42023         * doc/posix-functions/wcstof.texi: Likewise.
42024         * doc/posix-functions/wcstoimax.texi: Likewise.
42025         * doc/posix-functions/wcstok.texi: Likewise.
42026         * doc/posix-functions/wcstoumax.texi: Likewise.
42027
42028         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
42029         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
42030         * doc/posix-functions/fprintf.texi: Update.
42031         * doc/posix-functions/printf.texi: Update.
42032         * doc/posix-functions/snprintf.texi: Update.
42033         * doc/posix-functions/sprintf.texi: Update.
42034         * doc/posix-functions/vfprintf.texi: Update.
42035         * doc/posix-functions/vprintf.texi: Update.
42036         * doc/posix-functions/vsnprintf.texi: Update.
42037         * doc/posix-functions/vsprintf.texi: Update.
42038         * doc/glibc-functions/obstack_printf.texi: Update.
42039         * doc/glibc-functions/obstack_vprintf.texi: Update.
42040
42041 2009-02-26  Eric Blake  <ebb9@byu.net>
42042
42043         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
42044         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
42045         compilation bug by using runtime conversion.
42046         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
42047         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
42048         * modules/ceill-tests (Files): Use nan.h.
42049         * modules/floorl-tests (Files): Likewise.
42050         * modules/frexpl-tests (Files): Likewise.
42051         * modules/isnanl-tests (Files): Likewise.
42052         * modules/ldexpl-tests (Files): Likewise.
42053         * modules/roundl-tests (Files): Likewise.
42054         * modules/truncl-tests (Files): Likewise.
42055         * tests/test-ceill.c (main): Use a working NaN.
42056         * tests/test-floorl.c (main): Likewise.
42057         * tests/test-frexpl.c (main): Likewise.
42058         * tests/test-isnan.c (test_long_double): Likewise.
42059         * tests/test-isnanl.h (main): Likewise.
42060         * tests/test-ldexpl.h (main): Likewise.
42061         * tests/test-roundl.h (main): Likewise.
42062         * tests/test-truncl.h (main): Likewise.
42063         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
42064
42065 2009-02-26  Eric Blake  <ebb9@byu.net>
42066             Bruno Haible  <bruno@clisp.org>
42067
42068         Work around a *printf bug with %ls on Solaris.
42069         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
42070         precision is specified, sprintf stops converting the wide string
42071         argument when the number of bytes that have been produced by this
42072         conversion equals or exceeds the precision.
42073         * doc/posix-functions/fprintf.texi: Update.
42074         * doc/posix-functions/printf.texi: Update.
42075         * doc/posix-functions/snprintf.texi: Update.
42076         * doc/posix-functions/sprintf.texi: Update.
42077         * doc/posix-functions/vfprintf.texi: Update.
42078         * doc/posix-functions/vprintf.texi: Update.
42079         * doc/posix-functions/vsnprintf.texi: Update.
42080         * doc/posix-functions/vsprintf.texi: Update.
42081         * doc/glibc-functions/obstack_printf.texi: Update.
42082         * doc/glibc-functions/obstack_vprintf.texi: Update.
42083
42084 2009-02-26  Eric Blake  <ebb9@byu.net>
42085
42086         stdlib: favor compiler check of random.h
42087         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
42088         to avoid an ObjC random.h installed by Swarm.
42089
42090 2009-02-26  Bruno Haible  <bruno@clisp.org>
42091
42092         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
42093         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
42094         Reported by Gary V. Vaughan <gary@gnu.org>.
42095
42096 2009-02-26  Bruno Haible  <bruno@clisp.org>
42097
42098         Fix *printf behaviour regarding the %ls directive.
42099         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
42100         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
42101         NEED_PRINTF_DIRECTIVE_LS.
42102         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
42103         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42104         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42105         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
42106         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
42107         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
42108         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
42109         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42110         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42111         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42112         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42113         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
42114         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42115         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42116         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42117         * doc/posix-functions/fprintf.texi: Update.
42118         * doc/posix-functions/printf.texi: Update.
42119         * doc/posix-functions/snprintf.texi: Update.
42120         * doc/posix-functions/sprintf.texi: Update.
42121         * doc/posix-functions/vfprintf.texi: Update.
42122         * doc/posix-functions/vprintf.texi: Update.
42123         * doc/posix-functions/vsnprintf.texi: Update.
42124         * doc/posix-functions/vsprintf.texi: Update.
42125         * doc/glibc-functions/obstack_printf.texi: Update.
42126         * doc/glibc-functions/obstack_vprintf.texi: Update.
42127         Reported by Eric Blake.
42128
42129 2009-02-25  Bruno Haible  <bruno@clisp.org>
42130
42131         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
42132         with known value.
42133         Reported by Gary V. Vaughan <gary@gnu.org>.
42134
42135 2009-02-25  Bruno Haible  <bruno@clisp.org>
42136
42137         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
42138         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
42139         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
42140         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
42141         Reported by Gary V. Vaughan <gary@gnu.org>.
42142
42143 2009-02-25  Bruno Haible  <bruno@clisp.org>
42144
42145         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
42146         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
42147         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
42148         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
42149         Reported by Gary V. Vaughan <gary@gnu.org>.
42150
42151 2009-02-25  Eric Blake  <ebb9@byu.net>
42152
42153         tests: skip fseek/ftell tests if ungetc is broken
42154         * m4/ungetc.m4: New file.
42155         * modules/fseek-tests: Split test, so ungetc dependency is
42156         separate from rest of test.
42157         * modules/fseeko-tests: Likewise.
42158         * modules/ftell-tests: Likewise.
42159         * modules/ftello-tests: Likewise.
42160         * tests/test-fseek.c (main): Isolate ungetc dependency.
42161         * tests/test-fseeko.c (main): Likewise.
42162         * tests/test-ftell.c (main): Likewise.
42163         * tests/test-ftello.c (main): Likewise.
42164         * tests/test-fseek2.sh: New file.
42165         * tests/test-fseeko2.sh: Likewise.
42166         * tests/test-ftell2.sh: Likewise.
42167         * tests/test-ftello2.sh: Likewise.
42168
42169 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
42170
42171         test-getaddrinfo: fix usage of skip return code 77
42172         * tests/test-gettaddrinfo.c: Return skip code 77 only
42173         for first occurance of skip (4x77 is not 77)
42174
42175 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
42176
42177         strtod: avoid C99 decl-after-statement
42178         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
42179
42180 2009-02-24  Eric Blake  <ebb9@byu.net>
42181
42182         strtod: detect HP-UX 11.31 bug
42183         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
42184         Reported by Gary V. Vaughan.
42185
42186 2009-02-23  Bruno Haible  <bruno@clisp.org>
42187
42188         Fix invalid read past end of memory block.
42189         * lib/vasnprintf.c (DCHAR_SET): Define.
42190         (local_wcslen): Define only when needed.
42191         (local_strnlen, local_wcsnlen): New functions.
42192         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
42193         directives that involve a conversion ourselves.
42194         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
42195         wcsnlen, mbrtowc, wcrtomb.
42196         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
42197         * tests/test-vasprintf-posix.c (test_function): Likewise.
42198         * tests/test-snprintf-posix.h (test_function): Likewise.
42199         * tests/test-sprintf-posix.h (test_function): Likewise.
42200         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42201
42202 2009-02-22  Bruno Haible  <bruno@clisp.org>
42203
42204         Implement new clarified decomposition of Hangul syllables.
42205         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
42206         of type LTV, return only a pairwise decomposition.
42207         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
42208         Likewise.
42209         * tests/uninorm/test-decomposition.c (main): Updated expected result.
42210         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
42211         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
42212
42213 2009-02-22  Bruno Haible  <bruno@clisp.org>
42214
42215         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
42216         zero-length results and shrink excess allocated memory.
42217         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
42218         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
42219         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
42220         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
42221         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
42222         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
42223         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
42224         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
42225         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
42226         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
42227         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
42228         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
42229
42230 2009-02-21  Bruno Haible  <bruno@clisp.org>
42231
42232         * doc/gnulib.texi: Include safe-alloc.texi earlier.
42233         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
42234         spaces after a period. Put a space between a macro name and its
42235         argument list. Trivial rewordings.
42236         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
42237         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
42238         (main): Return 0 explicitly.
42239
42240 2009-02-21  Bruno Haible  <bruno@clisp.org>
42241
42242         Tests for module 'uninorm/filter'.
42243         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
42244         * modules/uninorm/filter-tests: New file.
42245
42246         New module 'uninorm/filter'.
42247         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
42248         uninorm_filter_flush, uninorm_filter_free): New declarations.
42249         * lib/uninorm/uninorm-filter.c: New file.
42250         * modules/uninorm/filter: New file.
42251
42252 2009-02-21  Bruno Haible  <bruno@clisp.org>
42253
42254         Tests for module 'uninorm/nfkc'.
42255         * tests/uninorm/test-nfkc.c: New file.
42256         * tests/uninorm/test-u8-nfkc.c: New file.
42257         * tests/uninorm/test-u16-nfkc.c: New file.
42258         * tests/uninorm/test-u32-nfkc.c: New file.
42259         * tests/uninorm/test-u32-nfkc-big.sh: New file.
42260         * tests/uninorm/test-u32-nfkc-big.c: New file.
42261         * modules/uninorm/nfkc-tests: New file.
42262
42263         New module 'uninorm/nfkc'.
42264         * lib/uninorm/nfkc.c: New file.
42265         * modules/uninorm/nfkc: New file.
42266
42267         Tests for module 'uninorm/nfkd'.
42268         * tests/uninorm/test-nfkd.c: New file.
42269         * tests/uninorm/test-u8-nfkd.c: New file.
42270         * tests/uninorm/test-u16-nfkd.c: New file.
42271         * tests/uninorm/test-u32-nfkd.c: New file.
42272         * tests/uninorm/test-u32-nfkd-big.sh: New file.
42273         * tests/uninorm/test-u32-nfkd-big.c: New file.
42274         * modules/uninorm/nfkd-tests: New file.
42275
42276         New module 'uninorm/nfkd'.
42277         * lib/uninorm/nfkd.c: New file.
42278         * modules/uninorm/nfkd: New file.
42279
42280         Tests for module 'uninorm/nfc'.
42281         * tests/uninorm/test-nfc.c: New file.
42282         * tests/uninorm/test-u8-nfc.c: New file.
42283         * tests/uninorm/test-u16-nfc.c: New file.
42284         * tests/uninorm/test-u32-nfc.c: New file.
42285         * tests/uninorm/test-u32-nfc-big.sh: New file.
42286         * tests/uninorm/test-u32-nfc-big.c: New file.
42287         * modules/uninorm/nfc-tests: New file.
42288
42289         New module 'uninorm/nfc'.
42290         * lib/uninorm/nfc.c: New file.
42291         * modules/uninorm/nfc: New file.
42292
42293         Tests for module 'uninorm/nfd'.
42294         * tests/uninorm/test-nfd.c: New file.
42295         * tests/uninorm/test-u8-nfd.c: New file.
42296         * tests/uninorm/test-u16-nfd.c: New file.
42297         * tests/uninorm/test-u32-nfd.c: New file.
42298         * tests/uninorm/test-u32-nfd-big.sh: New file.
42299         * tests/uninorm/test-u32-nfd-big.c: New file.
42300         * tests/uninorm/test-u32-normalize-big.h: New file.
42301         * tests/uninorm/test-u32-normalize-big.c: New file.
42302         * tests/uninorm/NormalizationTest.txt: New file, created from
42303         Unicode 5.1.0 NormalizationTest.txt.
42304         * modules/uninorm/nfd-tests: New file.
42305
42306         New module 'uninorm/nfd'.
42307         * lib/uninorm/nfd.c: New file.
42308         * modules/uninorm/nfd: New file.
42309
42310         New module 'uninorm/u32-normalize'.
42311         * lib/uninorm/u32-normalize.c: New file.
42312         * modules/uninorm/u32-normalize: New file.
42313
42314         New module 'uninorm/u16-normalize'.
42315         * lib/uninorm/u16-normalize.c: New file.
42316         * modules/uninorm/u16-normalize: New file.
42317
42318         New module 'uninorm/u8-normalize'.
42319         * lib/uninorm/u8-normalize.c: New file.
42320         * lib/uninorm/normalize-internal.h: New file.
42321         * lib/uninorm/u-normalize-internal.h: New file.
42322         * modules/uninorm/u8-normalize: New file.
42323
42324         New module 'uninorm/decompose-internal'.
42325         * lib/uninorm/decompose-internal.c: New file.
42326         * modules/uninorm/decompose-internal: New file.
42327
42328         Tests for module 'uninorm/composition'.
42329         * tests/uninorm/test-composition.c: New file.
42330         * modules/uninorm/composition-tests: New file.
42331
42332         New module 'uninorm/composition'.
42333         * lib/uninorm/composition.c: New file.
42334         * lib/uninorm/composition-table.gperf: New file, generated by
42335         gen-uni-tables.
42336         * modules/uninorm/composition: New file.
42337
42338         Tests for module 'uninorm/compat-decomposition'.
42339         * tests/uninorm/test-compat-decomposition.c: New file.
42340         * modules/uninorm/compat-decomposition-tests: New file.
42341
42342         New module 'uninorm/compat-decomposition'.
42343         * lib/uninorm/decompose-internal.h: New file.
42344         * lib/uninorm/compat-decomposition.c: New file.
42345         * modules/uninorm/compat-decomposition: New file.
42346
42347         Tests for module 'uninorm/canonical-decomposition'.
42348         * tests/uninorm/test-canonical-decomposition.c: New file.
42349         * modules/uninorm/canonical-decomposition-tests: New file.
42350
42351         New module 'uninorm/canonical-decomposition'.
42352         * lib/uninorm/canonical-decomposition.c: New file.
42353         * modules/uninorm/canonical-decomposition: New file.
42354
42355         Tests for module 'uninorm/decomposition'.
42356         * tests/uninorm/test-decomposition.c: New file.
42357         * modules/uninorm/decomposition-tests: New file.
42358
42359         New module 'uninorm/decomposition'.
42360         * lib/uninorm/decomposition.c: New file.
42361         * modules/uninorm/decomposition: New file.
42362
42363         New module 'uninorm/decomposition-table'.
42364         * lib/uninorm/decomposition-table.h: New file.
42365         * lib/uninorm/decomposition-table.c: New file.
42366         * lib/uninorm/decomposition-table1.h: New file, generated by
42367         gen-uni-tables.
42368         * lib/uninorm/decomposition-table2.h: New file, generated by
42369         gen-uni-tables.
42370         * modules/uninorm/decomposition-table: New file.
42371
42372         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
42373         (UC_DECOMP_*): New enumeration items.
42374         (get_decomposition): New function.
42375         (struct decomp_table): New type.
42376         (output_decomposition, output_decomposition_tables): New functions.
42377         (unicode_composition_exclusions): New variable.
42378         (fill_composition_exclusions, debug_output_composition_tables): New
42379         functions.
42380         (main): Accept one more argument. Invoke fill_composition_exclusions.
42381         Output decomposition and composition tables.
42382
42383         New module 'uninorm/base'.
42384         * lib/uninorm.h: New file.
42385         * lib/unictype.h: Update comment.
42386         * modules/uninorm/base: New file.
42387
42388 2009-02-21  David Lutterkort  <lutter@redhat.com>
42389
42390         Tests for module 'safe-alloc'.
42391         * tests/test-safe-alloc.c: New file.
42392         * modules/safe-alloc-tests: New file.
42393
42394         New module 'safe-alloc'.
42395         * lib/safe-alloc.h: New file.
42396         * lib/safe-alloc.c: New file.
42397         * m4/safe-alloc.m4: New file.
42398         * modules/safe-alloc: New file.
42399         * doc/safe-alloc.texi: New file.
42400         * doc/gnulib.texi: Include it.
42401         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
42402         safe-alloc.
42403
42404 2009-02-18  Bruno Haible  <bruno@clisp.org>
42405
42406         Fix link error on non-glibc systems.
42407         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
42408         variable.
42409         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42410
42411 2009-02-18  Jim Meyering  <meyering@redhat.com>
42412
42413         fts: avoid used-uninitialized error due to recent change
42414         * lib/fts.c (fts_read): Guard uses of the new member,
42415         parent->fts_n_dirs_remaining, since it's not relevant for
42416         the parent of a directory specified on the command-line.
42417
42418 2009-02-17  James Youngman  <jay@gnu.org>
42419             Bruno Haible  <bruno@clisp.org>
42420
42421         * m4/include_next.m4: Reformulate comment.
42422
42423 2009-02-16  Jim Meyering  <meyering@redhat.com>
42424
42425         fts: add #if guards so that the fts_lgpl module still builds
42426         * lib/fts.c: Guard just-added hash-table-using parts with
42427         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
42428         Reported by Simon Josefsson.
42429
42430 2009-02-15  Bruno Haible  <bruno@clisp.org>
42431
42432         * modules/array-mergesort-tests: New file.
42433         * tests/test-array-mergesort.c: New file.
42434
42435         New module 'array-mergesort'.
42436         * modules/array-mergesort: New file.
42437         * lib/array-mergesort.h: New file.
42438
42439 2009-02-15  Bruno Haible  <bruno@clisp.org>
42440
42441         Fix 2009-02-07 commit.
42442         * lib/gen-uni-tables.c (output_predicate, output_category,
42443         output_combclass, output_bidi_category, output_decimal_digit,
42444         output_digit, output_numeric, output_mirror, output_scripts,
42445         output_ident_category, output_simple_mapping): Fix format directives.
42446         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
42447
42448 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
42449
42450         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
42451         fixes are available from IBM.
42452
42453 2009-02-13  Jim Meyering  <meyering@redhat.com>
42454
42455         fts: arrange not to stat non-directories in more cases
42456         This makes GNU find (when it doesn't need to stat each file)
42457         *much* more efficient at traversing reiserfs file systems.
42458         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
42459         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
42460         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
42461         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
42462         (leaf_optimization_applies): New function.
42463         (LCO_hash, LCO_compare): New helper functions.
42464         (link_count_optimize_ok): New function.
42465         (fts_stat): Initialize new member (if dir).
42466         (fts_read): Decrement parent's fts_n_dirs_remaining count if
42467         we've just stat'ed a directory.  Skip the stat call when possible.
42468         ---
42469         Note this AFS-related exchange:
42470         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
42471         and note find's pioctl call in find/fstype.c.
42472         But that is necessary only if you want to enable the
42473         optimization for AFS, and for now, I don't.
42474
42475         fts: move a function definition "up" (no semantic change)
42476         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
42477         "up" to precede upcoming use of a related function.
42478
42479 2009-02-11  Jim Meyering  <meyering@redhat.com>
42480
42481         fts: correct internal computation of nlinks (optimization-related)
42482         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
42483         whether the current entry is a directory, so don't test it.
42484
42485 2009-02-10  Bruno Haible  <bruno@clisp.org>
42486
42487         Tests for module 'uniwbrk/ulc-wordbreaks'.
42488         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
42489         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
42490         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
42491
42492         Tests for module 'uniwbrk/u32-wordbreaks'.
42493         * modules/uniwbrk/u32-wordbreaks-tests: New file.
42494         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
42495
42496         Tests for module 'uniwbrk/u16-wordbreaks'.
42497         * modules/uniwbrk/u16-wordbreaks-tests: New file.
42498         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
42499
42500         Tests for module 'uniwbrk/u8-wordbreaks'.
42501         * modules/uniwbrk/u8-wordbreaks-tests: New file.
42502         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
42503
42504 2009-02-10  Bruno Haible  <bruno@clisp.org>
42505
42506         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
42507         property.
42508         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
42509         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
42510         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
42511
42512 2009-02-10  Simon Josefsson  <simon@josefsson.org>
42513
42514         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
42515         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
42516
42517 2009-02-10  Bruno Haible  <bruno@clisp.org>
42518
42519         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
42520         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
42521         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
42522         * lib/unilbrk/u8-possible-linebreaks.c: Update.
42523         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
42524         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
42525
42526 2009-02-09  Simon Josefsson  <simon@josefsson.org>
42527
42528         * lib/sockets.h (gl_fd_to_handle): New function.
42529
42530         * tests/test-sockets.c: Call gl_fd_to_handle.
42531
42532 2009-02-09  Bruno Haible  <bruno@clisp.org>
42533
42534         * doc/havelib.texi: Document the conventions on bi-arch systems.
42535
42536 2009-02-08  Bruno Haible  <bruno@clisp.org>
42537
42538         Document the AC_LIB_LINKFLAGS macro.
42539         * doc/havelib.texi: New file, mostly written on 2005-05-24.
42540         * doc/gnulib.texi: Include it.
42541
42542 2009-02-08  Bruno Haible  <bruno@clisp.org>
42543
42544         Fix wrong order of sections, compared to TOC.
42545         * doc/gnulib.texi: Include relocatable-maint.texi after the
42546         "Regular expressions" node, not before.
42547
42548 2009-02-08  Bruno Haible  <bruno@clisp.org>
42549
42550         Tests for module 'unicase/totitle'.
42551         * modules/unicase/totitle-tests: New file.
42552
42553         Tests for module 'unicase/tolower'.
42554         * modules/unicase/tolower-tests: New file.
42555
42556         Tests for module 'unicase/toupper'.
42557         * modules/unicase/toupper-tests: New file.
42558         * tests/unicase/test-mapping-part1.h: New file.
42559         * tests/unicase/test-mapping-part2.h: New file.
42560
42561         New module 'unicase/totitle'.
42562         * modules/unicase/totitle: New file.
42563         * lib/unicase/totitle.c: New file.
42564
42565         New module 'unicase/tolower'.
42566         * modules/unicase/tolower: New file.
42567         * lib/unicase/tolower.c: New file.
42568
42569         New module 'unicase/toupper'.
42570         * modules/unicase/toupper: New file.
42571         * lib/unicase/toupper.c: New file.
42572         * lib/unicase/simple-mapping.h: New file.
42573
42574         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
42575         (mapping_table): New structure.
42576         (output_simple_mapping): New function.
42577         (main): Invoke output_simple_mapping_test and output_simple_mapping.
42578         * modules/gen-uni-tables (Description): Update.
42579         * lib/unicase/toupper.h: New file, automatically generated by
42580         gen-uni-tables.
42581         * lib/unicase/tolower.h: New file, automatically generated by
42582         gen-uni-tables.
42583         * lib/unicase/totitle.h: New file, automatically generated by
42584         gen-uni-tables.
42585         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
42586         gen-uni-tables.
42587         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
42588         gen-uni-tables.
42589         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
42590         gen-uni-tables.
42591
42592         New module 'unicase/base'.
42593         * modules/unicase/base: New file.
42594         * lib/unicase.h: New file.
42595
42596 2009-02-08  Bruno Haible  <bruno@clisp.org>
42597
42598         New module 'uniwbrk/ulc-wordbreaks'.
42599         * modules/uniwbrk/ulc-wordbreaks: New file.
42600         * lib/uniwbrk/ulc-wordbreaks.c: New file.
42601
42602         New module 'uniwbrk/u32-wordbreaks'.
42603         * modules/uniwbrk/u32-wordbreaks: New file.
42604         * lib/uniwbrk/u32-wordbreaks.c: New file.
42605
42606         New module 'uniwbrk/u16-wordbreaks'.
42607         * modules/uniwbrk/u16-wordbreaks: New file.
42608         * lib/uniwbrk/u16-wordbreaks.c: New file.
42609
42610         New module 'uniwbrk/u8-wordbreaks'.
42611         * modules/uniwbrk/u8-wordbreaks: New file.
42612         * lib/uniwbrk/u8-wordbreaks.c: New file.
42613         * lib/uniwbrk/u-wordbreaks.h: New file.
42614
42615         New module 'uniwbrk/table'.
42616         * modules/uniwbrk/table: New file.
42617         * lib/uniwbrk/wbrktable.h: New file.
42618         * lib/uniwbrk/wbrktable.c: New file.
42619
42620         New module 'uniwbrk/wordbreak-property'.
42621         * modules/uniwbrk/wordbreak-property: New file.
42622         * lib/uniwbrk/wordbreak-property.c: New file.
42623
42624         * lib/gen-uni-tables.c (WBP_*): New enum items.
42625         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
42626         (unicode_org_wbp): New variable.
42627         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
42628         New functions.
42629         (wbp_table): New structure.
42630         (output_wbp, output_wbrk_tables): New functions.
42631         (main): Accept additional argument. Invoke fill_org_wbp,
42632         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
42633         output_wbrk_tables.
42634         * modules/gen-uni-tables (Description): Update.
42635         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
42636         gen-uni-tables.
42637
42638         New module 'uniwbrk/base'.
42639         * modules/uniwbrk/base: New file.
42640         * lib/uniwbrk.h: New file.
42641
42642 2009-02-08  Bruno Haible  <bruno@clisp.org>
42643
42644         Update to Unicode 5.1.0.
42645         * lib/gen-uni-tables.c (is_property_alphabetic): Include
42646         U+2185..U+2188.
42647         (is_property_default_ignorable_code_point): Don't include characters
42648         of category Cc or Cs and not-a-characters.
42649         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
42650         U+0D79, U+109E, U+109F, U+A60C.
42651         * lib/unictype/bidi_of.h: Regenerated.
42652         * lib/unictype/blocks.h: Regenerated.
42653         * lib/unictype/categ_C.h: Regenerated.
42654         * lib/unictype/categ_Cf.h: Regenerated.
42655         * lib/unictype/categ_Cn.h: Regenerated.
42656         * lib/unictype/categ_L.h: Regenerated.
42657         * lib/unictype/categ_Ll.h: Regenerated.
42658         * lib/unictype/categ_Lm.h: Regenerated.
42659         * lib/unictype/categ_Lo.h: Regenerated.
42660         * lib/unictype/categ_Lu.h: Regenerated.
42661         * lib/unictype/categ_M.h: Regenerated.
42662         * lib/unictype/categ_Mc.h: Regenerated.
42663         * lib/unictype/categ_Me.h: Regenerated.
42664         * lib/unictype/categ_Mn.h: Regenerated.
42665         * lib/unictype/categ_N.h: Regenerated.
42666         * lib/unictype/categ_Nd.h: Regenerated.
42667         * lib/unictype/categ_Nl.h: Regenerated.
42668         * lib/unictype/categ_No.h: Regenerated.
42669         * lib/unictype/categ_P.h: Regenerated.
42670         * lib/unictype/categ_Pd.h: Regenerated.
42671         * lib/unictype/categ_Pe.h: Regenerated.
42672         * lib/unictype/categ_Pf.h: Regenerated.
42673         * lib/unictype/categ_Pi.h: Regenerated.
42674         * lib/unictype/categ_Po.h: Regenerated.
42675         * lib/unictype/categ_Ps.h: Regenerated.
42676         * lib/unictype/categ_S.h: Regenerated.
42677         * lib/unictype/categ_Sk.h: Regenerated.
42678         * lib/unictype/categ_Sm.h: Regenerated.
42679         * lib/unictype/categ_So.h: Regenerated.
42680         * lib/unictype/categ_of.h: Regenerated.
42681         * lib/unictype/combining.h: Regenerated.
42682         * lib/unictype/ctype_alnum.h: Regenerated.
42683         * lib/unictype/ctype_alpha.h: Regenerated.
42684         * lib/unictype/ctype_graph.h: Regenerated.
42685         * lib/unictype/ctype_lower.h: Regenerated.
42686         * lib/unictype/ctype_print.h: Regenerated.
42687         * lib/unictype/ctype_punct.h: Regenerated.
42688         * lib/unictype/ctype_upper.h: Regenerated.
42689         * lib/unictype/decdigit.h: Regenerated.
42690         * lib/unictype/digit.h: Regenerated.
42691         * lib/unictype/mirror.h: Regenerated.
42692         * lib/unictype/numeric.h: Regenerated.
42693         * lib/unictype/pr_alphabetic.h: Regenerated.
42694         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
42695         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
42696         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
42697         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
42698         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
42699         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
42700         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
42701         * lib/unictype/pr_combining.h: Regenerated.
42702         * lib/unictype/pr_dash.h: Regenerated.
42703         * lib/unictype/pr_decimal_digit.h: Regenerated.
42704         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
42705         * lib/unictype/pr_deprecated.h: Regenerated.
42706         * lib/unictype/pr_diacritic.h: Regenerated.
42707         * lib/unictype/pr_extender.h: Regenerated.
42708         * lib/unictype/pr_format_control.h: Regenerated.
42709         * lib/unictype/pr_grapheme_base.h: Regenerated.
42710         * lib/unictype/pr_grapheme_extend.h: Regenerated.
42711         * lib/unictype/pr_grapheme_link.h: Regenerated.
42712         * lib/unictype/pr_id_continue.h: Regenerated.
42713         * lib/unictype/pr_id_start.h: Regenerated.
42714         * lib/unictype/pr_ideographic.h: Regenerated.
42715         * lib/unictype/pr_ignorable_control.h: Regenerated.
42716         * lib/unictype/pr_lowercase.h: Regenerated.
42717         * lib/unictype/pr_math.h: Regenerated.
42718         * lib/unictype/pr_numeric.h: Regenerated.
42719         * lib/unictype/pr_other_alphabetic.h: Regenerated.
42720         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
42721         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
42722         * lib/unictype/pr_other_id_continue.h: Regenerated.
42723         * lib/unictype/pr_other_lowercase.h: Regenerated.
42724         * lib/unictype/pr_other_math.h: Regenerated.
42725         * lib/unictype/pr_punctuation.h: Regenerated.
42726         * lib/unictype/pr_sentence_terminal.h: Regenerated.
42727         * lib/unictype/pr_soft_dotted.h: Regenerated.
42728         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
42729         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
42730         * lib/unictype/pr_unified_ideograph.h: Regenerated.
42731         * lib/unictype/pr_uppercase.h: Regenerated.
42732         * lib/unictype/pr_xid_continue.h: Regenerated.
42733         * lib/unictype/pr_xid_start.h: Regenerated.
42734         * lib/unictype/pr_zero_width.h: Regenerated.
42735         * lib/unictype/scripts.h: Regenerated.
42736         * lib/unictype/scripts_byname.gperf: Regenerated.
42737         * lib/unictype/sy_java_ident.h: Regenerated.
42738         * lib/unilbrk/lbrkprop1.h: Regenerated.
42739         * lib/unilbrk/lbrkprop2.h: Regenerated.
42740         * tests/unictype/test-categ_C.c: Regenerated.
42741         * tests/unictype/test-categ_Cf.c: Regenerated.
42742         * tests/unictype/test-categ_Cn.c: Regenerated.
42743         * tests/unictype/test-categ_L.c: Regenerated.
42744         * tests/unictype/test-categ_Ll.c: Regenerated.
42745         * tests/unictype/test-categ_Lm.c: Regenerated.
42746         * tests/unictype/test-categ_Lo.c: Regenerated.
42747         * tests/unictype/test-categ_Lu.c: Regenerated.
42748         * tests/unictype/test-categ_M.c: Regenerated.
42749         * tests/unictype/test-categ_Mc.c: Regenerated.
42750         * tests/unictype/test-categ_Me.c: Regenerated.
42751         * tests/unictype/test-categ_Mn.c: Regenerated.
42752         * tests/unictype/test-categ_N.c: Regenerated.
42753         * tests/unictype/test-categ_Nd.c: Regenerated.
42754         * tests/unictype/test-categ_Nl.c: Regenerated.
42755         * tests/unictype/test-categ_No.c: Regenerated.
42756         * tests/unictype/test-categ_P.c: Regenerated.
42757         * tests/unictype/test-categ_Pd.c: Regenerated.
42758         * tests/unictype/test-categ_Pe.c: Regenerated.
42759         * tests/unictype/test-categ_Pf.c: Regenerated.
42760         * tests/unictype/test-categ_Pi.c: Regenerated.
42761         * tests/unictype/test-categ_Po.c: Regenerated.
42762         * tests/unictype/test-categ_Ps.c: Regenerated.
42763         * tests/unictype/test-categ_S.c: Regenerated.
42764         * tests/unictype/test-categ_Sk.c: Regenerated.
42765         * tests/unictype/test-categ_Sm.c: Regenerated.
42766         * tests/unictype/test-categ_So.c: Regenerated.
42767         * tests/unictype/test-ctype_alnum.c: Regenerated.
42768         * tests/unictype/test-ctype_alpha.c: Regenerated.
42769         * tests/unictype/test-ctype_graph.c: Regenerated.
42770         * tests/unictype/test-ctype_lower.c: Regenerated.
42771         * tests/unictype/test-ctype_print.c: Regenerated.
42772         * tests/unictype/test-ctype_punct.c: Regenerated.
42773         * tests/unictype/test-ctype_upper.c: Regenerated.
42774         * tests/unictype/test-decdigit.h: Regenerated.
42775         * tests/unictype/test-digit.h: Regenerated.
42776         * tests/unictype/test-numeric.h: Regenerated.
42777         * tests/unictype/test-pr_alphabetic.c: Regenerated.
42778         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
42779         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
42780         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
42781         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
42782         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
42783         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
42784         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
42785         * tests/unictype/test-pr_combining.c: Regenerated.
42786         * tests/unictype/test-pr_dash.c: Regenerated.
42787         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
42788         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
42789         * tests/unictype/test-pr_deprecated.c: Regenerated.
42790         * tests/unictype/test-pr_diacritic.c: Regenerated.
42791         * tests/unictype/test-pr_extender.c: Regenerated.
42792         * tests/unictype/test-pr_format_control.c: Regenerated.
42793         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
42794         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
42795         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
42796         * tests/unictype/test-pr_id_continue.c: Regenerated.
42797         * tests/unictype/test-pr_id_start.c: Regenerated.
42798         * tests/unictype/test-pr_ideographic.c: Regenerated.
42799         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
42800         * tests/unictype/test-pr_lowercase.c: Regenerated.
42801         * tests/unictype/test-pr_math.c: Regenerated.
42802         * tests/unictype/test-pr_numeric.c: Regenerated.
42803         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
42804         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
42805         Regenerated.
42806         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
42807         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
42808         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
42809         * tests/unictype/test-pr_other_math.c: Regenerated.
42810         * tests/unictype/test-pr_punctuation.c: Regenerated.
42811         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
42812         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
42813         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
42814         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
42815         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
42816         * tests/unictype/test-pr_uppercase.c: Regenerated.
42817         * tests/unictype/test-pr_xid_continue.c: Regenerated.
42818         * tests/unictype/test-pr_xid_start.c: Regenerated.
42819         * tests/unictype/test-pr_zero_width.c: Regenerated.
42820
42821         Update to Unicode 5.1.0.
42822         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
42823         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
42824         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
42825         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
42826         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
42827         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
42828         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
42829         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
42830         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
42831         (nonspacing_table_ind): Update.
42832         * tests/uniwidth/test-uc_width2.sh: Update expected result.
42833
42834         Update to Unicode 5.1.0.
42835         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
42836         code transform.
42837         * lib/uniname/uniname.c (unicode_character_name,
42838         unicode_name_character): Add the range 0x1Fxxx to the code transform.
42839         * lib/uniname/uninames.h: Regenerated.
42840         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
42841
42842 2009-02-07  Bruno Haible  <bruno@clisp.org>
42843
42844         Merge gen-ctype and gen-lbrk into a single program.
42845         * lib/gen-uni-tables.c: New file, incorporating
42846         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
42847         Add directory prefixes to the names of the generated files.
42848         * lib/unictype/gen-ctype.c: Remove file.
42849         * lib/unilbrk/gen-lbrk.c: Remove file.
42850         * modules/gen-uni-tables: New file.
42851         * modules/unictype/gen-ctype: Remove file.
42852         * modules/unilbrk/gen-lbrk: Remove file.
42853
42854 2009-02-07  Bruno Haible  <bruno@clisp.org>
42855
42856         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
42857
42858         New module 'unistr/u32-strcoll'.
42859         * modules/unistr/u32-strcoll: New file.
42860         * lib/unistr/u32-strcoll.c: New file.
42861
42862         New module 'unistr/u16-strcoll'.
42863         * modules/unistr/u16-strcoll: New file.
42864         * lib/unistr/u16-strcoll.c: New file.
42865
42866         New module 'unistr/u8-strcoll'.
42867         * modules/unistr/u8-strcoll: New file.
42868         * lib/unistr/u8-strcoll.c: New file.
42869         * lib/unistr/u-strcoll.h: New file.
42870
42871 2009-02-07  Bruno Haible  <bruno@clisp.org>
42872
42873         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
42874         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42875         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42876         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
42877         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
42878         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
42879
42880 2009-02-07  Bruno Haible  <bruno@clisp.org>
42881
42882         Make 64-bit clean.
42883         * lib/unictype/gen-ctype.c (output_predicate, output_category,
42884         output_combclass, output_bidi_category, output_decimal_digit,
42885         output_digit, output_numeric, output_mirror, output_scripts,
42886         output_ident_category): Use proper width specifier in format strings.
42887
42888 2009-02-07  Bruno Haible  <bruno@clisp.org>
42889
42890         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
42891         failure behaviour.
42892
42893 2009-02-07  Jim Meyering  <meyering@redhat.com>
42894
42895         regex: avoid compilation failure with upcoming gcc-4.4
42896         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
42897         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
42898         "... error: integer overflow in preprocessor expression".
42899
42900 2009-02-05  Ben Pfaff  <blp@gnu.org>
42901
42902         Fix link errors on Windows when close module is used.
42903         * modules/close: Add $(LIB_CLOSE) to Link section.
42904         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
42905         $(LIB_CLOSE) on Windows.
42906
42907 2009-02-05  Jim Meyering  <meyering@redhat.com>
42908
42909         still avoid unused-parameter warnings, but do it cleanly
42910         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
42911         (get_fs_usage): Cast to void instead.
42912         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
42913         (dev_from_mount_options, read_file_system_list): Cast to void.
42914         Prompted by Bruno Haible.
42915
42916 2009-02-04  Jim Meyering  <meyering@redhat.com>
42917
42918         fsusage.c: correct copyright year
42919         * lib/fsusage.c: Reflect year in which the change is pushed into
42920
42921         avoid misc. warnings
42922         * lib/fsusage.c (UNUSED_PARAM): Define.
42923         (get_fs_usage): Mark parameter "disk" as unused.
42924         * lib/getugroups.c (getgrent): Use "void" in prototype.
42925         * lib/mountlist.c: Mark unused parameters.
42926         (read_file_system_list): Declare a local with "const".
42927         * lib/nanosleep.c (getnow): Declare static.
42928         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
42929
42930         dirfd: set errno upon failure
42931         * lib/dirfd.c: Include <errno.h>.
42932         Set errno to ENOTSUP when returning -1.
42933         * modules/dirfd (Depends-on): Add errno.
42934         Suggested by John Kodis <kodis@comcast.net>.
42935
42936 2009-02-01  Bruno Haible  <bruno@clisp.org>
42937
42938         Don't assume sizeof (long) >= sizeof (void *).
42939         * lib/memcmp.c: Include stdint.h.
42940         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
42941         srcp2 to 'const byte *'.
42942         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
42943         types to uintptr_t.
42944         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
42945         * modules/memcmp (Depends-on): Add stdint.
42946         Reported by Ozkan Sezer <sezeroz@gmail.com>.
42947
42948 2009-01-30  Eric Blake  <ebb9@byu.net>
42949
42950         fix more require-before-expand issues
42951         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
42952         expand, AC_PROG_AWK.
42953         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
42954
42955 2009-01-28  Eric Blake  <ebb9@byu.net>
42956
42957         version-etc: use consistent URL formatting
42958         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
42959         Improve formatting.  Use fputs for string without %.
42960
42961 2009-01-28  Jim Meyering  <meyering@redhat.com>
42962
42963         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
42964         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
42965         "underquoted definition of NAME" from autoconf-2.59.
42966
42967 2009-01-28  Bruno Haible  <bruno@clisp.org>
42968
42969         * doc/gnulib.texi: Add "Obsolete modules" to index.
42970
42971 2009-01-28  Jim Meyering  <meyering@redhat.com>
42972
42973         useless-if-before-free: recognize more variants
42974         * build-aux/useless-if-before-free: Also recognize e.g.,
42975         if (NULL != p) free (p);
42976
42977 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
42978
42979         test-getaddrinfo: skip (don't fail) this test when there's no network
42980         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
42981         on the presumption that it means you lack network access.
42982
42983 2009-01-26  Jim Meyering  <meyering@redhat.com>
42984
42985         fflush: avoid warnings on modern systems
42986         * lib/fflush.c (rpl_fflush): Move declarations of locals,
42987         pos and result, into scopes where they're used.
42988
42989 2009-01-26  Eric Blake  <ebb9@byu.net>
42990
42991         Silence warning reintroduced by recent extensions patch.
42992         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
42993         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
42994         autoconf.
42995
42996         Backport improved autoconf semantics of AC_DEFUN_ONCE.
42997         * m4/00gnulib.m4: New file.
42998         * gnulib-tool (func_get_filelist): Always use it.
42999         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
43000         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
43001
43002 2009-01-25  Bruno Haible  <bruno@clisp.org>
43003
43004         Make test-quotearg work on MacOS X and AIX.
43005         * tests/test-quotearg.sh: New file.
43006         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
43007         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
43008         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
43009         include <libintl.h>.
43010         (fake_locale): Remove variable.
43011         (gettext, dgettext, dcgettext): Remove functions.
43012         (main): Instead of setting a fake locale, set a real locale. Call
43013         textdomain and bindtextdomain.
43014         * modules/quotearg-tests (Files): Add the new files.
43015         (Depends-on): Add gettext, setenv, unsetenv.
43016         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
43017         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
43018         Augment TESTS_ENVIRONMENT.
43019
43020 2009-01-25  Bruno Haible  <bruno@clisp.org>
43021
43022         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
43023         fr_FR.ISO8859-1 locale on MacOS X.
43024         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
43025         ja_JP.eucJP locale on MacOS X.
43026         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
43027         zh_CN.GB18030 locale on MacOS X.
43028
43029 2009-01-25  Bruno Haible  <bruno@clisp.org>
43030
43031         Avoid link errors on MacOS X 10.3.
43032         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
43033         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43034
43035 2009-01-25  Bruno Haible  <bruno@clisp.org>
43036
43037         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
43038         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
43039         * modules/pipe (Files): Remove m4/posix_spawn.m4.
43040         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
43041         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
43042         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
43043         posix_spawnattr_init, posix_spawnattr_setsigmask,
43044         posix_spawnattr_setflags, posix_spawnattr_destroy.
43045
43046         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
43047         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
43048         * modules/execute (Files): Remove m4/posix_spawn.m4.
43049         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
43050         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
43051         posix_spawnattr_init, posix_spawnattr_setsigmask,
43052         posix_spawnattr_setflags, posix_spawnattr_destroy.
43053
43054 2009-01-25  Bruno Haible  <bruno@clisp.org>
43055
43056         * lib/glthread/threadlib.c: Include <stdlib.h>.
43057
43058 2009-01-25  Bruno Haible  <bruno@clisp.org>
43059
43060         * lib/glthread/threadlib.c (dummy): New declaration.
43061
43062 2009-01-25  Bruno Haible  <bruno@clisp.org>
43063
43064         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
43065         multibyte characters also for the GB18030 encoding. Don't crash when
43066         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
43067
43068 2009-01-25  Bruno Haible  <bruno@clisp.org>
43069
43070         Avoid redefining 'struct random_data' on OSF/1 5.1.
43071         * lib/stdlib.in.h: Include <random.h> if it exists.
43072         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
43073         HAVE_RANDOM_H. Include <random.h> when testing whether
43074         'struct random_data' exists.
43075         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
43076
43077 2009-01-25  Bruno Haible  <bruno@clisp.org>
43078
43079         Don't install charset.alias on MacOS X >= 10.3.
43080         * lib/localcharset.c (DARWIN7): New macro.
43081         (get_charset_aliases): Hardcode the result for Darwin7.
43082         * modules/localcharset (install-exec-local): Don't install
43083         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
43084
43085 2009-01-25  Bruno Haible  <bruno@clisp.org>
43086
43087         Don't install charset.alias on mingw and Cygwin.
43088         * modules/localcharset (install-exec-local): Don't install
43089         charset.alias on mingw and Cygwin, if the file does not yet exist.
43090         The result for these platforms is hardcoded in localcharset.c.
43091
43092 2009-01-25  Bruno Haible  <bruno@clisp.org>
43093
43094         Make it possible again to use AC_GNU_SOURCE together with gnulib.
43095         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
43096         before requiring AC_USE_SYSTEM_EXTENSIONS.
43097
43098 2009-01-25  Jim Meyering  <meyering@redhat.com>
43099
43100         c-strtod: avoid warnings
43101         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
43102         "assignment discards qualifiers from pointer target type" warnings.
43103
43104 2009-01-24  Bruno Haible  <bruno@clisp.org>
43105
43106         Add support for non-UTF-8 locales on MacOS X.
43107         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
43108         canonical encodings. For Darwin 7 and newer, don't map traditional
43109         encodings to UTF-8.
43110         Reported by Vincent Lefevre <vincent@vinc17.org>
43111         at <http://savannah.gnu.org/bugs/?25235>.
43112
43113 2009-01-24  Bruno Haible  <bruno@clisp.org>
43114
43115         * doc/gnulib.texi (Obsolete modules): New section.
43116         Reported by Mike Frysinger <vapier@gentoo.org>.
43117
43118 2009-01-24  Bruno Haible  <bruno@clisp.org>
43119
43120         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
43121         (%.dvi): New rule.
43122
43123 2009-01-24  Bruno Haible  <bruno@clisp.org>
43124
43125         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
43126         Reported by Eric Blake.
43127
43128 2009-01-24  Bruno Haible  <bruno@clisp.org>
43129
43130         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
43131         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
43132         Reported by Gary V. Vaughan <gary@gnu.org>.
43133
43134 2009-01-24  Bruno Haible  <bruno@clisp.org>
43135
43136         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
43137
43138 2009-01-23  Bruno Haible  <bruno@clisp.org>
43139
43140         Make c-strtod, c-strtold usable in libraries.
43141         * lib/c-strtod.c: Include string.h instead of xalloc.h.
43142         (C_STRTOD): Call strdup instead of xstrdup.
43143         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
43144         * modules/c-strtold (Depends-on): Likewise.
43145         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
43146         * NEWS: Mention the change.
43147         Reported by Michael Gold <mgold@ncf.ca>.
43148
43149 2009-01-23  Jim Meyering  <meyering@redhat.com>
43150
43151         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
43152         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
43153         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
43154
43155 2009-01-23  Simon Josefsson  <simon@josefsson.org>
43156
43157         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
43158         GNU CoreUtils.
43159         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
43160         * modules/version-etc (Description): Update.
43161
43162 2009-01-22  Bruno Haible  <bruno@clisp.org>
43163
43164         Cache the C locale object.
43165         * lib/c-strtod.c (c_locale_cache): New variable.
43166         (c_locale): New function.
43167         (C_STRTOD): Use it, and don't call freelocale.
43168         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
43169         Suggested by Paolo Bonzini.
43170
43171 2009-01-21  Bruno Haible  <bruno@clisp.org>
43172
43173         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
43174         conditions other than overflow.
43175
43176 2009-01-21  Bruno Haible  <bruno@clisp.org>
43177
43178         * lib/c-strtod.c: Include errno.h.
43179         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
43180         value from STRTOD_L and STRTOD.
43181
43182 2009-01-21  Bruno Haible  <bruno@clisp.org>
43183         and Jim Meyering  <meyering@redhat.com>
43184
43185         nanosleep: skip configure test (fail it) for apple universal builds
43186         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
43187         universal builds, assume that nanosleep does not work.
43188         * modules/nanosleep (Depends-on): Add multiarch.
43189
43190         mktime: skip configure test (fail it) for apple universal builds
43191         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
43192         universal builds, assume that mktime does not work.
43193         * modules/mktime (Depends-on): Add multiarch.
43194
43195 2009-01-21  Eric Blake  <ebb9@byu.net>
43196
43197         multiarch: avoid expand-before-require warning
43198         * modules/multiarch (configure.ac): Require, rather than expand,
43199         gl_MULTIARCH.
43200         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
43201         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
43202         enforce that all clients require it.  Partial reversion of
43203         2008-12-29 patch.
43204
43205         error: avoid expand-before-require warning
43206         * modules/errno (configure.ac): Require, rather than expand,
43207         gl_HEADER_ERRNO_H.
43208         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
43209         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
43210         enforce that all clients require it.
43211
43212         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
43213         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
43214         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
43215         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
43216
43217 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
43218
43219         Revert:
43220         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43221
43222         regex: do not depend on obsolete modules.
43223         * modules/regex: Remove memcmp and memmove.
43224
43225 2009-01-20  Bruno Haible  <bruno@clisp.org>
43226
43227         Make the 'link' module link on Windows NT 4.
43228         * lib/link.c (_WIN32_WINNT): Don't define.
43229         (CreateHardLinkFuncType): New type.
43230         (CreateHardLinkFunc, initialized): New variables.
43231         (initialize): New function.
43232         (link): Invoke CreateHardLink indirectly through the function pointer.
43233
43234 2009-01-20  Bruno Haible  <bruno@clisp.org>
43235
43236         Fix compilation failure on mingw.
43237         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
43238
43239 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
43240
43241         * doc/c-strtod.texi: Mention a couple of restrictions.
43242
43243 2009-01-20  Jim Meyering  <meyering@redhat.com>
43244
43245         gettimeofday: move more declarations out of functions
43246         * lib/gettimeofday.c: Move extern declarations of tzset and
43247         gmtime out of containing functions.  Prompted by Bruno Haible.
43248
43249 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43250
43251         regex: do not depend on obsolete modules.
43252         * modules/regex: Remove memcmp and memmove.
43253
43254 2009-01-19  Bruno Haible  <bruno@clisp.org>
43255
43256         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43257         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
43258         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43259         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
43260         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
43261
43262 2009-01-19  Bruno Haible  <bruno@clisp.org>
43263
43264         * tests/test-link.c: Include <errno.h>.
43265         (main): Exit with code 77 when a hard link cannot be created due to
43266         the file system.
43267         * tests/test-link.sh: Skip test when a hard link cannot be created due
43268         to the file system.
43269         Suggested by Eric Blake.
43270
43271 2009-01-19  Martin Lambers  <marlam@marlam.de>
43272
43273         * modules/link-tests: New file.
43274         * tests/test-link.sh: New file.
43275         * tests/test-link.c: New file.
43276
43277 2009-01-19  Eric Blake  <ebb9@byu.net>
43278
43279         doc: mention another function added in cygwin 1.7.0
43280         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
43281         Another new function in cygwin 1.7.
43282
43283 2009-01-19  Bruno Haible  <bruno@clisp.org>
43284
43285         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43286         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
43287         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
43288         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43289         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43290         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
43291         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
43292         * m4/md4.m4 (gl_MD4): Likewise.
43293         * m4/md5.m4 (gl_MD5): Likewise.
43294         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
43295         * m4/sha1.m4 (gl_SHA1): Likewise.
43296         * m4/sha256.m4 (gl_SHA256): Likewise.
43297         * m4/sha512.m4 (gl_SHA512): Likewise.
43298
43299 2009-01-19  Bruno Haible  <bruno@clisp.org>
43300
43301         * modules/uniname/uniname-tests (Depends-on): Add progname.
43302         * tests/uniname/test-uninames.c: Include progname.h.
43303         (main): Call set_program_name.
43304
43305         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
43306         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
43307         (main): Call set_program_name.
43308
43309         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
43310         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
43311         (main): Call set_program_name.
43312
43313         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
43314         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
43315         (main): Call set_program_name.
43316
43317         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
43318         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
43319         (main): Call set_program_name.
43320
43321         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
43322         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
43323         (main): Call set_program_name.
43324
43325         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
43326         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
43327         (main): Call set_program_name.
43328
43329         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
43330         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
43331         (main): Call set_program_name.
43332
43333         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
43334         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
43335         (main): Call set_program_name.
43336
43337 2009-01-19  Eric Blake  <ebb9@byu.net>
43338
43339         test-unistd: test previous patch
43340         * tests/test-unistd.c: Test *_FILENO macros.
43341
43342         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
43343         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43344         Guarantee a definition.
43345         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
43346         * modules/unistd-safer (Depends-on): Add dependency on unistd.
43347         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
43348         * lib/dup-safer.c (STDERR_FILENO): Likewise.
43349         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43350         Likewise.
43351         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
43352         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
43353         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43354         Likewise.
43355         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
43356         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
43357         (STDERR_FILENO): Likewise.
43358         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
43359         (STDERR_FILENO): Likewise.
43360         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
43361         (STDERR_FILENO): Likewise.
43362         Reported by Elbert Pol.
43363
43364 2009-01-19  Eric Blake  <ebb9@byu.net>
43365
43366         doc: mention more functions added in cygwin 1.7.0
43367         * doc/posix-functions/abort.texi (abort): Update wording related
43368         to cygwin.
43369         * doc/posix-functions/daylight.texi (daylight): Likewise.
43370         * doc/posix-functions/optarg.texi (optarg): Likewise.
43371         * doc/posix-functions/optarg.texi (opterr): Likewise.
43372         * doc/posix-functions/optarg.texi (optind): Likewise.
43373         * doc/posix-functions/optarg.texi (optopt): Likewise.
43374         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
43375         worked in 1.5.x, and was withdrawn in 1.7.
43376         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
43377         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
43378         cygwin versions.
43379         * doc/posix-functions/perror.texi (perror): Likewise.
43380         * doc/posix-functions/printf.texi (printf): Likewise.
43381         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
43382         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
43383         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
43384         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
43385         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
43386         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
43387         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43388         Likewise.
43389         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43390         Likewise.
43391         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
43392         this function.
43393         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
43394         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
43395         Likewise.
43396         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
43397         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
43398         * doc/posix-functions/confstr.texi (confstr): Likewise.
43399         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
43400         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
43401         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
43402         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
43403         * doc/posix-functions/fputws.texi (fputws): Likewise.
43404         * doc/posix-functions/fwide.texi (fwide): Likewise.
43405         * doc/posix-functions/getwc.texi (getwc): Likewise.
43406         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
43407         * doc/posix-functions/putwc.texi (putwc): Likewise.
43408         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
43409         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
43410         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
43411         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
43412         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
43413         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
43414         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
43415         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
43416         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
43417         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
43418         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
43419
43420 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43421
43422         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
43423         * lib/ioctl.c: Include <sys/ioctl.h>.
43424
43425 2009-01-19  Simon Josefsson  <simon@josefsson.org>
43426
43427         * modules/getdate-tests (Depends-on): Add progname.
43428         * tests/test-getdate.c: Use progname module, to avoid link errors
43429         on non-glibc systems.
43430
43431 2009-01-18  Simon Josefsson  <simon@josefsson.org>
43432
43433         * modules/filenamecat-tests (Depends-on): Add progname.
43434         * modules/fstrcmp-tests (Depends-on): Likewise.
43435
43436         * tests/test-filenamecat.c: Use progname module, to avoid link
43437         errors on non-glibc systems.
43438         * tests/test-fstrcmp.c: Likewise.
43439
43440 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43441
43442         gettimeofday: avoid warning: nested extern declaration of 'localtime'
43443         * lib/gettimeofday.c: Move extern declaration out of function.
43444
43445 2009-01-18  Bruno Haible  <bruno@clisp.org>
43446
43447         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
43448         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
43449         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
43450
43451 2009-01-18  Bruno Haible  <bruno@clisp.org>
43452
43453         * lib/strftime.c (MEMPCPY): Remove unused macro.
43454         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
43455
43456 2009-01-18  Martin Lambers  <marlam@marlam.de>
43457
43458         New module 'link'.
43459         * lib/unistd.in.h (link): New declaration.
43460         * lib/link.c: New file.
43461         * m4/link.m4: New file.
43462         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
43463         HAVE_LINK.
43464         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
43465         * modules/link: New file.
43466         * doc/posix-functions/link.texi: Mention the new module.
43467
43468 2009-01-18  Bruno Haible  <bruno@clisp.org>
43469
43470         * tests/test-avltree_list.c (main): Call set_program_name.
43471         * tests/test-avltree_oset.c (main): Likewise.
43472         * tests/test-obstack-printf.c: Include progname.h.
43473         (main): Call set_program_name.
43474         * tests/test-quotearg.c: Include progname.h.
43475         (main): Call set_program_name.
43476         * tests/test-xmemdup0.c: Include progname.h.
43477         (main): Call set_program_name.
43478
43479 2009-01-18  Bruno Haible  <bruno@clisp.org>
43480
43481         New module 'alphasort'.
43482         * lib/dirent.in.h (alphasort): New declaration.
43483         * lib/alphasort.c: New file, from glibc with modifications.
43484         * m4/alphasort.m4: New file.
43485         * modules/alphasort: New file.
43486         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
43487         HAVE_ALPHASORT.
43488         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
43489         HAVE_ALPHASORT.
43490         * doc/posix-functions/alphasort.texi: Mention the new module and the
43491         portability problems.
43492
43493 2009-01-18  Bruno Haible  <bruno@clisp.org>
43494
43495         New module 'scandir'.
43496         * lib/dirent.in.h (scandir): New declaration.
43497         * lib/scandir.c: New file, from glibc with modifications.
43498         * m4/scandir.m4: New file.
43499         * modules/scandir: New file.
43500         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
43501         HAVE_SCANDIR.
43502         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
43503         HAVE_SCANDIR.
43504         * doc/posix-functions/scandir.texi: Mention the new module and the
43505         portability problems.
43506
43507 2009-01-17  Bruno Haible  <bruno@clisp.org>
43508
43509         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
43510         Update documentation.
43511         (func_remove_suffix): Escape all dots in the suffix. Update
43512         documentation.
43513         (func_filter_filelist): Update documentation.
43514         Reported by Ralf Wildenhues.
43515
43516 2009-01-17  Bruno Haible  <bruno@clisp.org>
43517
43518         * modules/dprintf-posix-tests: New file.
43519         * tests/test-dprintf-posix.sh: New file.
43520         * tests/test-dprintf-posix.c: New file.
43521
43522         New modules 'dprintf', 'dprintf-posix'.
43523         * lib/stdio.in.h (dprintf): New declaration.
43524         * lib/dprintf.c: New file.
43525         * m4/dprintf.m4: New file.
43526         * m4/dprintf-posix.m4: New file.
43527         * modules/dprintf: New file.
43528         * modules/dprintf-posix: New file.
43529         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
43530         HAVE_DPRINTF, REPLACE_DPRINTF.
43531         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
43532         HAVE_DPRINTF, REPLACE_DPRINTF.
43533         * doc/posix-functions/dprintf.texi: Mention the new modules.
43534
43535 2009-01-17  Bruno Haible  <bruno@clisp.org>
43536
43537         * modules/vdprintf-posix-tests: New file.
43538         * tests/test-vdprintf-posix.sh: New file.
43539         * tests/test-vdprintf-posix.c: New file.
43540
43541         New modules 'vdprintf', 'vdprintf-posix'.
43542         * lib/stdio.in.h (vdprintf): New declaration.
43543         * lib/vdprintf.c: New file.
43544         * m4/vdprintf.m4: New file.
43545         * m4/vdprintf-posix.m4: New file.
43546         * modules/vdprintf: New file.
43547         * modules/vdprintf-posix: New file.
43548         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
43549         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43550         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
43551         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43552         * doc/posix-functions/vdprintf.texi: Mention the new modules.
43553
43554 2009-01-17  Bruno Haible  <bruno@clisp.org>
43555
43556         Fix replacement of fopen on mingw.
43557         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
43558         mingw.
43559
43560 2009-01-17  Bruno Haible  <bruno@clisp.org>
43561
43562         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
43563         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
43564
43565 2009-01-17  Bruno Haible  <bruno@clisp.org>
43566
43567         Avoid test-fflush2.sh failure on mingw.
43568         * tests/test-fflush2.c: Include binary-io.h.
43569         (main): Put standard input into binary mode.
43570         * modules/fflush-tests (Depends-on): Add binary-io.
43571
43572 2009-01-17  Bruno Haible  <bruno@clisp.org>
43573
43574         * lib/wchar.in.h: In another particular situation, include only the
43575         system's <wchar.h> file.
43576         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
43577         Reported by Albert Chin-A-Young <china@thewrittenword.com>
43578         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
43579
43580 2009-01-17  Bruno Haible  <bruno@clisp.org>
43581
43582         Support for stripping executables in --enable-relocatable.
43583         * build-aux/install-reloc: Expect one more argument, or an environment
43584         variable RELOC_STRIP_PROG. If set, strip the destination program and
43585         its wrapper.
43586         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
43587         RELOC_STRIP_PROG.
43588         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
43589         to set RELOCATABLE_STRIP.
43590         * NEWS: Mention the new Makefile requirement.
43591
43592 2009-01-17  Bruno Haible  <bruno@clisp.org>
43593
43594         * build-aux/install-reloc: Remove debugging information left over by
43595         C compiler on MacOS X.
43596
43597 2009-01-17  Bruno Haible  <bruno@clisp.org>
43598
43599         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
43600         * lib/progreloc.c (find_executable): Fix type of pointer passed to
43601         _NSGetExecutablePath.
43602
43603 2009-01-16  Jim Meyering  <meyering@redhat.com>
43604
43605         strerror: avoid warnings about discarding "const"
43606         * lib/strerror.c (rpl_strerror): Instead of returning a const
43607         string from each and every "case", use a variable, and add a single
43608         cast after the switch.
43609
43610 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
43611
43612         * lib/arpa_inet.in.h: Add extern "C" block for C++.
43613
43614 2009-01-16  Bruno Haible  <bruno@clisp.org>
43615
43616         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
43617         array initializer syntax that also works in C++ mode.
43618         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43619
43620 2009-01-16  Jim Meyering  <meyering@redhat.com>
43621
43622         poll: suppress a warning
43623         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
43624         to ignore "...unsigned expression < 0 is always false" warnings.
43625
43626 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
43627
43628         poll: remove declarations of unused variables
43629         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
43630         sockbuf and optlen.
43631
43632 2009-01-15  Bruno Haible  <bruno@clisp.org>
43633
43634         Make fflush-after-ungetc POSIX compliant on BSD systems.
43635         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
43636         (clear_ungetc_buffer): Implement also for other systems.
43637         (rpl_fflush): On glibc systems, invoke
43638         clear_ungetc_buffer_preserving_position. Otherwise, invoke
43639         clear_ungetc_buffer after fetching the stream's position, not before.
43640
43641 2009-01-15  Bruno Haible  <bruno@clisp.org>
43642
43643         Make fflush-after-ungetc POSIX compliant on glibc systems.
43644         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
43645         after ungetc.
43646         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
43647         (rpl_fflush): On glibc systems, simply call the system's fflush
43648         function after clearing the ungetc buffer.
43649         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
43650         Instead, lseek only to the end of file, then use the system's fseeko
43651         for the rest. On glibc systems, reset the EOF indicator bit.
43652
43653 2009-01-15  Jim Meyering  <meyering@redhat.com>
43654
43655         openmp.m4: revert quote-adding change, for portability to older autoconf
43656         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
43657         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
43658         Simon Josefsson noticed the problem when using autoconf-2.61.
43659
43660 2009-01-15  Bruno Haible  <bruno@clisp.org>
43661
43662         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
43663         * tests/test-fflush2.c (ASSERT): Always fail.
43664         (main): Add two tests for fflush() after ungetc(), taking into account
43665         the Austin Group's clarification.
43666         Suggested by Eric Blake.
43667
43668 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
43669
43670         mktime.m4: remove K&R-style function prototypes
43671         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
43672         for the Sun C++ compiler.
43673
43674 2009-01-14  Bruno Haible  <bruno@clisp.org>
43675
43676         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
43677         while including <wchar.h>.
43678         * lib/wchar.in.h: In two particular situations on HP-UX, include only
43679         the system's <wchar.h> file.
43680         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43681
43682 2009-01-14  Bruno Haible  <bruno@clisp.org>
43683
43684         * m4/csharp.m4: Don't mention gettext on the serial number line.
43685         * m4/csharpexec.m4: Likewise.
43686         * m4/eaccess.m4: Likewise.
43687         * m4/javaexec.m4: Likewise.
43688         * m4/sig_atomic_t.m4: Likewise.
43689         * m4/tmpdir.m4: Likewise.
43690         * m4/intldir.m4: Bump gettext version.
43691         * m4/lib-ld.m4: Likewise.
43692
43693 2009-01-14  Bruno Haible  <bruno@clisp.org>
43694
43695         * lib/progname.c (set_program_name): Add more comments.
43696         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43697
43698 2009-01-14  Simon Josefsson  <simon@josefsson.org>
43699
43700         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
43701         were sys/stat.h does not define it.
43702
43703 2009-01-14  Jim Meyering  <meyering@redhat.com>
43704
43705         many *.m4 files: improve m4 quoting
43706         99% of this change was performed by running the following commands:
43707         git ls-files | grep '\.m4$' | xargs perl -pi \
43708           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
43709           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43710           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43711           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
43712         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
43713         The remainder were to add Copyright dates, increment serial numbers,
43714         undo some changes in comments, exclude m4/intl.m4, and add quotes
43715         around the "1" in ",1" where the unusual spacing prohibited the
43716         above regexps from doing the job.  For more details, see
43717         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
43718         * m4/acl.m4: Modified.
43719         * m4/afs.m4: Likewise.
43720         * m4/alloca.m4: Likewise.
43721         * m4/argp.m4: Likewise.
43722         * m4/argz.m4: Likewise.
43723         * m4/atexit.m4: Likewise.
43724         * m4/bison-i18n.m4: Likewise.
43725         * m4/bison.m4: Likewise.
43726         * m4/byteswap.m4: Likewise.
43727         * m4/c-stack.m4: Likewise.
43728         * m4/c-strtod.m4: Likewise.
43729         * m4/calloc.m4: Likewise.
43730         * m4/canonicalize-lgpl.m4: Likewise.
43731         * m4/chown.m4: Likewise.
43732         * m4/clock_time.m4: Likewise.
43733         * m4/codeset.m4: Likewise.
43734         * m4/copy-file.m4: Likewise.
43735         * m4/csharp.m4: Likewise.
43736         * m4/csharpcomp.m4: Likewise.
43737         * m4/csharpexec.m4: Likewise.
43738         * m4/d-ino.m4: Likewise.
43739         * m4/d-type.m4: Likewise.
43740         * m4/dirfd.m4: Likewise.
43741         * m4/double-slash-root.m4: Likewise.
43742         * m4/eaccess.m4: Likewise.
43743         * m4/eealloc.m4: Likewise.
43744         * m4/environ.m4: Likewise.
43745         * m4/errno_h.m4: Likewise.
43746         * m4/euidaccess.m4: Likewise.
43747         * m4/execute.m4: Likewise.
43748         * m4/fatal-signal.m4: Likewise.
43749         * m4/fchdir.m4: Likewise.
43750         * m4/fcntl_h.m4: Likewise.
43751         * m4/fileblocks.m4: Likewise.
43752         * m4/filenamecat.m4: Likewise.
43753         * m4/findprog.m4: Likewise.
43754         * m4/flexmember.m4: Likewise.
43755         * m4/fnmatch.m4: Likewise.
43756         * m4/fopen.m4: Likewise.
43757         * m4/fpending.m4: Likewise.
43758         * m4/fprintf-posix.m4: Likewise.
43759         * m4/free.m4: Likewise.
43760         * m4/frexp.m4: Likewise.
43761         * m4/frexpl.m4: Likewise.
43762         * m4/fsusage.m4: Likewise.
43763         * m4/ftruncate.m4: Likewise.
43764         * m4/gc-camellia.m4: Likewise.
43765         * m4/gc-random.m4: Likewise.
43766         * m4/gc.m4: Likewise.
43767         * m4/getaddrinfo.m4: Likewise.
43768         * m4/getcwd-abort-bug.m4: Likewise.
43769         * m4/getcwd-path-max.m4: Likewise.
43770         * m4/getdate.m4: Likewise.
43771         * m4/getdomainname.m4: Likewise.
43772         * m4/getgroups.m4: Likewise.
43773         * m4/gethostname.m4: Likewise.
43774         * m4/gethrxtime.m4: Likewise.
43775         * m4/getline.m4: Likewise.
43776         * m4/getloadavg.m4: Likewise.
43777         * m4/getndelim2.m4: Likewise.
43778         * m4/getpass.m4: Likewise.
43779         * m4/gettext.m4: Likewise.
43780         * m4/gettime.m4: Likewise.
43781         * m4/gettimeofday.m4: Likewise.
43782         * m4/gnulib-common.m4: Likewise.
43783         * m4/group-member.m4: Likewise.
43784         * m4/host-os.m4: Likewise.
43785         * m4/iconv.m4: Likewise.
43786         * m4/iconv_open.m4: Likewise.
43787         * m4/inet_ntop.m4: Likewise.
43788         * m4/inet_pton.m4: Likewise.
43789         * m4/inline.m4: Likewise.
43790         * m4/intldir.m4: Likewise.
43791         * m4/intlmacosx.m4: Likewise.
43792         * m4/intmax.m4: Likewise.
43793         * m4/intmax_t.m4: Likewise.
43794         * m4/inttypes.m4: Likewise.
43795         * m4/inttypes_h.m4: Likewise.
43796         * m4/inttypes-pri.m4: Likewise.
43797         * m4/isapipe.m4: Likewise.
43798         * m4/isnand.m4: Likewise.
43799         * m4/isnanf.m4: Likewise.
43800         * m4/isnanl.m4: Likewise.
43801         * m4/javacomp.m4: Likewise.
43802         * m4/javaexec.m4: Likewise.
43803         * m4/jm-winsz1.m4: Likewise.
43804         * m4/jm-winsz2.m4: Likewise.
43805         * m4/lchown.m4: Likewise.
43806         * m4/lcmessage.m4: Likewise.
43807         * m4/ldexpl.m4: Likewise.
43808         * m4/lib-ld.m4: Likewise.
43809         * m4/lib-link.m4: Likewise.
43810         * m4/libsigsegv.m4: Likewise.
43811         * m4/link-follow.m4: Likewise.
43812         * m4/localcharset.m4: Likewise.
43813         * m4/locale-fr.m4: Likewise.
43814         * m4/locale-ja.m4: Likewise.
43815         * m4/locale-tr.m4: Likewise.
43816         * m4/locale-zh.m4: Likewise.
43817         * m4/lock.m4: Likewise.
43818         * m4/longlong.m4: Likewise.
43819         * m4/ls-mntd-fs.m4: Likewise.
43820         * m4/lstat.m4: Likewise.
43821         * m4/malloc.m4: Likewise.
43822         * m4/mathl.m4: Likewise.
43823         * m4/mbrtowc.m4: Likewise.
43824         * m4/mbstate_t.m4: Likewise.
43825         * m4/mbswidth.m4: Likewise.
43826         * m4/memchr.m4: Likewise.
43827         * m4/memcmp.m4: Likewise.
43828         * m4/memcpy.m4: Likewise.
43829         * m4/memmem.m4: Likewise.
43830         * m4/memmove.m4: Likewise.
43831         * m4/mempcpy.m4: Likewise.
43832         * m4/memrchr.m4: Likewise.
43833         * m4/memset.m4: Likewise.
43834         * m4/minmax.m4: Likewise.
43835         * m4/mkdir-slash.m4: Likewise.
43836         * m4/mkdtemp.m4: Likewise.
43837         * m4/mktime.m4: Likewise.
43838         * m4/mmap-anon.m4: Likewise.
43839         * m4/mountlist.m4: Likewise.
43840         * m4/nanosleep.m4: Likewise.
43841         * m4/nls.m4: Likewise.
43842         * m4/nocrash.m4: Likewise.
43843         * m4/open.m4: Likewise.
43844         * m4/openat.m4: Likewise.
43845         * m4/openmp.m4: Likewise.
43846         * m4/pathmax.m4: Likewise.
43847         * m4/perl.m4: Likewise.
43848         * m4/physmem.m4: Likewise.
43849         * m4/pipe.m4: Likewise.
43850         * m4/po.m4: Likewise.
43851         * m4/poll.m4: Likewise.
43852         * m4/posixtm.m4: Likewise.
43853         * m4/posixver.m4: Likewise.
43854         * m4/printf-frexp.m4: Likewise.
43855         * m4/printf-frexpl.m4: Likewise.
43856         * m4/printf-posix.m4: Likewise.
43857         * m4/printf-posix-rpl.m4: Likewise.
43858         * m4/printf.m4: Likewise.
43859         * m4/progtest.m4: Likewise.
43860         * m4/putenv.m4: Likewise.
43861         * m4/readline.m4: Likewise.
43862         * m4/readlink.m4: Likewise.
43863         * m4/readutmp.m4: Likewise.
43864         * m4/realloc.m4: Likewise.
43865         * m4/regex.m4: Likewise.
43866         * m4/relocatable.m4: Likewise.
43867         * m4/relocatable-lib.m4: Likewise.
43868         * m4/rename-dest-slash.m4: Likewise.
43869         * m4/rename.m4: Likewise.
43870         * m4/rmdir-errno.m4: Likewise.
43871         * m4/rmdir.m4: Likewise.
43872         * m4/roundf.m4: Likewise.
43873         * m4/roundl.m4: Likewise.
43874         * m4/rpmatch.m4: Likewise.
43875         * m4/save-cwd.m4: Likewise.
43876         * m4/selinux-selinux-h.m4: Likewise.
43877         * m4/setenv.m4: Likewise.
43878         * m4/settime.m4: Likewise.
43879         * m4/sig2str.m4: Likewise.
43880         * m4/sig_atomic_t.m4: Likewise.
43881         * m4/signalblocking.m4: Likewise.
43882         * m4/signbit.m4: Likewise.
43883         * m4/sigpipe.m4: Likewise.
43884         * m4/sockets.m4: Likewise.
43885         * m4/sockpfaf.m4: Likewise.
43886         * m4/st_dm_mode.m4: Likewise.
43887         * m4/stat-time.m4: Likewise.
43888         * m4/stdbool.m4: Likewise.
43889         * m4/stdint.m4: Likewise.
43890         * m4/stdint_h.m4: Likewise.
43891         * m4/stpcpy.m4: Likewise.
43892         * m4/stpncpy.m4: Likewise.
43893         * m4/strcase.m4: Likewise.
43894         * m4/strchrnul.m4: Likewise.
43895         * m4/strcspn.m4: Likewise.
43896         * m4/strdup.m4: Likewise.
43897         * m4/strftime.m4: Likewise.
43898         * m4/strndup.m4: Likewise.
43899         * m4/strnlen.m4: Likewise.
43900         * m4/strpbrk.m4: Likewise.
43901         * m4/strptime.m4: Likewise.
43902         * m4/strsep.m4: Likewise.
43903         * m4/strtod.m4: Likewise.
43904         * m4/strtoimax.m4: Likewise.
43905         * m4/strtok_r.m4: Likewise.
43906         * m4/strtol.m4: Likewise.
43907         * m4/strtoll.m4: Likewise.
43908         * m4/strtoul.m4: Likewise.
43909         * m4/strtoull.m4: Likewise.
43910         * m4/strtoumax.m4: Likewise.
43911         * m4/strverscmp.m4: Likewise.
43912         * m4/threadlib.m4: Likewise.
43913         * m4/timegm.m4: Likewise.
43914         * m4/tm_gmtoff.m4: Likewise.
43915         * m4/tmpdir.m4: Likewise.
43916         * m4/tmpfile.m4: Likewise.
43917         * m4/tzset.m4: Likewise.
43918         * m4/uintmax_t.m4: Likewise.
43919         * m4/unlinkdir.m4: Likewise.
43920         * m4/unlocked-io.m4: Likewise.
43921         * m4/uptime.m4: Likewise.
43922         * m4/userspec.m4: Likewise.
43923         * m4/utimbuf.m4: Likewise.
43924         * m4/utime.m4: Likewise.
43925         * m4/utimes-null.m4: Likewise.
43926         * m4/utimes.m4: Likewise.
43927         * m4/vararrays.m4: Likewise.
43928         * m4/vasnprintf.m4: Likewise.
43929         * m4/vfprintf-posix.m4: Likewise.
43930         * m4/vprintf-posix.m4: Likewise.
43931         * m4/wait-process.m4: Likewise.
43932         * m4/wchar_t.m4: Likewise.
43933         * m4/wint_t.m4: Likewise.
43934         * m4/write-any-file.m4: Likewise.
43935         * m4/yield.m4: Likewise.
43936
43937 2009-01-13  Bruno Haible  <bruno@clisp.org>
43938
43939         Avoid test-copy-file.sh failures when ACL support insufficient.
43940         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
43941         TESTS_ENVIRONMENT.
43942         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
43943         Reported by Jim Meyering.
43944
43945 2009-01-13  Bruno Haible  <bruno@clisp.org>
43946
43947         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
43948         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
43949         * modules/unistdio/u8-printf-parse (Files): Likewise.
43950         * modules/unistdio/u32-printf-parse (Files): Likewise.
43951         * modules/unistdio/ulc-printf-parse (Files): Likewise.
43952
43953 2009-01-13  Simon Josefsson  <simon@josefsson.org>
43954
43955         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
43956         and m4/inttypes_h.m4 too.
43957
43958 2009-01-12  Eric Blake  <ebb9@byu.net>
43959
43960         tests: IRIX 6.2 cc can't compile -0.0 into .data
43961         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
43962         rather than at compile-time.
43963         * tests/test-floorl.c (minus_zero): Likewise.
43964         * tests/test-frexpl.c (minus_zero): Likewise.
43965         * tests/test-isnan.c (minus_zerol): Likewise.
43966         * tests/test-isnanl.h (minus_zero): Likewise.
43967         * tests/test-ldexpl.c (minus_zero): Likewise.
43968         * tests/test-roundl.c (minus_zero): Likewise.
43969         * tests/test-signbit.c (minus_zerol): Likewise.
43970         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
43971         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
43972         * tests/test-truncl.c (minus_zero): Likewise.
43973         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43974         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43975         Reported by Tom G. Christensen and Nelson H. F. Beebe.
43976
43977 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43978
43979         regex: fix glibc bug 9697
43980         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
43981         handling.
43982
43983 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43984
43985         regex: fix glibc bug 697
43986         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
43987         being NULL also if there are no backreferences.
43988
43989 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43990
43991         regex: merge glibc changes
43992         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
43993         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
43994         re_string_skip_chars, re_string_reconstruct): Likewise.
43995         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
43996
43997 2009-01-07  Jim Meyering  <meyering@redhat.com>
43998
43999         poll: filter through cppi
44000         * lib/poll.c: Indent cpp directives to reflect nesting.
44001
44002 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
44003
44004         poll: don't return uninitialized
44005         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
44006
44007 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
44008
44009         avoid compile failure on AIX 6.1
44010         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
44011         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
44012
44013 2009-01-04  Jim Meyering  <meyering@redhat.com>
44014
44015         remove duplicate inclusion of <stdio.h>
44016         * tests/test-fprintf-posix.c: Likewise.
44017         * tests/test-printf-posix.c: Likewise.
44018         * tests/test-snprintf-posix.c: Likewise.
44019         * tests/test-sprintf-posix.c: Likewise.
44020         * tests/test-vasprintf-posix.c: Likewise.
44021         * tests/test-vfprintf-posix.c: Likewise.
44022         * tests/test-vprintf-posix.c: Likewise.
44023         * tests/test-vsnprintf-posix.c: Likewise.
44024         * tests/test-vsprintf-posix.c: Likewise.
44025
44026 2009-01-03  Jim Meyering  <meyering@redhat.com>
44027
44028         gnulib-tool: fix sed-based filtering
44029         * gnulib-tool (func_filter_filelist): Remove extra backslash
44030         in sed_fff_filter definition.
44031
44032 2009-01-02  Jim Meyering  <meyering@redhat.com>
44033
44034         strftime: avoid compilation failure on Solaris 2.6
44035         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
44036         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
44037         Don't #define mbrlen or mbsinit, since now they're guaranteed to
44038         be available.  Reported by Tom G. Christensen.  Details in
44039         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
44040
44041 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44042             Bruno Haible  <bruno@clisp.org>
44043
44044         Speed up gnulib-tool by doing more string processing through shell
44045         built-ins.
44046         * gnulib-tool (fast_func_append): New variable.
44047         (func_remove_prefix, func_remove_suffix): New functions.
44048         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
44049         (func_filter_filelist): New function.
44050         (func_get_dependencies): Use func_remove_suffix instead of sed.
44051         (func_get_automake_snippet): Use func_filter_filelist instead of a
44052         subshell and sed invocation.
44053
44054 2009-01-01  Bruno Haible  <bruno@clisp.org>
44055
44056         Fix a security bug.
44057         * gnulib-tool (func_import, import, update): Don't allow the characters
44058         '"', '$', '`', '\' in macro arguments that become part of commands that
44059         are evaluated.
44060
44061 2009-01-01  Bruno Haible  <bruno@clisp.org>
44062
44063         * gnulib-tool (func_reset_sigpipe): Add more comments.
44064
44065 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44066
44067         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
44068         func_emit_tests_Makefile_am, func_import): Abort loops early if we
44069         already know the answer.
44070
44071 2009-01-01  Jim Meyering  <meyering@redhat.com>
44072
44073         * lib/version-etc.c (version_etc_va): Update copyright year.
44074
44075 2008-12-30  Bruno Haible  <bruno@clisp.org>
44076
44077         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
44078         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
44079         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
44080
44081 2008-12-29  Eric Blake  <ebb9@byu.net>
44082
44083         multiarch: avoid autoconf AC_REQUIRE bug
44084         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
44085         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
44086         2.63 and older.
44087         Reported by Bruno Haible, and analyzed in
44088         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
44089
44090 2008-12-29  Bruno Haible  <bruno@clisp.org>
44091
44092         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
44093         files in subdirectories correctly.
44094         Reported by Ralf Wildenhues.
44095
44096 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44097
44098         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
44099         rather than 'join FILE -', for Solaris join.
44100
44101 2008-12-29  Bruno Haible  <bruno@clisp.org>
44102
44103         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
44104         quoting.
44105         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
44106         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
44107         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
44108         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
44109         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
44110         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
44111         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
44112         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
44113         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44114         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
44115         * m4/nls.m4 (AM_NLS): Likewise.
44116         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
44117         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
44118         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
44119         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
44120         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
44121         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
44122         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
44123         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
44124         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
44125         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
44126         * m4/xsize.m4 (gl_XSIZE): Likewise.
44127         Suggested by Jim Meyering.
44128
44129 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44130
44131         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
44132         * lib/parse-duration.c: use a switch instead of cascading if's.
44133
44134 2008-12-29  Eric Blake  <ebb9@byu.net>
44135
44136         wchar.h: supply WEOF on Irix 5.3
44137         * lib/wchar.in.h (wint_t): Also supply WEOF.
44138         * lib/wctype.in.h (wint_t): Likewise.
44139         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
44140         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
44141         Reported by Tom G. Christensen.
44142
44143 2008-12-26  Bruno Haible  <bruno@clisp.org>
44144
44145         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
44146         i486, i586, i686.
44147
44148 2008-12-26  Bruno Haible  <bruno@clisp.org>
44149
44150         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
44151
44152 2008-12-26  Bruno Haible  <bruno@clisp.org>
44153
44154         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
44155         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
44156         not __STDC_CONSTANT_MACROS.
44157         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44158
44159 2008-12-25  Bruno Haible  <bruno@clisp.org>
44160
44161         Add support for universal builds to vasnprintf.
44162         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
44163         universal builds, guess no.
44164         * modules/vasnprintf-posix (Depends-on): Add multiarch.
44165         * modules/vasprintf-posix (Depends-on): Likewise.
44166         * modules/fprintf-posix (Depends-on): Likewise.
44167         * modules/vfprintf-posix (Depends-on): Likewise.
44168         * modules/snprintf-posix (Depends-on): Likewise.
44169         * modules/vsnprintf-posix (Depends-on): Likewise.
44170         * modules/sprintf-posix (Depends-on): Likewise.
44171         * modules/vsprintf-posix (Depends-on): Likewise.
44172         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44173         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44174         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44175         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44176         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44177         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44178         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44179
44180         Add support for universal builds to <inttypes.h>.
44181         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
44182         _SCNu64_PREFIX): In Apple
44183         universal builds, define directly, using _LP64.
44184         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
44185         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
44186         * modules/inttypes (Depends-on): Add multiarch.
44187         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44188
44189         Add support for universal builds to <stdint.h>.
44190         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
44191         universal builds, define directly, using _LP64.
44192         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
44193         Apple universal builds, don't test for the size and suffix of ptrdiff_t
44194         and size_t.
44195         * modules/stdint (Depends-on): Add multiarch.
44196         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44197
44198         New module 'multiarch'.
44199         * modules/multiarch: New file.
44200         * m4/multiarch.m4: New file.
44201
44202 2008-12-25  Bruno Haible  <bruno@clisp.org>
44203
44204         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
44205
44206 2008-12-25  Bruno Haible  <bruno@clisp.org>
44207
44208         * modules/btowc (License): Relicense under LGPLv2+.
44209         * modules/mbsinit (License): Likewise.
44210         * modules/mbrtowc (License): Likewise.
44211         * modules/wcrtomb (License): Likewise.
44212         * modules/streq (License): Likewise.
44213         Reported by David Lutterkort <lutter@redhat.com>.
44214
44215 2008-12-23  Bruno Haible  <bruno@clisp.org>
44216
44217         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
44218
44219 2008-12-23  Bruno Haible  <bruno@clisp.org>
44220
44221         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
44222         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
44223         GETADDRINFO_LIB, not in LIBS.
44224         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
44225         * modules/canon-host (Link): Likewise.
44226         * NEWS: Mention the change.
44227         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
44228         GETADDRINFO_LIB.
44229
44230 2008-12-22  Bruno Haible  <bruno@clisp.org>
44231
44232         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
44233         * doc/posix-functions/iswalpha_l.texi: Likewise.
44234         * doc/posix-functions/iswblank_l.texi: Likewise.
44235         * doc/posix-functions/iswcntrl_l.texi: Likewise.
44236         * doc/posix-functions/iswctype_l.texi: Likewise.
44237         * doc/posix-functions/iswdigit_l.texi: Likewise.
44238         * doc/posix-functions/iswgraph_l.texi: Likewise.
44239         * doc/posix-functions/iswlower_l.texi: Likewise.
44240         * doc/posix-functions/iswprint_l.texi: Likewise.
44241         * doc/posix-functions/iswpunct_l.texi: Likewise.
44242         * doc/posix-functions/iswspace_l.texi: Likewise.
44243         * doc/posix-functions/iswupper_l.texi: Likewise.
44244         * doc/posix-functions/iswxdigit_l.texi: Likewise.
44245         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
44246         * doc/posix-functions/open_wmemstream.texi: Likewise.
44247         * doc/posix-functions/swscanf.texi: Likewise.
44248         * doc/posix-functions/towctrans_l.texi: Likewise.
44249         * doc/posix-functions/towlower.texi: Likewise.
44250         * doc/posix-functions/towlower_l.texi: Likewise.
44251         * doc/posix-functions/towupper.texi: Likewise.
44252         * doc/posix-functions/towupper_l.texi: Likewise.
44253         * doc/posix-functions/vfwprintf.texi: Likewise.
44254         * doc/posix-functions/vfwscanf.texi: Likewise.
44255         * doc/posix-functions/vswscanf.texi: Likewise.
44256         * doc/posix-functions/vwprintf.texi: Likewise.
44257         * doc/posix-functions/vwscanf.texi: Likewise.
44258         * doc/posix-functions/wcpcpy.texi: Likewise.
44259         * doc/posix-functions/wcpncpy.texi: Likewise.
44260         * doc/posix-functions/wcscasecmp.texi: Likewise.
44261         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
44262         * doc/posix-functions/wcscoll_l.texi: Likewise.
44263         * doc/posix-functions/wcsdup.texi: Likewise.
44264         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44265         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
44266         * doc/posix-functions/wcsnlen.texi: Likewise.
44267         * doc/posix-functions/wcsnrtombs.texi: Likewise.
44268         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
44269         * doc/posix-functions/wctrans_l.texi: Likewise.
44270         * doc/posix-functions/wctype_l.texi: Likewise.
44271         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
44272         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
44273         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
44274         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
44275         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
44276         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
44277         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
44278         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
44279         * doc/glibc-functions/wcschrnul.texi: Likewise.
44280         * doc/glibc-functions/wcsftime_l.texi: Likewise.
44281         * doc/glibc-functions/wcstod_l.texi: Likewise.
44282         * doc/glibc-functions/wcstof_l.texi: Likewise.
44283         * doc/glibc-functions/wcstol_l.texi: Likewise.
44284         * doc/glibc-functions/wcstold_l.texi: Likewise.
44285         * doc/glibc-functions/wcstoll_l.texi: Likewise.
44286         * doc/glibc-functions/wcstoq.texi: Likewise.
44287         * doc/glibc-functions/wcstoul_l.texi: Likewise.
44288         * doc/glibc-functions/wcstoull_l.texi: Likewise.
44289         * doc/glibc-functions/wcstouq.texi: Likewise.
44290         * doc/glibc-functions/wmempcpy.texi: Likewise.
44291
44292 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
44293             Eric Blake  <ebb9@byu.net>
44294             Paolo Bonzini  <bonzini@gnu.org>
44295             Bruno Haible  <bruno@clisp.org>
44296
44297         Make c-stack work on Haiku.
44298         * lib/c-stack.c (SA_ONSTACK): Define fallback.
44299         (c_stack_action): Use SA_ONSTACK flag.
44300
44301 2008-12-22  Bruno Haible  <bruno@clisp.org>
44302
44303         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
44304
44305 2008-12-22  Bruno Haible  <bruno@clisp.org>
44306
44307         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
44308         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
44309         being overridden.
44310         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
44311         New macros.
44312         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
44313         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
44314         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
44315         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
44316
44317 2008-12-22  Bruno Haible  <bruno@clisp.org>
44318
44319         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
44320         from test code.
44321
44322 2008-12-22  Eric Blake  <ebb9@byu.net>
44323
44324         Avoid gcc warnings on cygwin.
44325         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
44326         Avoid unused variable.
44327         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
44328         Likewise.
44329
44330 2008-12-22  Bruno Haible  <bruno@clisp.org>
44331
44332         Remove HAVE_MBRTOWC conditionals.
44333         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
44334         (mbscasecmp): Assume mbrtowc function.
44335         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
44336         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
44337         * lib/mbschr.c: Include mbuiter.h unconditionally.
44338         (mbschr): Assume mbrtowc function.
44339         * lib/mbscspn.c: Include mbuiter.h unconditionally.
44340         (mbscspn): Assume mbrtowc function.
44341         * lib/mbslen.c: Include mbuiter.h unconditionally.
44342         (mbslen): Assume mbrtowc function.
44343         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
44344         (mbsncasecmp): Assume mbrtowc function.
44345         * lib/mbsnlen.c: Include mbiter.h unconditionally.
44346         (mbsnlen): Assume mbrtowc function.
44347         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
44348         (mbspbrk): Assume mbrtowc function.
44349         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
44350         (mbspcasecmp): Assume mbrtowc function.
44351         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
44352         (mbsrchr): Assume mbrtowc function.
44353         * lib/mbssep.c: Include mbuiter.h unconditionally.
44354         (mbssep): Assume mbrtowc function.
44355         * lib/mbsspn.c: Include mbuiter.h unconditionally.
44356         (mbsspn): Assume mbrtowc function.
44357         * lib/mbsstr.c: Include mbuiter.h unconditionally.
44358         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
44359         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
44360         (mbstok_r): Assume mbrtowc function.
44361         * lib/propername.c: Include mbuiter.h unconditionally.
44362         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
44363         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
44364         (trim2): Assume mbrtowc function.
44365         * lib/mbswidth.c (mbsinit): Remove fallback definition.
44366         (mbsnwidth): Assume mbrtowc function.
44367         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
44368         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
44369         fallback definitions.
44370         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
44371
44372 2008-12-22  Bruno Haible  <bruno@clisp.org>
44373
44374         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
44375
44376 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
44377
44378         * modules/regex: Request emulations for the mb*/wc* functions we need.
44379         * m4/regex.m4: Don't look for those functions here.
44380         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
44381
44382 2008-12-22  Bruno Haible  <bruno@clisp.org>
44383
44384         * modules/fnmatch (Depends-on): Remove duplicated dependency.
44385
44386 2008-12-21  Bruno Haible  <bruno@clisp.org>
44387
44388         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
44389         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
44390         (Include): Remove conditionalization.
44391         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
44392         (Include): Remove conditionalization.
44393         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
44394         (Include): Remove conditionalization.
44395         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
44396         * m4/mbfile.m4 (gl_MBFILE): Likewise.
44397         * NEWS: Mention the change.
44398         Reported by Alan Hourihane <alanh@fairlite.co.uk>
44399         via Sergey Poznyakoff <gray@gnu.org.ua>.
44400
44401 2008-12-21  Bruno Haible  <bruno@clisp.org>
44402
44403         * MODULES.html.sh (Extended multibyte and wide character utilities
44404         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
44405         wcrtomb, wcsrtombs.
44406         (Support for systems lacking POSIX:2008): Add accept, bind, close,
44407         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
44408         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
44409         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
44410
44411 2008-12-21  Bruno Haible  <bruno@clisp.org>
44412
44413         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
44414
44415 2008-12-21  Bruno Haible  <bruno@clisp.org>
44416
44417         * modules/wcsnrtombs-tests: New file.
44418         * tests/test-wcsnrtombs1.sh: New file.
44419         * tests/test-wcsnrtombs2.sh: New file.
44420         * tests/test-wcsnrtombs3.sh: New file.
44421         * tests/test-wcsnrtombs4.sh: New file.
44422         * tests/test-wcsnrtombs.c: New file.
44423
44424         New module 'wcsnrtombs'.
44425         * lib/wchar.in.h (wcsnrtombs): New declaration.
44426         * lib/wcsnrtombs.c: New file.
44427         * lib/wcsrtombs-state.c: New file.
44428         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
44429         (internal_state): Remove variable.
44430         * m4/wcsnrtombs.m4: New file.
44431         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
44432         compilation units.
44433         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
44434         HAVE_WCSNRTOMBS.
44435         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
44436         HAVE_WCSNRTOMBS.
44437         * modules/wcsnrtombs: New file.
44438         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
44439         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
44440
44441 2008-12-21  Bruno Haible  <bruno@clisp.org>
44442
44443         * modules/wcsrtombs-tests: New file.
44444         * tests/test-wcsrtombs1.sh: New file.
44445         * tests/test-wcsrtombs2.sh: New file.
44446         * tests/test-wcsrtombs3.sh: New file.
44447         * tests/test-wcsrtombs4.sh: New file.
44448         * tests/test-wcsrtombs.c: New file.
44449
44450         New module 'wcsrtombs'.
44451         * lib/wchar.in.h (wcsrtombs): New declaration.
44452         * lib/wcsrtombs.c: New file.
44453         * m4/wcsrtombs.m4: New file.
44454         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
44455         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44456         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
44457         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44458         * modules/wcsrtombs: New file.
44459         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
44460         bugs.
44461
44462 2008-12-21  Bruno Haible  <bruno@clisp.org>
44463
44464         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
44465         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
44466         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
44467         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
44468         if not correct.
44469         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
44470         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
44471         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44472         m4/locale-zh.m4, m4/codeset.m4.
44473         * doc/posix-functions/wcrtomb.texi: Document the bug.
44474
44475 2008-12-21  Bruno Haible  <bruno@clisp.org>
44476
44477         Work around a btowc() bug on IRIX 6.5.
44478         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
44479         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
44480         REPLACE_WTOBC if not.
44481         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
44482         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
44483         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
44484
44485 2008-12-21  Bruno Haible  <bruno@clisp.org>
44486
44487         * modules/wcrtomb-tests: New file.
44488         * tests/test-wcrtomb.sh: New file.
44489         * tests/test-wcrtomb.c: New file.
44490
44491         New module 'wcrtomb'.
44492         * lib/wchar.in.h (wcrtomb): New declaration.
44493         * lib/wcrtomb.c: New file.
44494         * m4/wcrtomb.m4: New file.
44495         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
44496         HAVE_WCRTOMB.
44497         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
44498         HAVE_WCRTOMB.
44499         * modules/wcrtomb: New file.
44500         * doc/posix-functions/wcrtomb.texi: Mention the new module.
44501
44502 2008-12-21  Bruno Haible  <bruno@clisp.org>
44503
44504         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
44505         * modules/mbsrtowcs (Files): Likewise.
44506         * modules/wctob (Files): Likewise.
44507         * modules/c-strcase-tests (Files): Likewise.
44508         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
44509         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
44510         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
44511         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
44512         * modules/vasnprintf-posix-tests (Files): Likewise.
44513
44514 2008-12-21  William Pursell  <bill.pursell@gmail.com>
44515
44516         gitlog-to-changelog: pass all command-line arguments to git-log
44517         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
44518         it is sometimes convenient to filter the commits in various ways.
44519         gitlog-to-changelog only allows --since to specify a start date,
44520         but git-log itself supports many other filtering mechanisms.
44521         At the moment, I want to filter by branch name.  Rather than
44522         adding a --branch option to gitlog-to-changelog, it seems more
44523         flexible to simply pass all options directly to git-log and let
44524         git do the work.  Notice that this effectively makes --since a
44525         redundant option for gitlog-to-changelog, but removing it would
44526         require current usage to change since calls would then require
44527         an additional '--'.
44528
44529 2008-12-21  Bruno Haible  <bruno@clisp.org>
44530
44531         * modules/mbsnrtowcs-tests: New file.
44532         * tests/test-mbsnrtowcs1.sh: New file.
44533         * tests/test-mbsnrtowcs2.sh: New file.
44534         * tests/test-mbsnrtowcs3.sh: New file.
44535         * tests/test-mbsnrtowcs4.sh: New file.
44536         * tests/test-mbsnrtowcs.c: New file.
44537
44538         New module 'mbsnrtowcs'.
44539         * lib/wchar.in.h (mbsnrtowcs): New declaration.
44540         * lib/mbsnrtowcs.c: New file.
44541         * lib/mbsrtowcs-state.c: New file.
44542         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
44543         (internal_state): Remove variable.
44544         * m4/mbsnrtowcs.m4: New file.
44545         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
44546         compilation units.
44547         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
44548         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44549         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
44550         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44551         * modules/mbsnrtowcs: New file.
44552         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
44553         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
44554         portability problem.
44555
44556 2008-12-21  Bruno Haible  <bruno@clisp.org>
44557
44558         Work around mbsrtowcs bug.
44559         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
44560         (gl_FUNC_MBSRTOWCS): Invoke it.
44561         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44562         m4/locale-zh.m4.
44563         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
44564
44565 2008-12-21  Bruno Haible  <bruno@clisp.org>
44566
44567         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
44568
44569 2008-12-21  Bruno Haible  <bruno@clisp.org>
44570
44571         Update doc for AIX.
44572         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
44573         16-bit wchar_t type.
44574         * doc/posix-functions/btowc.texi: Likewise.
44575         * doc/posix-functions/fgetwc.texi: Likewise.
44576         * doc/posix-functions/fgetws.texi: Likewise.
44577         * doc/posix-functions/fputwc.texi: Likewise.
44578         * doc/posix-functions/fputws.texi: Likewise.
44579         * doc/posix-functions/fwide.texi: Likewise.
44580         * doc/posix-functions/fwprintf.texi: Likewise.
44581         * doc/posix-functions/fwscanf.texi: Likewise.
44582         * doc/posix-functions/getwchar.texi: Likewise.
44583         * doc/posix-functions/getwc.texi: Likewise.
44584         * doc/posix-functions/iswalnum.texi: Likewise.
44585         * doc/posix-functions/iswalpha.texi: Likewise.
44586         * doc/posix-functions/iswblank.texi: Likewise.
44587         * doc/posix-functions/iswcntrl.texi: Likewise.
44588         * doc/posix-functions/iswctype.texi: Likewise.
44589         * doc/posix-functions/iswdigit.texi: Likewise.
44590         * doc/posix-functions/iswgraph.texi: Likewise.
44591         * doc/posix-functions/iswlower.texi: Likewise.
44592         * doc/posix-functions/iswprint.texi: Likewise.
44593         * doc/posix-functions/iswpunct.texi: Likewise.
44594         * doc/posix-functions/iswspace.texi: Likewise.
44595         * doc/posix-functions/iswupper.texi: Likewise.
44596         * doc/posix-functions/iswxdigit.texi: Likewise.
44597         * doc/posix-functions/mbrtowc.texi: Likewise.
44598         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44599         * doc/posix-functions/mbstowcs.texi: Likewise.
44600         * doc/posix-functions/mbtowc.texi: Likewise.
44601         * doc/posix-functions/putwchar.texi: Likewise.
44602         * doc/posix-functions/putwc.texi: Likewise.
44603         * doc/posix-functions/swprintf.texi: Likewise.
44604         * doc/posix-functions/tolower.texi: Likewise.
44605         * doc/posix-functions/toupper.texi: Likewise.
44606         * doc/posix-functions/towctrans.texi: Likewise.
44607         * doc/posix-functions/ungetwc.texi: Likewise.
44608         * doc/posix-functions/vswprintf.texi: Likewise.
44609         * doc/posix-functions/wcrtomb.texi: Likewise.
44610         * doc/posix-functions/wcscat.texi: Likewise.
44611         * doc/posix-functions/wcschr.texi: Likewise.
44612         * doc/posix-functions/wcscmp.texi: Likewise.
44613         * doc/posix-functions/wcscoll.texi: Likewise.
44614         * doc/posix-functions/wcscpy.texi: Likewise.
44615         * doc/posix-functions/wcscspn.texi: Likewise.
44616         * doc/posix-functions/wcsftime.texi: Likewise.
44617         * doc/posix-functions/wcslen.texi: Likewise.
44618         * doc/posix-functions/wcsncat.texi: Likewise.
44619         * doc/posix-functions/wcsncmp.texi: Likewise.
44620         * doc/posix-functions/wcsncpy.texi: Likewise.
44621         * doc/posix-functions/wcspbrk.texi: Likewise.
44622         * doc/posix-functions/wcsrchr.texi: Likewise.
44623         * doc/posix-functions/wcsrtombs.texi: Likewise.
44624         * doc/posix-functions/wcsspn.texi: Likewise.
44625         * doc/posix-functions/wcsstr.texi: Likewise.
44626         * doc/posix-functions/wcstod.texi: Likewise.
44627         * doc/posix-functions/wcstof.texi: Likewise.
44628         * doc/posix-functions/wcstoimax.texi: Likewise.
44629         * doc/posix-functions/wcstok.texi: Likewise.
44630         * doc/posix-functions/wcstold.texi: Likewise.
44631         * doc/posix-functions/wcstoll.texi: Likewise.
44632         * doc/posix-functions/wcstol.texi: Likewise.
44633         * doc/posix-functions/wcstombs.texi: Likewise.
44634         * doc/posix-functions/wcstoull.texi: Likewise.
44635         * doc/posix-functions/wcstoul.texi: Likewise.
44636         * doc/posix-functions/wcstoumax.texi: Likewise.
44637         * doc/posix-functions/wcswidth.texi: Likewise.
44638         * doc/posix-functions/wcsxfrm.texi: Likewise.
44639         * doc/posix-functions/wctob.texi: Likewise.
44640         * doc/posix-functions/wctomb.texi: Likewise.
44641         * doc/posix-functions/wctrans.texi: Likewise.
44642         * doc/posix-functions/wctype.texi: Likewise.
44643         * doc/posix-functions/wcwidth.texi: Likewise.
44644         * doc/posix-functions/wmemchr.texi: Likewise.
44645         * doc/posix-functions/wmemcmp.texi: Likewise.
44646         * doc/posix-functions/wmemcpy.texi: Likewise.
44647         * doc/posix-functions/wmemmove.texi: Likewise.
44648         * doc/posix-functions/wmemset.texi: Likewise.
44649         * doc/posix-functions/wprintf.texi: Likewise.
44650         * doc/posix-functions/wscanf.texi: Likewise.
44651
44652 2008-12-21  Bruno Haible  <bruno@clisp.org>
44653
44654         Update doc for HP-UX 11.11.
44655         * doc/posix-functions/btowc.texi: Clarify that the function is missing
44656         in HP-UX version 11.00, not in all versions of HP-UX 11.
44657         * doc/posix-functions/fwide.texi: Likewise.
44658         * doc/posix-functions/fwprintf.texi: Likewise.
44659         * doc/posix-functions/fwscanf.texi: Likewise.
44660         * doc/posix-functions/inet_ntop.texi: Likewise.
44661         * doc/posix-functions/inet_pton.texi: Likewise.
44662         * doc/posix-functions/mbrlen.texi: Likewise.
44663         * doc/posix-functions/mbrtowc.texi: Likewise.
44664         * doc/posix-functions/mbsinit.texi: Likewise.
44665         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44666         * doc/posix-functions/swprintf.texi: Likewise.
44667         * doc/posix-functions/swscanf.texi: Likewise.
44668         * doc/posix-functions/towctrans.texi: Likewise.
44669         * doc/posix-functions/vfwprintf.texi: Likewise.
44670         * doc/posix-functions/vswprintf.texi: Likewise.
44671         * doc/posix-functions/vwprintf.texi: Likewise.
44672         * doc/posix-functions/wcrtomb.texi: Likewise.
44673         * doc/posix-functions/wcsrtombs.texi: Likewise.
44674         * doc/posix-functions/wcsstr.texi: Likewise.
44675         * doc/posix-functions/wctob.texi: Likewise.
44676         * doc/posix-functions/wctrans.texi: Likewise.
44677         * doc/posix-functions/wmemchr.texi: Likewise.
44678         * doc/posix-functions/wmemcmp.texi: Likewise.
44679         * doc/posix-functions/wmemcpy.texi: Likewise.
44680         * doc/posix-functions/wmemmove.texi: Likewise.
44681         * doc/posix-functions/wmemset.texi: Likewise.
44682         * doc/posix-functions/wprintf.texi: Likewise.
44683         * doc/posix-functions/wscanf.texi: Likewise.
44684
44685 2008-12-21  Bruno Haible  <bruno@clisp.org>
44686
44687         Work around a portability problem.
44688         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
44689         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
44690
44691 2008-12-20  Bruno Haible  <bruno@clisp.org>
44692
44693         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
44694         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
44695         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
44696         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
44697         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
44698
44699         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
44700         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
44701         set.
44702         (GNULIB_defined_mbstate_t): New macro.
44703         (mbsinit): Redefine if REPLACE_MBSINIT is set.
44704         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
44705         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
44706         reuses the system's mbrtowc function but works around the bugs.
44707         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
44708         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
44709         macros.
44710         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
44711         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
44712         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
44713         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
44714         REPLACE_MBSINIT if mbsinit needs to be overridden.
44715         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
44716         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44717         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
44718         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44719         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44720         m4/locale-zh.m4.
44721         (Depends): Add mbsinit.
44722         * modules/mbsinit (Depends): Add mbrtowc.
44723         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
44724
44725 2008-12-20  Bruno Haible  <bruno@clisp.org>
44726
44727         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
44728         so that there are no conversion errors on AIX.
44729         * tests/test-mbsrtowcs.c (main): LIkewise.
44730
44731 2008-12-20  Bruno Haible  <bruno@clisp.org>
44732
44733         Work around wctob bug on Solaris <= 9.
44734         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
44735         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
44736         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
44737         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
44738         * modules/wctob (Files): Add m4/locale-fr.m4.
44739         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
44740
44741 2008-12-20  Bruno Haible  <bruno@clisp.org>
44742
44743         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
44744         /dev/null.
44745         * tests/test-select-in.sh: Likewise.
44746         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44747
44748 2008-12-20  Bruno Haible  <bruno@clisp.org>
44749
44750         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
44751         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
44752         Cygwin 1.5.x.
44753
44754 2008-12-20  Bruno Haible  <bruno@clisp.org>
44755
44756         Ensure mbstate_t is defined on HP-UX 11.11.
44757         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
44758         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
44759         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
44760         AC_USE_SYSTEM_EXTENSIONS.
44761         * modules/fnmatch (Depends-on): Add extensions.
44762         * modules/mbrlen (Depends-on): Likewise.
44763         * modules/mbrtowc (Depends-on): Likewise.
44764         * modules/mbsinit (Depends-on): Likewise.
44765         * modules/mbsrtowcs (Depends-on): Likewise.
44766         * modules/mbswidth (Depends-on): Likewise.
44767         * modules/quotearg (Depends-on): Likewise.
44768         * modules/strftime (Depends-on): Likewise.
44769
44770 2008-12-20  Bruno Haible  <bruno@clisp.org>
44771
44772         Ensure wctob is declared on IRIX 6.5.
44773         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
44774         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
44775         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
44776         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
44777         of HAVE_WCTOB.
44778         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
44779         HAVE_WCTOB.
44780         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
44781
44782 2008-12-19  Bruno Haible  <bruno@clisp.org>
44783
44784         * modules/mbsrtowcs-tests: New file.
44785         * tests/test-mbsrtowcs1.sh: New file.
44786         * tests/test-mbsrtowcs2.sh: New file.
44787         * tests/test-mbsrtowcs3.sh: New file.
44788         * tests/test-mbsrtowcs4.sh: New file.
44789         * tests/test-mbsrtowcs.c: New file.
44790
44791         New module 'mbsrtowcs'.
44792         * lib/wchar.in.h (mbsrtowcs): New declaration.
44793         * lib/mbsrtowcs.c: New file.
44794         * m4/mbsrtowcs.m4: New file.
44795         * modules/mbsrtowcs: New file.
44796         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
44797         HAVE_MBSRTOWCS.
44798         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
44799         HAVE_MBSRTOWCS.
44800         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
44801
44802 2008-12-19  Bruno Haible  <bruno@clisp.org>
44803
44804         New module 'mbrlen'.
44805         * lib/wchar.in.h (mbrlen): New declaration.
44806         * lib/mbrlen.c: New file.
44807         * m4/mbrlen.m4: New file.
44808         * modules/mbrlen: New file.
44809         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
44810         HAVE_MBRLEN.
44811         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
44812         HAVE_MBRLEN.
44813         * doc/posix-functions/mbrlen.texi: Document the new module.
44814
44815 2008-12-19  Bruno Haible  <bruno@clisp.org>
44816
44817         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
44818         * modules/mbrtowc (Depends-on): Add verify.
44819         Suggested by Paul Eggert.
44820
44821 2008-12-18  Bruno Haible  <bruno@clisp.org>
44822
44823         * modules/mbsinit-tests: New file.
44824         * tests/test-mbsinit.sh: New file.
44825         * tests/test-mbsinit.c: New file.
44826
44827 2008-12-18  Bruno Haible  <bruno@clisp.org>
44828
44829         * modules/mbrtowc-tests: New file.
44830         * tests/test-mbrtowc1.sh: New file.
44831         * tests/test-mbrtowc2.sh: New file.
44832         * tests/test-mbrtowc3.sh: New file.
44833         * tests/test-mbrtowc4.sh: New file.
44834         * tests/test-mbrtowc.c: New file.
44835
44836         New module 'mbrtowc'.
44837         * lib/wchar.in.h (mbstate_t): Override when the system does not have
44838         mbsinit and mbrtowc.
44839         (mbrtowc): New declaration.
44840         * lib/mbrtowc.c: New file.
44841         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
44842         * modules/mbrtowc: New file.
44843         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
44844         HAVE_MBRTOWC.
44845         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
44846         HAVE_MBRTOWC.
44847         * doc/posix-functions/mbrtowc.texi: Document the new module.
44848
44849 2008-12-18  Bruno Haible  <bruno@clisp.org>
44850
44851         New module 'wctob'.
44852         * lib/wchar.in.h (wctob): New declaration.
44853         * lib/wctob.c: New file.
44854         * m4/wctob.m4: New file.
44855         * modules/wctob: New file.
44856         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
44857         HAVE_WCTOB.
44858         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
44859         * doc/posix-functions/wctob.texi: Document the new module.
44860
44861 2008-12-18  Bruno Haible  <bruno@clisp.org>
44862
44863         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
44864         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
44865
44866 2008-12-18  Simon Josefsson  <simon@josefsson.org>
44867
44868         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
44869         G. Christensen" <tgc@jupiterrise.com>.
44870
44871         * lib/flock.c: Need to include errno.h.  Reported by "Tom
44872         G. Christensen" <tgc@jupiterrise.com>.
44873
44874         * lib/flock.c: Need to include string.h.  Reported by "Tom
44875         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
44876         <ebb9@byu.net>.
44877
44878 2008-12-18  Bruno Haible  <bruno@clisp.org>
44879
44880         * m4/locale-ja.m4: New file, from GNU gettext.
44881
44882 2008-12-17  Bruno Haible  <bruno@clisp.org>
44883
44884         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
44885         Suggested by Eric Blake.
44886
44887 2008-12-17  Bruno Haible  <bruno@clisp.org>
44888
44889         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
44890
44891 2008-12-17  Bruno Haible  <bruno@clisp.org>
44892
44893         * lib/mbsinit.c: Include verify.h. Verify an assumption.
44894         * modules/mbsinit (Depends-on): Add verify.
44895         Suggested by Paul Eggert.
44896
44897 2008-12-17  Bruno Haible  <bruno@clisp.org>
44898
44899         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
44900         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
44901         gl_FUNC_MBRTOWC.
44902         * m4/mbiter.m4 (gl_MBITER): LIkewise.
44903         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
44904         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
44905         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
44906         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
44907         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
44908         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
44909         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
44910         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
44911         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
44912         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
44913         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
44914         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
44915         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
44916         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
44917         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44918         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
44919         * modules/trim (configure.ac): Likewise.
44920
44921 2008-12-17  Bruno Haible  <bruno@clisp.org>
44922
44923         * modules/btowc-tests: New file.
44924         * tests/test-btowc1.sh: New file.
44925         * tests/test-btowc2.sh: New file.
44926         * tests/test-btowc.c: New file.
44927
44928         New module 'btowc'.
44929         * lib/wchar.in.h (btowc): New declaration.
44930         * lib/btowc.c: New file.
44931         * m4/btowc.m4: New file.
44932         * modules/btowc: New file.
44933         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
44934         HAVE_BTOWC.
44935         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
44936         * doc/posix-functions/btowc.texi: Document the new module.
44937
44938 2008-12-17  Bruno Haible  <bruno@clisp.org>
44939
44940         New module 'mbsinit'.
44941         * lib/wchar.in.h (mbsinit): New declaration.
44942         * lib/mbsinit.c: New file.
44943         * m4/mbsinit.m4: New file.
44944         * modules/mbsinit: New file.
44945         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
44946         HAVE_MBSINIT.
44947         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
44948         HAVE_MBSINIT.
44949         * doc/posix-functions/mbsinit.texi: Document the new module.
44950
44951 2008-12-16  Bruno Haible  <bruno@clisp.org>
44952
44953         * lib/unistd.in.h: Add comment.
44954         * tests/test-environ.c: Don't include <stdlib.h>.
44955
44956 2008-12-16  Bruno Haible  <bruno@clisp.org>
44957
44958         * lib/parse-duration.h (parse_duration): Document return value
44959         convention.
44960         * lib/parse-duration.c: Include specification header first. Add
44961         comments.
44962         (_): Remove macro.
44963         (parse_year_month_day, parse_hour_minute_second): Move side effects
44964         outside of strchr call.
44965         (parse_non_iso8601): Move side effects outside of isspace call.
44966         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
44967         call.
44968
44969 2008-12-16  Bruno Haible  <bruno@clisp.org>
44970
44971         * tests/test-parse-duration.sh: Produce no output when the test
44972         succeeds.
44973
44974 2008-12-16  Bruno Haible  <bruno@clisp.org>
44975
44976         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
44977         expressions.
44978
44979 2008-12-15  Bruno Haible  <bruno@clisp.org>
44980
44981         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
44982         * doc/glibc-functions/flistxattr.texi: Likewise.
44983         * doc/glibc-functions/fopencookie.texi: Likewise.
44984         * doc/glibc-functions/fremovexattr.texi: Likewise.
44985         * doc/glibc-functions/fsetxattr.texi: Likewise.
44986         * doc/glibc-functions/getxattr.texi: Likewise.
44987         * doc/glibc-functions/lgetxattr.texi: Likewise.
44988         * doc/glibc-functions/listxattr.texi: Likewise.
44989         * doc/glibc-functions/llistxattr.texi: Likewise.
44990         * doc/glibc-functions/lremovexattr.texi: Likewise.
44991         * doc/glibc-functions/lsetxattr.texi: Likewise.
44992         * doc/glibc-functions/removexattr.texi: Likewise.
44993         * doc/glibc-functions/setxattr.texi: Likewise.
44994         * doc/posix-functions/open_memstream.texi: Likewise.
44995
44996 2008-12-15  Eric Blake  <ebb9@byu.net>
44997
44998         Update doc for cygwin 1.7.
44999         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
45000         functions.
45001         * doc/posix-functions/fchmodat.texi: Likewise.
45002         * doc/posix-functions/fchownat.texi: Likewise.
45003         * doc/posix-functions/fdopendir.texi: Likewise.
45004         * doc/posix-functions/fmemopen.texi: Likewise.
45005         * doc/posix-functions/freeaddrinfo.texi: Likewise.
45006         * doc/posix-functions/fstatat.texi: Likewise.
45007         * doc/posix-functions/futimens.texi: Likewise.
45008         * doc/posix-functions/gai_strerror.texi: Likewise.
45009         * doc/posix-functions/getaddrinfo.texi: Likewise.
45010         * doc/posix-functions/getnameinfo.texi: Likewise.
45011         * doc/posix-functions/if_freenameindex.texi: Likewise.
45012         * doc/posix-functions/if_indextoname.texi: Likewise.
45013         * doc/posix-functions/if_nameindex.texi: Likewise.
45014         * doc/posix-functions/if_nametoindex.texi: Likewise.
45015         * doc/posix-functions/insque.texi: Likewise.
45016         * doc/posix-functions/linkat.texi: Likewise.
45017         * doc/posix-functions/llrint.texi: Likewise.
45018         * doc/posix-functions/llrintf.texi: Likewise.
45019         * doc/posix-functions/llrintl.texi: Likewise.
45020         * doc/posix-functions/lockf.texi: Likewise.
45021         * doc/posix-functions/lrintl.texi: Likewise.
45022         * doc/posix-functions/mkdirat.texi: Likewise.
45023         * doc/posix-functions/mkfifoat.texi: Likewise.
45024         * doc/posix-functions/mknodat.texi: Likewise.
45025         * doc/posix-functions/mq_close.texi: Likewise.
45026         * doc/posix-functions/mq_getattr.texi: Likewise.
45027         * doc/posix-functions/mq_notify.texi: Likewise.
45028         * doc/posix-functions/mq_open.texi: Likewise.
45029         * doc/posix-functions/mq_receive.texi: Likewise.
45030         * doc/posix-functions/mq_send.texi: Likewise.
45031         * doc/posix-functions/mq_setattr.texi: Likewise.
45032         * doc/posix-functions/mq_timedreceive.texi: Likewise.
45033         * doc/posix-functions/mq_timedsend.texi: Likewise.
45034         * doc/posix-functions/mq_unlink.texi: Likewise.
45035         * doc/posix-functions/open_memstream.texi: Likewise.
45036         * doc/posix-functions/openat.texi: Likewise.
45037         * doc/posix-functions/posix_fadvise.texi: Likewise.
45038         * doc/posix-functions/posix_fallocate.texi: Likewise.
45039         * doc/posix-functions/posix_madvise.texi: Likewise.
45040         * doc/posix-functions/posix_memalign.texi: Likewise.
45041         * doc/posix-functions/posix_openpt.texi: Likewise.
45042         * doc/posix-functions/readlinkat.texi: Likewise.
45043         * doc/posix-functions/remque.texi: Likewise.
45044         * doc/posix-functions/renameat.texi: Likewise.
45045         * doc/posix-functions/rintl.texi: Likewise.
45046         * doc/posix-functions/sem_unlink.texi: Likewise.
45047         * doc/posix-functions/shm_open.texi: Likewise.
45048         * doc/posix-functions/shm_unlink.texi: Likewise.
45049         * doc/posix-functions/signgam.texi: Likewise.
45050         * doc/posix-functions/sigset.texi: Likewise.
45051         * doc/posix-functions/stpcpy.texi: Likewise.
45052         * doc/posix-functions/stpncpy.texi: Likewise.
45053         * doc/posix-functions/strerror.texi: Likewise.
45054         * doc/posix-functions/strtod.texi: Likewise.
45055         * doc/posix-functions/symlinkat.texi: Likewise.
45056         * doc/posix-functions/unlinkat.texi: Likewise.
45057         * doc/posix-functions/utimensat.texi: Likewise.
45058         * doc/glibc-functions/bindresvport.texi: Likewise.
45059         * doc/glibc-functions/dn_expand.texi: Likewise.
45060         * doc/glibc-functions/exp10.texi: Likewise.
45061         * doc/glibc-functions/exp10f.texi: Likewise.
45062         * doc/glibc-functions/fgetxattr.texi: Likewise.
45063         * doc/glibc-functions/flistxattr.texi: Likewise.
45064         * doc/glibc-functions/fopencookie.texi: Likewise.
45065         * doc/glibc-functions/freeifaddrs.texi: Likewise.
45066         * doc/glibc-functions/fremovexattr.texi: Likewise.
45067         * doc/glibc-functions/fsetxattr.texi: Likewise.
45068         * doc/glibc-functions/getifaddrs.texi: Likewise.
45069         * doc/glibc-functions/getxattr.texi: Likewise.
45070         * doc/glibc-functions/lgetxattr.texi: Likewise.
45071         * doc/glibc-functions/listxattr.texi: Likewise.
45072         * doc/glibc-functions/llistxattr.texi: Likewise.
45073         * doc/glibc-functions/lremovexattr.texi: Likewise.
45074         * doc/glibc-functions/lsetxattr.texi: Likewise.
45075         * doc/glibc-functions/pow10.texi: Likewise.
45076         * doc/glibc-functions/pow10f.texi: Likewise.
45077         * doc/glibc-functions/rcmd_af.texi: Likewise.
45078         * doc/glibc-functions/removexattr.texi: Likewise.
45079         * doc/glibc-functions/res_init.texi: Likewise.
45080         * doc/glibc-functions/res_mkquery.texi: Likewise.
45081         * doc/glibc-functions/res_query.texi: Likewise.
45082         * doc/glibc-functions/res_querydomain.texi: Likewise.
45083         * doc/glibc-functions/res_send.texi: Likewise.
45084         * doc/glibc-functions/rresvport_af.texi: Likewise.
45085         * doc/glibc-functions/setxattr.texi: Likewise.
45086         * doc/glibc-functions/strcasestr.texi: Likewise.
45087
45088 2008-12-15  Bruno Haible  <bruno@clisp.org>
45089
45090         Fix compilation error on OSF/1 4.0.
45091         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
45092         <sys/time.h>, simply delegate to the system header.
45093         Reported by Daniel Richard G. <oss@teragram.com>.
45094
45095 2008-12-15  Bruno Haible  <bruno@clisp.org>
45096
45097         * doc/posix-functions/openat.texi: Mention the 'openat' module.
45098         * doc/posix-functions/fchmodat.texi: Likewise.
45099         * doc/posix-functions/fchownat.texi: Likewise.
45100         * doc/posix-functions/fdopendir.texi: Likewise.
45101         * doc/posix-functions/fstatat.texi: Likewise.
45102         * doc/posix-functions/mkdirat.texi: Likewise.
45103         * doc/posix-functions/unlinkat.texi: Likewise.
45104
45105 2008-12-14  Bruno Haible  <bruno@clisp.org>
45106
45107         Update doc for POSIX:2008.
45108         * doc/posix-functions/faccessat.texi: New file.
45109         * doc/posix-functions/fchmodat.texi: New file.
45110         * doc/posix-functions/fchownat.texi: New file.
45111         * doc/posix-functions/fdopendir.texi: New file.
45112         * doc/posix-functions/fstatat.texi: New file.
45113         * doc/posix-functions/futimens.texi: New file.
45114         * doc/posix-functions/linkat.texi: New file.
45115         * doc/posix-functions/mkdirat.texi: New file.
45116         * doc/posix-functions/mkfifoat.texi: New file.
45117         * doc/posix-functions/mknodat.texi: New file.
45118         * doc/posix-functions/open_wmemstream.texi: New file.
45119         * doc/posix-functions/openat.texi: New file.
45120         * doc/posix-functions/psiginfo.texi: New file.
45121         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
45122         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
45123         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
45124         * doc/posix-functions/readlinkat.texi: New file.
45125         * doc/posix-functions/renameat.texi: New file.
45126         * doc/posix-functions/strerror_l.texi: New file.
45127         * doc/posix-functions/symlinkat.texi: New file.
45128         * doc/posix-functions/unlinkat.texi: New file.
45129         * doc/posix-functions/utimensat.texi: New file.
45130         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45131
45132 2008-12-14  Bruno Haible  <bruno@clisp.org>
45133
45134         Update doc for POSIX:2008.
45135         * doc/posix-functions/alphasort.texi: Renamed from
45136         doc/glibc-functions/alphasort.texi.
45137         * doc/posix-functions/dirfd.texi: Renamed from
45138         doc/glibc-functions/dirfd.texi.
45139         * doc/posix-functions/dprintf.texi: Renamed from
45140         doc/glibc-functions/dprintf.texi.
45141         * doc/posix-functions/duplocale.texi: Renamed from
45142         doc/glibc-functions/duplocale.texi.
45143         * doc/posix-functions/fexecve.texi: Renamed from
45144         doc/glibc-functions/fexecve.texi.
45145         * doc/posix-functions/fmemopen.texi: Renamed from
45146         doc/glibc-functions/fmemopen.texi.
45147         * doc/posix-functions/freelocale.texi: Renamed from
45148         doc/glibc-functions/freelocale.texi.
45149         * doc/posix-functions/getdate_err.texi: Renamed from
45150         doc/glibc-functions/getdate_err.texi.
45151         * doc/posix-functions/isalnum_l.texi: Renamed from
45152         doc/glibc-functions/isalnum_l.texi.
45153         * doc/posix-functions/isalpha_l.texi: Renamed from
45154         doc/glibc-functions/isalpha_l.texi.
45155         * doc/posix-functions/isblank_l.texi: Renamed from
45156         doc/glibc-functions/isblank_l.texi.
45157         * doc/posix-functions/iscntrl_l.texi: Renamed from
45158         doc/glibc-functions/iscntrl_l.texi.
45159         * doc/posix-functions/isdigit_l.texi: Renamed from
45160         doc/glibc-functions/isdigit_l.texi.
45161         * doc/posix-functions/isgraph_l.texi: Renamed from
45162         doc/glibc-functions/isgraph_l.texi.
45163         * doc/posix-functions/islower_l.texi: Renamed from
45164         doc/glibc-functions/islower_l.texi.
45165         * doc/posix-functions/isprint_l.texi: Renamed from
45166         doc/glibc-functions/isprint_l.texi.
45167         * doc/posix-functions/ispunct_l.texi: Renamed from
45168         doc/glibc-functions/ispunct_l.texi.
45169         * doc/posix-functions/isspace_l.texi: Renamed from
45170         doc/glibc-functions/isspace_l.texi.
45171         * doc/posix-functions/isupper_l.texi: Renamed from
45172         doc/glibc-functions/isupper_l.texi.
45173         * doc/posix-functions/iswalnum_l.texi: Renamed from
45174         doc/glibc-functions/iswalnum_l.texi.
45175         * doc/posix-functions/iswalpha_l.texi: Renamed from
45176         doc/glibc-functions/iswalpha_l.texi.
45177         * doc/posix-functions/iswblank_l.texi: Renamed from
45178         doc/glibc-functions/iswblank_l.texi.
45179         * doc/posix-functions/iswcntrl_l.texi: Renamed from
45180         doc/glibc-functions/iswcntrl_l.texi.
45181         * doc/posix-functions/iswctype_l.texi: Renamed from
45182         doc/glibc-functions/iswctype_l.texi.
45183         * doc/posix-functions/iswdigit_l.texi: Renamed from
45184         doc/glibc-functions/iswdigit_l.texi.
45185         * doc/posix-functions/iswgraph_l.texi: Renamed from
45186         doc/glibc-functions/iswgraph_l.texi.
45187         * doc/posix-functions/iswlower_l.texi: Renamed from
45188         doc/glibc-functions/iswlower_l.texi.
45189         * doc/posix-functions/iswprint_l.texi: Renamed from
45190         doc/glibc-functions/iswprint_l.texi.
45191         * doc/posix-functions/iswpunct_l.texi: Renamed from
45192         doc/glibc-functions/iswpunct_l.texi.
45193         * doc/posix-functions/iswspace_l.texi: Renamed from
45194         doc/glibc-functions/iswspace_l.texi.
45195         * doc/posix-functions/iswupper_l.texi: Renamed from
45196         doc/glibc-functions/iswupper_l.texi.
45197         * doc/posix-functions/iswxdigit_l.texi: Renamed from
45198         doc/glibc-functions/iswxdigit_l.texi.
45199         * doc/posix-functions/isxdigit_l.texi: Renamed from
45200         doc/glibc-functions/isxdigit_l.texi.
45201         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
45202         doc/glibc-functions/mbsnrtowcs.texi.
45203         * doc/posix-functions/mkdtemp.texi: Renamed from
45204         doc/glibc-functions/mkdtemp.texi.
45205         * doc/posix-functions/newlocale.texi: Renamed from
45206         doc/glibc-functions/newlocale.texi.
45207         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
45208         doc/glibc-functions/nl_langinfo_l.texi.
45209         * doc/posix-functions/open_memstream.texi: Renamed from
45210         doc/glibc-functions/open_memstream.texi.
45211         * doc/posix-functions/opterr.texi: Renamed from
45212         doc/glibc-functions/opterr.texi.
45213         * doc/posix-functions/optind.texi: Renamed from
45214         doc/glibc-functions/optind.texi.
45215         * doc/posix-functions/optopt.texi: Renamed from
45216         doc/glibc-functions/optopt.texi.
45217         * doc/posix-functions/psignal.texi: Renamed from
45218         doc/glibc-functions/psignal.texi.
45219         * doc/posix-functions/scandir.texi: Renamed from
45220         doc/glibc-functions/scandir.texi.
45221         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
45222         doc/glibc-functions/sched_get_priority_min.texi.
45223         * doc/posix-functions/signgam.texi: Renamed from
45224         doc/glibc-functions/signgam.texi.
45225         * doc/posix-functions/stpcpy.texi: Renamed from
45226         doc/glibc-functions/stpcpy.texi.
45227         * doc/posix-functions/stpncpy.texi: Renamed from
45228         doc/glibc-functions/stpncpy.texi.
45229         * doc/posix-functions/strcasecmp_l.texi: Renamed from
45230         doc/glibc-functions/strcasecmp_l.texi.
45231         * doc/posix-functions/strcoll_l.texi: Renamed from
45232         doc/glibc-functions/strcoll_l.texi.
45233         * doc/posix-functions/strfmon_l.texi: Renamed from
45234         doc/glibc-functions/strfmon_l.texi.
45235         * doc/posix-functions/strftime_l.texi: Renamed from
45236         doc/glibc-functions/strftime_l.texi.
45237         * doc/posix-functions/strncasecmp_l.texi: Renamed from
45238         doc/glibc-functions/strncasecmp_l.texi.
45239         * doc/posix-functions/strndup.texi: Renamed from
45240         doc/glibc-functions/strndup.texi.
45241         * doc/posix-functions/strnlen.texi: Renamed from
45242         doc/glibc-functions/strnlen.texi.
45243         * doc/posix-functions/strsignal.texi: Renamed from
45244         doc/glibc-functions/strsignal.texi.
45245         * doc/posix-functions/strxfrm_l.texi: Renamed from
45246         doc/glibc-functions/strxfrm_l.texi.
45247         * doc/posix-functions/timer_gettime.texi: Renamed from
45248         doc/glibc-functions/timer_gettime.texi.
45249         * doc/posix-functions/tolower_l.texi: Renamed from
45250         doc/glibc-functions/tolower_l.texi.
45251         * doc/posix-functions/toupper_l.texi: Renamed from
45252         doc/glibc-functions/toupper_l.texi.
45253         * doc/posix-functions/towctrans_l.texi: Renamed from
45254         doc/glibc-functions/towctrans_l.texi.
45255         * doc/posix-functions/towlower_l.texi: Renamed from
45256         doc/glibc-functions/towlower_l.texi.
45257         * doc/posix-functions/towupper_l.texi: Renamed from
45258         doc/glibc-functions/towupper_l.texi.
45259         * doc/posix-functions/uselocale.texi: Renamed from
45260         doc/glibc-functions/uselocale.texi.
45261         * doc/posix-functions/vdprintf.texi: Renamed from
45262         doc/glibc-functions/vdprintf.texi.
45263         * doc/posix-functions/wcpcpy.texi:
45264         Renamed from doc/glibc-functions/wcpcpy.texi.
45265         * doc/posix-functions/wcpncpy.texi: Renamed from
45266         doc/glibc-functions/wcpncpy.texi.
45267         * doc/posix-functions/wcscasecmp.texi: Renamed from
45268         doc/glibc-functions/wcscasecmp.texi.
45269         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
45270         doc/glibc-functions/wcscasecmp_l.texi.
45271         * doc/posix-functions/wcscoll_l.texi: Renamed from
45272         doc/glibc-functions/wcscoll_l.texi.
45273         * doc/posix-functions/wcsdup.texi: Renamed from
45274         doc/glibc-functions/wcsdup.texi.
45275         * doc/posix-functions/wcsncasecmp.texi: Renamed from
45276         doc/glibc-functions/wcsncasecmp.texi.
45277         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
45278         doc/glibc-functions/wcsncasecmp_l.texi.
45279         * doc/posix-functions/wcsnlen.texi: Renamed from
45280         doc/glibc-functions/wcsnlen.texi.
45281         * doc/posix-functions/wcsnrtombs.texi: Renamed from
45282         doc/glibc-functions/wcsnrtombs.texi.
45283         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
45284         doc/glibc-functions/wcsxfrm_l.texi.
45285         * doc/posix-functions/wctrans_l.texi: Renamed from
45286         doc/glibc-functions/wctrans_l.texi.
45287         * doc/posix-functions/wctype_l.texi: Renamed from
45288         doc/glibc-functions/wctype_l.texi.
45289         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45290         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
45291         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
45292         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
45293         these subsections.
45294         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
45295         Remove sections.
45296
45297 2008-12-14  Bruno Haible  <bruno@clisp.org>
45298
45299         Update doc for POSIX:2008.
45300         * doc/posix-functions/*.texi: Update URL of POSIX specification.
45301
45302 2008-12-14  Bruno Haible  <bruno@clisp.org>
45303
45304         Update doc for POSIX:2008.
45305         * doc/pastposix-functions/bcmp.texi: Renamed from
45306         doc/posix-functions/bcmp.texi.
45307         * doc/pastposix-functions/bcopy.texi: Renamed from
45308         doc/posix-functions/bcopy.texi.
45309         * doc/pastposix-functions/bsd_signal.texi: Renamed from
45310         doc/posix-functions/bsd_signal.texi.
45311         * doc/pastposix-functions/bzero.texi: Renamed from
45312         doc/posix-functions/bzero.texi.
45313         * doc/pastposix-functions/ecvt.texi: Renamed from
45314         doc/posix-functions/ecvt.texi.
45315         * doc/pastposix-functions/fcvt.texi: Renamed from
45316         doc/posix-functions/fcvt.texi.
45317         * doc/pastposix-functions/ftime.texi: Renamed from
45318         doc/posix-functions/ftime.texi.
45319         * doc/pastposix-functions/gcvt.texi: Renamed from
45320         doc/posix-functions/gcvt.texi.
45321         * doc/pastposix-functions/getcontext.texi: Renamed from
45322         doc/posix-functions/getcontext.texi.
45323         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
45324         doc/posix-functions/gethostbyaddr.texi.
45325         * doc/pastposix-functions/gethostbyname.texi: Renamed from
45326         doc/posix-functions/gethostbyname.texi.
45327         * doc/pastposix-functions/getwd.texi: Renamed from
45328         doc/posix-functions/getwd.texi.
45329         * doc/pastposix-functions/h_errno.texi: Renamed from
45330         doc/posix-functions/h_errno.texi.
45331         * doc/pastposix-functions/index.texi: Renamed from
45332         doc/posix-functions/index.texi.
45333         * doc/pastposix-functions/makecontext.texi: Renamed from
45334         doc/posix-functions/makecontext.texi.
45335         * doc/pastposix-functions/mktemp.texi: Renamed from
45336         doc/posix-functions/mktemp.texi.
45337         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
45338         doc/posix-functions/pthread_attr_getstackaddr.texi.
45339         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
45340         doc/posix-functions/pthread_attr_setstackaddr.texi.
45341         * doc/pastposix-functions/rindex.texi: Renamed from
45342         doc/posix-functions/rindex.texi.
45343         * doc/pastposix-functions/scalb.texi: Renamed from
45344         doc/posix-functions/scalb.texi.
45345         * doc/pastposix-functions/setcontext.texi: Renamed from
45346         doc/posix-functions/setcontext.texi.
45347         * doc/pastposix-functions/swapcontext.texi: Renamed from
45348         doc/posix-functions/swapcontext.texi.
45349         * doc/pastposix-functions/ualarm.texi: Renamed from
45350         doc/posix-functions/ualarm.texi.
45351         * doc/pastposix-functions/usleep.texi: Renamed from
45352         doc/posix-functions/usleep.texi.
45353         * doc/pastposix-functions/vfork.texi: Renamed from
45354         doc/posix-functions/vfork.texi.
45355         * doc/pastposix-functions/wcswcs.texi: Renamed from
45356         doc/posix-functions/wcswcs.texi.
45357         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
45358         (Function Substitutes): Update.
45359
45360 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45361
45362         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
45363         m4/strerror.m4.
45364
45365 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45366             Bruno Haible  <bruno@clisp.org>
45367
45368         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
45369
45370 2008-12-13  Bruno Haible  <bruno@clisp.org>
45371
45372         * modules/strtoull (Depends-on): Remove unistd.
45373
45374 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45375
45376         * modules/strtoull (Depends-on): Add stdlib.
45377
45378 2008-12-11  Simon Josefsson  <simon@josefsson.org>
45379
45380         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
45381
45382 2008-12-10  Jim Meyering  <meyering@redhat.com>
45383
45384         gl_ASSERT: don't say assertions are disabled when they're not
45385         * m4/assert.m4 (gl_ASSERT): Do not make configure report
45386         "checking whether to enable assertions... no", when they are in
45387         fact enabled.  This is solely a bug in the output of configure.
45388         In spite of saying "no", NDEBUG was not defined in that case.
45389         Also, as noted by Eric Blake, leave assertions enabled upon
45390         --enable-assert=INVALID.
45391
45392 2008-12-10  Bruno Haible  <bruno@clisp.org>
45393
45394         Change MODULES.html to refer to POSIX:2008 where possible.
45395         * MODULES.html.sh (POSIX2008_URL): New variable.
45396         (posix_headers): Remove sys/timeb, ucontext.
45397         (posix2001_headers): New variable.
45398         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
45399         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
45400         index, makecontext, mktemp, pthread_attr_getstackaddr,
45401         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
45402         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
45403         (posix2001_functions): New variable.
45404         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
45405         otherwise.
45406
45407 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45408
45409         add missing include to parse-duration.c
45410         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
45411         * modules/parse-duration (Depends-on): Add xalloc.
45412
45413         fix sed script reading maint.mk
45414         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
45415         (syntax-check-rules): Use it.
45416
45417 2008-12-09  Bruno Haible  <bruno@clisp.org>
45418
45419         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
45420         MacOS X 10.4/PowerPC.
45421         Reported by Simon Josefsson.
45422
45423 2008-12-08  Jim Meyering  <meyering@redhat.com>
45424
45425         work around mingw's lack of some S_IF definitions
45426         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
45427         Reported by Simon Josefsson.
45428
45429 2008-12-08  Bruno Haible  <bruno@clisp.org>
45430
45431         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
45432         applied to variables. Needed on MacOS X 10.4/PowerPC.
45433         Reported by Simon Josefsson.
45434
45435 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
45436         and Eric Blake  <ebb9@byu.net>
45437
45438         assert: honor --enable-assert
45439         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
45440         order to honor --enable-assert, rather than treating it as a
45441         synonym for --disable-assert.
45442
45443 2008-12-08  Jim Meyering  <meyering@redhat.com>
45444
45445         * lib/posixtm.c: Remove now-useless declaration of mktime.
45446
45447         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
45448
45449 2008-12-07  Bruno Haible  <bruno@clisp.org>
45450
45451         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
45452         test_once): Mark functions as static.
45453         * tests/test-tls.c (test_tls): Likewise.
45454
45455 2008-12-07  Bruno Haible  <bruno@clisp.org>
45456
45457         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
45458         iconv_register_autodetect.
45459
45460 2008-12-07  Jim Meyering  <meyering@redhat.com>
45461
45462         posixtm.c: avoid a warning
45463         * lib/posixtm.c (posixtime): Don't initialize tm0.
45464         It's no longer needed to placate gcc4's -Wuninitialized,
45465         and the attempt to placate would elicit a new warning.
45466
45467         unicodeio.c: mark unused parameters
45468         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45469         (fallback_failure_callback): Likewise.
45470
45471 2008-12-07  Bruno Haible  <bruno@clisp.org>
45472
45473         * gnulib-tool (func_create_testdir): When building the tests
45474         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
45475         Reported by Simon Josefsson.
45476
45477 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45478
45479         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
45480
45481 2008-12-06  Bruno Haible  <bruno@clisp.org>
45482
45483         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
45484         Suggested by Eric Blake.
45485
45486 2008-12-06  Bruno Haible  <bruno@clisp.org>
45487
45488         Fix a c-stack test failure on MacOS X.
45489         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
45490         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
45491         handler for SIGBUS as well.
45492         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
45493         install a signal handler for SIGBUS as well.
45494         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
45495
45496 2008-12-06  Bruno Haible  <bruno@clisp.org>
45497
45498         Advocacy documentation.
45499         * doc/gnulib-intro.texi (Benefits): New section.
45500         * doc/gnulib.texi: Update.
45501
45502 2008-12-06  Bruno Haible  <bruno@clisp.org>
45503
45504         Document the 'manywarnings' module.
45505         * doc/manywarnings.texi: New file.
45506         * doc/gnulib.texi: Include it.
45507
45508 2008-12-05  Eric Blake  <ebb9@byu.net>
45509
45510         tests: silence some gcc warnings
45511         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
45512         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
45513         type mismatches.
45514
45515 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45516             Bruno Haible  <bruno@clisp.org>
45517
45518         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
45519
45520 2008-11-29  Jim Meyering  <meyering@redhat.com>
45521
45522         unicodeio.c: mark unused parameters
45523         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45524         (fallback_failure_callback): Likewise.
45525
45526         fts: fix a thinko
45527         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
45528         (set_stat_type): Return S_IF*-valued "type" directly.
45529         Prompted by James Youngman's spotting a related bug.
45530         Confirmed by further testing through find.
45531
45532         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
45533         * lib/fts.c (D_TYPE): Define.
45534         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
45535         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
45536         (s_ifmt_shift_bits): New function.
45537         (set_stat_type): New function.
45538         (fts_build): When not calling fts_stat, call set_stat_type
45539         to propagate dirent.d_type info to fts_read caller.
45540         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
45541         fts_statp->st_mode type information may be valid.
45542
45543 2008-11-28  Simon Josefsson  <simon@josefsson.org>
45544
45545         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
45546         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
45547         <sds@gnu.org>.
45548
45549 2008-11-20  Bruno Haible  <bruno@clisp.org>
45550
45551         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
45552         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
45553         INCLUDE_NEXT.
45554         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
45555         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
45556         * modules/math (Makefile.am): Substitute
45557         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
45558         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45559
45560 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
45561             Bruno Haible  <bruno@clisp.org>
45562
45563         * lib/stdint.in.h: Define all type macros so that their expansion is
45564         a single typedef'ed token. Fixes a compilation failure in Boost which
45565         does "using ::int8_t;".
45566
45567 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45568
45569         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
45570         gl_MANYWARN_ALL_GCC.
45571         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
45572         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
45573         * modules/manywarnings: New file.
45574         * MODULES.html.sh: Mention manywarnings module.
45575
45576 2008-11-18  Bruno Haible  <bruno@clisp.org>
45577
45578         * doc/gnulib-tool.texi (Unit tests): New section.
45579
45580 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45581
45582         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
45583         paths like 'lib/po/foo.po'.
45584
45585 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45586
45587         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
45588         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
45589
45590 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45591
45592         * m4/warnings.m4: Use CPPFLAGS to really check whether the
45593         parameter works.
45594
45595 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45596
45597         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
45598
45599 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45600
45601         * modules/parse-duration-tests: New file.
45602         * tests/test-parse-duration.sh: New file.
45603         * tests/test-parse-duration.c: New file.
45604
45605         New module 'parse-duration'.
45606         * lib/parse-duration.h: New file.
45607         * lib/parse-duration.c: New file.
45608         * modules/parse-duration: New file.
45609
45610 2008-11-17  Bruno Haible  <bruno@clisp.org>
45611
45612         * tests/test-select-out.sh: Comment out the first pipe test.
45613         Reported by Simon Josefsson.
45614
45615 2008-11-17  Bruno Haible  <bruno@clisp.org>
45616
45617         * modules/getaddrinfo (Depends-on): Add servent, hostent.
45618         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
45619         gl_HOSTENT.
45620
45621 2008-11-17  Bruno Haible  <bruno@clisp.org>
45622
45623         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
45624         -lnetwork and -lnet. Needed for Haiku and BeOS.
45625
45626 2008-11-16  Bruno Haible  <bruno@clisp.org>
45627
45628         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
45629
45630 2008-11-16  Bruno Haible  <bruno@clisp.org>
45631
45632         Avoid test failure on Haiku.
45633         * tests/test-fsync.c: Include <errno.h>.
45634         (main): Don't require that fsync (0) fails.
45635
45636 2008-11-15  Bruno Haible  <bruno@clisp.org>
45637
45638         New module 'hostent'.
45639         * modules/hostent: New file.
45640         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
45641
45642 2008-11-15  Bruno Haible  <bruno@clisp.org>
45643
45644         New module 'servent'.
45645         * modules/servent: New file.
45646         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
45647
45648 2008-11-15  Bruno Haible  <bruno@clisp.org>
45649
45650         Avoid generating same test program with two different rules.
45651         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
45652         test-frexp to test-frexp-nolibm.
45653         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
45654         test-frexpl to test-frexpl-nolibm.
45655
45656 2008-11-15  Bruno Haible  <bruno@clisp.org>
45657
45658         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
45659         $(FREXPL_LIBM).
45660
45661 2008-11-15  Bruno Haible  <bruno@clisp.org>
45662
45663         * lib/netdb.in.h: Activate the definitions also when the system's
45664         <netdb.h> has 'struct addrinfo'.
45665         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
45666         EAI_OVERFLOW or AI_NUMERICSERV.
45667         * doc/posix-headers/netdb.texi: Document the problem.
45668
45669 2008-11-15  Bruno Haible  <bruno@clisp.org>
45670
45671         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
45672
45673         Make the 'sched' module work on platforms where <sched.h> exists but
45674         is incomplete (such as Haiku).
45675         * lib/sched.in.h; Include the system's <sched.h> if it exists.
45676         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
45677         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
45678         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
45679         HAVE_STRUCT_SCHED_PARAM.
45680         * modules/sched (Depends-on): Add include_next.
45681         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
45682         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
45683         * doc/posix-headers/sched.texi: Document the issue.
45684
45685 2008-11-13  Jim Meyering  <meyering@redhat.com>
45686
45687         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
45688         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
45689         test would fail due to the difference in the Report bugs to ...
45690         line.  The expected address is empty, "<>", while the actual
45691         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
45692
45693 2008-11-12  Bruno Haible  <bruno@clisp.org>
45694
45695         lstat: don't compile lstat.c on systems lacking lstat
45696         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
45697         which don't have lstat; this is handled by lib/sys_stat.in.h already.
45698         Reported by Daniel P. Berrange via Jim Meyering.
45699
45700 2008-11-12  Jim Meyering  <meyering@redhat.com>
45701
45702         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
45703
45704 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45705
45706         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
45707         instead.
45708
45709 2008-11-12  Bruno Haible  <bruno@clisp.org>
45710
45711         * lib/unicodeio.c: Include unistr.h.
45712         (utf8_wctomb): Remove function.
45713         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
45714
45715 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45716
45717         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
45718         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
45719         <bruno@clisp.org>.
45720         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
45721
45722 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45723
45724         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
45725         * doc/gnulib.texi: Add section for warnings.
45726
45727 2008-11-11  Bruno Haible  <bruno@clisp.org>
45728
45729         * lib/sockets.h: Add a comment.
45730
45731 2008-11-11  Karl Berry  <karl@gnu.org>
45732
45733         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
45734
45735 2008-11-11  Eric Blake  <ebb9@byu.net>
45736
45737         fdl.texi: avoid git symlinks
45738         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
45739
45740 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45741
45742         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
45743
45744 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45745
45746         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
45747         (gl_WARN_ADD): Substitute $2 if literal.
45748
45749 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45750
45751         * m4/warning.m4: Remove.
45752
45753 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45754
45755         * m4/warnings.m4: Almost complete rewrite. :-)
45756
45757 2008-11-10  Simon Josefsson  <simon@josefsson.org>
45758
45759         * modules/warnings: New module.
45760         * m4/warnings.m4: New file.
45761         * MODULES.html.sh: Mention warnings module.
45762         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
45763         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45764
45765 2008-11-10  Eric Blake  <ebb9@byu.net>
45766
45767         fdl.texi: make a symlink to the latest version
45768         * doc/standards.texi: Revert today's earlier change.
45769         * doc/fdl-1.2.texi: Rename from old fdl.texi...
45770         * doc/fdl.texi: ...and replace this with a symlink to the newer
45771         fdl-1.3.texi.
45772
45773 2008-11-10  Bruno Haible  <bruno@clisp.org>
45774
45775         * tests/test-select-fd.c (main): Accept the result file name as fourth
45776         argument.
45777         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
45778         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
45779
45780 2008-11-10  Bruno Haible  <bruno@clisp.org>
45781
45782         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
45783         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
45784         as autoconf-substituted macros.
45785         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
45786         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
45787         gl_NETDB_H_DEFAULTS. Set these variables.
45788         * modules/netdb (Makefile.am): Substitute these variables.
45789
45790 2008-11-10  Eric Blake  <ebb9@byu.net>
45791
45792         standards.texi: include correct file for FDL 1.3
45793         * doc/standards.texi (GNU Free Documentation License): Change
45794         include file to pull in FDL 1.3, not 1.2.
45795
45796         fdl.texi: revert accidental change to license
45797         * doc/fdl.texi: This is FDL 1.2, not 1.3.
45798
45799 2008-11-10  Bruno Haible  <bruno@clisp.org>
45800
45801         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
45802         cross-compiling guesses also when the native compile gives no result.
45803
45804 2008-11-10  Bruno Haible  <bruno@clisp.org>
45805
45806         * lib/spawni.c (__spawni): Force variable into the stack.
45807
45808 2008-11-10  Bruno Haible  <bruno@clisp.org>
45809
45810         Add support for Haiku.
45811         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
45812         glibc and BeOS, but also on Haiku.
45813         * lib/fpurge.c (fpurge): Likewise.
45814         * lib/freadable.c (freadable): Likewise.
45815         * lib/freadahead.c (freadahead): Likewise.
45816         * lib/freading.c (freading): Likewise.
45817         * lib/freadptr.c (freadptr): Likewise.
45818         * lib/freadseek.c (freadptrinc): Likewise.
45819         * lib/fseeko.c (rpl_fseeko): Likewise.
45820         * lib/fseterr.c (fseterr): Likewise.
45821         * lib/fwritable.c (fwritable): Likewise.
45822         * lib/fwriting.c (fwriting): Likewise.
45823         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
45824
45825 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45826
45827         * lib/config.charset: Treat Haiku like BeOS.
45828
45829 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45830
45831         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
45832         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
45833
45834 2008-11-08  Bruno Haible  <bruno@clisp.org>
45835
45836         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
45837         AC_CACHE_CHECK.
45838
45839 2008-11-08  Bruno Haible  <bruno@clisp.org>
45840
45841         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
45842
45843 2008-11-08  Bruno Haible  <bruno@clisp.org>
45844
45845         * tests/test-select-fd.c: New file.
45846         * tests/test-select-in.sh: New file.
45847         * tests/test-select-out.sh: New file.
45848         * tests/test-select-stdin.c: New file.
45849         * modules/select-tests (Files): Add the new files.
45850         (Depends-on): Add gettimeofday.
45851         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
45852         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
45853         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
45854
45855 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
45856             Bruno Haible  <bruno@clisp.org>
45857
45858         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
45859
45860 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
45861
45862         * build-aux/pmccabe2html: Added support for C++ source files.
45863
45864 2008-11-05  Ben Pfaff  <blp@gnu.org>
45865
45866         Fix lib/close.c build on Windows.
45867         * modules/close (Files): Add lib/w32sock.h.
45868
45869 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
45870
45871         Accept Bison's NEWS format.
45872         * build-aux/announce-gen (print_news_deltas): Tweak
45873         $re_prefix.
45874
45875 2008-11-04  Bruno Haible  <bruno@clisp.org>
45876
45877         * modules/random_r (Maintainer): Add glibc.
45878
45879 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45880
45881         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
45882         by karl@freefriends.org (Karl Berry).
45883         * doc/alloca.texi: Likewise.
45884         * doc/c-ctype.texi: Likewise.
45885         * doc/c-strcase.texi: Likewise.
45886         * doc/c-strcaseeq.texi: Likewise.
45887         * doc/c-strcasestr.texi: Likewise.
45888         * doc/c-strstr.texi: Likewise.
45889         * doc/c-strtod.texi: Likewise.
45890         * doc/c-strtold.texi: Likewise.
45891         * doc/ctime.texi: Likewise.
45892         * doc/error.texi: Likewise.
45893         * doc/fdl.texi: Likewise.
45894         * doc/gcd.texi: Likewise.
45895         * doc/getdate.texi: Likewise.
45896         * doc/gnulib-intro.texi: Likewise.
45897         * doc/gnulib-tool.texi: Likewise.
45898         * doc/gnulib.texi: Likewise.
45899         * doc/inet_ntoa.texi: Likewise.
45900         * doc/maintain.texi: Likewise.
45901         * doc/make-stds.texi: Likewise.
45902         * doc/quote.texi: Likewise.
45903         * doc/regexprops-generic.texi: Likewise.
45904         * doc/standards.texi: Likewise.
45905         * doc/verify.texi: Likewise.
45906         * doc/visibility.texi: Likewise.
45907         * doc/gnulib.texi (GNU Free Documentation License): Include
45908         fdl-1.3.texi instead of fdl.texi.
45909
45910 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45911
45912         * doc/fdl-1.3.texi: New file, from
45913         <http://www.gnu.org/licenses/fdl-1.3.texi>.
45914         * modules/fdl-1.3: Add.
45915         * MODULES.html.sh: Add fdl-1.3.
45916
45917 2008-11-03  Bruno Haible  <bruno@clisp.org>
45918
45919         Make determination of absolute name of header file work with AIX xlc.
45920         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
45921         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
45922         preprocessing.
45923         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45924         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
45925
45926 2008-11-03  Simon Josefsson  <simon@josefsson.org>
45927
45928         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
45929         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
45930         <ludo@gnu.org>.
45931
45932 2008-11-02  Bruno Haible  <bruno@clisp.org>
45933
45934         Mark 'strpbrk' obsolete.
45935         * modules/strpbrk (Status, Notice): New sections.
45936         * modules/strtok_r (Depends-on): Add strpbrk.
45937
45938 2008-11-02  Bruno Haible  <bruno@clisp.org>
45939
45940         Mark 'strdup' obsolete.
45941         * modules/strdup (Status, Notice): New sections.
45942         * modules/findprog (Depends-on): Add strdup.
45943         * modules/getaddrinfo (Depends-on): Likewise.
45944         * modules/localename (Depends-on): Likewise.
45945         * modules/relocatable-lib (Depends-on): Likewise.
45946         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
45947         * modules/relocatable-prog (Depends-on): Likewise.
45948         * modules/trim (Depends-on): Likewise.
45949         * modules/unictype/gen-ctype (Depends-on): Likewise.
45950         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45951
45952 2008-11-02  Bruno Haible  <bruno@clisp.org>
45953
45954         Mark 'strcspn' obsolete.
45955         * modules/strcspn (Status, Notice): New sections.
45956
45957 2008-11-02  Bruno Haible  <bruno@clisp.org>
45958
45959         Mark 'rmdir' obsolete.
45960         * modules/rmdir (Status, Notice): New sections.
45961         * modules/clean-temp (Depends-on): Add rmdir.
45962         * modules/openat (Depends-on): Likewise.
45963
45964 2008-11-02  Bruno Haible  <bruno@clisp.org>
45965
45966         Mark 'raise' obsolete.
45967         * modules/raise (Status, Notice): New sections.
45968         (Include): Specify <signal.h>.
45969         * modules/stdio (Depends-on): Add raise.
45970         * modules/write (Depends-on): Likewise.
45971
45972 2008-11-02  Bruno Haible  <bruno@clisp.org>
45973
45974         Mark 'memset' obsolete.
45975         * modules/memset (Status, Notice): New sections.
45976
45977 2008-11-02  Bruno Haible  <bruno@clisp.org>
45978
45979         Mark 'memmove' obsolete.
45980         * modules/memmove (Status, Notice): New sections.
45981         * modules/argp (Depends-on): Add memmove.
45982         * modules/argz (Depends-on): Likewise.
45983         * modules/canonicalize (Depends-on): Likewise.
45984         * modules/canonicalize-lgpl (Depends-on): Likewise.
45985         * modules/fts (Depends-on): Likewise.
45986         * modules/getcwd (Depends-on): Likewise.
45987         * modules/human (Depends-on): Likewise.
45988         * modules/regex (Depends-on): Likewise.
45989         * modules/striconveh (Depends-on): Likewise.
45990         * modules/trim (Depends-on): Likewise.
45991         * modules/unistr/u8-move (Depends-on): Likewise.
45992         * modules/unistr/u16-move (Depends-on): Likewise.
45993         * modules/unistr/u32-move (Depends-on): Likewise.
45994
45995 2008-11-02  Bruno Haible  <bruno@clisp.org>
45996
45997         Mark 'memcpy' obsolete.
45998         * modules/memcpy (Status, Notice): New sections.
45999
46000 2008-11-02  Bruno Haible  <bruno@clisp.org>
46001
46002         Mark 'memcmp' obsolete.
46003         * modules/memcmp (Status, Notice): New sections.
46004         * modules/argmatch (Depends-on): Add memchr.
46005         * modules/backupfile (Depends-on): Likewise.
46006         * modules/c-strcasestr (Depends-on): Likewise.
46007         * modules/crypto/des (Depends-on): Likewise.
46008         * modules/csharpcomp (Depends-on): Likewise.
46009         * modules/fnmatch (Depends-on): Likewise.
46010         * modules/git-merge-changelog (Depends-on): Likewise.
46011         * modules/isnand (Depends-on): Likewise.
46012         * modules/isnand-nolibm (Depends-on): Likewise.
46013         * modules/isnanf (Depends-on): Likewise.
46014         * modules/isnanf-nolibm (Depends-on): Likewise.
46015         * modules/isnanl (Depends-on): Likewise.
46016         * modules/isnanl-nolibm (Depends-on): Likewise.
46017         * modules/mbchar (Depends-on): Likewise.
46018         * modules/memcoll (Depends-on): Likewise.
46019         * modules/quotearg (Depends-on): Likewise.
46020         * modules/regex (Depends-on): Likewise.
46021         * modules/relocatable-prog (Depends-on): Likewise.
46022         * modules/same (Depends-on): Likewise.
46023         * modules/signbit (Depends-on): Likewise.
46024         * modules/strcasestr-simple (Depends-on): Likewise.
46025         * modules/unictype/gen-ctype (Depends-on): Likewise.
46026         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
46027         * modules/uniname/uniname (Depends-on): Likewise.
46028         * modules/unistr/u8-cmp (Depends-on): Likewise.
46029
46030 2008-11-02  Bruno Haible  <bruno@clisp.org>
46031
46032         Mark 'memchr' obsolete.
46033         * modules/memchr (Status, Notice): New sections.
46034         * modules/argp (Depends-on): Add memchr.
46035         * modules/base64 (Depends-on): Likewise.
46036         * modules/c-strcasestr (Depends-on): Likewise.
46037         * modules/chdir-long (Depends-on): Likewise.
46038         * modules/fnmatch (Depends-on): Likewise.
46039         * modules/getsubopt (Depends-on): Likewise.
46040         * modules/git-merge-changelog (Depends-on): Likewise.
46041         * modules/glob (Depends-on): Likewise.
46042         * modules/strcasestr-simple (Depends-on): Likewise.
46043         * modules/strnlen (Depends-on): Likewise.
46044
46045 2008-11-02  Bruno Haible  <bruno@clisp.org>
46046
46047         Mark 'atexit' obsolete.
46048         * modules/atexit (Status, Notice): New sections.
46049         * modules/chdir-long (Depends-on): Add atexit.
46050         * modules/wait-process (Depends-on): Likewise.
46051
46052 2008-11-02  Bruno Haible  <bruno@clisp.org>
46053
46054         * gnulib-tool: New option --with-obsolete.
46055         (func_usage): Document it.
46056         (func_modules_transitive_closure): Drop obsolete dependencies if
46057         incobsolete is not true.
46058         (func_import): Read and save the incobsolete variable to the cache.
46059
46060 2008-11-02  Bruno Haible  <bruno@clisp.org>
46061
46062         * modules/TEMPLATE-EXTENDED: New field 'Status'.
46063         * gnulib-tool: New option --extract-status.
46064         (func_usage): Document it.
46065         (sed_extract_prog): Recognize it.
46066         (func_get_status): New function.
46067
46068 2008-10-30  Simon Josefsson  <simon@josefsson.org>
46069
46070         * modules/sockets (License): Change from LGPL to LGPLv2+.
46071
46072 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46073
46074         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
46075
46076 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46077
46078         * MODULES.html.sh (Support for systems lacking POSIX:2001):
46079         Mention times and sys_times.
46080         * modules/sys_times, modules/sys_times-tests: New modules.
46081         * modules/times, modules/times-tests: Likewise
46082         * m4/sys_times_h.m4: New file.
46083         * lib/sys_times.in.h: Likewise
46084         * lib/times.c: Likewise.
46085         * tests/test-sys_times.c: Likewise.
46086         * tests/test-times.c: Likewise.
46087         * doc/posix-headers/sys_times.texi: Update.
46088         * doc/posix-functions/times.texi: Update.
46089
46090 2008-10-28  Jim Meyering  <meyering@redhat.com>
46091
46092         * modules/tempname (Depends-on): Add lstat.
46093
46094         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
46095
46096 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46097
46098         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
46099         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
46100         using idiom used elsewhere in gnulib.
46101
46102 2008-10-27  Jim Meyering  <meyering@redhat.com>
46103
46104         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
46105
46106 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46107
46108         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
46109         TESTS_ENVIRONMENT, for shell scripts that needs to call built
46110         programs.
46111         * tests/test-argp-2.sh: Use $EXEEXT when needed.
46112
46113 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46114
46115         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
46116
46117 2008-10-27  Bruno Haible  <bruno@clisp.org>
46118
46119         * tests/test-lstat.c: Include <stdio.h>.
46120
46121 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46122
46123         * modules/lstat-tests: New module.
46124         * tests/test-lstat.c: New file.
46125
46126 2008-10-26  Jim Meyering  <meyering@redhat.com>
46127
46128         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
46129
46130 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46131             Bruno Haible  <bruno@clisp.org>
46132
46133         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
46134         * modules/configmake (Include): Add a note that the include must come
46135         after all system headers.
46136         * lib/javaversion.c: Include configmake.h after all other includes.
46137
46138 2008-10-26  Bruno Haible  <bruno@clisp.org>
46139
46140         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
46141         HAVE_STRUCT_RANDOM_DATA to 1.
46142         (gl_STDLIB_H): Simplify.
46143
46144 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46145
46146         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
46147         substitute HAVE_STRUCT_RANDOM_DATA.
46148         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
46149         random_data.
46150         * modules/stdlib (Makefile.am): Substitute
46151         HAVE_STRUCT_RANDOM_DATA.
46152
46153 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46154
46155         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
46156         * doc/gnulib-intro.texi (Copyright): Likewise.
46157
46158 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46159
46160         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
46161         findings.
46162
46163 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
46164             Bruno Haible  <bruno@clisp.org>
46165
46166         * lib/unistd.in.h: Include <winsock2.h>.
46167         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
46168         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
46169         Provide dummy declarations.
46170         (gethostname): Override.
46171         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
46172         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
46173         gl_PREREQ_SYS_H_WINSOCK2.
46174         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
46175         * doc/posix-functions/gethostname.texi: More details.
46176
46177 2008-10-25  Bruno Haible  <bruno@clisp.org>
46178
46179         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46180         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
46181         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
46182
46183         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
46184         here ...
46185         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
46186         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
46187         gl_UNISTD_H_DEFAULTS.
46188
46189 2008-10-25  Eric Blake  <ebb9@byu.net>
46190
46191         signbit: avoid spurious compiler failure
46192         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
46193         declarations inside function.
46194
46195 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46196             Bruno Haible  <bruno@clisp.org>
46197
46198         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
46199         * modules/random_r (Depends-on): Add stdint.
46200
46201 2008-10-24  Bruno Haible  <bruno@clisp.org>
46202
46203         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
46204         Eggert.
46205         * modules/strerror (License): Likewise.
46206
46207 2008-10-24  Jim Meyering  <meyering@redhat.com>
46208
46209         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
46210         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
46211
46212 2008-10-24  Eric Blake  <ebb9@byu.net>
46213
46214         getgroups: fix compilation when getgroups is available
46215         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
46216         but with <config.h> override of getgroups disabled.
46217
46218 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46219
46220         * doc/gnulib.texi (Header files): Add note about C++ problems.
46221         Explained by Bruno Haible <bruno@clisp.org>.
46222
46223 2008-10-23  Bruno Haible  <bruno@clisp.org>
46224
46225         Define a dummy SA_NODEFER macro on Interix.
46226         * lib/signal.in.h (SA_NODEFER): Define fallback.
46227         Reported by Aleksey Cheusov <cheusov@tut.by> via
46228         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
46229
46230 2008-10-23  Bruno Haible  <bruno@clisp.org>
46231
46232         * modules/freadahead (License): Change to LGPLv2+.
46233         Suggested by Simon Josefsson.
46234
46235 2008-10-23  Jim Meyering  <meyering@redhat.com>
46236
46237         random_r: new module
46238         * modules/random_r: New file.
46239         * m4/random_r.m4: New file.
46240         * lib/random_r.c: New file, from glibc.
46241         * modules/random_r-tests: New file.
46242         * tests/test-random_r.c: New file.
46243         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
46244          Declare.
46245         (RAND_MAX): Define.
46246         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
46247         * modules/stdlib: Substitute them, too.
46248         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
46249         * doc/glibc-functions/initstate_r.texi: Mention the new module.
46250         * doc/glibc-functions/random_r.texi: Likewise.
46251         * doc/glibc-functions/setstate_r.texi: Likewise.
46252         * doc/glibc-functions/srandom_r.texi: Likewise.
46253         * config/srclist.txt: Mention it.
46254
46255 2008-10-23  David Lutterkort  <lutter@redhat.com>
46256
46257         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
46258         link requirement
46259
46260 2008-10-23  Jim Meyering  <meyering@redhat.com>
46261
46262         selinux-h: mark parameters of stub functions as intentionally unused
46263         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
46264         * lib/se-context.in.h: Likewise.
46265
46266 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46267
46268         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
46269
46270 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46271
46272         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
46273
46274 2008-10-22  Eric Blake  <ebb9@byu.net>
46275
46276         glthread/thread: avoid compiler warning
46277         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
46278         Add unreachable abort to silence compiler.
46279
46280 2008-10-22  Eric Blake  <ebb9@byu.net>
46281
46282         netdb: also supply struct addrinfo for cygwin 1.5.x
46283         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
46284         older cygwin.
46285         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
46286         cygwin.
46287         * doc/posix-headers/netdb.texi (netdb.h): Document this.
46288
46289 2008-10-22  Bruno Haible  <bruno@clisp.org>
46290
46291         * users.txt: Update entry about pspp.
46292
46293 2008-10-21  Bruno Haible  <bruno@clisp.org>
46294
46295         Simplification.
46296         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
46297         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
46298
46299         Simplification.
46300         * lib/ioctl.c (ioctl): Don't undefine.
46301         * lib/socket.c (socket): Don't undefine.
46302
46303         Remove unused module indicator macros.
46304         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
46305         GNULIB_$1 as a C macro.
46306
46307         * doc/posix-functions/close.texi: Undo last change.
46308         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
46309         Windows platforms.
46310
46311 2008-10-21  Bruno Haible  <bruno@clisp.org>
46312
46313         Add gethostname() declaration to <unistd.h>.
46314         * lib/unistd.in.h (gethostname): New declaration.
46315         * lib/gethostname.c: Include <unistd.h>.
46316         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
46317         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
46318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
46319         and HAVE_GETHOSTNAME.
46320         * modules/gethostname (Depends-on): Add unistd.
46321         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46322         (Include): Specify <unistd.h>.
46323         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
46324         HAVE_GETHOSTNAME.
46325         * tests/test-gethostname.c: Include <unistd.h> first.
46326
46327 2008-10-21  Bruno Haible  <bruno@clisp.org>
46328
46329         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
46330         * modules/select-tests (Depends-on): Likewise.
46331         Reported by Simon Josefsson.
46332
46333 2008-10-21  Simon Josefsson  <simon@josefsson.org>
46334
46335         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
46336         * lib/accept.c: New file, based on winsock.c.
46337         * lib/bind.c: New file, based on winsock.c.
46338         * lib/connect.c: New file, based on winsock.c.
46339         * lib/getpeername.c: New file, based on winsock.c.
46340         * lib/getsockname.c: New file, based on winsock.c.
46341         * lib/getsockopt.c: New file, based on winsock.c.
46342         * lib/ioctl.c: New file, based on winsock.c.
46343         * lib/listen.c: New file, based on winsock.c.
46344         * lib/recv.c: New file, based on winsock.c.
46345         * lib/recvfrom.c: New file, based on winsock.c.
46346         * lib/send.c: New file, based on winsock.c.
46347         * lib/sendto.c: New file, based on winsock.c.
46348         * lib/setsockopt.c: New file, based on winsock.c.
46349         * lib/shutdown.c: New file, based on winsock.c.
46350         * lib/socket.c: New file, based on winsock.c.
46351         * lib/w32sock.h: New file, based on winsock.c.
46352         * lib/winsock.c: Remove file.
46353         * modules/accept: Likewise.
46354         * modules/bind: Likewise.
46355         * modules/connect: Likewise.
46356         * modules/getpeername: Likewise.
46357         * modules/getsockname: Likewise.
46358         * modules/getsockopt: Likewise.
46359         * modules/ioctl: Likewise.
46360         * modules/listen: Likewise.
46361         * modules/recv: Likewise.
46362         * modules/recvfrom: Likewise.
46363         * modules/send: Likewise.
46364         * modules/sendto: Likewise.
46365         * modules/setsockopt: Likewise.
46366         * modules/shutdown: Likewise.
46367         * modules/socket: Use socket.c instead of winsock.c.
46368         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
46369         * doc/posix-functions/accept.texi: Doc fix.
46370         * doc/posix-functions/bind.texi: Doc fix.
46371         * doc/posix-functions/close.texi: Doc fix.
46372         * doc/posix-functions/connect.texi: Doc fix.
46373         * doc/posix-functions/getpeername.texi: Doc fix.
46374         * doc/posix-functions/getsockname.texi: Doc fix.
46375         * doc/posix-functions/getsockopt.texi: Doc fix.
46376         * doc/posix-functions/ioctl.texi: Doc fix.
46377         * doc/posix-functions/listen.texi: Doc fix.
46378         * doc/posix-functions/recv.texi: Doc fix.
46379         * doc/posix-functions/recvfrom.texi: Doc fix.
46380         * doc/posix-functions/send.texi: Doc fix.
46381         * doc/posix-functions/sendto.texi: Doc fix.
46382         * doc/posix-functions/setsockopt.texi: Doc fix.
46383         * doc/posix-functions/shutdown.texi: Doc fix.
46384         * doc/posix-functions/socket.texi: Doc fix.
46385
46386 2008-10-20  Bruno Haible  <bruno@clisp.org>
46387
46388         Take into account the role of SIGABRT_COMPAT on Windows 2008.
46389         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
46390         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
46391         as an alias for SIGABRT.
46392         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
46393         (sigaction): Map it to SIGABRT.
46394         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
46395
46396 2008-10-20  Bruno Haible  <bruno@clisp.org>
46397
46398         * lib/fts.c: Don't include lstat.h.
46399         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
46400
46401         Move the lstat() declaration to <sys/stat.h>.
46402         * lib/lstat.h: Remove file.
46403         * lib/sys_stat.in.h: Add special invocation convention.
46404         (lstat): New declaration.
46405         * lib/lstat.c (orig_lstat): New function.
46406         (rpl_lstat): Use orig_lstat instead of lstat.
46407         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
46408         AC_C_INLINE. Set REPLACE_LSTAT.
46409         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
46410         and REPLACE_LSTAT.
46411         * modules/lstat (Files): Remove lib/lstat.h.
46412         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46413         (Include): Specify <sys/stat.h> instead of lstat.h.
46414         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
46415         REPLACE_LSTAT.
46416         * NEWS: Mention the change.
46417
46418 2008-10-20  Bruno Haible  <bruno@clisp.org>
46419
46420         * modules/posix_spawn-tests: New file.
46421         * tests/test-posix_spawn3.c: New file.
46422
46423 2008-10-20  Bruno Haible  <bruno@clisp.org>
46424
46425         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
46426         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46427         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
46428         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46429         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
46430
46431 2008-10-20  Bruno Haible  <bruno@clisp.org>
46432
46433         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
46434         of posix_spawn on AIX 5.3.
46435
46436 2008-10-20  Bruno Haible  <bruno@clisp.org>
46437
46438         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
46439
46440 2008-10-20  Bruno Haible  <bruno@clisp.org>
46441
46442         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
46443         of AC_LANG_PROGRAM.
46444
46445 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46446
46447         * lib/netdb.in.h: Don't define GNU specific constants until they
46448         are supported or needed.  Reported by Bruno Haible
46449         <bruno@clisp.org>.
46450
46451 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46452
46453         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
46454
46455 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46456
46457         * lib/getaddrinfo.h: Remove file.
46458         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
46459         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
46460         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
46461         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
46462         * modules/netdb: Substitute GNULIB_GETADDRINFO.
46463         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
46464         * tests/test-getaddrinfo.c: Likewise.
46465         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
46466         * NEWS: Mention change.
46467
46468 2008-10-19  Bruno Haible  <bruno@clisp.org>
46469
46470         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
46471
46472 2008-10-19  Bruno Haible  <bruno@clisp.org>
46473
46474         * lib/wait-process.c: Include simply <sys/wait.h>.
46475         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
46476         WIFSTOPPED): Remove fallback definitions.
46477         * modules/wait-process (Depends-on): Add sys_wait.
46478
46479         New module 'sys_wait'.
46480         * modules/sys_wait: New file.
46481         * lib/sys_wait.in.h: New file, partially copied from
46482         lib/wait-process.c.
46483         * m4/sys_wait_h.m4: New file.
46484         * doc/posix-headers/sys_wait.texi: Mention the new module.
46485
46486 2008-10-19  Bruno Haible  <bruno@clisp.org>
46487
46488         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
46489
46490 2008-10-19  Bruno Haible  <bruno@clisp.org>
46491
46492         Assume that waitpid() fills an 'int' status, not a 'union wait'.
46493         * lib/wait-process.c (WAIT_T): Remove type.
46494         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
46495         (wait_subprocess): Update.
46496
46497 2008-10-19  Bruno Haible  <bruno@clisp.org>
46498
46499         New module 'atoll'.
46500         * modules/atoll: New file.
46501         * lib/stdlib.in.h (atoll): New declaration.
46502         * lib/atoll.c: New file, from glibc with modifications.
46503         * m4/atoll.m4: New file.
46504         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
46505         HAVE_ATOLL.
46506         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
46507         * doc/posix-functions/atoll.texi: Mention the new module.
46508
46509 2008-10-19  Bruno Haible  <bruno@clisp.org>
46510
46511         Add strtoull() declaration to <stdlib.h>.
46512         * lib/stdlib.in.h (strtoull): New declaration.
46513         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46514         Set HAVE_STRTOULL.
46515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
46516         HAVE_STRTOULL.
46517         * modules/strtoull (Depends-on): Add stdlib.
46518         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46519         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
46520         HAVE_STRTOULL.
46521
46522 2008-10-19  Bruno Haible  <bruno@clisp.org>
46523
46524         Add strtoll() declaration to <stdlib.h>.
46525         * lib/stdlib.in.h (strtoll): New declaration.
46526         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46527         Set HAVE_STRTOLL.
46528         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
46529         HAVE_STRTOLL.
46530         * modules/strtoll (Depends-on): Add stdlib.
46531         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46532         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
46533
46534 2008-10-19  Bruno Haible  <bruno@clisp.org>
46535
46536         * modules/bcopy (Depends-on): Add strings.
46537         (Include): Specify <strings.h>.
46538
46539 2008-10-19  Bruno Haible  <bruno@clisp.org>
46540
46541         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
46542
46543 2008-10-19  Bruno Haible  <bruno@clisp.org>
46544
46545         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
46546         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
46547         mingw.
46548
46549 2008-10-19  Bruno Haible  <bruno@clisp.org>
46550
46551         * lib/atanl.c: Don't include isnanl.h.
46552         * lib/cosl.c: Likewise.
46553         * lib/ldexpl.c: Likewise.
46554         * lib/logl.c: Likewise.
46555         * lib/sinl.c: Likewise.
46556         * lib/sqrtl.c: Likewise.
46557         * lib/tanl.c: Likewise.
46558
46559         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
46560         * lib/isnanf.h: Remove file.
46561         * lib/isnand.h: Remove file.
46562         * lib/isnanl.h: Remove file.
46563         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
46564         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
46565         macros.
46566         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
46567         HAVE_ISNANF, don't define it as a C macro.
46568         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
46569         HAVE_ISNAND, don't define it as a C macro.
46570         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
46571         HAVE_ISNANL, don't define it as a C macro.
46572         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
46573         HAVE_ISNAN[FDL].
46574         * modules/isnanf (Files): Remove lib/isnanf.h.
46575         (Depends-on): Add math.
46576         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46577         (Include): Specify <math.h> instead of isnanf.h.
46578         * modules/isnand (Files): Remove lib/isnand.h.
46579         (Depends-on): Add math.
46580         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46581         (Include): Specify <math.h> instead of isnand.h.
46582         * modules/isnanl (Files): Remove lib/isnanl.h.
46583         (Depends-on): Add math.
46584         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46585         (Include): Specify <math.h> instead of isnanl.h.
46586         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
46587         HAVE_ISNAN[FDL].
46588         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
46589         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
46590         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
46591         * NEWS: Mention the change.
46592
46593 2008-10-18  Bruno Haible  <bruno@clisp.org>
46594
46595         Add getusershell(), setusershell(), endusershell() declarations to
46596         <unistd.h>.
46597         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
46598         declarations.
46599         * lib/getusershell.c: Include unistd.h.
46600         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
46601         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46602         HAVE_GETUSERSHELL.
46603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
46604         and HAVE_GETUSERSHELL.
46605         * modules/getusershell (Depends-on): Add unistd, extensions.
46606         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46607         (Include): Specify <unistd.h>.
46608         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
46609         HAVE_GETUSERSHELL.
46610
46611 2008-10-18  Bruno Haible  <bruno@clisp.org>
46612
46613         Add a getloadavg() declaration to <stdlib.h>.
46614         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
46615         getloadavg declaration.
46616         (getloadavg): New declaration.
46617         * lib/getloadavg.c: Include <stdlib.h> first.
46618         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
46619         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
46620         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
46621         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
46622         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46623         * modules/getloadavg (Depends-on): Add stdlib, extensions.
46624         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46625         (Include): Specify <stdlib.h>.
46626         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
46627         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46628
46629 2008-10-18  Bruno Haible  <bruno@clisp.org>
46630
46631         * lib/dirchownmod.c: Don't include lchmod.h.
46632
46633         Move the lchmod() declaration to <sys/stat.h>.
46634         * lib/lchmod.h: Remove file.
46635         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
46636         (lchmod): New declaration, moved here from lib/lchown.h.
46637         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
46638         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
46639         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
46640         and HAVE_LCHMOD.
46641         * modules/lchmod (Files): Remove lib/lchmod.h.
46642         (Depends-on): Add sys_stat, extensions.
46643         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46644         (Include): Specify <sys/stat.h> instead of lchmod.h.
46645         * modules/sys_stat (Depends-on): Add link-warning.
46646         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
46647         definition of GL_LINK_WARNING.
46648         * NEWS: Mention the change.
46649
46650 2008-10-18  Bruno Haible  <bruno@clisp.org>
46651
46652         * lib/fchdir.c: Don't include dirfd.h.
46653         * lib/fts.c: Likewise.
46654         * lib/getcwd.c: Likewise.
46655         * lib/glob.c: Likewise.
46656
46657         Move the dirfd() declaration to <dirent.h>.
46658         * lib/dirfd.h: Remove file.
46659         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
46660         (dirfd): New declaration.
46661         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
46662         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
46663         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
46664         HAVE_DECL_DIRFD.
46665         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
46666         HAVE_DECL_DIRFD.
46667         * modules/dirfd (Files): Remove lib/dirfd.h.
46668         (Depends-on): Add dirent, extensions.
46669         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
46670         (Include): Specify <dirent.h> instead of dirfd.h.
46671         * modules/dirent (Depends-on): Add link-warning.
46672         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
46673         definition of GL_LINK_WARNING.
46674         * NEWS: Mention the change.
46675
46676 2008-10-18  Bruno Haible  <bruno@clisp.org>
46677
46678         Move the euidaccess() declaration to <unistd.h>.
46679         * lib/euidaccess.h: Remove file.
46680         * lib/unistd.in.h (euidaccess): New declaration.
46681         * lib/euidaccess.c: Don't include euidaccess.h.
46682         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
46683         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
46684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
46685         and HAVE_EUIDACCESS.
46686         * modules/euidaccess (Files): Remove lib/euidaccess.h.
46687         (Depends-on): Add unistd.
46688         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46689         (Include): Specify <unistd.h> instead of euidaccess.h.
46690         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
46691         HAVE_EUIDACCESS.
46692         * NEWS: Mention the change.
46693
46694 2008-10-18  Bruno Haible  <bruno@clisp.org>
46695
46696         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
46697
46698         Move the getdomainname() declaration to <unistd.h>.
46699         * lib/getdomainname.h: Remove file.
46700         * lib/unistd.in.h (getdomainname): New declaration.
46701         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
46702         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
46703         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46704         HAVE_GETDOMAINNAME.
46705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46706         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
46707         * modules/getdomainname (Files): Remove lib/getdomainname.h.
46708         (Depends-on): Add unistd, extensions.
46709         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46710         (Includes): Specify <unistd.h> instead of getdomainname.h.
46711         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
46712         HAVE_GETDOMAINNAME.
46713         * NEWS: Mention the change.
46714
46715 2008-10-18  Bruno Haible  <bruno@clisp.org>
46716
46717         * modules/dirent: New file.
46718         * m4/dirent_h.m4: New file.
46719         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
46720         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
46721         * modules/fchdir (Files): Remove lib/dirent.in.h.
46722         (Depends-on): Add dirent.
46723         (Makefile.am): Move rules to modules/dirent.
46724         * doc/posix-headers/dirent.texi: Mention the new module.
46725
46726 2008-10-18  Bruno Haible  <bruno@clisp.org>
46727
46728         Avoid -Wunused-parameter warnings in public gnulib header files.
46729         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
46730         macro.
46731         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
46732
46733 2008-10-18  Bruno Haible  <bruno@clisp.org>
46734
46735         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
46736         * doc/glibc-functions/error.texi: Mention the module 'error'.
46737         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
46738         * doc/glibc-functions/getdomainname.texi: Mention the module
46739         'getdomainname'.
46740         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
46741         * doc/glibc-functions/getpagesize.texi: Mention the module
46742         'getpagesize'.
46743         * doc/glibc-functions/getusershell.texi: Mention the module
46744         'getusershell'.
46745         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
46746         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
46747         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
46748         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
46749         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
46750         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
46751         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
46752         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
46753         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
46754         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
46755         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
46756         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
46757         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
46758         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
46759
46760 2008-10-17  Bruno Haible  <bruno@clisp.org>
46761
46762         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
46763         HP-UX and IRIX, use -0.0L.
46764         * tests/test-ceill.c (minus_zero): Likewise.
46765         * tests/test-floorl.c (minus_zero): Likewise.
46766         * tests/test-frexpl.c (minus_zero): Likewise.
46767         * tests/test-isnan.c (minus_zerol): Likewise.
46768         * tests/test-isnanl.h (minus_zero): Likewise.
46769         * tests/test-ldexpl.c (minus_zero): Likewise.
46770         * tests/test-roundl.c (minus_zero): Likewise.
46771         * tests/test-signbit.c (minus_zerol): Likewise.
46772         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
46773         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
46774         * tests/test-truncl.c (minus_zero): Likewise.
46775         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
46776         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
46777         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
46778         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
46779
46780 2008-10-17  Bruno Haible  <bruno@clisp.org>
46781
46782         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
46783         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
46784         that it gets activated only for gcc >= 3.0.
46785         * lib/dirent.in.h: Likewise.
46786         * lib/errno.in.h: Likewise.
46787         * lib/fcntl.in.h: Likewise.
46788         * lib/float.in.h: Likewise.
46789         * lib/iconv.in.h: Likewise.
46790         * lib/inttypes.in.h: Likewise.
46791         * lib/locale.in.h: Likewise.
46792         * lib/math.in.h: Likewise.
46793         * lib/netdb.in.h: Likewise.
46794         * lib/netinet_in.in.h: Likewise.
46795         * lib/search.in.h: Likewise.
46796         * lib/signal.in.h: Likewise.
46797         * lib/spawn.in.h: Likewise.
46798         * lib/stdarg.in.h: Likewise.
46799         * lib/stdint.in.h: Likewise.
46800         * lib/stdio.in.h: Likewise.
46801         * lib/stdlib.in.h: Likewise.
46802         * lib/string.in.h: Likewise.
46803         * lib/strings.in.h: Likewise.
46804         * lib/sys_file.in.h: Likewise.
46805         * lib/sys_ioctl.in.h: Likewise.
46806         * lib/sys_select.in.h: Likewise.
46807         * lib/sys_socket.in.h: Likewise.
46808         * lib/sys_stat.in.h: Likewise.
46809         * lib/sys_time.in.h: Likewise.
46810         * lib/sysexits.in.h: Likewise.
46811         * lib/time.in.h: Likewise.
46812         * lib/unistd.in.h: Likewise.
46813         * lib/wchar.in.h: Likewise.
46814         * lib/wctype.in.h: Likewise.
46815         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46816
46817 2008-10-17  Jim Meyering  <meyering@redhat.com>
46818
46819         ignore-value: don't depend on inline module
46820         * modules/ignore-value (Depends-on): Remove 'inline'.
46821         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
46822         Suggestion from Bruno Haible.
46823
46824 2008-10-17  Bruno Haible  <bruno@clisp.org>
46825
46826         New implementation of condition variables for Win32.
46827         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
46828         (gl_linked_waitqueue_t): New type.
46829         (gl_cond_t): Use it.
46830         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
46831         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
46832         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
46833         (glthread_cond_init_func, glthread_cond_wait_func,
46834         glthread_cond_timedwait_func, glthread_cond_signal_func,
46835         glthread_cond_broadcast_func, glthread_cond_destroy_func):
46836         Reimplemented on the basis of gl_linked_waitqueue_t.
46837         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
46838         gl_waitqueue_t.
46839         (gl_rwlock_t): Update.
46840         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
46841
46842 2008-10-17  Simon Josefsson  <simon@josefsson.org>
46843
46844         * modules/recvfrom (Depends-on): Add dependency on getpeername.
46845         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46846
46847 2008-10-17  Jim Meyering  <meyering@redhat.com>
46848
46849         ignore-value: new module
46850         * modules/ignore-value: New file.
46851         * lib/ignore-value.h: New file.
46852         * MODULES.html.sh (Compiler warning management): New section,
46853         just for this module.  More to come.
46854
46855 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46856
46857         open-safer.c: avoid 'signed and unsigned in conditional...' warning
46858         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
46859         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
46860
46861 2008-10-16  Jim Meyering  <meyering@redhat.com>
46862
46863         openat-die.c: avoid 'no previous prototype' warning
46864         * lib/openat-die.c: Include "openat.h".
46865         Reported by Reuben Thomas <rrt@sc3d.org>.
46866
46867 2008-10-16  Simon Josefsson  <simon@josefsson.org>
46868
46869         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
46870         * lib/netdb.in.h: Fix typo.
46871         Reported by Bruno Haible  <bruno@clisp.org>
46872
46873         * lib/netdb.in.h: Include sys/socket.h for platforms without
46874         netdb.h, to get structures like hostent on MinGW.
46875         * modules/netdb (Depends-on): Add sys_socket.
46876
46877 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46878
46879         * modules/netdb, modules/netdb-tests: New file.
46880         * m4/netdb_h.m4: New file.
46881         * lib/netdb.in.h: Add, currently just an empty file pending
46882         definitions.
46883         * tests/test-netdb.c: New file.
46884         * doc/posix-headers/netdb.texi: Mention that we replace it if
46885         needed.
46886         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46887         netdb.
46888
46889 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46890
46891         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
46892         with code.
46893
46894 2008-10-13  Bruno Haible  <bruno@clisp.org>
46895
46896         * lib/glthread/cond.c (glthread_cond_wait_func,
46897         glthread_cond_timedwait_func): Add a comment.
46898
46899 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46900
46901         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
46902         * tests/test-select.c: Likewise,
46903
46904 2008-10-13  Bruno Haible  <bruno@clisp.org>
46905
46906         * lib/glthread/cond.c (glthread_cond_wait_func,
46907         glthread_cond_timedwait_func): Fix variable name.
46908         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46909
46910 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
46911
46912         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
46913         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
46914         struct sockaddr.sa_len.
46915         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
46916
46917 2008-10-13  Simon Josefsson  <simon@josefsson.org>
46918
46919         * build-aux/pmccabe2html: Add css and css_url parameters.
46920
46921 2008-10-12  Bruno Haible  <bruno@clisp.org>
46922
46923         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
46924         calling aclx_get.
46925         Reported by Rainer Tammer <tammer@tammer.net>.
46926
46927 2008-10-12  Bruno Haible  <bruno@clisp.org>
46928
46929         Use msvcrt aware primitives for creation/termination of Win32 threads.
46930         * lib/glthread/thread.c: Include <process.h>.
46931         (glthread_create_func): Use _beginthreadex instead of CreateThread.
46932         (wrapper_func): Update signature.
46933         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
46934
46935 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46936             Bruno Haible  <bruno@clisp.org>
46937
46938         Provide a Win32 implementation of the 'cond' module.
46939         * lib/glthread/cond.h [USE_WIN32]: New implementation.
46940         * lib/glthread/cond.c (glthread_cond_init_func,
46941         glthread_cond_wait_func, glthread_cond_timedwait_func,
46942         glthread_cond_signal_func, glthread_cond_broadcast_func,
46943         glthread_cond_destroy_func) [USE_WIN32]: New functions.
46944         * modules/cond (Dependencies): Add gettimeofday.
46945
46946 2008-10-11  Bruno Haible  <bruno@clisp.org>
46947
46948         Make sleep work on older versions of mingw.
46949         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
46950         only whether it exists.
46951         * doc/posix-functions/sleep.texi: Mention the problem with older
46952         versions of mingw.
46953
46954 2008-10-11  Bruno Haible  <bruno@clisp.org>
46955
46956         New module 'shutdown'.
46957         * modules/shutdown: New file.
46958         * lib/sys_socket.in.h (shutdown): New declaration.
46959         * lib/winsock.c (shutdown): New function.
46960         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46961         GNULIB_SHUTDOWN.
46962         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
46963         * doc/posix-functions/shutdown.texi: Document the new module.
46964
46965 2008-10-11  Jim Meyering  <meyering@redhat.com>
46966
46967         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
46968
46969 2008-10-11  Bruno Haible  <bruno@clisp.org>
46970
46971         New module 'fclose'.
46972         * modules/fclose: New file.
46973         * lib/stdio.in.h (fclose): New declaration.
46974         * lib/fclose.c: New file.
46975         * m4/fclose.m4: New file.
46976         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
46977         REPLACE_FCLOSE.
46978         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
46979         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
46980         REPLACE_FCLOSE.
46981         * modules/close (Depends-on): fclose.
46982         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
46983
46984 2008-10-11  Bruno Haible  <bruno@clisp.org>
46985
46986         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
46987         set errno and don't call _close.
46988
46989 2008-10-10  Bruno Haible  <bruno@clisp.org>
46990
46991         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
46992         ACL, not afterwards. Fixes test failure on Cygwin.
46993
46994 2008-10-09  Ben Pfaff  <blp@gnu.org>
46995
46996         * build-aux/announce-gen: Fix gnulib version related part of usage
46997         message.  Die with a useful error message if no tarballs are
46998         found.
46999
47000 2008-10-10  Jim Meyering  <meyering@redhat.com>
47001
47002         bootstrap: use git's --depth=N option only if it's supported
47003         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
47004         recognize the --depth option.  Reported by Pádraig Brady.
47005
47006 2008-10-09  Bruno Haible  <bruno@clisp.org>
47007
47008         New module 'ioctl'.
47009         * modules/ioctl: New file.
47010         * lib/sys_socket.in.h (ioctl): Remove declaration.
47011         * lib/winsock.c: Include <sys/ioctl.h>.
47012         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
47013         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
47014         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
47015         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
47016         * doc/posix-functions/ioctl.texi: Mention the new module.
47017
47018 2008-10-09  Bruno Haible  <bruno@clisp.org>
47019
47020         New module 'sys_ioctl'.
47021         * lib/sys_ioctl.in.h: New file.
47022         * m4/sys_ioctl_h.m4: New file.
47023         * modules/sys_ioctl: New file.
47024         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
47025
47026 2008-10-09  Bruno Haible  <bruno@clisp.org>
47027
47028         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
47029         * lib/winsock.c: Include <stdarg.h>.
47030         (rpl_ioctl): Change to second argument 'int' and then varargs.
47031
47032 2008-10-09  Bruno Haible  <bruno@clisp.org>
47033
47034         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
47035         when the sys_socket module is present and the system has <winsock2.h>.
47036
47037 2008-10-09  Bruno Haible  <bruno@clisp.org>
47038
47039         * doc/posix-functions/close.texi: Mention module 'close' instead of
47040         module 'sys_socket'.
47041
47042 2008-10-09  Bruno Haible  <bruno@clisp.org>
47043
47044         * doc/glibc-headers/sys_ioctl.texi: New file.
47045         * doc/gnulib.texi: Include it.
47046
47047 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47048             Bruno Haible  <bruno@clisp.org>
47049
47050         Combine the two replacements of 'close'.
47051         * lib/sys_socket.in.h (close): Define to a reminder to include
47052         <unistd.h>.
47053         (_gl_close_fd_maybe_socket): New declaration.
47054         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
47055         * lib/winsock.c (close): Remove undefinition.
47056         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
47057         needed for the gnulib module 'close'.
47058         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
47059         define to an error symbol or to a warning, if suitable.
47060         * lib/close.c: Include <sys/socket.h>.
47061         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
47062         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
47063         UNISTD_H_HAVE_WINSOCK2_H.
47064         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
47065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47066         UNISTD_H_HAVE_WINSOCK2_H.
47067         * modules/sys_socket (Files): Add m4/unistd_h.m4.
47068         (configure.ac): Set a module indicator.
47069         (Makefile.am): Substitute GNULIB_CLOSE.
47070         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
47071         * modules/poll-tests (Depends-on): Add close.
47072         * modules/select-tests (Depends-on): Likewise.
47073
47074 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47075             Bruno Haible  <bruno@clisp.org>
47076
47077         New module 'close'.
47078         * modules/close: New file.
47079         * lib/unistd.in.h (close): Move declaration out of the
47080         FCHDIR_REPLACEMENT scope.
47081         (_gl_unregister_fd): New declaration.
47082         * lib/close.c: New file.
47083         * lib/fchdir.c (rpl_close): Remove function.
47084         * m4/close.m4: New file.
47085         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47086         close.
47087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
47088         REPLACE_CLOSE.
47089         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
47090         REPLACE_CLOSE.
47091         * modules/fchdir (Depends-on): Add close.
47092
47093 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47094             Bruno Haible  <bruno@clisp.org>
47095
47096         * lib/fcntl.in.h (open): Simplify conditionals.
47097         (_gl_register_fd): New declaration.
47098         * lib/fchdir.c (rpl_open): Remove function.
47099         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
47100         also.
47101         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
47102         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47103         open.
47104
47105 2008-10-09  Jim Meyering  <meyering@redhat.com>
47106
47107         GNUmakefile: use the more name-space-friendly "_version"
47108         * top/GNUmakefile (_dummy): Update.
47109         (_version): Rename from "version".
47110
47111 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47112             Bruno Haible  <bruno@clisp.org>
47113
47114         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
47115         rpl_close.
47116         (_gl_register_fd): New function, extracted from rpl_open.
47117         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
47118         (rpl_open, rpl_opendir): Use _gl_register_fd.
47119
47120 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47121
47122         Fix organization of 'open' replacement.
47123         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
47124         (gl_FUNC_OPEN): Use it.
47125         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
47126
47127 2008-10-08  Bruno Haible  <bruno@clisp.org>
47128
47129         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
47130
47131 2008-10-08  Simon Josefsson  <simon@josefsson.org>
47132
47133         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
47134         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
47135         listen).
47136
47137 2008-10-08  Eric Blake  <ebb9@byu.net>
47138
47139         GNUmakefile: add 'make version' target
47140         * top/GNUmakefile (_curr-ver): Split version update rules...
47141         (version): ...into a target.
47142
47143 2008-10-07  Bruno Haible  <bruno@clisp.org>
47144
47145         Use a more portable replacement expression for -0.0L.
47146         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
47147         instead of -0.0L. Fix m4 quotation.
47148
47149         * tests/test-signbit.c: Include <float.h>.
47150         (minus_zero): New variable.
47151         (test_signbitl): Use minus_zero instead of -zero.
47152         * modules/signbit-tests (Depends-on): Add float.
47153
47154         * tests/test-ceill.c: Include <float.h>.
47155         (zero): Remove variable.
47156         (minus_zero): New variable.
47157         (main): Use minus_zero instead of -zero.
47158         * modules/ceill-tests (Depends-on): Add float.
47159
47160         * tests/test-floorl.c: Include <float.h>.
47161         (zero): Remove variable.
47162         (minus_zero): New variable.
47163         (main): Use minus_zero instead of -zero.
47164         * modules/floorl-tests (Depends-on): Add float.
47165
47166         * tests/test-roundl.c: Include <float.h>.
47167         (zero): Remove variable.
47168         (minus_zero): New variable.
47169         (main): Use minus_zero instead of -zero.
47170         * modules/roundl-tests (Depends-on): Add float.
47171
47172         * tests/test-truncl.c: Include <float.h>.
47173         (zero): Remove variable.
47174         (minus_zero): New variable.
47175         (main): Use minus_zero instead of -zero.
47176         * modules/truncl-tests (Depends-on): Add float.
47177
47178         * tests/test-frexpl.c (zero): Remove variable.
47179         (minus_zero): New variable.
47180         (main): Use minus_zero instead of -zero.
47181         * modules/frexpl-tests (Depends-on): Add float.
47182
47183         * tests/test-isnan.c (zerol): Remove variable.
47184         (minus_zerol): New variable.
47185         (test_long_double): Use minus_zerol instead of -zerol.
47186         * modules/isnan-tests (Depends-on): Add float.
47187
47188         * tests/test-isnanl.h (zero): Remove variable.
47189         (minus_zero): New variable.
47190         (main): Use minus_zero instead of -zero.
47191         * modules/isnanl-nolibm-tests (Depends-on): Add float.
47192         * modules/isnanl-tests (Depends-on): Add float.
47193
47194         * tests/test-ldexpl.c (zero): Remove variable.
47195         (minus_zero): New variable.
47196         (main): Use minus_zero instead of -zero.
47197         * modules/ldexpl-tests (Depends-on): Add float.
47198
47199         * tests/test-snprintf-posix.h (zerol): Remove variable.
47200         (minus_zerol): New variable.
47201         (test_function): Use minus_zerol instead of -zerol.
47202         * modules/snprintf-posix-tests (Depends-on): Add float.
47203         * modules/vsnprintf-posix-tests (Depends-on): Add float.
47204
47205         * tests/test-sprintf-posix.h (zerol): Remove variable.
47206         (minus_zerol): New variable.
47207         (test_function): Use minus_zerol instead of -zerol.
47208         * modules/sprintf-posix-tests (Depends-on): Add float.
47209         * modules/vsprintf-posix-tests (Depends-on): Add float.
47210
47211         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
47212         (minus_zerol): New variable.
47213         (test_function): Use minus_zerol instead of -zerol.
47214         * modules/vasnprintf-posix-tests (Depends-on): Add float.
47215
47216         * tests/test-vasprintf-posix.c (zerol): Remove variable.
47217         (minus_zerol): New variable.
47218         (test_function): Use minus_zerol instead of -zerol.
47219         * modules/vasprintf-posix-tests (Depends-on): Add float.
47220
47221 2008-10-07  Simon Josefsson  <simon@josefsson.org>
47222
47223         * MODULES.html.sh (Support for building documentation): Mention
47224         pmccabe2html.  Sort entries.
47225
47226         Add pmccabe2html module, from gnupdf.
47227         * build-aux/pmccabe.css: New file.
47228         * build-aux/pmccabe2html: New file.
47229         * m4/pmccabe2html.m4: New file.
47230         * modules/pmccabe2html: New file.
47231
47232 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
47233
47234         flock: new module
47235         * MODULES.html.sh: Add to list of modules.
47236         * lib/flock.c: flock implementation for Windows and Unix systems
47237         which have fcntl.
47238         * doc/glibc-functions/flock.texi: Update documentation.
47239         * lib/sys_file.in.h: <sys/file.h> header file.
47240         * m4/flock.m4: M4 macros.
47241         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
47242         * modules/flock: flock module.
47243         * modules/flock-tests: flock tests module.
47244         * modules/sys_file: sys/file.h module.
47245         * tests/test-flock.c: test suite for flock.
47246
47247 2008-10-06  Jim Meyering  <meyering@redhat.com>
47248
47249         bootstrap: check for LT_INIT more portably still ;-)
47250         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
47251         Spotted by Bruno Haible.
47252
47253 2008-10-06  Eric Blake  <ebb9@byu.net>
47254
47255         test-signbit: avoid tripping Irix cc bug on -0.0L
47256         * tests/test-signbit.c (minus_zerol): Delete, and replace with
47257         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
47258         entire testsuite consistent and avoids an Irix 6.2 bug.
47259
47260 2008-10-05  Bruno Haible  <bruno@clisp.org>
47261             Jim Meyering  <jim@meyering.net>
47262
47263         Add an option for ignoring EPIPE during close_stdout.
47264         * lib/closeout.h: Include <stdbool.h>.
47265         (close_stdout_set_ignore_EPIPE): New declaration.
47266         * lib/closeout.c: Include <stdbool.h>.
47267         (ignore_EPIPE): New variable.
47268         (close_stdout_set_ignore_EPIPE): New function.
47269         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
47270         * lib/close-stream.c (close_stream): Mention the possible EPIPE
47271         failure.
47272         * modules/closeout (Depends-on): Add stdbool.
47273
47274 2008-10-05  Bruno Haible  <bruno@clisp.org>
47275
47276         * modules/accept: New file.
47277         * modules/bind: New file.
47278         * modules/connect: New file.
47279         * modules/getpeername: New file.
47280         * modules/getsockname: New file.
47281         * modules/getsockopt: New file.
47282         * modules/listen: New file.
47283         * modules/recv: New file.
47284         * modules/recvfrom: New file.
47285         * modules/send: New file.
47286         * modules/sendto: New file.
47287         * modules/setsockopt: New file.
47288         * modules/socket: New file.
47289         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
47290         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
47291         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
47292         the particular module is requested. Add a link warning when the
47293         particular module is not requested.
47294         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
47295         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
47296         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
47297         the particular module is requested.
47298         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
47299         gl_SYS_SOCKET_H_DEFAULTS): New macros.
47300         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
47301         * modules/sys_socket (Depends-on): Add link-warning.
47302         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
47303         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
47304         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
47305         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
47306         GL_LINK_WARNING.
47307         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
47308         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
47309         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
47310         * doc/posix-functions/getpeername.texi: Mention the new module
47311         'getpeername'.
47312         * doc/posix-functions/getsockname.texi: Mention the new module
47313         'getsockname'.
47314         * doc/posix-functions/getsockopt.texi: Mention the new module
47315         'getsockopt'.
47316         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
47317         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
47318         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
47319         * doc/posix-functions/send.texi: Mention the new module 'send'.
47320         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
47321         * doc/posix-functions/setsockopt.texi: Mention the new module
47322         'setsockopt'.
47323         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
47324         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
47325         listen, connect, accept.
47326         * modules/select-tests (Depends-on): Likewise.
47327
47328 2008-10-05  Bruno Haible  <bruno@clisp.org>
47329
47330         * lib/winsock.c (strerror): Remove unused #undef.
47331         (rpl_close): Remove unused local variable.
47332
47333         * modules/sys_socket (Depends-on); Add errno.
47334
47335 2008-10-05  Bruno Haible  <bruno@clisp.org>
47336
47337         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
47338         (select): Add a link warning when the 'select' module is not used.
47339         * modules/sys_select (Depends-on): Add link-warning.
47340         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
47341         Suggested by Paolo Bonzini.
47342
47343 2008-10-05  Jim Meyering  <meyering@redhat.com>
47344
47345         bootstrap: check for LT_INIT more portably
47346         * build-aux/bootstrap: Avoid using grep -E, since it's not
47347         portable enough.  Suggestion from Bruno Haible.
47348
47349 2008-10-05  Bruno Haible  <bruno@clisp.org>
47350
47351         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
47352         as being fixed by gnulib.
47353
47354 2008-10-05  Bruno Haible  <bruno@clisp.org>
47355
47356         * modules/select-tests: New file, mostly copied from
47357         modules/sys_select-tests.
47358         * tests/test-select.c: New file, mostly copied from
47359         tests/test-sys_select.c.
47360         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
47361         * modules/sys_select-tests (Depends-on): Remove all dependencies.
47362         (Makefile.am): Remove test_sys_select_LDADD.
47363
47364         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
47365         to an undefined symbol, for an error message.
47366         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
47367         (gl_SYS_SELECT_H_DEFAULTS): New macro.
47368         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
47369         winsock-select.c here.
47370         * modules/sys_select (Files): Remove lib/winsock-select.c.
47371         (Depends-on): Remove alloca.
47372         (Makefile.am): Substitute GNULIB_SELECT.
47373         * modules/select: New file.
47374         * doc/posix-functions/select.texi: Update.
47375
47376 2008-10-05  Bruno Haible  <bruno@clisp.org>
47377
47378         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
47379         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
47380         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
47381         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
47382         getdtablesize.
47383         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
47384         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
47385
47386 2008-10-05  Bruno Haible  <bruno@clisp.org>
47387
47388         * modules/getdtablesize-tests: New file.
47389         * tests/test-getdtablesize.c: New file.
47390
47391         New module 'getdtablesize'.
47392         * lib/unistd.in.h (getdtablesize): New declaration.
47393         * lib/getdtablesize.c: New file.
47394         * m4/getdtablesize.m4: New file.
47395         * modules/getdtablesize: New file.
47396         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47397         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
47398         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
47399         HAVE_GETDTABLESIZE.
47400         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
47401
47402 2008-10-05  Bruno Haible  <bruno@clisp.org>
47403
47404         * modules/sched (Makefile.am): Fix typo.
47405         Reported by Simon Josefsson.
47406
47407 2008-10-05  Jim Meyering  <meyering@redhat.com>
47408
47409         bootstrap: check for LT_INIT, too
47410         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
47411         are deprecated.  Suggestion from Ralf Wildenhues.
47412
47413 2008-10-05  Bruno Haible  <bruno@clisp.org>
47414
47415         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
47416         overriding them by ours.
47417         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
47418
47419 2008-10-05  Jim Meyering  <meyering@redhat.com>
47420
47421         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
47422         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
47423         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
47424
47425 2008-10-04  Bruno Haible  <bruno@clisp.org>
47426
47427         * modules/dup2 (License): Change to LGPLv2+.
47428         * modules/sleep (License): Likewise.
47429         * modules/perror (License): Likewise.
47430         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
47431         Blake.
47432         * modules/signal (License): Likewise.
47433         * modules/sigprocmask (License): Likewise.
47434         * modules/raise (License): Change to LGPLv2+, with approval by Jim
47435         Meyering.
47436
47437 2008-10-04  Bruno Haible  <bruno@clisp.org>
47438
47439         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
47440         Reported by Rainer Tammer <tammer@tammer.net>.
47441
47442 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
47443             Bruno Haible  <bruno@clisp.org>
47444
47445         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
47446         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
47447         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
47448
47449 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
47450
47451         filevercmp: new module
47452         * lib/filevercmp.h: New function filevercmp comparing version strings.
47453         * lib/filevercmp.c: Implementation of filevercmp function.
47454         * modules/filevercmp: Module metadata.
47455         * tests/test-filevercmp.c: Unit test for new module.
47456         * modules/filevercmp-tests: Unit test metadata.
47457         * MODULES.html.sh: Add filevercmp module.
47458
47459 2008-10-03  Bruno Haible  <bruno@clisp.org>
47460
47461         * lib/c-ctype.h: Add comment.
47462         Reported by Jim Meyering.
47463
47464 2008-10-02  Bruno Haible  <bruno@clisp.org>
47465
47466         * modules/posix_spawn-internal (Depends-on): Add 'open'.
47467
47468 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47469
47470         * build-aux/bootstrap: Allow renaming bootstrap, and change the
47471         name of bootstrap.conf accordingly.
47472
47473 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47474
47475         * build-aux/bootstrap: Install git-merge-changelog configuration
47476         items into .gitconfig if needed.
47477
47478 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47479
47480         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
47481         git repository, and initialize/update it accordingly.
47482
47483 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
47484
47485         * modules/fsync-tests: New file.
47486         * tests/test-fsync.c: New file.
47487
47488         New module 'fsync'.
47489         * lib/fsync.c: New file.
47490         * m4/fsync.m4: New file.
47491         * modules/fsync: New file.
47492         * lib/unistd.in.h (fsync): New declaration.
47493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
47494         GNULIB_FSYNC and HAVE_FSYNC.
47495         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
47496         * MODULES.html.sh (posix_functions): Add fsync.
47497         * doc/posix-functions/fsync.texi: Mention the new module.
47498
47499 2008-10-02  Jim Meyering  <meyering@redhat.com>
47500
47501         fts.c: sync with similar code from coreutils' remove.c
47502         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
47503         Guard also with "#if defined __linux__", since for now at least,
47504         this code is Linux-kernel-specific.
47505
47506 2008-10-02  Jim Meyering  <meyering@redhat.com>
47507
47508         fts: bug fixes
47509         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
47510         Include <sys/vfs.h>, not <sys/statfs.h>.
47511
47512         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
47513         Include <sys/vfs.h>, not <sys/statfs.h>.
47514
47515 2008-10-01  Bruno Haible  <bruno@clisp.org>
47516
47517         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
47518         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
47519         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
47520         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
47521         * doc/posix-functions/posix_spawnp.texi: Likewise.
47522         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
47523         whether posix_spawn actually works.
47524         * m4/pipe.m4 (gl_PIPE): Likewise.
47525         * modules/execute (Files): Add m4/posix_spawn.m4.
47526         * modules/pipe (Files): Add m4/posix_spawn.m4.
47527         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
47528
47529 2008-10-01  Jim Meyering  <meyering@redhat.com>
47530
47531         remove trailing spaces
47532         * NEWS: Likewise.
47533         * lib/poll.c (poll): Likewise.
47534         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
47535         * lib/winsock.c (rpl_close): Likewise.
47536         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
47537         * modules/yield: Likewise.
47538         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
47539         * tests/test-sys_select.c (connect_to_socket): Likewise.
47540
47541         fts.c: adjust a new interface to be more generally useful
47542         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
47543         (fts_build): Adjust caller.
47544
47545 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47546
47547         * modules/cond-tests: New file.
47548         * tests/test-cond.c: New file.
47549
47550 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47551             Bruno Haible  <bruno@clisp.org>
47552
47553         * modules/cond (Dependencies): Add errno, time.
47554         * lib/glthread/cond.h: Include <time.h>.
47555         (gl_cond_define, gl_cond_define_initialized): Use the same definition
47556         across platforms.
47557
47558 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47559             Bruno Haible  <bruno@clisp.org>
47560
47561         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
47562
47563 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47564             Bruno Haible  <bruno@clisp.org>
47565
47566         * modules/tls-tests (Depends-on): Add thread, yield.
47567         (configure.ac): Remove all checks.
47568         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
47569         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47570         gl_thread_self): Remove definitions. Include glthread/thread.h and
47571         glthread/yield.h instead.
47572         (test_tls): Pass an additional NULL argument to gl_thread_join.
47573
47574 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47575             Bruno Haible  <bruno@clisp.org>
47576
47577         * modules/lock-tests (Depends-on): Add thread, yield.
47578         (configure.ac): Remove all checks.
47579         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
47580         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47581         gl_thread_self): Remove definitions. Include glthread/thread.h and
47582         glthread/yield.h instead.
47583         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
47584         additional NULL argument to gl_thread_join.
47585
47586 2008-09-30  Bruno Haible  <bruno@clisp.org>
47587
47588         Fix the Win32 implementation of the 'thread' module.
47589         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
47590         pointer type.
47591         (gl_thread_self): Invoke gl_thread_self_func.
47592         (gl_thread_self_func): New declaration.
47593         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
47594         (do_init_self_key, init_self_key): New functions.
47595         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
47596         Remove some fields.
47597         (running_threads, running_lock): Remove variables.
47598         (get_current_thread_handle): New function.
47599         (gl_thread_self_func, wrapper_func, glthread_create_func,
47600         glthread_join_func, gl_thread_exit_func): Largely rewritten and
47601         simplified.
47602
47603 2008-09-30  Bruno Haible  <bruno@clisp.org>
47604
47605         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
47606         files.
47607
47608 2008-09-30  Jim Meyering  <meyering@redhat.com>
47609
47610         fts.m4: correct the test for statfs.f_type
47611         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
47612         when checking for statfs.f_type.
47613
47614 2008-09-15  Simon Josefsson  <simon@josefsson.org>
47615
47616         tests: avoid some compiler warnings
47617         * tests/test-memchr.c (main): Pass NULL indirectly.
47618         * tests/test-getdate.c (main): Remove unused variable 'ret'.
47619
47620 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
47621
47622         getdate.y: disallow countable dayshifts like "4 yesterday ago"
47623         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
47624         exactly specified dayshifts.
47625         (dayshift): New rule.
47626         (rel): Add dayshift.
47627         (relative_time_table) [tomorrow, yesterday, today, now]:
47628         Use tDAY_SHIFT in place of tDAY_UNIT.
47629         * tests/test-getdate.c: Add tests for now-disallowed countable
47630         dayshifts, e.g., "4 yesterday ago".
47631
47632 2008-09-29  Bruno Haible  <bruno@clisp.org>
47633
47634         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
47635         * tests/test-posix_spawn1.in.sh: Renamed from
47636         tests/test-posix_spawn.in.sh.
47637         * tests/test-posix_spawn2.c: New file.
47638         * tests/test-posix_spawn2.in.sh: New file.
47639         * modules/posix_spawnp-tests (Files): Update.
47640         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
47641
47642 2008-09-29  Bruno Haible  <bruno@clisp.org>
47643
47644         Propagate effects of putenv/setenv/unsetenv to child processes.
47645         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
47646         * lib/pipe.c (create_pipe): Likewise.
47647
47648 2008-09-29  Bruno Haible  <bruno@clisp.org>
47649
47650         Enable use of shell scripts as executables in mingw.
47651         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
47652         run the program as a shell script.
47653         * lib/pipe.c (create_pipe): Likewise.
47654         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
47655         resulting array.
47656
47657 2008-09-29  Eric Blake  <ebb9@byu.net>
47658
47659         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
47660
47661 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
47662
47663         * doc/posix-functions/accept.texi: Update mingw problems.
47664         * doc/posix-functions/bind.texi: Update mingw problems.
47665         * doc/posix-functions/close.texi: Update mingw problems.
47666         * doc/posix-functions/connect.texi: Update mingw problems.
47667         * doc/posix-functions/getpeername.texi: Update mingw problems.
47668         * doc/posix-functions/getsockname.texi: Update mingw problems.
47669         * doc/posix-functions/getsockopt.texi: Update mingw problems.
47670         * doc/posix-functions/ioctl.texi: Update mingw problems.
47671         * doc/posix-functions/listen.texi: Update mingw problems.
47672         * doc/posix-functions/recv.texi: Update mingw problems.
47673         * doc/posix-functions/recvfrom.texi: Update mingw problems.
47674         * doc/posix-functions/select.texi: Update mingw problems.
47675         * doc/posix-functions/send.texi: Update mingw problems.
47676         * doc/posix-functions/sendto.texi: Update mingw problems.
47677         * doc/posix-functions/setsockopt.texi: Update mingw problems.
47678         * doc/posix-functions/socket.texi: Update mingw problems.
47679
47680 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
47681             Bruno Haible  <bruno@clisp.org>
47682
47683         * lib/sys_select.in.h: Include sys/time.h.
47684         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
47685         * modules/sys_select: Depend on sys_time.
47686         * tests/test-sys_select.c: Test that sys/select.h defines struct
47687         timeval fully.
47688
47689 2008-09-29  Bruno Haible  <bruno@clisp.org>
47690
47691         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
47692         * lib/sys_select.in.h: Likewise.
47693
47694 2008-09-29  Bruno Haible  <bruno@clisp.org>
47695
47696         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
47697
47698 2008-09-29  Bruno Haible  <bruno@clisp.org>
47699
47700         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
47701         Set LIBSOCKET instead of augmenting LIBS.
47702         * modules/sockets (Link): New section.
47703         * modules/sockets-tests (test_sockets_LDADD): New variable.
47704         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
47705         * modules/poll-tests (test_poll_LDADD): New variable.
47706         * NEWS: Document the change.
47707
47708 2008-09-29  Bruno Haible  <bruno@clisp.org>
47709
47710         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
47711         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
47712         ARPA_INET_H directly.
47713         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47714
47715 2008-09-28  Bruno Haible  <bruno@clisp.org>
47716
47717         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
47718         from gl_HEADER_SYS_SOCKET.
47719         (gl_HEADER_SYS_SOCKET): Invoke it.
47720         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47721
47722 2008-09-28  Bruno Haible  <bruno@clisp.org>
47723
47724         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
47725         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
47726         Needed on OSF/1 4.0.
47727
47728 2008-09-28  Bruno Haible  <bruno@clisp.org>
47729
47730         Override open more carefully.
47731         * lib/open.c (orig_open): New function.
47732         (rpl_open): Use orig_open instead of open.
47733         * lib/fcntl.in.h: Add special invocation convention.
47734         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
47735         (gl_FUNC_OPEN): Invoke it.
47736
47737         Override freopen more carefully.
47738         * lib/freopen.c (orig_freopen): New function.
47739         (rpl_freopen): Use orig_freopen instead of freopen.
47740         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
47741         (gl_FUNC_FREOPEN): Invoke it.
47742
47743         Override fopen more carefully.
47744         * lib/fopen.c (orig_fopen): New function.
47745         (rpl_fopen): Use orig_fopen instead of fopen.
47746         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
47747         (gl_FUNC_FOPEN): Invoke it.
47748         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
47749
47750 2008-09-28  Bruno Haible  <bruno@clisp.org>
47751
47752         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
47753         SIGPIPE.
47754
47755 2008-09-28  Bruno Haible  <bruno@clisp.org>
47756
47757         * tests/test-sigaction.c (handler, main): Disable the check whether
47758         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
47759         glibc systems with LinuxThreads.
47760
47761 2008-09-28  Bruno Haible  <bruno@clisp.org>
47762
47763         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
47764
47765         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
47766         with AIX xlc.
47767         * lib/fcntl.in.h (open): Likewise.
47768         Reported by Rainer Tammer <tammer@tammer.net>.
47769
47770 2008-09-28  Bruno Haible  <bruno@clisp.org>
47771
47772         * modules/posix_spawnp-tests: New file.
47773         * tests/test-posix_spawn.c: New file.
47774         * tests/test-posix_spawn.in.sh: New file.
47775
47776         New module 'posix_spawnp'.
47777         * modules/posix_spawnp: New file.
47778         * lib/spawnp.c: New file, from GNU libc with modifications.
47779         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
47780
47781         New module 'posix_spawn'.
47782         * modules/posix_spawn: New file.
47783         * lib/spawn.c: New file, from GNU libc with modifications.
47784         * doc/posix-functions/posix_spawn.texi: Mention the new module.
47785
47786         New module 'posix_spawnattr_destroy'.
47787         * modules/posix_spawnattr_destroy: New file.
47788         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
47789         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
47790         module.
47791
47792         New module 'posix_spawnattr_setsigmask'.
47793         * modules/posix_spawnattr_setsigmask: New file.
47794         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
47795         modifications.
47796         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
47797         new module.
47798
47799         New module 'posix_spawnattr_getsigmask'.
47800         * modules/posix_spawnattr_getsigmask: New file.
47801         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
47802         modifications.
47803         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
47804         new module.
47805
47806         New module 'posix_spawnattr_setsigdefault'.
47807         * modules/posix_spawnattr_setsigdefault: New file.
47808         * lib/spawnattr_setdefault.c: New file, from GNU libc with
47809         modifications.
47810         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
47811         new module.
47812
47813         New module 'posix_spawnattr_getsigdefault'.
47814         * modules/posix_spawnattr_getsigdefault: New file.
47815         * lib/spawnattr_getdefault.c: New file, from GNU libc with
47816         modifications.
47817         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
47818         new module.
47819
47820         New module 'posix_spawnattr_setschedpolicy'.
47821         * modules/posix_spawnattr_setschedpolicy: New file.
47822         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
47823         modifications.
47824         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
47825         new module.
47826
47827         New module 'posix_spawnattr_getschedpolicy'.
47828         * modules/posix_spawnattr_getschedpolicy: New file.
47829         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
47830         modifications.
47831         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
47832         new module.
47833
47834         New module 'posix_spawnattr_setschedparam'.
47835         * modules/posix_spawnattr_setschedparam: New file.
47836         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
47837         modifications.
47838         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
47839         new module.
47840
47841         New module 'posix_spawnattr_getschedparam'.
47842         * modules/posix_spawnattr_getschedparam: New file.
47843         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
47844         modifications.
47845         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
47846         new module.
47847
47848         New module 'posix_spawnattr_setpgroup'.
47849         * modules/posix_spawnattr_setpgroup: New file.
47850         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
47851         modifications.
47852         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
47853         module.
47854
47855         New module 'posix_spawnattr_getpgroup'.
47856         * modules/posix_spawnattr_getpgroup: New file.
47857         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
47858         modifications.
47859         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
47860         module.
47861
47862         New module 'posix_spawnattr_setflags'.
47863         * modules/posix_spawnattr_setflags: New file.
47864         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
47865         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
47866         module.
47867
47868         New module 'posix_spawnattr_getflags'.
47869         * modules/posix_spawnattr_getflags: New file.
47870         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
47871         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
47872         module.
47873
47874         New module 'posix_spawnattr_init'.
47875         * modules/posix_spawnattr_init: New file.
47876         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
47877         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
47878         module.
47879
47880         New module 'posix_spawn_file_actions_destroy'.
47881         * modules/posix_spawn_file_actions_destroy: New file.
47882         * lib/spawn_faction_destroy.c: New file, from GNU libc with
47883         modifications.
47884         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
47885         the new module.
47886
47887         New module 'posix_spawn_file_actions_addopen'.
47888         * modules/posix_spawn_file_actions_addopen: New file.
47889         * lib/spawn_faction_addopen.c: New file, from GNU libc with
47890         modifications.
47891         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
47892         the new module.
47893
47894         New module 'posix_spawn_file_actions_adddup2'.
47895         * modules/posix_spawn_file_actions_adddup2: New file.
47896         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
47897         modifications.
47898         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
47899         the new module.
47900
47901         New module 'posix_spawn_file_actions_addclose'.
47902         * modules/posix_spawn_file_actions_addclose: New file.
47903         * lib/spawn_faction_addclose.c: New file, from GNU libc with
47904         modifications.
47905         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
47906         the new module.
47907
47908         New module 'posix_spawn_file_actions_init'.
47909         * modules/posix_spawn_file_actions_init: New file.
47910         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
47911         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
47912         new module.
47913
47914         New module 'posix_spawn-internal'.
47915         * modules/posix_spawn-internal: New file.
47916         * lib/spawn_int.h: New file, from GNU libc with modifications.
47917         * lib/spawni.c: New file, from GNU libc with modifications.
47918         * m4/posix_spawn.m4: New file.
47919
47920         New module 'spawn'.
47921         * modules/spawn: New file.
47922         * lib/spawn.in.h: New file, from GNU libc with modifications.
47923         * m4/spawn_h.m4: New file.
47924         * doc/posix-headers/spawn.texi: Mention the new module.
47925
47926 2008-09-28  Bruno Haible  <bruno@clisp.org>
47927
47928         * modules/sched-tests: New file.
47929         * tests/test-sched.c: New file.
47930
47931         New module 'sched'.
47932         * modules/sched: New file.
47933         * lib/sched.in.h: New file.
47934         * m4/sched_h.m4: New file.
47935         * doc/posix-headers/sched.texi: Mention the new module.
47936
47937 2008-09-27  Eric Blake  <ebb9@byu.net>
47938
47939         Fix previous patch, and tweak references to $0.
47940         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
47941         (func_version, func_gnulib_dir): Don't call this program
47942         gnulib-tool.
47943         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
47944         with using $0 in function.
47945         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
47946         (func_fatal_error): Reuse the name the user invoked us with.
47947
47948 2008-09-27  Bruno Haible  <bruno@clisp.org>
47949
47950         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
47951         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
47952         (gl_ICONV_H): Not here.
47953         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
47954         instead of assigning ICONV_H directly.
47955
47956         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
47957         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
47958         WCHAR_H directly.
47959
47960 2008-09-27  Bruno Haible  <bruno@clisp.org>
47961
47962         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
47963         * modules/arpa_inet (Depends-on): Add link-warning.
47964         (Makefile.am): Insert the definition of GL_LINK-WARNING.
47965         * modules/unistd (Makefile.am): Likewise.
47966
47967 2008-09-26  Bruno Haible  <bruno@clisp.org>
47968
47969         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
47970         variables.
47971         (func_version): Essentially copied from gnulib-tool.
47972         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
47973         func_readlink): Copied from gnulib-tool.
47974
47975 2008-09-26  Bruno Haible  <bruno@clisp.org>
47976
47977         * gnulib-tool (func_version): Change directory to $gnulib_dir before
47978         invoking git-version-gen.
47979
47980 2008-09-26  Bruno Haible  <bruno@clisp.org>
47981
47982         * posix-modules: Update to directory names changed on 2008-01-19.
47983         Remove commas in output before splitting into words. No more need to
47984         avoid 'ftruncate' since 2007-02-19.
47985
47986 2008-09-26  Bruno Haible  <bruno@clisp.org>
47987
47988         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
47989
47990 2008-09-26  Bruno Haible  <bruno@clisp.org>
47991
47992         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
47993         * modules/fwriteerror (Depends-on): Add errno.
47994
47995 2008-09-26  Bruno Haible  <bruno@clisp.org>
47996
47997         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
47998         * tests/test-vc-list-files-cvs.sh: Likewise.
47999
48000 2008-09-26  Bruno Haible  <bruno@clisp.org>
48001
48002         * doc/posix-headers/sys_resource.texi: Reorder items.
48003
48004 2008-09-26  Jim Meyering  <meyering@redhat.com>
48005
48006         fts: tweak inode comparison function
48007         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
48008         inode numbers, as documented.
48009
48010         fts: sort dirent entries on inode number before traversing
48011         This avoids a quadratic, seek-related performance penalty when
48012         operating on a directory containing many entries (measurable at 10k;
48013         3.5 hours at 2 million entries with a cold cache) on certain types
48014         of file systems, including ext3 and ext4, but not tmpfs.
48015         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
48016         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
48017         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
48018         (fs_handles_readdir_ordered_dirents_efficiently): New function.
48019         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
48020         (fts_build): Set the stat.st_ino member from D_INO.
48021         If it is likely to be useful, sort dirent entries on inode number.
48022
48023         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
48024         and the struct statfs.f_type member.
48025         * modules/fts (Depends-on): Add d-ino.
48026
48027 2008-09-26  Bruno Haible  <bruno@clisp.org>
48028
48029         * modules/sigpipe-die (Depends-on): Add sigpipe.
48030
48031         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
48032         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
48033         and GNULIB_STDIO_H_SIGPIPE are set.
48034         * lib/stdio-write.c: New file.
48035         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
48036         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48037         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48038         REPLACE_STDIO_WRITE_FUNCS.
48039         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
48040         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48041         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48042         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
48043         * modules/stdio (Files): Add lib/stdio-write.c.
48044         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
48045         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48046         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48047         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
48048         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
48049         REPLACE_FPRINTF_POSIX.
48050         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
48051         REPLACE_PRINTF_POSIX.
48052         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
48053         REPLACE_VFPRINTF_POSIX.
48054         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
48055         REPLACE_VPRINTF_POSIX.
48056         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
48057         SIGPIPE issue.
48058         * doc/posix-functions/fputc.texi: Likewise.
48059         * doc/posix-functions/fputs.texi: Likewise.
48060         * doc/posix-functions/fwrite.texi: Likewise.
48061         * doc/posix-functions/printf.texi: Likewise.
48062         * doc/posix-functions/putc.texi: Likewise.
48063         * doc/posix-functions/putchar.texi: Likewise.
48064         * doc/posix-functions/puts.texi: Likewise.
48065         * doc/posix-functions/vfprintf.texi: Likewise.
48066         * doc/posix-functions/vprintf.texi: Likewise.
48067
48068         * modules/safe-write (Depends-on): Add write.
48069
48070         * modules/sigpipe-tests: New file.
48071         * tests/test-sigpipe.c: New file.
48072         * tests/test-sigpipe.sh: New file.
48073
48074         * modules/write: New file.
48075         * lib/unistd.in.h: Include <sys/types.h>.
48076         (write): New declaration.
48077         * lib/write.c: New file.
48078         * m4/write.m4: New file.
48079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48080         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
48081         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
48082         GNULIB_WRITE, REPLACE_WRITE.
48083         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
48084         and the SIGPIPE issue.
48085
48086         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
48087         (raise): New declaration.
48088         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
48089         (ext_signal): New function.
48090         (rpl_raise): New function.
48091         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
48092         GNULIB_SIGNAL_H_SIGPIPE.
48093         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
48094         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
48095
48096         * modules/sigpipe: New file.
48097         * m4/sigpipe.m4: New file.
48098
48099 2008-09-25  Derek Price  <derek@ximbiot.com>
48100             Bruno Haible  <bruno@clisp.org>
48101
48102         * gnulib-tool (func_import): Report all license incompatibilities, not
48103         just the first one.
48104
48105 2008-09-25  Bruno Haible  <bruno@clisp.org>
48106
48107         * gnulib-tool (func_import): When computing the edits, consider not
48108         only the Makefile.ams that exist but also those that will be generated.
48109
48110 2008-09-25  Simon Josefsson  <simon@josefsson.org>
48111
48112         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
48113         fixes gnulib-tool --test warning about duplicate dependency.
48114
48115 2008-09-25  Bruno Haible  <bruno@clisp.org>
48116
48117         * gnulib-tool: Don't ask the user to perform edits in the generated
48118         Makefile.ams.
48119         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
48120         apply to the Makefile.am being generated.
48121         (func_emit_tests_Makefile_am): Execute edits that apply to the
48122         Makefile.am being generated.
48123         (func_import): Setup list of Makefile.am edits before emitting the
48124         Makefile.ams, not at the end.
48125         (func_create_testdir): Update.
48126         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48127
48128 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48129
48130         * gnulib-tool (func_import): Store the --tests-base option in the
48131         comment in gnulib-cache.m4.
48132
48133 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
48134
48135         * NEWS: Document increased portability that sys_select now provides.
48136
48137         * lib/sys_select.in.h: Install select wrapper.
48138         * lib/sys_socket.in.h: Use more descriptive name when there is no
48139         select wrapper.
48140         * lib/winsock-select.c: New.
48141         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
48142         Require gl_HEADER_SYS_SOCKET.
48143         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
48144         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
48145         * tests/test-sys_select.c: Add functional tests.
48146
48147 2008-09-24  Eric Blake  <ebb9@byu.net>
48148
48149         open, fopen: close fd leak in last patch
48150         * lib/open.c (rpl_open): Close fd before returning error.
48151         * lib/fopen.c (rpl_fopen): Close fd before returning error.
48152         * doc/posix-functions/open.texi (open): Document that Irix also
48153         has the bug.
48154         * doc/posix-functions/fopen.texi (fopen): Likewise.
48155         Reported by Paolo Bonzini.
48156
48157 2008-09-24  Bruno Haible  <bruno@clisp.org>
48158
48159         Ensure that a filename ending in a slash cannot be used to access a
48160         non-directory.
48161         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
48162         to check whether it's really a directory.
48163         * lib/fopen.c: Include fcntl.h, unistd.h.
48164         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
48165         and fdopen().
48166         * modules/fopen (Depends-on): Add unistd.
48167         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
48168         * tests/test-fopen.c (main): Likewise.
48169         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
48170         * doc/posix-functions/fopen.texi: Likewise.
48171         Reported by Eric Blake.
48172
48173 2008-09-23  Eric Blake  <ebb9@byu.net>
48174
48175         c-stack: avoid compiler optimizations when provoking overflow
48176         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
48177         recursion harder to optimize, to ensure a stack overflow occurs.
48178         * tests/test-c-stack.c (recurse): Likewise.
48179         Borrowed from libsigsegv.
48180
48181         c-stack: work around Irix sigaltstack bug
48182         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
48183         whether sigaltstack uses wrong end of stack_t (copied in part from
48184         libsigsegv).
48185         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
48186         Irix bug, without requiring an over-allocation.
48187         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
48188         bug.
48189
48190         fopen: document mingw bug on directories
48191         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
48192         not allowing a stream visiting a directory, even though reading
48193         from such a stream is not portable.
48194
48195 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48196
48197         * lib/poll.c: Rewrite.
48198         * modules/poll: Depend on alloca.
48199
48200 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48201
48202         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
48203         instead define prototypes for a full set of wrappers.  Ensure
48204         that Cygwin does not use the compatibility code, which is only
48205         for MinGW.
48206         * lib/winsock.c: New.
48207         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
48208         * modules/sys_socket: Add lib/winsock.c.
48209
48210         * modules/poll-tests: Add errno and perror.
48211         * tests/test-poll.c: Use ioctl, not ioctlsocket.
48212
48213 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48214
48215         * tests/test-poll.c: Downgrade minimum needed Winsock version.
48216
48217 2008-09-23  Bruno Haible  <bruno@clisp.org>
48218
48219         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
48220         * doc/glibc-functions/*: Likewise.
48221
48222 2008-09-23  Simon Josefsson  <simon@josefsson.org>
48223
48224         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
48225         success.
48226
48227 2008-09-22  Eric Blake  <ebb9@byu.net>
48228             Bruno Haible  <bruno@clisp.org>
48229
48230         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
48231         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
48232         supply %A but mishandle pseudo-NaN.
48233         Reported by Simon Josefsson.
48234
48235 2008-09-21  Bruno Haible  <bruno@clisp.org>
48236
48237         * tests/test-lock.c (main): Tweak skip message.
48238         * tests/test-tls.c (main): Likewise.
48239
48240 2008-09-21  Bruno Haible  <bruno@clisp.org>
48241
48242         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
48243         whether 'struct sigaction' has sa_sigaction here...
48244         (gl_PREREQ_SIG_HANDLER_H): ... not here.
48245         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
48246
48247 2008-09-21  Bruno Haible  <bruno@clisp.org>
48248
48249         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
48250         section.
48251         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
48252         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
48253         the new section.
48254         (Support for obsolete systems lacking POSIX:2001): New section.
48255         (String handling <string.h>): Move strdup to the new section.
48256         Suggested by Simon Josefsson and Paolo Bonzini.
48257
48258 2008-09-21  Bruno Haible  <bruno@clisp.org>
48259
48260         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
48261         exponents in %e and %g results on 'long double'. Needed for mingw's
48262         improved *printf functions.
48263         * tests/test-vasprintf-posix.c (test_function): Likewise.
48264         * tests/test-snprintf-posix.h (test_function): Likewise.
48265         * tests/test-sprintf-posix.h (test_function): Likewise.
48266         Reported by Eric Blake.
48267
48268 2008-09-21  Bruno Haible  <bruno@clisp.org>
48269
48270         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
48271         * tests/test-sprintf-posix.h (test_function): Likewise.
48272
48273 2008-09-21  Bruno Haible  <bruno@clisp.org>
48274
48275         * modules/getpass (Depends-on): Add strdup-posix.
48276
48277         New module 'strdup-posix'.
48278         * modules/strdup-posix: New file.
48279         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
48280         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
48281         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48282         REPLACE_STRDUP.
48283         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
48284         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
48285         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48286         strdup-posix.
48287
48288         * modules/strdup (Depends-on): Remove malloc-posix.
48289
48290 2008-09-20  Bruno Haible  <bruno@clisp.org>
48291
48292         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
48293         Wildenhues.
48294
48295 2008-09-20  Bruno Haible  <bruno@clisp.org>
48296
48297         Ensure that wint_t gets defined on IRIX 5.3.
48298         * lib/wchar.in.h (wint_t): Define if not defined by the system.
48299         * lib/wctype.in.h (wint_t): Likewise.
48300         (__wctype_wint_t): Remove type.
48301         (isw*): Use wint_t instead of __wctype_wint_t.
48302         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
48303         * modules/wchar (Files): Add m4/wint_t.m4.
48304         (Makefile.am): Substitute HAVE_WINT_T.
48305         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
48306         * tests/test-wctype.c: Check that wint_t is defined.
48307         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
48308         * doc/posix-headers/wctype.texi: Likewise.
48309         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48310
48311 2008-09-18  Bruno Haible  <bruno@clisp.org>
48312
48313         * gnulib-tool (func_exit): Update comment.
48314
48315 2008-09-18  Simon Josefsson  <simon@josefsson.org>
48316
48317         * modules/getaddrinfo (Depends-on): Remove strdup, this module
48318         assumes strdup exists and does not depend on strdup to return
48319         ENOMEM on out of memory conditions.
48320
48321 2008-09-18  Bruno Haible  <bruno@clisp.org>
48322
48323         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
48324         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
48325         digits for the exponent.
48326
48327 2008-09-18  Jim Meyering  <meyering@redhat.com>
48328             Bruno Haible  <bruno@clisp.org>
48329
48330         * lib/vasnprintf.c (decimal_point_char): Define also if
48331         NEED_PRINTF_INFINITE_LONG_DOUBLE.
48332
48333 2008-09-16  Bruno Haible  <bruno@clisp.org>
48334         and Eric Blake  <ebb9@byu.net>
48335
48336         vasnprintf: support Irix 5.3
48337         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
48338         that mishandle long double infinity.
48339         Reported by Tom G. Christensen.
48340
48341 2008-09-16  Bruno Haible  <bruno@clisp.org>
48342
48343         * doc/glibc-functions/scandir.texi: Mention the function is missing on
48344         Solaris 9.
48345         * doc/glibc-functions/alphasort.texi: Likewise.
48346         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
48347
48348 2008-09-16  Jim Meyering  <meyering@redhat.com>
48349
48350         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
48351         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
48352         a umask modification leak out of a subshell.  Otherwise, the
48353         opensolaris /bin/sh would be accepted and thus cause unwarranted
48354         failures in the coreutils test suite.
48355
48356 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
48357
48358         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
48359         to succeed.
48360
48361 2008-09-16  Jim Meyering  <meyering@redhat.com>
48362
48363         avoid spurious test failure when library is built without ACL support
48364         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
48365         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
48366         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
48367         * tests/test-copy-acl.sh: Likewise.
48368
48369 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48370
48371         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
48372         based on character occurrence counts.
48373
48374 2008-09-15  Eric Blake  <ebb9@byu.net>
48375
48376         tests: avoid some compiler warnings
48377         * tests/test-memchr.c (main): Pass NULL indirectly.
48378         * tests/test-closein.c (main): Avoid unused variable.
48379
48380 2008-09-15  Bruno Haible  <bruno@clisp.org>
48381
48382         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
48383         are missing on OpenBSD 4.0 individually.
48384         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48385
48386 2008-09-15  Bruno Haible  <bruno@clisp.org>
48387
48388         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
48389         * doc/posix-functions/strerror.texi: Mention also Cygwin.
48390         * doc/posix-functions/perror.texi: Likewise.
48391         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
48392         is missing.
48393         Reported by Eric Blake.
48394
48395         * lib/errno.in.h: Use replacement values >= 2000.
48396         Reported by Eric Blake.
48397
48398 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48399
48400         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
48401         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
48402         limit.
48403         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
48404         compareseq was aborted.
48405
48406 2008-09-14  Bruno Haible  <bruno@clisp.org>
48407
48408         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
48409         yvec_edit_count.
48410         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
48411         (fstrcmp_bounded): Simplify result computation accordingly.
48412
48413 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48414
48415         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
48416         (fstrcmp): Define in terms of fstrcmp_bounded.
48417         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
48418         lower_bound argument.
48419         Return quickly if the result is certainly < lower_bound.
48420         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
48421
48422 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48423
48424         * lib/diffseq.h (EARLY_ABORT): New macro.
48425         (compareseq): Change return type to bool. Return true when EARLY_ABORT
48426         evaluates to true.
48427
48428 2008-09-14  Bruno Haible  <bruno@clisp.org>
48429
48430         * modules/perror-tests: New file.
48431         * tests/test-perror.sh: New file.
48432         * tests/test-perror.c: New file.
48433
48434         New module 'perror'.
48435         * lib/stdio.in.h (perror): New declaration.
48436         * lib/perror.c: New file.
48437         * m4/perror.m4: New file.
48438         * modules/perror: New file.
48439         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
48440         * doc/posix-functions/perror.texi: Mention the perror module.
48441         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
48442         REPLACE_PERROR.
48443         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
48444         REPLACE_PERROR.
48445
48446 2008-09-14  Bruno Haible  <bruno@clisp.org>
48447
48448         * modules/stdio (Makefile.am): Reorder to match the order in
48449         lib/stdio.in.h.
48450         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48451
48452 2008-09-13  Bruno Haible  <bruno@clisp.org>
48453
48454         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
48455
48456 2008-09-13  Bruno Haible  <bruno@clisp.org>
48457
48458         Extend strerror to cover the added errno values.
48459         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
48460         (rpl_strerror): Provide error messages for the added errno values and
48461         for the WSA* values.
48462         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
48463         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
48464         strerror.
48465         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
48466         * modules/strerror (Depends-on): Add errno.
48467         * doc/posix-functions/strerror.texi: Document the change.
48468         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
48469         and EOVERFLOW.
48470
48471 2008-09-13  Bruno Haible  <bruno@clisp.org>
48472
48473         * modules/EOVERFLOW: Remove file.
48474         * m4/eoverflow.m4: Remove file.
48475         * modules/EOVERFLOW-tests: Remove file.
48476         * tests/test-EOVERFLOW.c: Remove file.
48477         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
48478         * modules/ftell (Depends-on): Likewise.
48479         * modules/getdelim (Depends-on): Likewise.
48480         * modules/getugroups (Depends-on): Likewise.
48481         * modules/poll (Depends-on): Likewise.
48482         * modules/snprintf (Depends-on): Likewise.
48483         * modules/sprintf-posix (Depends-on): Likewise.
48484         * modules/vasnprintf (Depends-on): Likewise.
48485         * modules/vasprintf (Depends-on): Likewise.
48486         * modules/vfprintf-posix (Depends-on): Likewise.
48487         * modules/vsnprintf (Depends-on): Likewise.
48488         * modules/vsprintf-posix (Depends-on): Likewise.
48489         * modules/xvasprintf (Depends-on): Likewise.
48490         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48491         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
48492         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
48493         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
48494         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48495         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
48496         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
48497         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
48498         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48499         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
48500         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
48501         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
48502         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48503         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
48504         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
48505         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
48506         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48507         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
48508         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
48509         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
48510         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48511         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
48512         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
48513         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
48514         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
48515         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48516         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
48517         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
48518         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
48519         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
48520         * MODULES.html.sh: Remove EOVERFLOW.
48521         * NEWS: Mention the change.
48522
48523 2008-09-13  Bruno Haible  <bruno@clisp.org>
48524
48525         * modules/errno-tests: New file.
48526         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
48527
48528         * lib/errno.in.h: New file.
48529         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
48530         * modules/errno: New file.
48531         * doc/posix-headers/errno.texi: Update documentation.
48532         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
48533
48534 2008-09-13  Bruno Haible  <bruno@clisp.org>
48535
48536         * tests/test-poll.c: Use #if for native Windows, rather than testing
48537         __MSVCRT__.
48538
48539 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48540             Bruno Haible  <bruno@clisp.org>
48541
48542         * lib/glob.c: Don't include <pwd.h> on native Windows.
48543         (WINDOWS32): New macro.
48544         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
48545
48546 2008-09-13  Bruno Haible  <bruno@clisp.org>
48547
48548         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
48549         (ETIMEDOUT): Remove macro.
48550         (glthread_cond_timedwait_multithreaded): New declaration.
48551         (glthread_cond_timedwait): Use it.
48552         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
48553         (glthread_cond_timedwait_multithreaded): New function.
48554
48555 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48556
48557         * modules/poll-tests: Do not check for io.h.
48558         * tests/test-poll.c: Check for __MSVCRT__ instead.
48559
48560 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48561
48562         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
48563         * modules/poll-tests: Add inet_pton, stdbool, sockets.
48564         * tests/test-poll.c: Use them.  Use _pipe on Windows.
48565
48566 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48567
48568         * modules/poll-tests: New.
48569         * tests/test-poll.c: New.
48570
48571 2008-09-12  Eric Blake  <ebb9@byu.net>
48572
48573         frexp: test for NetBSD failure on -0.0
48574         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
48575         not all, bugs from NetBSD 3.0 have been fixed.
48576         * doc/posix-functions/frexp.texi (frexp): Document bug.
48577         Reported by Thomas Klausner.
48578
48579         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
48580         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
48581         literal -0.0.
48582         Reported by Jonathan C. Patschke <jp@centtech.com>.
48583
48584 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48585
48586         * lib/glthread/cond.h: Use dummy implementation also if
48587         USE_WIN32_THREADS.
48588
48589 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48590
48591         * modules/fnmatch-posix (License): Change to LGPLv2+.
48592         * modules/fnmatch-gnu (License): Likewise.
48593
48594 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48595
48596         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
48597
48598 2008-09-11  Jim Meyering  <meyering@redhat.com>
48599
48600         * users.txt: Add gtk-vnc.
48601
48602 2008-09-08  Simon Josefsson  <simon@josefsson.org>
48603
48604         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
48605         rotate amounts.
48606
48607         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
48608         required for 16-bit and 8-bit rotates.
48609         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
48610         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
48611         UINT8_MAX instead of hard-coded constants.
48612         Suggested by Paul Eggert.
48613
48614 2008-09-07  Bruno Haible  <bruno@clisp.org>
48615
48616         * tests/test-striconveh.c (main): Check behaviour when converting from
48617         UTF-7.
48618
48619         Make striconveh work better with stateful encodings.
48620         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
48621         that iconv does not increment the inptr when returning -1/EINVAL.
48622
48623 2008-09-07  Bruno Haible  <bruno@clisp.org>
48624
48625         * build-aux/config.rpath: Update according to libtool-2.2.6.
48626         * build-aux/config.libpath: Likewise.
48627
48628 2008-09-06  Bruno Haible  <bruno@clisp.org>
48629
48630         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
48631         * lib/freadptr.c (freadptr): Likewise.
48632         * lib/freadseek.c (freadptrinc): Likewise.
48633         Reported by Simon Josefsson.
48634
48635 2008-09-06  Bruno Haible  <bruno@clisp.org>
48636
48637         * modules/freadptr (License): Change to LGPLv2+.
48638         * modules/freadseek (License): Likewise.
48639         Suggested by Eric Blake.
48640
48641         * modules/memchr2 (License): Change to LGPLv2+.
48642         Approved by Eric Blake.
48643
48644 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48645             Bruno Haible  <bruno@clisp.org>
48646
48647         Make gnulib-tool work with native 'sed' on AIX.
48648         * gnulib-tool (sed_noop): New variable.
48649         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
48650         func_add_or_update, func_create_testdir): Use it to initialize sed
48651         script variables.
48652         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48653
48654 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
48655             Bruno Haible  <bruno@clisp.org>
48656
48657         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
48658         also works after #include directives.
48659
48660 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
48661
48662         getdate.y: reject an out-of-range timezone value
48663         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
48664         the range [-24...+24].  When specified with only one or two digits,
48665         * tests/test-getdate.c: Tests for the fix.
48666         * doc/getdate.texi: Document this change.
48667
48668 2008-09-03  Bruno Haible  <bruno@clisp.org>
48669
48670         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
48671
48672 2008-09-02  Simon Josefsson  <simon@josefsson.org>
48673
48674         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
48675         <bruce.korb@gmail.com> with ideas from Ben Pfaff
48676         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
48677         Blake <ebb9@byu.net>.
48678
48679         * tests/test-bitrotate.c: Add more test vectors.
48680
48681 2008-09-02  Eric Blake  <ebb9@byu.net>
48682
48683         vasnprintf-posix: handle large precision via %.*d
48684         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
48685         when handling it ourselves.
48686         * tests/test-vasnprintf-posix.c (test_function): Add test.
48687         * tests/test-snprintf-posix.h (test_function): Likewise.
48688         * tests/test-sprintf-posix.h (test_function): Likewise.
48689         * tests/test-vasprintf-posix.c (test_function): Likewise.
48690         Reported by Alain Guibert.
48691
48692 2008-09-01  Eric Blake  <ebb9@byu.net>
48693
48694         c-stack: make configure-time check more robust
48695         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
48696         successful sigaction call.
48697         Reported by Tom G. Christensen.
48698
48699 2008-09-01  Bruno Haible  <bruno@clisp.org>
48700
48701         New module 'findprog-lgpl'.
48702         * modules/findprog-lgpl: New file.
48703         * lib/findprog-lgpl.c: New file.
48704         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
48705         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
48706         to decide whether to use strdup or xstrdup, concatenated_filename or
48707         xconcatenated_filename.
48708
48709 2008-09-01  Bruno Haible  <bruno@clisp.org>
48710
48711         Split module 'concat-filename' into 'concat-filename' (LGPL) and
48712         'xconcat-filename' (GPL).
48713         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
48714         (License): Change to LGPLv2+.
48715         * modules/xconcat-filename: New file.
48716         * lib/concat-filename.h (concatenated_filename): Change specification.
48717         (xconcatenated_filename): New declaration.
48718         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
48719         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
48720         memory situations.
48721         * lib/xconcat-filename.c: New file.
48722         * NEWS: Mention the change.
48723         * lib/findprog.c: Include concat-filename.h, not filename.h.
48724         (find_in_path): Use xconcatenated_filename instead of
48725         concatenated_filename.
48726         * lib/javacomp.c: Include concat-filename.h, not filename.h.
48727         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
48728         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
48729         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
48730         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
48731         instead of concatenated_filename.
48732         * lib/javaexec.c: Include concat-filename.h, not filename.h.
48733         (execute_java_class): Use xconcatenated_filename instead of
48734         concatenated_filename.
48735         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
48736         * modules/javacomp (Depends-on): Likewise.
48737         * modules/javaexec (Depends-on): Likewise.
48738
48739 2008-09-01  Bruno Haible  <bruno@clisp.org>
48740
48741         Split module 'filename' into 'filename' and 'concat-filename'.
48742         * modules/filename: Keep only lib/filename.h.
48743         (License): Change to LGPLv2+.
48744         * modules/concat-filename: New file, extracted from modules/filename.
48745         * lib/filename.h (concatenated_filename): Remove declaration.
48746         * lib/concat-filename.h: New file, extracted from lib/filename.h.
48747         * lib/concat-filename.c: Include concat-filename.h.
48748         * NEWS: Mention the change.
48749
48750 2008-09-01  Simon Josefsson  <simon@josefsson.org>
48751
48752         * lib/bitrotate.h (rotl8, rotr8): Add.
48753
48754         * modules/bitrotate (configure.ac): Need
48755         AC_REQUIRE([AC_C_INLINE]).
48756         (Description): Mention stdint.h.  Reported by Bruno Haible
48757         <bruno@clisp.org>.
48758
48759         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
48760         Paolo Bonzini <bonzini@gnu.org>.
48761
48762 2008-08-31  Bruno Haible  <bruno@clisp.org>
48763
48764         Assume Solaris specific bi-arch conventions on Solaris systems.
48765         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
48766         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
48767         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
48768         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
48769         like acl_libdirstem.
48770         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
48771         acl_libdirstem.
48772         * NEWS: Mention the change.
48773         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
48774
48775 2008-08-31  Jim Meyering  <meyering@redhat.com>
48776
48777         * lib/strftime.h: Add comments describing the two added arguments.
48778
48779         remove duplicate #include directives
48780         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
48781         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
48782
48783 2008-08-31  Bruno Haible  <bruno@clisp.org>
48784
48785         New module 'sigpipe-die'.
48786         * modules/sigpipe-die: New file.
48787         * lib/sigpipe-die.h: New file.
48788         * lib/sigpipe-die.c: New file.
48789         * MODULES.html.sh (Signal handling): Add sigpipe-die.
48790
48791 2008-08-31  Bruno Haible  <bruno@clisp.org>
48792
48793         Don't override previously installed signal handlers.
48794         * lib/fatal-signal.c (saved_sigactions): New variable.
48795         (uninstall_handlers): Reset the signal to the saved handler, not
48796         to SIG_DFL (except when ignored).
48797         (install_handlers): Save the previous handlers.
48798
48799 2008-08-30  Bruno Haible  <bruno@clisp.org>
48800
48801         * gnulib-tool (func_reset_sigpipe): New function.
48802         (func_get_automake_snippet, func_modules_transitive_closure,
48803         func_import): Invoke it before a join command that reads from stdin,
48804         to avoid "echo: write error: Broken pipe" error messages on stderr.
48805         Reported by Sam Steingold <sds@gnu.org>.
48806
48807 2008-08-30  Bruno Haible  <bruno@clisp.org>
48808
48809         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
48810         Code copied from m4/open.m4.
48811         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
48812         access and the filename ends in a slash. Code copied from lib/open.c.
48813         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
48814         * tests/test-fopen.c (main): Check against bug with trailing slash.
48815
48816 2008-08-29  Bruno Haible  <bruno@clisp.org>
48817
48818         Avoid some "gcc -pedantic" warnings.
48819         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
48820         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
48821         * lib/dirent.in.h: Likewise.
48822         * lib/fcntl.in.h: Likewise.
48823         * lib/float.in.h: Likewise.
48824         * lib/iconv.in.h: Likewise.
48825         * lib/inttypes.in.h: Likewise.
48826         * lib/locale.in.h: Likewise.
48827         * lib/math.in.h: Likewise.
48828         * lib/netinet_in.in.h: Likewise.
48829         * lib/search.in.h: Likewise.
48830         * lib/signal.in.h: Likewise.
48831         * lib/stdarg.in.h: Likewise.
48832         * lib/stdint.in.h: Likewise.
48833         * lib/stdio.in.h: Likewise.
48834         * lib/stdlib.in.h: Likewise.
48835         * lib/string.in.h: Likewise.
48836         * lib/strings.in.h: Likewise.
48837         * lib/sys_select.in.h: Likewise.
48838         * lib/sys_socket.in.h: Likewise.
48839         * lib/sys_stat.in.h: Likewise.
48840         * lib/sys_time.in.h: Likewise.
48841         * lib/sysexits.in.h: Likewise.
48842         * lib/time.in.h: Likewise.
48843         * lib/unistd.in.h: Likewise.
48844         * lib/wchar.in.h: Likewise.
48845         * lib/wctype.in.h: Likewise.
48846         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
48847         * modules/fchdir (Makefile.am): Likewise.
48848         * modules/fcntl (Makefile.am): Likewise.
48849         * modules/float (Makefile.am): Likewise.
48850         * modules/iconv_open (Makefile.am): Likewise.
48851         * modules/inttypes (Makefile.am): Likewise.
48852         * modules/locale (Makefile.am): Likewise.
48853         * modules/math (Makefile.am): Likewise.
48854         * modules/netinet_in (Makefile.am): Likewise.
48855         * modules/search (Makefile.am): Likewise.
48856         * modules/signal (Makefile.am): Likewise.
48857         * modules/stdarg (Makefile.am): Likewise.
48858         * modules/stdint (Makefile.am): Likewise.
48859         * modules/stdio (Makefile.am): Likewise.
48860         * modules/stdlib (Makefile.am): Likewise.
48861         * modules/string (Makefile.am): Likewise.
48862         * modules/strings (Makefile.am): Likewise.
48863         * modules/sys_select (Makefile.am): Likewise.
48864         * modules/sys_socket (Makefile.am): Likewise.
48865         * modules/sys_stat (Makefile.am): Likewise.
48866         * modules/sys_time (Makefile.am): Likewise.
48867         * modules/sysexits (Makefile.am): Likewise.
48868         * modules/time (Makefile.am): Likewise.
48869         * modules/unistd (Makefile.am): Likewise.
48870         * modules/wchar (Makefile.am): Likewise.
48871         * modules/wctype (Makefile.am): Likewise.
48872         Reported by Reuben Thomas <rrt@sc3d.org>.
48873
48874 2008-08-29  Bruno Haible  <bruno@clisp.org>
48875
48876         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
48877         any more.
48878
48879 2008-08-29  Simon Josefsson  <simon@josefsson.org>
48880
48881         * MODULES.html.sh (Misc): Add bitrotate.
48882
48883         * modules/bitrotate: New file.
48884
48885         * lib/bitrotate.h: New file.
48886
48887         * modules/bitrotate-tests: New file.
48888
48889         * tests/test-bitrotate.c: New file.
48890
48891         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
48892         on the bitrotate module.
48893
48894         * lib/arctwo.c: Use new bitrotate module.
48895
48896 2008-08-29  Jim Meyering  <meyering@redhat.com>
48897
48898         bootstrap: merge changes from coreutils
48899         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
48900         of copied files.  Remove a kludge, now that this is fixed.
48901         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
48902         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
48903         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
48904
48905 2008-08-29  Bruno Haible  <bruno@clisp.org>
48906
48907         * MODULES.html.sh: Remove --cvs-urls option.
48908
48909 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
48910
48911         maint.mk: adjust to file name change
48912         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
48913
48914 2008-08-28  Jim Meyering  <meyering@redhat.com>
48915
48916         * modules/getndelim2 (License): Relicense to LGPLv2+.
48917         Approved by Richard Stallman for the version of 1995, and by
48918         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
48919
48920 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
48921
48922         * lib/getdelim.c (flockfile, funlockfile): Make all of them
48923         dummy if one is not available.  Do not touch them if
48924         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
48925         (getc_maybe_unlocked): New.
48926         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
48927
48928 2008-08-26  Eric Blake  <ebb9@byu.net>
48929
48930         doc/INSTALL: resync from autoconf
48931         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
48932         (INSTALL_PRELUDE): Delete; this is done more efficiently by
48933         moving...
48934         * install.texi [!autoconf]: ...here.  Resync from autoconf.
48935         * INSTALL: Regenerate.
48936         * INSTALL.ISO: New file.
48937         * INSTALL.UTF-8: Likewise.
48938
48939 2008-08-26  Jim Meyering  <meyering@redhat.com>
48940
48941         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
48942         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
48943         these definitions conditional, so that they may be overridden, too.
48944
48945 2008-08-26  Bruno Haible  <bruno@clisp.org>
48946
48947         Generate INSTALL file variants with prettier quotes.
48948         * doc/Makefile (INSTALL_PRELUDE): New macro.
48949         (INSTALL): Use it.
48950         (INSTALL.ISO, INSTALL.UTF-8): New rules.
48951
48952 2008-08-26  Bruno Haible  <bruno@clisp.org>
48953
48954         Run makeinfo in an English locale.
48955         * doc/Makefile (MAKEINFO): New variable.
48956
48957 2008-08-26  Bruno Haible  <bruno@clisp.org>
48958
48959         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
48960         Suggested by Eric Blake.
48961
48962 2008-08-25  Bruno Haible  <bruno@clisp.org>
48963
48964         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
48965
48966 2008-08-25  Eric Blake  <ebb9@byu.net>
48967
48968         c-stack: test that stack overflow can be caught
48969         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
48970         that platform allows handling stack overflow; at least OS/2 EMX
48971         has sigaltstack, but crashes before transferring control to
48972         handler on stack overflow.
48973         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
48974         check for HAVE_STACK_OVERFLOW_HANDLING.
48975         Reported by Elbert Pol.
48976
48977 2008-08-25  Bruno Haible  <bruno@clisp.org>
48978
48979         * doc/posix-functions/strftime.texi: Fix description of strftime
48980         module.
48981
48982 2008-08-24  Bruno Haible  <bruno@clisp.org>
48983
48984         * tests/uniwidth/test-uc_width2.c: New file.
48985         * tests/uniwidth/test-uc_width2.sh: New file.
48986         * modules/uniwidth/width-tests (Files): Add the new files.
48987         (TESTS): Add uniwidth/test-uc_width2.sh.
48988         (TESTS_ENVIRONMENT): New variable.
48989         (check_PROGRAMS): Add test-uc_width2.
48990         (test_uc_width2_SOURCES): New variable.
48991
48992         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
48993         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
48994         not 0x00AB.
48995         Reported by Alexander V. Lukyanov <lav@netis.ru>.
48996
48997 2008-08-22  Eric Blake  <ebb9@byu.net>
48998
48999         test-lock, test-tls: mention why a test is skipped
49000         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
49001         skipped.
49002         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
49003
49004         count-one-bits: relax license
49005         * modules/count-one-bits (License): Relicense to LGPLv2+.
49006         Suggested by Ludovic Courtès, approved by Ben Pfaff.
49007
49008 2008-08-22  Andreas Schwab  <schwab@suse.de>
49009
49010         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
49011         Remove spurious space in assignment.
49012
49013 2008-08-21  Simon Josefsson  <simon@josefsson.org>
49014
49015         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
49016         Paul Eggert <eggert@CS.UCLA.EDU>.
49017
49018 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
49019
49020         * modules/gettext: Add m4/threadlib.m4.
49021
49022 2008-08-19  Eric Blake  <ebb9@byu.net>
49023
49024         test-c-stack: fix compilation failure on FreeBSD 5.0
49025         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
49026         headers before <sys/resource.h>.
49027         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
49028         the bug.
49029         Reported by Nelson H. F. Beebe.
49030
49031         strverscmp: migrate from "strverscmp.h" to <string.h>
49032         * modules/string (Makefile.am): Add new hooks.
49033         * modules/strverscmp (Files): Remove strverscmp.h.
49034         (Depends-on): Add string.
49035         (configure.ac): Add indicator.
49036         (Include): Mention new header.
49037         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
49038         defaults.
49039         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
49040         results.
49041         * lib/strverscmp.h: Delete.
49042         * lib/string.in.h (strverscmp): Provide declaration, when needed.
49043         * tests/test-strverscmp.c (includes): Adjust client.
49044         * lib/check-version.c (includes): Likewise.
49045         * NEWS: Document the change.
49046
49047         strverscmp: add unit test
49048         * modules/strverscmp-tests: New file.
49049         * tests/test-strverscmp.c: Likewise.
49050
49051 2008-08-19  Simon Josefsson  <simon@josefsson.org>
49052
49053         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
49054         regarding Windows crypto stuff, from Mono.
49055
49056 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
49057
49058         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
49059         if present, for intel RND.  Return error on failures.
49060
49061 2008-08-18  Ben Pfaff  <blp@gnu.org>
49062
49063         gitlog-to-changelog: give better diagnostic for failed pipe-open
49064         * build-aux/gitlog-to-changelog: Improve error message: suggest
49065         that the version of Git may be too old.
49066
49067 2008-08-18  Simon Josefsson  <simon@josefsson.org>
49068
49069         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
49070         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
49071
49072 2008-08-18  Bruno Haible  <bruno@clisp.org>
49073
49074         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
49075         pthread_in_use().
49076
49077 2008-08-18  Bruno Haible  <bruno@clisp.org>
49078
49079         * lib/glthread/threadlib.c: Include <pthread.h>.
49080
49081 2008-08-18  Bruno Haible  <bruno@clisp.org>
49082
49083         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
49084         glthread_recursive_lock_* macros.
49085         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
49086         Fix syntax error.
49087
49088 2008-08-18  Bruno Haible  <bruno@clisp.org>
49089
49090         * lib/glthread/thread.c: Avoid forcing a context switch right after
49091         thread creation.
49092
49093 2008-08-17  Bruno Haible  <bruno@clisp.org>
49094
49095         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
49096         * lib/glthread/thread.h: Provide Win32 specific implementation.
49097         * modules/thread (Files): Add lib/glthread/thread.c.
49098         (Depends-on): Add lock.
49099         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
49100
49101 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49102
49103         New module 'yield'.
49104         * modules/yield: New file.
49105         * lib/glthread/yield.h: New file.
49106         * m4/yield.m4: New file.
49107         * MODULES.html.sh (Multithreading): Add yield.
49108
49109 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49110
49111         New module 'thread'.
49112         * modules/thread: New file.
49113         * lib/glthread/thread.h: New file.
49114         * m4/thread.m4: New file.
49115         * MODULES.html.sh (Multithreading): Add thread.
49116
49117 2008-08-17  Bruno Haible  <bruno@clisp.org>
49118
49119         * lib/glthread/lock.h: Include <stdlib.h> always.
49120         * lib/glthread/tls.h: Likewise.
49121         * lib/glthread/cond.h: Likewise.
49122
49123 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49124
49125         New module 'cond'.
49126         * modules/cond: New file.
49127         * lib/glthread/cond.h: New file.
49128         * lib/glthread/cond.c: New file.
49129         * m4/cond.m4: New file.
49130         * MODULES.html.sh (Multithreading): Add cond.
49131
49132 2008-08-16  Eric Blake  <ebb9@byu.net>
49133
49134         c-stack: fix regression on Irix 5.3 from 2008-06-21
49135         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
49136         sa_sigaction...
49137         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
49138         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
49139         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
49140         * modules/signal (Makefile.am): Use the value.
49141         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
49142         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
49143         * doc/posix-headers/signal.texi (signal.h): Document this
49144         portability issue.
49145         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
49146         Reported by Tom G. Christensen.
49147
49148 2008-08-17  Bruno Haible  <bruno@clisp.org>
49149
49150         New module 'threadlib'.
49151         * modules/threadlib: New file.
49152         * lib/glthread/threadlib.c: New file, extracted from
49153         lib/glthread/lock.c.
49154         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
49155         functions.
49156         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
49157         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
49158         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
49159         macros.
49160         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
49161         (gl_DISABLE_THREADS): Remove macro.
49162         * modules/lock (Files): Remove build-aux/config.rpath.
49163         (Depends-on): Remove havelib. Add threadlib.
49164         (configure.ac-early): Remove section.
49165         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
49166         * modules/tls (Depends-on): Remove lock. Add threadlib.
49167         (Link): New section, copied from threadlib.
49168         * MODULES.html.sh (Multithreading): Add threadlib.
49169
49170 2008-08-14  Bruno Haible  <bruno@clisp.org>
49171
49172         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
49173         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
49174         glthread_rwlock_unlock, glthread_rwlock_destroy,
49175         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
49176         glthread_recursive_lock_destroy): Define as macros always.
49177         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
49178         glthread_lock_lock.
49179         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
49180         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
49181         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
49182         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
49183         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
49184         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
49185         (glthread_recursive_lock_lock_func): Renamed from
49186         glthread_recursive_lock_lock.
49187         (glthread_recursive_lock_unlock_func): Renamed from
49188         glthread_recursive_lock_unlock.
49189         (glthread_recursive_lock_destroy_func): Renamed from
49190         glthread_recursive_lock_destroy.
49191
49192 2008-08-14  Bruno Haible  <bruno@clisp.org>
49193
49194         * lib/glthread/lock.h: Renamed from lib/lock.h.
49195         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
49196         * lib/glthread/tls.h: Renamed from lib/tls.h.
49197         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
49198         * lib/fstrcmp.c: Update includes.
49199         * lib/strsignal.c: Update includes.
49200         * modules/lock (Files, Makefile.am): Update.
49201         (Include): Change to "glthread/lock.h".
49202         * modules/tls (Files, Makefile.am): Update.
49203         (Include): Change to "glthread/tls.h".
49204         * tests/test-lock.c: Update includes.
49205         * tests/test-tls.c: Update includes.
49206         * NEWS: Mention the renamed header files.
49207
49208 2008-08-11  Jim Meyering  <meyering@redhat.com>
49209
49210         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
49211
49212 2008-08-11  Eric Blake  <ebb9@byu.net>
49213
49214         test-c-stack: avoid C99-ism
49215         * tests/test-c-stack.c (main): Fix whitespace, move declaration
49216         before statement.
49217         Reported by Alain Guibert.
49218
49219 2008-08-10  Jim Meyering  <meyering@redhat.com>
49220
49221         ensure that return value of uinttostr et al are not ignored
49222         * lib/inttostr.h (__GNUC_PREREQ): Define.
49223         (__attribute_warn_unused_result__): Define.
49224         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
49225
49226 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
49227
49228         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
49229         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
49230
49231 2008-08-07  Jim Meyering  <meyering@redhat.com>
49232
49233         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
49234
49235         * modules/mkstemp (License): Relicense under LGPLv2+.
49236         * modules/tempname (License): Likewise.
49237
49238 2008-08-06  Bruno Haible  <bruno@clisp.org>
49239
49240         * lib/poll.c (poll): Further micro-optimization.
49241
49242 2008-08-06  Jim Meyering  <meyering@redhat.com>
49243
49244         inet_pton.c: use locale-independent tolower
49245         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
49246         (inet_pton6): Use c_tolower rather than tolower.
49247         * modules/inet_pton (Depends-on): Add c-ctype.
49248
49249 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
49250
49251         * lib/poll.c (poll): Avoid division when timeout is 0, cache
49252         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
49253
49254 2008-08-06  Jim Meyering  <meyering@redhat.com>
49255
49256         * modules/inet_pton (License): Relicense under LGPLv2+.
49257
49258 2008-08-03  Bruno Haible  <bruno@clisp.org>
49259
49260         Additional non-aborting API for lock and tls.
49261         * lib/lock.h: Include <errno.h>.
49262         (glthread_lock_init): New macro/function.
49263         (gl_lock_init): Define as wrapper around glthread_lock_init.
49264         (glthread_lock_lock): New macro/function.
49265         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
49266         (glthread_lock_unlock): New macro/function.
49267         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
49268         (glthread_lock_destroy): New macro/function.
49269         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
49270         (glthread_rwlock_init): New macro/function.
49271         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
49272         (glthread_rwlock_rdlock): New macro/function.
49273         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
49274         (glthread_rwlock_wrlock): New macro/function.
49275         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
49276         (glthread_rwlock_unlock): New macro/function.
49277         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
49278         (glthread_rwlock_destroy): New macro/function.
49279         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
49280         (glthread_recursive_lock_init): New macro/function.
49281         (gl_recursive_lock_init): Define as wrapper around
49282         glthread_recursive_lock_init.
49283         (glthread_recursive_lock_lock): New macro/function.
49284         (gl_recursive_lock_lock): Define as wrapper around
49285         glthread_recursive_lock_lock.
49286         (glthread_recursive_lock_unlock): New macro/function.
49287         (gl_recursive_lock_unlock): Define as wrapper around
49288         glthread_recursive_lock_unlock.
49289         (glthread_recursive_lock_destroy): New macro/function.
49290         (gl_recursive_lock_destroy): Define as wrapper around
49291         glthread_recursive_lock_destroy.
49292         (glthread_once): New macro/function.
49293         (gl_once): Define as wrapper around glthread_once.
49294         Update function declarations.
49295         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
49296         glthread_rwlock_init. Return error code.
49297         (glthread_rwlock_rdlock_multithreaded): Renamed from
49298         glthread_rwlock_rdlock. Return error code.
49299         (glthread_rwlock_wrlock_multithreaded): Renamed from
49300         glthread_rwlock_wrlock. Return error code.
49301         (glthread_rwlock_unlock_multithreaded): Renamed from
49302         glthread_rwlock_unlock. Return error code.
49303         (glthread_rwlock_destroy_multithreaded): Renamed from
49304         glthread_rwlock_destroy. Return error code.
49305         (glthread_recursive_lock_init_multithreaded): Renamed from
49306         glthread_recursive_lock_init. Return error code.
49307         (glthread_recursive_lock_lock_multithreaded): Renamed from
49308         glthread_recursive_lock_lock. Return error code.
49309         (glthread_recursive_lock_unlock_multithreaded): Renamed from
49310         glthread_recursive_lock_unlock. Return error code.
49311         (glthread_recursive_lock_destroy_multithreaded): Renamed from
49312         glthread_recursive_lock_destroy. Return error code.
49313         (glthread_once_call): Make static.
49314         (glthread_once_multithreaded): Renamed from glthread_once.
49315         * lib/tls.h: Include <errno.h>.
49316         (glthread_tls_key_init): New macro/function.
49317         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
49318         (glthread_tls_set): New macro/function.
49319         (gl_tls_set): Define as wrapper around glthread_tls_set.
49320         (glthread_tls_key_destroy): New macro/function.
49321         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
49322         Update function declarations.
49323         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
49324         glthread_tls_get.
49325         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49326
49327 2008-08-04  Eric Blake  <ebb9@byu.net>
49328
49329         gnumakefile: use space, not TAB, outside of targets
49330         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
49331
49332 2008-08-02  Jim Meyering  <meyering@redhat.com>
49333
49334         getdate.y: avoid locale-dependent date parsing failure
49335         In Turkish locales, getdate would fail to recognize keywords
49336         containing a lowercase "i".  The solution is not to rely on
49337         locale-sensitive case-conversion.
49338         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
49339         (lookup_word): Use c_toupper in place of toupper.
49340         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
49341         Reported by Vefa Bicakci <bicave@superonline.com> in
49342         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
49343         * modules/getdate (Depends-on): Add c-ctype.
49344
49345 2008-08-02  Bruno Haible  <bruno@clisp.org>
49346
49347         * gnulib-tool (func_import): When updating or creating a .gitignore
49348         file, prepend each added line with a slash, and ignore leading slashes
49349         from the existing lines.
49350         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49351
49352 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49353
49354         Portability fix for GNU make 3.79.1.
49355         * top/GNUmakefile: Avoid 'else COND', which older GNU make
49356         versions do not understand.
49357
49358 2008-08-01  Bruno Haible  <bruno@clisp.org>
49359
49360         Work around bug of HP-UX 10.20 cc with -0.0 literal.
49361         * tests/test-isnanf.h (zero): New variable.
49362         (main): Avoid literal -0.0f.
49363         * tests/test-isnand.h (zero): New variable.
49364         (main): Avoid literal -0.0.
49365         * tests/test-isnanl.h (zero): New variable.
49366         (main): Avoid literal -0.0L.
49367         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
49368         (test_float, test_double, test_long_double): Avoid literals -0.0f,
49369         -0.0, -0.0L.
49370         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
49371         (test_signbitd): Avoid literal -0.0.
49372         (test_signbitl): Avoid literal -0.0L.
49373         * tests/test-ceilf1.c (zero): New variable.
49374         (main): Avoid literal -0.0f.
49375         * tests/test-ceill.c (zero): New variable.
49376         (main): Avoid literal -0.0L.
49377         * tests/test-floorf1.c (zero): New variable.
49378         (main): Avoid literal -0.0f.
49379         * tests/test-floorl.c (zero): New variable.
49380         (main): Avoid literal -0.0L.
49381         * tests/test-roundf1.c (zero): New variable.
49382         (main): Avoid literal -0.0f.
49383         * tests/test-round1.c (zero): New variable.
49384         (main): Avoid literal -0.0.
49385         * tests/test-roundl.c (zero): New variable.
49386         (main): Avoid literal -0.0L.
49387         * tests/test-truncf1.c (zero): New variable.
49388         (main): Avoid literal -0.0f.
49389         * tests/test-trunc1.c (zero): New variable.
49390         (main): Avoid literal -0.0.
49391         * tests/test-truncl.c (zero): New variable.
49392         (main): Avoid literal -0.0L.
49393         * tests/test-frexp.c (zero): New variable.
49394         (main): Avoid literal -0.0.
49395         * tests/test-frexpl.c (zero): New variable.
49396         (main): Avoid literal -0.0L.
49397         * tests/test-ldexpl.c (zero): New variable.
49398         (main): Avoid literal -0.0L.
49399         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49400         (zerod, zerol): New variables.
49401         (test_function): Avoid literals -0.0, -0.0L.
49402         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49403         (zerod, zerol): New variables.
49404         (test_function): Avoid literals -0.0, -0.0L.
49405         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49406         (zerod, zerol): New variables.
49407         (test_function): Avoid literals -0.0, -0.0L.
49408         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49409         (zerod, zerol): New variables.
49410         (test_function): Avoid literals -0.0, -0.0L.
49411         * tests/test-strtod.c (zero): New variable.
49412         (main): Avoid literal -0.0.
49413         Reported by Jonathan C. Patschke <jp@centtech.com>.
49414
49415 2008-07-31  Jim Meyering  <meyering@redhat.com>
49416
49417         sha256.h: correct definition of SHA224_DIGEST_SIZE
49418         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
49419         Reported by Paulie Pena IV <paulie4@gmail.com>.
49420         Define as 224 / 8, rather than as a literal.
49421         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
49422         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
49423         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
49424
49425 2008-07-31  Bruno Haible  <bruno@clisp.org>
49426
49427         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
49428         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
49429         Reported by Jonathan Patschke <jp@centtech.com>.
49430
49431 2008-07-31  Bruno Haible  <bruno@clisp.org>
49432
49433         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
49434         Reported by Paolo Bonzini <bonzini@gnu.org>.
49435
49436 2008-07-30  Eric Blake  <ebb9@byu.net>
49437
49438         test-strtod: allow compilation without -lm
49439         * tests/test-strtod.c (main): Avoid link dependence on fabs.
49440         Reported by Dennis Clarke <blastwave@gmail.com>.
49441
49442 2008-07-28  Jim Meyering  <meyering@redhat.com>
49443
49444         bootstrap: work also when there are no .po files in po/
49445         * build-aux/bootstrap (update_po_files): Complete the change
49446         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
49447
49448 2008-07-27  Jim Meyering  <meyering@redhat.com>
49449
49450         * users.txt: Add zile.
49451
49452 2008-07-26  Ben Pfaff  <blp@gnu.org>
49453
49454         Add missing dependencies on new m4/exponent[fdl].m4 files.
49455         * modules/isnanf-nolibm: Add m4/exponentf.m4.
49456         * modules/isnand-nolibm: Add m4/exponentd.m4.
49457         * modules/isnanl-nolibm: Add m4/exponentl.m4.
49458         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
49459         m4/isnan[fdl].m4, because the macros actually used moved.
49460         Reported by Jim Meyering.
49461
49462 2008-07-14  Ben Pfaff  <blp@gnu.org>
49463
49464         Add isinf module.
49465         * lib/isinf.c: New file.
49466         * lib/math.in.h: Define isinf macro if we have decided to replace
49467         it.
49468         * m4/isinf.m4: New file.
49469         * m4/math_h.m4: Initialize and substitute variables for isinf
49470         module.
49471         * modules/isinf: New file.
49472         * modules/isinf-tests: New file.
49473         * modules/math: Add substitutions for new module.
49474         * tests/test-isinf.c: New file.
49475         * doc/posix-functions/isinf.texi: Mention new module.
49476         * MODULES.html.sh: Mention new module.
49477
49478 2008-07-14  Ben Pfaff  <blp@gnu.org>
49479
49480         Factor out some macros for use by additional modules.
49481         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
49482         exponentf.m4.
49483         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
49484         exponentd.m4.
49485         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
49486         file exponentl.m4.
49487         * m4/exponentf.m4: New file.
49488         * m4/exponentd.m4: New file.
49489         * m4/exponentl.m4: New file.
49490         * modules/isnanf: Use new file m4/exponentf.m4.
49491         * modules/isnand: Use new file m4/exponentd.m4.
49492         * modules/isnanl: Use new file m4/exponentl.m4.
49493
49494 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
49495
49496         mktime.c: normalize tp->tm_isdst value to -1/0/1.
49497         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
49498         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
49499         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
49500
49501         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
49502         readlink on platforms without PATH_MAX.
49503
49504 2008-07-21  Eric Blake  <ebb9@byu.net>
49505
49506         Warn, not fail, on stale version.
49507         * top/GNUmakefile (_curr-ver): Tone down previous patch.
49508
49509         Don't allow installation with stale devel version number.
49510         * top/GNUmakefile (_is-install-target): New macro.
49511         (_curr-ver): Forbid installation with stale version number.
49512
49513 2008-07-20  Bruno Haible  <bruno@clisp.org>
49514
49515         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
49516         TESTS_ENVIRONMENT.
49517         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
49518
49519 2008-07-20  Bruno Haible  <bruno@clisp.org>
49520
49521         * lib/c-stack.h (c_stack_action): Add documentation.
49522         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
49523
49524 2008-07-20  Bruno Haible  <bruno@clisp.org>
49525
49526         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
49527         * modules/readlink (License): Likewise.
49528
49529 2008-07-17  Eric Blake  <ebb9@byu.net>
49530
49531         * modules/c-stack (Link): Fix typo.
49532
49533         Make c-stack use libsigsegv, when available.
49534         * modules/c-stack (Depends-on): Add libsigsegv.
49535         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
49536         needed.
49537         * lib/c-stack.c (SIGSTKSZ): Define fallback.
49538         (segv_handler, overflow_handler, c_stack_action)
49539         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
49540         implementation when libsigsegv is available, but only when using
49541         the library is necessary.
49542         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
49543         comment, explaining why XSI check fails on Linux.
49544         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
49545         * tests/test-c-stack2.sh: Tweak skip message.
49546         * NEWS: Document new link-time requirements.
49547
49548 2008-07-16  Eric Blake  <ebb9@byu.net>
49549
49550         c-stack: Expose false positives when not using libsigsegv.
49551         * modules/c-stack-tests (Files): Expand test.
49552         * tests/test-c-stack.c (main): Add means to conditionally trigger
49553         non-overflow SIGSEGV.
49554         * tests/test-c-stack2.sh: New file.
49555
49556 2008-07-14  Bruno Haible  <bruno@clisp.org>
49557
49558         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
49559         Reported by Eric Blake.
49560
49561 2008-07-14  Sam Steingold  <sds@gnu.org>
49562             Bruno Haible  <bruno@clisp.org>
49563
49564         New module libsigsegv.
49565         * modules/libsigsegv: New file.
49566         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
49567         modifications.
49568         * MODULES.html.sh (Signal handling): New section.
49569
49570 2008-07-14  Bruno Haible  <bruno@clisp.org>
49571
49572         * modules/unictype/ctype-* (Description): Add the word "function".
49573         Improves the resulting doc in MODULES.html.
49574
49575 2008-07-12  Ben Pfaff  <blp@gnu.org>
49576
49577         Add longlong module.
49578         * modules/longlong: New file.
49579
49580 2008-07-12  Bruno Haible  <bruno@clisp.org>
49581
49582         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
49583         to empty.
49584
49585 2008-07-10  Ben Pfaff  <blp@gnu.org>
49586
49587         Add isnan module.
49588         * doc/posix-functions/isnan.texi: Mention new module.
49589         * lib/math.in.h: Define isnan macro if we have decided to replace
49590         it.
49591         * m4/isnan.m4: New file.
49592         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
49593         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
49594         also.
49595         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
49596         redundancy.
49597         * m4/math_h.m4: Initialize and substitute variables for isnan
49598         module.
49599         * modules/isnan: New file.
49600         * modules/isnan-tests: New file.
49601         * modules/math: Add substitutions for new module.
49602         * tests/test-isnan.c: New file.
49603         * MODULES.html.sh: Mention new module.
49604
49605 2008-07-10  Ben Pfaff  <blp@gnu.org>
49606
49607         Add isnanf module.
49608         * lib/isnanf.m4: New file.
49609         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
49610         (gl_HAVE_ISNANF_IN_LIBM): New macro.
49611         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
49612         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
49613         * modules/isnanf: New file.
49614         * modules/isnanf-tests: New file.
49615         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
49616         files.
49617         * tests/test-isnanf-nolibm.c: factored most of its contents into
49618         new file tests/test-isnanf.h.
49619         * tests/test-isnanf.h: New file.
49620         * tests/test-isnanf.c: New file.
49621         * MODULES.html.sh: Mention new module.
49622         * doc/glibc-functions/isnanf.texi: Mention new module.
49623
49624 2008-07-10  Ben Pfaff  <blp@gnu.org>
49625
49626         Add isnand module.
49627         * lib/isnand.h: New file.
49628         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
49629         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
49630         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
49631         functionality also.
49632         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
49633         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
49634         (gl_HAVE_ISNAND_IN_LIBM): New macro.
49635         * modules/isnand: New file.
49636         * modules/isnand-tests: New file.
49637         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
49638         files.
49639         * tests/test-isnand-nolibm.c: factored most of its contents into
49640         new file tests/test-isnand.h.
49641         * tests/test-isnand.h: New file.
49642         * tests/test-isnand.c: New file.
49643         * MODULES.html.sh: Mention new module.
49644
49645 2008-07-10  Ben Pfaff  <blp@gnu.org>
49646
49647         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
49648         * lib/isnand.h: Rename lib/isnand-nolibm.h.
49649         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
49650         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
49651         * modules/isnanf-nolibm: Update references to renamed files.
49652         * modules/isnand-nolibm: Likewise.
49653         * modules/isnanf-nolibm-tests: Likewise.
49654         * modules/isnand-nolibm-tests: Likewise.
49655         * lib/frexp.c: Likewise.
49656         * lib/isfinite.c: Likewise.
49657         * lib/signbitd.c: Likewise.
49658         * lib/signbitf.c: Likewise.
49659         * lib/vasnprintf.c: Likewise.
49660         * tests/test-ceilf1.c: Likewise.
49661         * tests/test-ceilf2.c: Likewise.
49662         * tests/test-floorf1.c: Likewise.
49663         * tests/test-floorf2.c: Likewise.
49664         * tests/test-frexp.c: Likewise.
49665         * tests/test-round1.c: Likewise.
49666         * tests/test-round2.c: Likewise.
49667         * tests/test-roundf1.c: Likewise.
49668         * tests/test-strtod.c: Likewise.
49669         * tests/test-trunc1.c: Likewise.
49670         * tests/test-trunc2.c: Likewise.
49671         * tests/test-truncf1.c: Likewise.
49672         * tests/test-truncf2.c: Likewise.
49673         * NEWS: Mention the renamed header files.
49674
49675 2008-07-11  Jim Meyering  <meyering@redhat.com>
49676
49677         vc-list-files: make the last-resort awk code more portable
49678         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
49679         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
49680         does not support it.
49681
49682 2008-07-10  Eric Blake  <ebb9@byu.net>
49683
49684         Work with tar's bootstrap.
49685         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
49686         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
49687         an m4 comment.
49688
49689 2008-07-09  Jim Meyering  <meyering@redhat.com>
49690
49691         posix-shell.m4: fix typo that made this test malfunction
49692         * m4/posix-shell.m4: Remove capitalization in variable name.
49693
49694 2008-07-08  Bruno Haible  <bruno@clisp.org>
49695
49696         * m4/onceonly.m4: Update comments.
49697         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49698
49699 2008-07-04  Jim Meyering  <meyering@redhat.com>
49700
49701         * users.txt: Add vc-dwim.
49702         (bison, coreutils): Use the gitweb URL.
49703
49704 2008-07-03  Jim Meyering  <meyering@redhat.com>
49705
49706         * users.txt: Add libffcall.  From Sam Steingold.
49707
49708 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
49709
49710         getdate.y: do not ignore TZ with relative day, month or year offset
49711         * lib/getdate.y (get_date): Move the tz-handling block to follow the
49712         relative-date-handling, since otherwise, the latter would clobber the
49713         sole output (an updated Start value) of the tz-handling block.
49714         * tests/test-getdate.c: Tests for the fix
49715
49716 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49717
49718         Recognize 'foo_LIBRARIES += libgnu.a'.
49719         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
49720         makefile snippet has already specified an installation location,
49721         also using '+='.
49722
49723 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
49724
49725         getdate.y: factor out common actions
49726         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
49727         Use them in place of open-coded actions.
49728
49729 2008-07-01  Simon Josefsson  <simon@josefsson.org>
49730
49731         Add self-test for getdate module.
49732         * modules/getdate-tests: New file.
49733         * tests/test-getdate.c: New file.
49734
49735 2008-06-29  Bruno Haible  <bruno@clisp.org>
49736
49737         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
49738         .gitignore.
49739         Reported by Sylvain Beucler <beuc@beuc.net>.
49740
49741 2008-06-29  Bruno Haible  <bruno@clisp.org>
49742
49743         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
49744         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
49745
49746 2008-06-29  Bruno Haible  <bruno@clisp.org>
49747
49748         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
49749         EXTRA_DIST.
49750         Reported by Sylvain Beucler <beuc@beuc.net>.
49751
49752 2008-06-26  Jim Meyering  <meyering@redhat.com>
49753
49754         make several modules depend on the "open" module
49755         This provides slightly increased consistency when opening-for-write
49756         the name of a non-directory spelled with a trailing slash.
49757         * modules/chdir-safer: Likewise.
49758         * modules/chown: Likewise.
49759         * modules/clean-temp: Likewise.
49760         * modules/copy-file: Likewise.
49761         * modules/fchdir: Likewise.
49762         * modules/fcntl-safer: Likewise.
49763         * modules/pipe: Likewise.
49764         * modules/utime: Likewise.
49765         Prompted by Eric Blake and Bruno Haible.
49766
49767 2008-06-24  Andreas Schwab  <schwab@suse.de>
49768
49769         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
49770         literals can be used as initializers for global variables.
49771
49772 2008-06-23  Eric Blake  <ebb9@byu.net>
49773
49774         Make gnulib-cache.m4 easier to diff.
49775         * gnulib-tool (func_import): Allow newlines when reading cached
49776         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
49777
49778 2008-06-23  Bruno Haible  <bruno@clisp.org>
49779
49780         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
49781         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
49782         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
49783         m4/signalblocking.m4.
49784         (gl_PREREQ_SIGACTION): Don't invoke it.
49785         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
49786         gl_PREREQ_SIG_HANDLER_H.
49787         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49788         Don't check for sigaction here.
49789
49790 2008-06-23  Bruno Haible  <bruno@clisp.org>
49791
49792         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
49793         (install_handlers): Don't set the SA_RESETHAND flag.
49794
49795 2008-06-23  Bruno Haible  <bruno@clisp.org>
49796
49797         * m4/sigaction.m4: Comment fixes.
49798         * lib/signal.in.h: Likewise.
49799
49800 2008-06-23  Eric Blake  <ebb9@byu.net>
49801
49802         Fix typo.
49803         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
49804
49805         Avoid SA_ namespace.
49806         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
49807         Reported by Ralf Wildenhues.
49808
49809         Avoid test failure due to SA_RESTORER.
49810         * tests/test-sigaction.c (SA_MASK): New macro.
49811         (main): Avoid failing due to extension flags being set.
49812         Reported by Jim Meyering.
49813
49814         Revert use of sig-handler.h in sigprocmask.c.
49815         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
49816         it requires the existence of struct sigaction.
49817         * lib/sigprocmask.c (handler_t): Restore typedef.
49818         (rpl_signal, old_handlers): Use local type.
49819
49820 2008-06-22  Bruno Haible  <bruno@clisp.org>
49821
49822         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
49823         conditionally.
49824         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49825
49826 2008-06-22  Bruno Haible  <bruno@clisp.org>
49827
49828         * doc/posix-functions/siginterrupt.texi: Move note.
49829
49830         * lib/signal.in.h (SA_RESTART): New macro.
49831         * lib/sigaction.c: Update comment.
49832
49833         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
49834
49835         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
49836         (gl_PREREQ_SIGPROCMASK): Invoke it.
49837         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
49838
49839         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
49840
49841         * lib/sigprocmask.c: Update a comment.
49842
49843 2008-06-21  Eric Blake  <ebb9@byu.net>
49844
49845         Use sigaction module rather than signal().
49846         * modules/c-stack (Depends-on): Add sigaction.
49847         * modules/fatal-signal (Depends-on): Likewise.
49848         * modules/nanosleep (Depends-on): Likewise.
49849         * modules/sigprocmask (Files): Add sig-handler.h.
49850         * modules/sigaction (Files): Likewise.
49851         * lib/sig-handler.h (get_handler): New file, suggested by Paul
49852         Eggert.
49853         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
49854         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
49855         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
49856         (init_fatal_signals): Likewise.
49857         * lib/nanosleep.c (rpl_nanosleep): Likewise.
49858         (siginterrupt): Delete fallback.
49859         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
49860         instead.
49861         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
49862         siginterrupt.
49863
49864         New module sigaction, for mingw.
49865         * modules/sigaction: New module...
49866         * modules/sigaction-tests: ...and its test.
49867         * m4/sigaction.m4: New file.
49868         * lib/sigaction.c: Likewise.
49869         * tests/test-sigaction.c: Likewise.
49870         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
49871         * modules/signal (Makefile.am): Likewise.
49872         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
49873         needed.
49874         * doc/posix-headers/signal.texi (signal.h): Mention provided
49875         types.
49876         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
49877         that sigaction is preferable.
49878         * doc/posix-functions/sigaction.texi (sigaction): Mention new
49879         module.
49880         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49881         sigaction.
49882
49883         Improve robustness of sigprocmask by overriding signal.
49884         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
49885         is in use.
49886         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
49887         (SIGKILL, SIGSTOP): Provide fallbacks.
49888         (rpl_signal): Implement.
49889         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
49890         signal can be called inside handlers.
49891
49892         Fix nanosleep module on mingw.
49893         * modules/nanosleep (Depends-on): Add sys_select.
49894         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
49895
49896         Fix licensing of sigprocmask.
49897         * modules/raise (License): Relicense as LGPL.
49898
49899 2008-06-21  Bruno Haible  <bruno@clisp.org>
49900
49901         * lib/propername.c (proper_name_utf8): Don't use the transliterated
49902         result if it contains question marks.
49903         Reported by Michael Geng <linux@michaelgeng.de>.
49904
49905 2008-06-19  Bruno Haible  <bruno@clisp.org>
49906
49907         Fix CVS-ism.
49908         * doc/gnulib.texi: Include updated-stamp.texi.
49909         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
49910         (updated-stamp.texi): New rule.
49911         (gnulib.info): Depend on it.
49912         * doc/.gitignore: Add updated-stamp.texi.
49913         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
49914
49915 2008-06-19  Bruno Haible  <bruno@clisp.org>
49916
49917         * doc/Makefile (gnulib.info): Update and simplify dependencies.
49918         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49919
49920 2008-06-19  Eric Blake  <ebb9@byu.net>
49921
49922         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
49923         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
49924         Reported by Stepan Kasal.
49925
49926 2008-06-18  Bruno Haible  <bruno@clisp.org>
49927
49928         * lib/fatal-signal.c (init_fatal_signals): Add comment.
49929         Reported by Eric Blake.
49930
49931 2008-06-18  Eric Blake  <ebb9@byu.net>
49932
49933         Work around cygwin 1.5.25 strsignal bug.
49934         * tests/test-strsignal.c: Allow for const char *.
49935         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
49936
49937 2008-06-18  Simon Josefsson  <simon@josefsson.org>
49938
49939         * users.txt: Update URL to article and add author/date
49940         information.
49941
49942 2008-06-17  Bruno Haible  <bruno@clisp.org>
49943
49944         New macro gl_DISABLE_THREADS.
49945         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
49946         if the user did not pass --enable-threads or --disable-threads option.
49947         (gl_DISABLE_THREADS): New macro.
49948         Reported by Eric Blake <ebb9@byu.net>.
49949
49950 2008-06-17  Bruno Haible  <bruno@clisp.org>
49951
49952         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
49953         when the macro ignores it.
49954         Based on a patch by Eric Blake <ebb9@byu.net>.
49955
49956 2008-06-17  Bruno Haible  <bruno@clisp.org>
49957
49958         * modules/tls (License): Change to LGPLv2+.
49959         Reported by Eric Blake.
49960
49961 2008-06-17  Eric Blake  <ebb9@byu.net>
49962
49963         Simplify c-stack prerequisites.
49964         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
49965         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
49966         no longer requires <ucontext.h> to exist.  Optimize setrlimit
49967         check.
49968         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
49969         <sys/resource.h>.
49970
49971         Move c-stack test into testsuite.
49972         * modules/c-stack-tests: New file.
49973         * lib/c-stack.c [DEBUG]: Move test program...
49974         * tests/test-c-stack.c: ...into this new file.  Skip rather than
49975         fail test if sigaltstack is lacking.
49976         * tests/test-c-stack.sh: New driver file.
49977
49978 2008-06-16  Eric Blake  <ebb9@byu.net>
49979
49980         Use raise module consistently.
49981         * modules/fatal-signal (Depends-on): Add raise.
49982         * modules/sigprocmask (Depends-on): Likewise.
49983         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
49984         * lib/sigprocmask.c (sigprocmask): Likewise.
49985         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49986         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
49987
49988         Fix compliance bug in sigpending.
49989         * lib/sigprocmask.c (sigpending): Return pending array via
49990         parameter, not return value.
49991
49992 2008-06-14  Eric Blake  <ebb9@byu.net>
49993
49994         Improve obstack-printf test code.
49995         * tests/test-obstack-printf.c (test_function): Fix comment, and
49996         simplify usage of obstack_* in macros.  Add a test for coverage.
49997         Reported by Bruno Haible.
49998
49999 2008-06-14  Bruno Haible  <bruno@clisp.org>
50000
50001         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
50002         array size as a constant, not as a const variable.
50003         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
50004         AC_USE_SYSTEM_EXTENSIONS.
50005         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50006         Test whether the obstack_printf function actually exists.
50007         * modules/obstack-printf (Depends-on): Add extensions.
50008         (Include): Remove obstack.h.
50009         * modules/obstack-printf-posix (Depends-on): Add extensions.
50010         (Include): Remove obstack.h.
50011
50012 2008-06-13  Eric Blake  <ebb9@byu.net>
50013
50014         Add obstack-printf and obstack-printf-posix modules.
50015         * modules/obstack-printf: New file.
50016         * modules/obstack-printf-posix: Likewise.
50017         * MODULES.html.sh (Misc): Mention them.
50018         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50019         Likewise.
50020         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50021         Likewise.
50022         * modules/stdio (Makefile.am): Accomodate new modules.
50023         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50024         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
50025         Declare.
50026         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
50027         functions.
50028         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
50029         (gl_REPLACE_OBSTACK_PRINTF): New macros
50030         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
50031         * tests/test-obstack-printf.c: New file.
50032         * modules/obstack-printf-tests: Likewise.
50033         * modules/obstack-printf-posix-tests: Likewise.
50034
50035 2008-06-11  Bruno Haible  <bruno@clisp.org>
50036
50037         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
50038         * lib/open.c: Include errno.h.
50039         (open): Fail when attempting to write to a file that has a trailing
50040         slash.
50041         * tests/test-open.c (main): Test against trailing slash bug.
50042         * doc/posix-functions/open.texi: Mention the trailing slash bug.
50043
50044 2008-06-10  Bruno Haible  <bruno@clisp.org>
50045
50046         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
50047         for $? to work inside the trap command, with various /bin/sh-s.
50048         * tests/test-vc-list-files-cvs.sh: Likewise.
50049
50050 2008-06-10  Bruno Haible  <bruno@clisp.org>
50051
50052         * lib/acl-internal.h: Don't include gettext.h here.
50053         * lib/set-mode-acl.c: Include gettext.h here.
50054         * lib/copy-acl.c: Likewise.
50055
50056 2008-06-10  Bruno Haible  <bruno@clisp.org>
50057
50058         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
50059         * lib/wait-process.c (wait_subprocess): Likewise.
50060         * lib/execute.h (execute): Add termsigp argument.
50061         * lib/execute.c (execute): Likewise.
50062         * lib/csharpcomp.c (compile_csharp_using_pnet,
50063         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
50064         * lib/csharpexec.c (execute_csharp_using_pnet,
50065         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
50066         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
50067         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
50068         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
50069         is_jikes_present): Update.
50070         * lib/javaexec.c (execute_java_class): Update.
50071         * lib/javaversion.c (execute_and_read_line): Update.
50072         * NEWS: Document the changes.
50073         Reported by Eric Blake.
50074
50075 2008-06-10  Eric Blake  <ebb9@byu.net>
50076
50077         Add missing include.
50078         * tests/test-strstr.c (includes): Add <signal.h>.
50079         * tests/test-strcasestr.c (includes): Likewise.
50080         * tests/test-memmem.c (includes): Likewise.
50081
50082 2008-06-10  Bruno Haible  <bruno@clisp.org>
50083
50084         * lib/wait-process.c (wait_subprocess): Add an assertion.
50085
50086 2008-06-10  Bruno Haible  <bruno@clisp.org>
50087
50088         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
50089
50090 2008-06-10  Bruno Haible  <bruno@clisp.org>
50091
50092         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
50093         using alarm().
50094         * tests/test-strcasestr.c (main): Likewise.
50095         * tests/test-strstr.c (main): Likewise.
50096
50097 2008-06-09  Bruno Haible  <bruno@clisp.org>
50098
50099         Work around the Solaris 10 ACE ACLs ABI change.
50100         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
50101         declare if ACL_NO_TRIVIAL is present.
50102         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
50103         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
50104         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
50105         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
50106         define if ACL_NO_TRIVIAL is present.
50107         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
50108         and use the current ABI.
50109         (file_has_acl): Use same #if condition as elsewhere.
50110         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
50111         in use, and use the current ABI.
50112         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
50113         Reported by Jim Meyering.
50114
50115 2008-06-09  Eric Blake  <ebb9@byu.net>
50116
50117         Work around environments that (stupidly) ignore SIGALRM.
50118         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
50119         before using alarm().
50120         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50121         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50122         Reported by Ian Beckwith <ianb@erislabs.net>.
50123
50124         Produce autobuild blurb earlier in log.
50125         * modules/autobuild (configure.ac-early): Move AB_INIT here.
50126
50127 2008-06-09  Jim Meyering  <meyering@redhat.com>
50128         and OndÅ™ej Vašík  <ovasik@redhat.com>
50129
50130         utimens.c: correct kernel bug work-around
50131         OndÅ™ej Vašík found that the invalid return value of 280 indicates
50132         failure, not success, and the kernel bug we're trying to work
50133         around affects not just the utimensat call, but also the fallback
50134         futimens call.
50135         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
50136         not success.
50137         [HAVE_FUTIMENS]: Use the same work-around, here.
50138
50139 2008-06-09  Jim Meyering  <meyering@redhat.com>
50140
50141         add more guards around definition of ACE_-related code
50142         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
50143         ALLOW and ACE_OWNER are also defined.
50144
50145 2008-06-08  Bruno Haible  <bruno@clisp.org>
50146
50147         * lib/acl-internal.h: Add me as co-author.
50148         * lib/file-has-acl.c: Likewise.
50149         * lib/set-mode-acl.c: Likewise.
50150         * lib/copy-acl.c: Likewise.
50151
50152 2008-06-08  Bruno Haible  <bruno@clisp.org>
50153
50154         Add support for AIX ACLs.
50155         * lib/acl-internal.h (acl_nontrivial): New declaration.
50156         * lib/file-has-acl.c (acl_nontrivial): New function.
50157         (file_has_acl): Add implementation using AIX 4 ACL API.
50158         * lib/set-mode-acl.c (qset_acl): Likewise.
50159         * lib/copy-acl.c (qcopy_acl): Likewise.
50160
50161 2008-06-08  Bruno Haible  <bruno@clisp.org>
50162
50163         Add support for HP-UX ACLs.
50164         * lib/acl-internal.h (acl_nontrivial): New declaration.
50165         * lib/file-has-acl.c (acl_nontrivial): New function.
50166         (file_has_acl): Add implementation using HP-UX 11 ACL API.
50167         * lib/set-mode-acl.c (qset_acl): Likewise.
50168         * lib/copy-acl.c (qcopy_acl): Likewise.
50169
50170 2008-06-08  Bruno Haible  <bruno@clisp.org>
50171
50172         Add support for Cygwin ACLs.
50173         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
50174         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
50175         the chmod_or_fchmod call.
50176         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
50177
50178 2008-06-08  Bruno Haible  <bruno@clisp.org>
50179
50180         Fix bug with setuid modes in Solaris 10+ code.
50181         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
50182         succeeded, when the mode contains some special bits.
50183
50184 2008-06-08  Bruno Haible  <bruno@clisp.org>
50185
50186         Add support for Solaris 7..10 ACLs.
50187         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
50188         declarations.
50189         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
50190         functions.
50191         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
50192         * lib/set-mode-acl.c (qset_acl): Likewise.
50193         * lib/copy-acl.c (qcopy_acl): Likewise.
50194
50195 2008-06-08  Bruno Haible  <bruno@clisp.org>
50196
50197         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
50198         declaration.
50199         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
50200         (acl_access_nontrivial): Remove MacOS X case.
50201         (file_has_acl): Use acl_extended_nontrivial.
50202         * lib/copy-acl.c (qcopy_acl): Likewise.
50203
50204 2008-06-08  Bruno Haible  <bruno@clisp.org>
50205
50206         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
50207
50208 2008-06-08  Jim Meyering  <meyering@redhat.com>
50209
50210         * modules/acl (Maintainer): Add Bruno Haible.
50211
50212 2008-06-07  Bruno Haible  <bruno@clisp.org>
50213
50214         Improve support for Tru64 ACLs.
50215         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
50216         ACL on OSF/1.
50217
50218 2008-06-07  Bruno Haible  <bruno@clisp.org>
50219
50220         Add support for MacOS X ACLs.
50221         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
50222         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
50223         * lib/set-mode-acl.c (qset_acl): Likewise.
50224         * lib/copy-acl.c (qcopy_acl): Likewise.
50225
50226 2008-06-07  Bruno Haible  <bruno@clisp.org>
50227
50228         Fix memory leak introduced on 2008-05-22.
50229         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
50230         use.
50231
50232 2008-06-07  Bruno Haible  <bruno@clisp.org>
50233
50234         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
50235         to construct an empty ACL.
50236
50237 2008-06-07  Bruno Haible  <bruno@clisp.org>
50238
50239         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
50240         precisely.
50241         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
50242
50243 2008-06-07  Bruno Haible  <bruno@clisp.org>
50244
50245         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
50246         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
50247
50248 2008-06-07  Bruno Haible  <bruno@clisp.org>
50249
50250         * doc/posix-functions/_setjmp.texi: Explain the use of this function
50251         regardless of POSIX.
50252         * doc/posix-functions/_longjmp.texi: Likewise.
50253         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
50254         SystemV platform in this case.
50255
50256 2008-06-06  Eric Blake  <ebb9@byu.net>
50257
50258         Document abort() bugs.
50259         * doc/posix-functions/abort.texi (abort): Mention anomalies.
50260
50261         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
50262         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
50263         sigsetjmp.
50264         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
50265         siglongjmp, but only as a macro.
50266         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
50267         is obsolete.
50268         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
50269
50270         Tweak documentation to cover cygwin argz bugs.
50271         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
50272         argz bug fix; no code change needed since no cygwin releases
50273         occurred between the last fix and the bug being tested.
50274         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
50275         module and recently fixed cygwin bugs.
50276         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
50277         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
50278         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
50279         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
50280         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
50281         Likewise.
50282         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
50283         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
50284         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
50285         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
50286         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
50287         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
50288         Likewise.
50289
50290         Avoid gcc warning on cygwin.
50291         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
50292         !ACL_NO_TRIVIAL]: Avoid unused variable.
50293
50294 2008-06-05  Eric Blake  <ebb9@byu.net>
50295
50296         Be tolerant of UNKNOWN version in gnulib-tool test dir.
50297         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
50298         git-version-gen fails to come up with a version.
50299         Reported by Simon Josefsson.
50300
50301 2008-06-05  Jim Meyering  <meyering@redhat.com>
50302             Paul Eggert  <eggert@cs.ucla.edu>
50303
50304         utimens.c: work around a probable Linux kernel bug
50305         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
50306         appears to be a kernel bug that causes utimensat to return 280
50307         instead of 0, indicating success.
50308
50309 2008-06-04  Bruno Haible  <bruno@clisp.org>
50310
50311         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
50312         2008-06-01 commit.
50313
50314 2008-06-04  Bruno Haible  <bruno@clisp.org>
50315
50316         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
50317         * lib/file-has-acl.c (acl_access_nontrivial): New function.
50318         (file_has_acl): Use it. Save errno afterwards.
50319         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
50320
50321 2008-06-03  Bruno Haible  <bruno@clisp.org>
50322
50323         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
50324         draft code. Simplify #ifs.
50325         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
50326         Put Solaris code after POSIX-draft code. Fix comments regarding
50327         Solaris 10, HP-UX. Mention Cygwin.
50328         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
50329
50330 2008-06-03  Eric Blake  <ebb9@byu.net>
50331
50332         Provide fallback for older kernels.
50333         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
50334         Provide runtime fallback if kernel lacks support.
50335         Reported by Mike Frysinger.
50336
50337 2008-06-02  Bruno Haible  <bruno@clisp.org>
50338
50339         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
50340         it exists.
50341
50342 2008-06-02  Bruno Haible  <bruno@clisp.org>
50343
50344         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
50345         * lib/copy-acl.c (qcopy_acl): Update comment.
50346
50347 2008-06-02  Bruno Haible  <bruno@clisp.org>
50348
50349         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
50350         like ACL APIs.
50351
50352 2008-06-02  Bruno Haible  <bruno@clisp.org>
50353
50354         * tests/test-file-has-acl.sh: Use different code for Cygwin.
50355         * tests/test-set-mode-acl.sh: Likewise.
50356         * tests/test-copy-acl.sh: Likewise.
50357         * tests/test-copy-file.sh: Likewise.
50358
50359 2008-06-02  Bruno Haible  <bruno@clisp.org>
50360
50361         * tests/test-file-has-acl.sh: Remove unused code.
50362
50363 2008-06-01  Bruno Haible  <bruno@clisp.org>
50364
50365         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
50366         (copy_acl): Just a wrapper around qcopy_acl that emits the error
50367         messages.
50368         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
50369
50370 2008-06-01  Bruno Haible  <bruno@clisp.org>
50371
50372         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
50373         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
50374         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
50375         APIs.
50376         * modules/acl-tests (configure.ac): Remove tests now contained in
50377         m4/acl.m4.
50378
50379 2008-06-02  Jim Meyering  <meyering@redhat.com>
50380
50381         announce-gen: use a better key-server host name
50382         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
50383         it may be more consistently reliable.  Suggested by Werner Koch
50384         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
50385
50386 2008-06-01  Bruno Haible  <bruno@clisp.org>
50387
50388         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
50389         Reported by Voroskoi Andras <voroskoi@gmail.com>.
50390
50391 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
50392
50393         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
50394
50395 2008-06-01  Bruno Haible  <bruno@clisp.org>
50396
50397         New ACL tests.
50398         * tests/test-file-has-acl.sh: New file.
50399         * tests/test-file-has-acl.c: New file.
50400         * tests/test-set-mode-acl.sh: New file.
50401         * tests/test-set-mode-acl.c: New file.
50402         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
50403         * tests/test-copy-acl.c: New file.
50404         * modules/acl-tests: New file, based on modules/copy-file-tests.
50405         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
50406         (Depends-on): Add acl-tests.
50407         (configure.ac): Remove checks.
50408         (Makefile.am): Don't create test-sameacls program here any more.
50409
50410 2008-06-01  Bruno Haible  <bruno@clisp.org>
50411
50412         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
50413         * tests/test-sameacls.c: Include progname.h.
50414         (main): Invoke set_program_name. Portability fixes for MacOS X,
50415         Solaris, HP-UX.
50416
50417 2008-06-01  Bruno Haible  <bruno@clisp.org>
50418
50419         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
50420         function.
50421         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
50422
50423 2008-06-01  Bruno Haible  <bruno@clisp.org>
50424
50425         * modules/rpmatch (Depends-on): Add strdup.
50426
50427 2008-06-01  Bruno Haible  <bruno@clisp.org>
50428
50429         * lib/pipe.c: Include unistd-safer.h.
50430         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
50431         * modules/pipe (Depends-on): Add unistd-safer.
50432
50433 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50434
50435         * modules/autobuild (configure.ac): Call AB_INIT.
50436
50437 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50438
50439         * tests/test-getaddrinfo.c: Don't print debug messages by default.
50440         Suggested by Bruno Haible <bruno@clisp.org>.
50441
50442 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50443
50444         * tests/test-base64.c: Cast size_t to unsigned long when invoking
50445         printf.  Use %lu instead of %d.  Reported by Bruno Haible
50446         <bruno@clisp.org>.
50447
50448 2008-05-29  Eric Blake  <ebb9@byu.net>
50449
50450         Prefer new POSIX 200x interfaces over futimesat.
50451         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
50452         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
50453         when available.
50454         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
50455
50456 2008-05-28  Bruno Haible  <bruno@clisp.org>
50457
50458         * modules/stpcpy (License): Change to LGPLv2+.
50459         Requested by David Lutterkort <dlutter@redhat.com>.
50460
50461 2008-05-27  Bruno Haible  <bruno@clisp.org>
50462
50463         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
50464         current mingw.
50465         Reported by Jose E. Marchesi <jemarch@gnu.org>.
50466
50467 2008-05-27  Bruno Haible  <bruno@clisp.org>
50468
50469         * modules/iconv_open (Link): New section, from module 'iconv'.
50470         * modules/striconv (Link): Likewise.
50471         * modules/striconveh (Link): Likewise.
50472         * modules/xstriconv (Link): Likewise.
50473         * modules/unicodeio (Link): Likewise.
50474         * modules/propername (Link): Likewise.
50475         Reported by Jim Meyering.
50476
50477 2008-05-26  Jim Meyering  <meyering@redhat.com>
50478
50479         sha256: do not artificially restrict buffer length to be < 2^32
50480         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
50481         uint32_t to size_t.
50482         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
50483         to match.
50484
50485         avoid unaligned access errors, e.g., on sparc
50486         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
50487         direct access through a possibly-unaligned uint64* pointer.
50488         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
50489         direct access through a possibly-unaligned uint32* pointer.
50490         Prompted by this patch from Tom "spot" Callaway:
50491         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
50492
50493         sha512.c: fix typo in comment
50494         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
50495
50496 2008-05-25  Bruno Haible  <bruno@clisp.org>
50497
50498         * lib/set-mode-acl.c: Renamed from lib/acl.c.
50499         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
50500         (Makefile.am): Update lib_SOURCES.
50501
50502 2008-05-25  Bruno Haible  <bruno@clisp.org>
50503
50504         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
50505
50506 2008-05-25  Jim Meyering  <meyering@redhat.com>
50507
50508         useless-if-before-free: freed expr may have white-space differences
50509         * build-aux/useless-if-before-free: Recognize cases in which the
50510         freed expression differs from the tested one in embedded white
50511         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
50512         $1 was used, so we can't make any regexp shy.  Improved tests now
50513         detect this.
50514
50515         useless-if-before-free: accept white space in the expression.
50516         * build-aux/useless-if-before-free: For now, any white space
50517         in the expression must be identical in the free argument.
50518
50519         useless-if-before-free: efficiency tweak
50520         * build-aux/useless-if-before-free: Make the expression-matching
50521         regexp "shy".
50522         Make the *outer* regexp shy, not the expr-matching one.
50523
50524         update code-in-comment to accept cast of free arg
50525         * build-aux/useless-if-before-free: Update regexp.
50526
50527 2008-05-25  Bruno Haible  <bruno@clisp.org>
50528
50529         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
50530         * modules/copy-file-tests (Files, Makefile.am): Update.
50531         * tests/test-copy-file.c (func_test_copy): Update.
50532
50533 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
50534
50535         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
50536
50537 2008-05-23  Bruno Haible  <bruno@clisp.org>
50538
50539         Improve support for ACLs on OSF/1.
50540         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
50541         Remove fallback for unknown flavors of ACLs.
50542
50543 2008-05-22  Bruno Haible  <bruno@clisp.org>
50544
50545         Add support for ACLs on OSF/1.
50546         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
50547         replacements.
50548         (acl_free_text): New macro fallback.
50549         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
50550         acl_free.
50551         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
50552         acl_free_text function. Require AC_C_INLINE.
50553
50554 2008-05-22  Bruno Haible  <bruno@clisp.org>
50555
50556         Make copy_acl work on MacOS X 10.5.
50557         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
50558         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
50559         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
50560         If MODE_INSIDE_ACL, don't assume that every system has the same text
50561         representation for ACLs as FreeBSD.
50562         * lib/copy-acl.c (copy_acl): Add support for platforms with
50563         !MODE_INSIDE_ACL.
50564         * lib/file-has-acl.c (file_has_acl): Likewise.
50565         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
50566         FreeBSD, MacOS X, or IRIX, respectively.
50567
50568 2008-05-22  Bruno Haible  <bruno@clisp.org>
50569
50570         * lib/acl.h: Don't include <sys/acl.h>.
50571         (GETACLCNT): Move fallback to lib/acl-internal.h.
50572         * lib/acl-internal.h: Include <sys/acl.h> here.
50573         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
50574
50575 2008-05-22  Bruno Haible  <bruno@clisp.org>
50576
50577         Split off copy_acl function to separate file.
50578         * lib/copy-acl.c: New file, extracted from lib/acl.c.
50579         * lib/acl.c (copy_acl): Moved function to separate file.
50580         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
50581         * modules/acl (Files): Add lib/copy-acl.c.
50582         (Makefiles.am): Augment lib_SOURCES.
50583
50584 2008-05-22  Bruno Haible  <bruno@clisp.org>
50585
50586         * modules/copy-file-tests: New file.
50587         * tests/test-copy-file.sh: New file.
50588         * tests/test-copy-file.c: New file.
50589         * tests/test-copy-file-sameacls.c: New file.
50590
50591 2008-05-22  Eric Blake  <ebb9@byu.net>
50592
50593         Avoid gcc warning.
50594         * tests/test-memcmp.c (main): Pass NULL indirectly.
50595
50596 2008-05-21  Bruno Haible  <bruno@clisp.org>
50597
50598         Add reference doc about ACLs.
50599         * doc/acl-resources.txt: New file.
50600         * doc/acl-cygwin.txt: New file.
50601
50602 2008-05-21  Bruno Haible  <bruno@clisp.org>
50603
50604         Avoid one more warning from gcc.
50605         * lib/vasnprintf.c (IF_LINT): Update comments.
50606         (VASNPRINTF): Use it also for the 'prefix' array initializer.
50607
50608 2008-05-21  Jim Meyering  <meyering@redhat.com>
50609
50610         avoid a warning from gcc
50611         * lib/vasnprintf.c (IF_LINT): Define.
50612         (scale10_round_decimal_long_double):
50613         Use it to avoid a "may be used uninitialized" warning.
50614         (scale10_round_decimal_double): Likewise.
50615
50616 2008-05-21  Simon Josefsson  <simon@josefsson.org>
50617
50618         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
50619         declared.
50620
50621 2008-05-20  Bruno Haible  <bruno@clisp.org>
50622
50623         * tests/test-memcmp.c (main): Test also the sign of the result. Test
50624         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
50625
50626 2008-05-20  Simon Josefsson  <simon@josefsson.org>
50627
50628         * modules/memcmp-tests: New file.
50629         * tests/test-memcmp.c: New file.
50630
50631 2008-05-19  Bruno Haible  <bruno@clisp.org>
50632
50633         * modules/propername (Notice, configure.ac): Put quoted "..." into
50634         --keyword option.
50635         * lib/propername.h: Update comments accordingly.
50636         Reported by Eric Blake.
50637
50638 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
50639
50640         * modules/getpass-gnu (Depends-on): Add fseeko.
50641
50642 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50643
50644         * modules/base64-tests: New file.
50645
50646 2008-05-19  Bo Borgerson <gigabo@gmail.com>
50647
50648         * lib/base64.c (base64_decode_ctx): If a decode context structure
50649         was passed in use it to ignore newlines.  If a context structure
50650         was _not_ passed in, continue to treat newlines as garbage (this
50651         is the historical behavior).  Formerly base64_decode.
50652         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50653         takes a decode context structure.
50654         * lib/base64.h (base64_decode): Macro for four-argument calls.
50655         (base64_decode_alloc): Likewise.
50656         * lib/base64.c (base64_decode_ctx): If a decode context structure
50657         was passed in use it to ignore newlines.  If a context structure
50658         was _not_ passed in, continue to treat newlines as garbage (this
50659         is the historical behavior).  Formerly base64_decode.
50660         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50661         takes a decode context structure.
50662         * lib/base64.h (base64_decode): Macro for four-argument calls.
50663         (base64_decode_alloc): Likewise.
50664
50665 2008-05-19  Jim Meyering  <meyering@redhat.com>
50666
50667         avoid a warning from gcc
50668         * lib/trim.c (IF_LINT): Define.
50669         (trim2): Use it to avoid a "may be used uninitialized" warning.
50670
50671         Fix doc typo.
50672         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
50673
50674 2008-05-19  Bruno Haible  <bruno@clisp.org>
50675
50676         * doc/glibc-functions/getpass.texi: Document limits of other
50677         implementations.
50678
50679 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50680             Bruno Haible <bruno@clisp.org>
50681
50682         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
50683
50684 2008-05-18  Bruno Haible  <bruno@clisp.org>
50685
50686         * modules/propername: New file, from GNU gettext.
50687         * lib/propername.h: New file, from GNU gettext.
50688         * lib/propername.c: New file, from GNU gettext.
50689         * MODULES.html.sh (Internationalization functions): Add propername.
50690
50691 2008-05-16  Jim Meyering  <meyering@redhat.com>
50692             Bruno Haible  <bruno@clisp.org>
50693
50694         Avoid some warnings from "gcc -Wshadow".
50695         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
50696
50697 2008-05-15  Eric Blake  <ebb9@byu.net>
50698
50699         Extend previous patch to cygwin 1.7.0.
50700         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
50701         fast implementation in cygwin >= 1.7.0.
50702         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50703         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50704
50705 2008-05-15  Bruno Haible  <bruno@clisp.org>
50706
50707         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
50708         implementation in glibc >= 2.9.
50709         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50710         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50711
50712 2008-05-15  Bruno Haible  <bruno@clisp.org>
50713
50714         * MODULES.html.sh (Internationalization functions): Remove linebreak.
50715         (Unicode string functions): Add unilbrk/*.
50716         Reported by Karl Berry.
50717
50718 2008-05-15  Eric Blake  <ebb9@byu.net>
50719
50720         Fix violation of <stdbool.h> replacement in regex.
50721         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
50722         * lib/regexec.c (re_search_internal): Likewise.
50723         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
50724
50725 2008-05-15  Jim Meyering  <meyering@redhat.com>
50726
50727         avoid distracting test output when git or cvs is not found
50728         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
50729         * tests/test-vc-list-files-git.sh: Likewise.
50730
50731 2008-05-15  Eric Blake  <ebb9@byu.net>
50732
50733         Glibc finally accepted the memmem speedup code, bugzilla #5514.
50734         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
50735         glibc version.
50736         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
50737         * doc/posix-functions/strstr.texi (strstr): Likewise.
50738         * lib/str-two-way.h (MAX): Sychronize with glibc.
50739
50740 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
50741
50742         * lib/regcomp.c (optimize_utf8): Add a note on why we test
50743         opr.ctx_type.
50744         (calc_first): Initialize constraint field.
50745         (duplicate_node_closure): Use it instead of special casing ANCHORS.
50746         Fix grammar.
50747         (duplicate_node): Merge constraint field for all node types.
50748         (calc_eclosure_iter): Look at constraint field for all node types.
50749         * lib/regex_internal.c (create_cd_newstate): Don't look at
50750         opr.ctx_type.
50751
50752 2008-05-14  Bruno Haible  <bruno@clisp.org>
50753
50754         Help GCC to do better code generation.
50755         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
50756         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
50757         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
50758         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
50759         Declare with attribute 'malloc' if supported.
50760
50761 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
50762
50763         use "echo STR|wc -c" rather than unportable "expr length STR"
50764         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
50765         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
50766
50767 2008-05-14  Jim Meyering  <meyering@redhat.com>
50768
50769         use dd ibs=$n count=1 ... rather than less-portable head -c$n
50770         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
50771         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
50772         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
50773         via Collin Lasse.
50774
50775 2008-05-14  Eric Blake  <ebb9@byu.net>
50776
50777         Avoid quadratic growth in gl_LIBSOURCES.
50778         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
50779         Suggested by Bruno Haible.
50780
50781         Test xmemdup0.
50782         * modules/xmemdup0-tests: New file.
50783         * tests/test-xmemdup0.c: Likewise.
50784
50785 2008-05-13  Eric Blake  <ebb9@byu.net>
50786
50787         Split xmemdup0 into its own module.
50788         * modules/xmemdup0: New file.
50789         * lib/xmemdup0.h: Likewise.
50790         * lib/xmemdup0.c: Likewise.
50791         * MODULES.html.sh (Memory management functions): Add xmemdup0.
50792         * lib/xalloc.h (xmemdup0): Remove.
50793         * lib/xmalloc.c (xmemdup0): Likewise.
50794
50795 2008-05-13  Eric Blake  <ebb9@byu.net>
50796             Bruno Haible  <bruno@clisp.org>
50797
50798         Reduce number of forks required during autoconf.
50799         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
50800         and gl_LIBSOURCES_DIR.
50801         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
50802         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
50803         m4_syscmd per file.
50804         <m4_foreach_w>: Move...
50805         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
50806
50807 2008-05-13  Eric Blake  <ebb9@byu.net>
50808
50809         * gnulib-tool: Fix various comment typos.
50810
50811 2008-05-12  Bruno Haible  <bruno@clisp.org>
50812
50813         Tailor the linebreaking algorithm.
50814         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
50815
50816 2008-05-12  Bruno Haible  <bruno@clisp.org>
50817
50818         Update to Unicode 5.0.0.
50819         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50820         LBP_JV, LBP_JT. Redistribute values.
50821         (unilbrk_table): Change size.
50822         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
50823         Unicode TR#14 rev. 22.
50824         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50825         LBP_JV, LBP_JT. Redistribute values.
50826         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
50827         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
50828         Update.
50829         * lib/unilbrk/lbrkprop1.h: Regenerated.
50830         * lib/unilbrk/lbrkprop2.h: Regenerated.
50831         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
50832         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
50833         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
50834         Likewise.
50835         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
50836         Likewise.
50837         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
50838         result.
50839         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
50840         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
50841         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
50842         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
50843         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
50844         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
50845
50846 2008-05-11  Bruno Haible  <bruno@clisp.org>
50847
50848         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
50849
50850 2008-05-11  Bruno Haible  <bruno@clisp.org>
50851
50852         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
50853         * modules/unilbrk/gen-lbrk: New file.
50854
50855 2008-05-11  Bruno Haible  <bruno@clisp.org>
50856
50857         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
50858         * m4/sha512.m4 (gl_SHA512): Likewise.
50859
50860 2008-05-11  Jim Meyering  <meyering@redhat.com>
50861
50862         New modules: crypto/sha256, crypto/sha512 (from coreutils)
50863         * modules/crypto/sha256: New file.
50864         * modules/crypto/sha512: Likewise.
50865         * lib/sha256.c: Likewise.
50866         * lib/sha256.h: Likewise.
50867         * lib/sha512.c: Likewise.
50868         * lib/sha512.h: Likewise.
50869         * lib/u64.h: Likewise.
50870         * m4/sha256.m4: Likewise.
50871         * m4/sha512.m4: Likewise.
50872         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
50873
50874 2008-05-10  Bruno Haible  <bruno@clisp.org>
50875
50876         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
50877         (Input/Output <stdio.h>): Add xprintf.
50878         (Signal handling <signal.h>): Add strsignal.
50879         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
50880         (Core language properties): Add func.
50881         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
50882         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
50883         strings.
50884         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
50885         (Input/output): New section.
50886         (File system functions): Add openat-die, stat-macros.
50887         (Networking functions): Add sockets.
50888         (Unicode string functions): Add unictype/*.
50889         (Support for building libraries and executables): Add gperf.
50890         (Support for building documentation): Add agpl-3.0.
50891         (Misc): Add nocrash.
50892
50893 2008-05-10  Bruno Haible  <bruno@clisp.org>
50894
50895         * modules/unictype/gen-ctype: New file.
50896
50897 2008-05-10  Jim Meyering  <meyering@redhat.com>
50898
50899         Make chdir-safer.c more efficient on a system with no symlinks.
50900         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
50901         also if ELOOP is zero.  Suggested by Bruno Haible.
50902
50903         Make chdir-safer.c slightly safer.
50904         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
50905         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
50906
50907         Avoid compile failure on systems without ELOOP (like mingw).
50908         * lib/chdir-safer.c (ELOOP): Define if not already defined.
50909         Reported by Bruno Haible.
50910
50911 2008-05-10  Bruno Haible  <bruno@clisp.org>
50912
50913         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
50914         (is_utf8_encoding): Use a case-insensitive comparison.
50915         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
50916         streq.
50917
50918 2008-05-10  Bruno Haible  <bruno@clisp.org>
50919
50920         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
50921         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
50922         * lib/unilbrk/ulc-common.h (iconv_string_length,
50923         iconv_string_keeping_offsets): Remove declarations.
50924         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
50925         Don't include <iconv.h>, streq.h, xsize.h.
50926         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
50927         conversion.
50928         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
50929         <iconv.h>, streq.h, xsize.h.
50930         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
50931         conversion.
50932         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
50933         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
50934         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
50935         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
50936
50937 2008-05-10  Bruno Haible  <bruno@clisp.org>
50938
50939         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
50940         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
50941
50942         * modules/unilbrk/u32-width-linebreaks-tests: New file.
50943         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
50944
50945         * modules/unilbrk/u16-width-linebreaks-tests: New file.
50946         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
50947
50948         * modules/unilbrk/u8-width-linebreaks-tests: New file.
50949         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
50950
50951         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
50952         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
50953
50954         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
50955         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
50956
50957         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
50958         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
50959
50960         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
50961         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
50962
50963 2008-05-10  Bruno Haible  <bruno@clisp.org>
50964
50965         Split up 'linebreak' module.
50966         * lib/unilbrk.h: New file, based on lib/linebreak.h.
50967         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
50968         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
50969         modifications.
50970         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
50971         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
50972         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
50973         lib/linebreak.c.
50974         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
50975         lib/linebreak.c.
50976         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
50977         lib/linebreak.c.
50978         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
50979         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
50980         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
50981         lib/linebreak.c.
50982         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
50983         lib/linebreak.c.
50984         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
50985         lib/linebreak.c.
50986         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
50987         lib/linebreak.c.
50988         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
50989         lib/linebreak.c.
50990         * modules/unilbrk/base: New file.
50991         * modules/unilbrk/tables: New file.
50992         * modules/unilbrk/u8-possible-linebreaks: New file.
50993         * modules/unilbrk/u16-possible-linebreaks: New file.
50994         * modules/unilbrk/u32-possible-linebreaks: New file.
50995         * modules/unilbrk/ulc-common: New file.
50996         * modules/unilbrk/ulc-possible-linebreaks: New file.
50997         * modules/unilbrk/u8-width-linebreaks: New file.
50998         * modules/unilbrk/u16-width-linebreaks: New file.
50999         * modules/unilbrk/u32-width-linebreaks: New file.
51000         * modules/unilbrk/ulc-width-linebreaks: New file.
51001         * lib/linebreak.h: Remove file.
51002         * lib/linebreak.c: Remove file.
51003         * m4/linebreak.m4: Remove file.
51004         * modules/linebreak: Remove file.
51005         * NEWS: Mention the changes.
51006
51007 2008-05-09  Eric Blake  <ebb9@byu.net>
51008
51009         Add xmemdup0.
51010         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
51011         implementation.
51012         * lib/xmalloc.c (xmemdup0): New C implementation.
51013
51014 2008-05-08  Bruno Haible  <bruno@clisp.org>
51015
51016         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
51017
51018 2008-05-07  Eric Blake  <ebb9@byu.net>
51019
51020         Support cross-compilation of <wctype.h>.
51021         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
51022         AC_CACHE_CHECK.
51023
51024 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
51025
51026         * build-aux/vc-list-files: Add support for bzr.
51027
51028 2008-05-03  Jim Meyering  <meyering@redhat.com>
51029
51030         avoid failed assertion with tight malloc
51031         * tests/test-getndelim2.c: Correct an off-by-one assertion.
51032
51033 2008-05-03  Simon Josefsson  <simon@josefsson.org>
51034
51035         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
51036         are needed from arpa/inet.h.
51037         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
51038         Reported by Bruno Haible.
51039
51040 2008-05-02  Jim Meyering  <meyering@redhat.com>
51041
51042         avoid compilation error on FreeBSD 6
51043         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
51044
51045 2008-05-01  Jim Meyering  <meyering@redhat.com>
51046
51047         useless-if-before-free: correct --help's exit status description
51048         * build-aux/useless-if-before-free (usage): Like grep, exit 0
51049         for one or more matches, etc.  Reported by Bruno Haible.
51050
51051         vc-list-files: make the stand-alone gnulib test work
51052         * modules/vc-list-files-tests (configure.ac):
51053         Define and AC_SUBST abs_aux_dir.
51054         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
51055         $(abs_top_srcdir) to each script and having each of them
51056         duplicate the work of setting PATH, set PATH here, using
51057         the new variable, abs_aux_dir instead.
51058         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
51059         * tests/test-vc-list-files-git.sh: Likewise.
51060         Reported by Bruno Haible.
51061
51062 2008-05-01  Bruno Haible  <bruno@clisp.org>
51063
51064         * lib/getndelim2.c (getndelim2): Fix newsize computation during
51065         reallocation. Rename 'done' to 'found_delimiter'.
51066
51067 2008-05-01  Jim Meyering  <meyering@redhat.com>
51068
51069         vc-list-files: accommodate /bin/sh like the one from Solaris 10
51070         * build-aux/vc-list-files: Use `...`, not $(...).
51071
51072 2008-04-30  Jim Meyering  <meyering@redhat.com>
51073
51074         add tests for vc-list-files
51075         * modules/vc-list-files-tests: New module.
51076         * tests/test-vc-list-files-cvs.sh: New file.
51077         * tests/test-vc-list-files-git.sh: New file.
51078
51079         avoid a warning from gcc
51080         * lib/getndelim2.c (IF_LINT): Define.
51081         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
51082
51083         vc-list-files: work properly with build-aux/cvsu, too
51084         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
51085         to all cvs-based clauses.
51086
51087         vc-list-files: work properly in the CVS+awk case, too
51088         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
51089
51090         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
51091         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
51092         take more than one file argument, so .  Add quotes, just in case $dir
51093         ever contains a shell meta-character.  Prompted by Soren Hansen in
51094         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
51095
51096 2008-04-29  Eric Blake  <ebb9@byu.net>
51097
51098         Optimize getndelim2 to use block operations when possible.
51099         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
51100         freadseek, and memchr2.
51101         * lib/getndelim2.c (getndelim2): Use them for block reads.
51102
51103 2008-04-29  Bruno Haible  <bruno@clisp.org>
51104
51105         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
51106         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51107         * modules/inet_ntop (Depends-on): Add extensions.
51108         * modules/inet_pton (Depends-on): Likewise.
51109         Reported by Simon Josefsson.
51110
51111 2008-04-29  Jim Meyering  <meyering@redhat.com>
51112
51113         When the is more than one match in a block, match all of them.
51114         * build-aux/useless-if-before-free: Iterate through each block
51115         until there are no more matches.
51116
51117         Fix broken useless-if-before-free script.
51118         * build-aux/useless-if-before-free: Fix typo: missing "?" after
51119         the expression to match cast of argument to free-like function.
51120
51121 2008-04-29  Eric Blake  <ebb9@byu.net>
51122
51123         Use new header.
51124         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
51125
51126 2008-04-29  Jim Meyering  <meyering@redhat.com>
51127
51128         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
51129         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
51130         by gnulib to exist and to declare e.g., inet_ntop.
51131         Don't include "inet_ntop.h", now removed.
51132
51133         * m4/arpa_inet_h.m4: Remove trailing blanks.
51134
51135 2008-04-29  Eric Blake  <ebb9@byu.net>
51136
51137         Silence valgrind on safe reads beyond potential array bounds.
51138         * lib/rawmemchr.valgrind: New file.
51139         * lib/strchrnul.valgrind: Likewise.
51140         * modules/rawmemchr (Files): Distribute new file.
51141         * modules/strchrnul (Files): Likewise.
51142         Suggested by Bruno Haible.
51143
51144 2008-04-29  Bruno Haible  <bruno@clisp.org>
51145
51146         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
51147         (inet_ntop, inet_pton): Change portability warning's wording.
51148         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
51149         Invoke gl_CHECK_NEXT_HEADERS.
51150         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
51151         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
51152         set ARPA_INET_H.
51153         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51154         * modules/arpa_inet (Description): No longer only for systems that
51155         lack it.
51156         (Depends-on): Add include_next.
51157         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
51158         HAVE_ARPA_INET_H.
51159
51160 2008-04-29  Jim Meyering  <meyering@redhat.com>
51161
51162         * modules/mkdir (License): Re-license as LGPLv2+.
51163
51164 2008-04-29  Bruno Haible  <bruno@clisp.org>
51165
51166         * modules/rawmemchr (Maintainer): Set to Eric.
51167         * modules/strchrnul (Maintainer): Likewise.
51168
51169 2008-04-29  Simon Josefsson  <simon@josefsson.org>
51170
51171         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
51172         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
51173
51174         * modules/arpa_inet (arpa/inet.h): Use them.
51175
51176 2008-04-28  Eric Blake  <ebb9@byu.net>
51177
51178         Test getndelim2.
51179         * modules/getndelim2-tests: New file.
51180         * tests/test-getndelim2.c: Likewise.
51181         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
51182         stream.
51183         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
51184
51185         * MODULES.html.sh: Document new module.
51186
51187 2008-04-20  Bruno Haible  <bruno@clisp.org>
51188
51189         * lib/c-stack.c (die): Use raise.
51190         * modules/c-stack (Depends-on): Add raise.
51191
51192 2008-04-28  Bruno Haible  <bruno@clisp.org>
51193
51194         Expect rpmatch to be declared.
51195         * lib/yesno.c (rpmatch): Remove declaration.
51196
51197         Declare rpmatch.
51198         * lib/stdlib.in.h (rpmatch): New declaration.
51199         * lib/rpmatch.c: Include <stdlib.h> first.
51200         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
51201         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
51202         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
51203         HAVE_RPMATCH.
51204         * modules/rpmatch (Depends-on): Add stdlib, extensions.
51205         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51206         (Include): Set to <stdlib.h>.
51207         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
51208         HAVE_RPMATCH.
51209         * NEWS: Document the change.
51210
51211 2008-04-28  Bruno Haible  <bruno@clisp.org>
51212
51213         Change rpmatch to use nl_langinfo when appropriate.
51214         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
51215         (N_): New macro.
51216         (localized_pattern): New function/macro.
51217         (try): Remove match, nomatch arguments. Copy the pattern into safe
51218         memory before caching it.
51219         (rpmatch): Use localized_pattern. Add translator comments.
51220         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
51221         Suggested by Eric Blake.
51222         * modules/rpmatch (Depends-on): Add stdbool.
51223
51224 2008-04-28  Eric Blake  <ebb9@byu.net>
51225
51226         Add rawmemchr module, matching glibc.
51227         * modules/string (Makefile.am): New indicator.
51228         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
51229         * lib/string.in.h (rawmemchr): Declare when appropriate.
51230         * modules/rawmemchr: New file.
51231         * m4/rawmemchr.m4: Likewise.
51232         * lib/rawmemchr.c: Likewise.
51233         * modules/rawmemchr-tests: Likewise.
51234         * tests/test-rawmemchr.c: Likewise.
51235         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
51236         module.
51237         * modules/strchrnul (Depends-on): Add rawmemchr.
51238         * lib/strchrnul.c (strchrnul): Optimize a corner case.
51239
51240         Whitespace cleanup.
51241         * tests/test-strchrnul.c: Reindent.
51242         * lib/strchrnul.c: Likewise.
51243
51244         Optimize and test strchrnul.
51245         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
51246         * modules/strchrnul-tests: New file.
51247         * tests/test-strchrnul.c: Likewise.
51248
51249         Remove intprops dependency.
51250         * modules/memchr (Depends-on): Remove intprops.
51251         * modules/memrchr (Depends-on): Likewise.
51252         * modules/memchr2 (Depends-on): Likewise.
51253         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
51254         * lib/memrchr.c (__memrchr): Likewise.
51255         * lib/memrchr2.c (memchr2): Likewise.
51256         Reported by Simon Josefsson.
51257
51258 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51259
51260         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
51261         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51262
51263 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51264
51265         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
51266
51267         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
51268
51269         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
51270
51271         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
51272         declarations.
51273         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
51274
51275         * m4/inet_pton.m4: Don't check for header files.
51276
51277         * m4/inet_ntop.m4: Don't check for header files.
51278
51279 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51280
51281         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
51282         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
51283         trigger for cygwin).
51284         Reported by Bruno Haible  <bruno@clisp.org>.
51285
51286 2008-04-28  Bruno Haible  <bruno@clisp.org>
51287
51288         * doc/posix-functions/strdup.texi: Mention mingw problem.
51289
51290 2008-04-27  Bruno Haible  <bruno@clisp.org>
51291
51292         * modules/stat-time-tests (Depends-on): Add sleep.
51293         * tests/test-stat-time.c (force_unlink): New function.
51294         (cleanup): Use it.
51295         (test_mtime): Remove the ctime related tests.
51296         (test_ctime): New function, containing the ctime related tests.
51297         (main): Call test_ctime, except on native Windows platforms.
51298
51299 2008-04-27  Bruno Haible  <bruno@clisp.org>
51300
51301         * lib/rpmatch.c (rpmatch): Add some comments.
51302         Reported by James Youngman <jay@gnu.org>.
51303
51304 2008-04-27  Bruno Haible  <bruno@clisp.org>
51305
51306         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
51307         quiet NaNs.
51308
51309 2008-04-27  Bruno Haible  <bruno@clisp.org>
51310
51311         Make test-yesno.sh work on mingw.
51312         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
51313         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
51314         (main): Set stdin to binary mode.
51315         * modules/yesno-tests (Depends-on): Add binary-io.
51316
51317 2008-04-27  Bruno Haible  <bruno@clisp.org>
51318
51319         Fix 'isfinite' on x86, x86_64, ia64 platforms.
51320         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
51321         argument that lie outside the IEEE 854 domain.
51322         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
51323         (gl_ISFINITE): Use it.
51324         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
51325
51326 2008-04-27  Bruno Haible  <bruno@clisp.org>
51327
51328         Allow local renaming in config.h.
51329         * lib/memrchr.c (memrchr): Don't undefine outside libc.
51330
51331 2008-04-27  Bruno Haible  <bruno@clisp.org>
51332
51333         * lib/memchr.c (__memchr): Change type of 'i'.
51334         * lib/memchr2.c (memchr2): Likewise.
51335
51336 2008-04-26  Eric Blake  <ebb9@byu.net>
51337         and Bruno Haible  <bruno@clisp.org>
51338
51339         Optimize and test memrchr.
51340         * modules/memrchr (Depends-on): Add intprops.
51341         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
51342         * modules/memrchr-tests: New file.
51343         * tests/test-memrchr.c: New file.
51344
51345 2008-04-26  Bruno Haible  <bruno@clisp.org>
51346
51347         Add tentative support for DragonFly BSD.
51348         * lib/stdio-impl.h: Add macros for DragonFly BSD.
51349         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
51350         fp.
51351         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51352         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
51353         * lib/fpurge.c (fpurge): Likewise.
51354         * lib/freadable.c (freaadable): Likewise.
51355         * lib/freadahead.c (freadahead): Likewise.
51356         * lib/freading.c (freading): Likewise.
51357         * lib/freadptr.c (freadptr): Likewise.
51358         * lib/freadseek.c (freadptrinc): Likewise.
51359         * lib/fseeko.c (fseeko): Likewise.
51360         * lib/fseterr.c (fseterr): Likewise.
51361         * lib/fwritable.c (fwritable): Likewise.
51362         * lib/fwriting.c (fwriting): Likewise.
51363
51364 2008-04-26  Bruno Haible  <bruno@clisp.org>
51365
51366         * lib/stdio-impl.h: New file.
51367         * lib/fbufmode.c: Include stdio-impl.h.
51368         (fbufmode): Use fp_, remove redundant #defines.
51369         * lib/fflush.c: Include stdio-impl.h.
51370         (clear_ungetc_buffer): Remove redundant #defines.
51371         * lib/fpurge.c: Include stdio-impl.h.
51372         (fpurge): Remove redundant #defines.
51373         * lib/freadable.c: Include stdio-impl.h.
51374         (freadable): Remove redundant #defines.
51375         * lib/freadahead.c: Include stdio-impl.h.
51376         (freadahead): Remove redundant #defines.
51377         * lib/freading.c: Include stdio-impl.h.
51378         (freading): Remove redundant #defines.
51379         * lib/freadptr.c: Include stdio-impl.h.
51380         (freadptr): Remove redundant #defines.
51381         * lib/freadseek.c: Include stdio-impl.h.
51382         (freadptrinc): Remove redundant #defines.
51383         * lib/fseeko.c: Include stdio-impl.h.
51384         (rpl_fseeko): Remove redundant #defines.
51385         * lib/fseterr.c: Include stdio-impl.h.
51386         (fseterr): Remove redundant #defines.
51387         * lib/fwritable.c: Include stdio-impl.h.
51388         (fwritable: Remove redundant #defines.
51389         * lib/fwriting.c: Include stdio-impl.h.
51390         (fwriting): Remove redundant #defines.
51391         * modules/fbufmode (Files): Add lib/stdio-impl.h.
51392         * modules/fflush (Files): Likewise.
51393         * modules/fpurge (Files): Likewise.
51394         * modules/freadable (Files): Likewise.
51395         * modules/freadahead (Files): Likewise.
51396         * modules/freading (Files): Likewise.
51397         * modules/freadptr (Files): Likewise.
51398         * modules/freadseek (Files): Likewise.
51399         * modules/fseeko (Files): Likewise.
51400         * modules/fseterr (Files): Likewise.
51401         * modules/fwritable (Files): Likewise.
51402         * modules/fwriting (Files): Likewise.
51403
51404 2008-04-26  Bruno Haible  <bruno@clisp.org>
51405
51406         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51407         restore_seek_optimization, update_fpos_cache): New functions, extracted
51408         from rpl_fflush.
51409         (rpl_fflush): Use them.
51410         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
51411         (gl_REPLACE_FFLUSH): Use it.
51412
51413 2008-04-26  Bruno Haible  <bruno@clisp.org>
51414
51415         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
51416         on Solaris.
51417         * tests/test-xstrtoimax.sh: Likewise.
51418         * tests/test-xstrtoumax.sh: Likewise.
51419         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51420
51421 2008-04-26  Bruno Haible  <bruno@clisp.org>
51422
51423         * modules/memchr-tests: New file.
51424         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
51425
51426 2008-04-26  Eric Blake  <ebb9@byu.net>
51427             Bruno Haible  <bruno@clisp.org>
51428
51429         * lib/memchr.c: Include intprops.h.
51430         (__memchr): Optimize parallel detection of matching bytes. Rename local
51431         variables. Add explanatory comments.
51432
51433 2008-04-26  Bruno Haible  <bruno@clisp.org>
51434
51435         Fix module 'memchr', broken since 2000-10-28.
51436         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
51437
51438 2008-04-26  Bruno Haible  <bruno@clisp.org>
51439
51440         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
51441         comments.
51442
51443 2008-04-25  Eric Blake  <ebb9@byu.net>
51444
51445         Use native fstatat on cygwin 1.7.0.
51446         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
51447         first.
51448
51449 2008-04-23  Eric Blake  <ebb9@byu.net>
51450
51451         Improve memchr2 performance.
51452         * lib/memchr2.c (memchr2): Further optimize parallel detection of
51453         NUL bytes.
51454         * modules/memchr2 (Depends-on): Use intprops.h.
51455
51456 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51457
51458         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
51459         an inline function instead of a CPP macro.  Patch by Ben Pfaff
51460         <blp@cs.stanford.edu>.
51461
51462 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51463
51464         * lib/arpa_inet.in.h: New file.
51465
51466         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
51467         (Makefile.am): Sed in substitute header file.
51468
51469         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
51470         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
51471
51472         * modules/inet_ntop (configure.ac): Use
51473         gl_ARPA_INET_MODULE_INDICATOR.
51474
51475         * modules/inet_pton (configure.ac): Use
51476         gl_ARPA_INET_MODULE_INDICATOR.
51477
51478 2008-04-22  Jim Meyering  <meyering@redhat.com>
51479
51480         * modules/verify (License): Re-license as LGPLv2+.
51481
51482 2008-04-22  Simon Josefsson  <simon@josefsson.org>
51483
51484         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
51485         parameter to void* as per POSIX standard (MinGW uses char*).
51486
51487 2008-04-21  Bruno Haible  <bruno@clisp.org>
51488
51489         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51490         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51491         Define to replacements if REPLACE_ISWCNTRL is 1.
51492         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
51493         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
51494         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
51495         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
51496         what it fixes.
51497         * doc/posix-functions/iswalpha.texi: Likewise.
51498         * doc/posix-functions/iswblank.texi: Likewise.
51499         * doc/posix-functions/iswcntrl.texi: Likewise.
51500         * doc/posix-functions/iswdigit.texi: Likewise.
51501         * doc/posix-functions/iswgraph.texi: Likewise.
51502         * doc/posix-functions/iswlower.texi: Likewise.
51503         * doc/posix-functions/iswprint.texi: Likewise.
51504         * doc/posix-functions/iswpunct.texi: Likewise.
51505         * doc/posix-functions/iswspace.texi: Likewise.
51506         * doc/posix-functions/iswupper.texi: Likewise.
51507         * doc/posix-functions/iswxdigit.texi: Likewise.
51508         Reported by Alain Guibert.
51509
51510 2008-04-21  Bruno Haible  <bruno@clisp.org>
51511
51512         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
51513         Patch by Alain Guibert.
51514
51515 2008-04-21  Bruno Haible  <bruno@clisp.org>
51516
51517         Fix test failures on mingw.
51518         * tests/test-xstrtol.c (print_no_progname): New function.
51519         (main): Install it in error_print_progname hook.
51520         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
51521         * tests/test-xstrtoimax.sh: Likewise.
51522         * tests/test-xstrtoumax.sh: Likewise.
51523
51524 2008-04-21  Bruno Haible  <bruno@clisp.org>
51525
51526         Fix test failure on mingw.
51527         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
51528
51529 2008-04-21  Bruno Haible  <bruno@clisp.org>
51530
51531         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
51532         Actually assign a value.
51533
51534 2008-04-20  Bruno Haible  <bruno@clisp.org>
51535
51536         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
51537         take 2.
51538         * lib/canonicalize.c (canonicalize_file_name): Elide if the
51539         'canonicalize-lgpl' module is also used.
51540         * lib/canonicalize-lgpl.c: Undo last change.
51541         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
51542
51543 2008-04-20  Bruno Haible  <bruno@clisp.org>
51544
51545         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
51546         config.h. Provide _mkdir based fallback for mingw.
51547         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
51548         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
51549         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
51550         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
51551         rather than defining mkdir in config.h.
51552         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
51553         (gl_SYS_STAT_H_DEFAULTS): New macro.
51554         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
51555         HAVE_IO_H any more.
51556         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
51557         HAVE_DECL_MKDIR and HAVE_IO_H.
51558
51559 2008-04-20  Bruno Haible  <bruno@clisp.org>
51560
51561         * lib/isapipe.c: Port to native Windows platforms.
51562
51563 2008-04-20  Bruno Haible  <bruno@clisp.org>
51564
51565         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
51566
51567 2008-04-21  Eric Blake  <ebb9@byu.net>
51568
51569         Work around preprocessors that don't handle UINTMAX_MAX.
51570         * lib/memchr2.c (memchr2): Avoid embedded #if.
51571         Reported by Alain Guibert, fix suggested by Bruno Haible.
51572
51573 2008-04-21  Simon Josefsson  <simon@josefsson.org>
51574
51575         * doc/posix-functions/strftime.texi (strftime): Explain better
51576         Windows incompatibility.  Suggested by Micah Cowan
51577         <micah@cowan.name>.
51578
51579 2008-04-20  Bruno Haible  <bruno@clisp.org>
51580
51581         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
51582         unistr/u8-mblen.
51583
51584 2008-04-20  Bruno Haible  <bruno@clisp.org>
51585
51586         Fix test failure on platforms with non-GNU iconv.
51587         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
51588         (U_TO_U8): Use it, rather than u16_to_u8.
51589         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
51590         units at the end of the input string.
51591         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
51592
51593 2008-04-20  Bruno Haible  <bruno@clisp.org>
51594
51595         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
51596         when the resulting length is 0.
51597         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
51598
51599 2008-04-20  Bruno Haible  <bruno@clisp.org>
51600
51601         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
51602         works.
51603         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
51604
51605 2008-04-20  Bruno Haible  <bruno@clisp.org>
51606
51607         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
51608         * modules/tsearch-tests (configure.ac): Test for initstate function.
51609
51610 2008-04-20  Bruno Haible  <bruno@clisp.org>
51611
51612         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
51613         for nlink_t if missing.
51614         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
51615
51616 2008-04-19  Bruno Haible  <bruno@clisp.org>
51617
51618         Work around snprintf bug on Linux libc5.
51619         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
51620         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51621         gl_SNPRINTF_SIZE1.
51622         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51623         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
51624         that test failed.
51625         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
51626         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
51627         * modules/snprintf (Files): Add m4/printf.m4.
51628         * modules/vsnprintf (Files): Likewise.
51629         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
51630         * doc/posix-functions/vsnprintf.texi: Likewise.
51631
51632 2008-04-19  Bruno Haible  <bruno@clisp.org>
51633
51634         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
51635         from 0.0058 to less than 10^-7.
51636
51637 2008-04-19  Bruno Haible  <bruno@clisp.org>
51638
51639         Fix rounding when a precision is given.
51640         * lib/vasnprintf.c (is_borderline): New function.
51641         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
51642         9...9x.
51643         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
51644         %e, %g.
51645         * tests/test-vasprintf-posix.c (test_function): Likewise.
51646         * tests/test-snprintf-posix.h (test_function): Likewise.
51647         * tests/test-sprintf-posix.h (test_function): Likewise.
51648         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
51649         * tests/test-printf-posix.h (test_function): Likewise.
51650         * tests/test-printf-posix.output: Update.
51651         Reported by John Darrington <john@darrington.wattle.id.au> via
51652         Ben Pfaff <blp@cs.stanford.edu>.
51653
51654 2008-04-18  Simon Josefsson  <simon@josefsson.org>
51655
51656         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
51657         Suggested by Bruno Haible <bruno@clisp.org>.
51658
51659 2008-04-17  Bruno Haible  <bruno@clisp.org>
51660
51661         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
51662         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
51663         implementation.
51664         Patch by Bruce Merry <bmerry@gmail.com>.
51665
51666 2008-04-17  Simon Josefsson  <simon@josefsson.org>
51667
51668         * doc/posix-functions/strftime.texi (strftime): Mention that %e
51669         doesn't work under Windows.
51670
51671 2008-04-16  Bruno Haible  <bruno@clisp.org>
51672
51673         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
51674         New macros.
51675         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
51676         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
51677         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
51678         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
51679         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
51680         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
51681         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
51682         macros.
51683         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
51684         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
51685         Northern Sotho, Uighur.
51686
51687 2008-04-16  Bruno Haible  <bruno@clisp.org>
51688
51689         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
51690         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
51691         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
51692         Reported by Daniel Bergström <daniel@octocode.com>.
51693
51694 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
51695             Bruno Haible  <bruno@clisp.org>
51696
51697         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
51698         function.
51699         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
51700         New functions, mostly extracted from gl_locale_name_default.
51701         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
51702
51703 2008-04-16  Eric Blake  <ebb9@byu.net>
51704
51705         Adjust strtod detection to catch glibc 2.7 bug.
51706         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
51707         Reported by John Gatewood Ham.
51708
51709 2008-04-16  Bruno Haible  <bruno@clisp.org>
51710
51711         Add tentative support for Linux libc5.
51712         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
51713         * lib/fpurge.c (fpurge): Likewise.
51714         * lib/freadable.c (freadable): Likewise.
51715         * lib/freadahead.c (freadahead): Likewise.
51716         * lib/freading.c (freading): Likewise.
51717         * lib/freadptr.c (freadptr): Likewise.
51718         * lib/freadseek.c (freadptrinc): Likewise.
51719         * lib/fseeko.c (rpl_fseeko): Likewise.
51720         * lib/fseterr.c (fseterr): Likewise.
51721         * lib/fwritable.c (fwritable): Likewise.
51722         * lib/fwriting.c (fwriting): Likewise.
51723         Reported by Alain Guibert <alguibert+bts@free.fr>.
51724
51725 2008-04-15  Bruno Haible  <bruno@clisp.org>
51726
51727         * modules/mathl (configure.ac): Define module indicator.
51728
51729 2008-04-15  Bruno Haible  <bruno@clisp.org>
51730
51731         * lib/logl.c (logl): Remove unused variables.
51732
51733 2008-04-15  Bruno Haible  <bruno@clisp.org>
51734
51735         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
51736         fails.
51737
51738 2008-04-15  Bruno Haible  <bruno@clisp.org>
51739
51740         * lib/trim.c (trim2): Fix argument of isspace() macro.
51741
51742 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
51743
51744         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
51745         to 0.
51746         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
51747
51748 2008-04-14  Bruno Haible  <bruno@clisp.org>
51749
51750         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
51751         AC_LANG_PROGRAM argument.
51752         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
51753         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
51754         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
51755         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51756         * m4/math_h.m4 (gl_MATH_H): Likewise.
51757         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
51758         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51759         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51760         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
51761         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51762         * m4/regex.m4 (gl_REGEX): Likewise.
51763         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
51764         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
51765         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51766         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
51767         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51768         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51769         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51770         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51771
51772 2008-04-14  Jim Meyering  <meyering@redhat.com>
51773
51774         test-strtod: fix typos: s/abs/fabs/
51775         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
51776
51777 2008-04-13  Bruno Haible  <bruno@clisp.org>
51778
51779         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
51780         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
51781         module is also used and while not building the reloc-wrapper.
51782
51783 2008-04-13  Bruno Haible  <bruno@clisp.org>
51784
51785         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
51786
51787 2008-04-13  Bruno Haible  <bruno@clisp.org>
51788
51789         Fix AIX compilation failure introduced on 2008-04-02.
51790         * tests/test-frexp.c (exp): Undefine before redefining.
51791         * tests/test-frexpl.c (exp): Likewise.
51792
51793 2008-04-13  Bruno Haible  <bruno@clisp.org>
51794
51795         Work around a HP-UX stdio bug.
51796         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
51797         * tests/test-ftello.c (main): Likewise.
51798         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
51799         * doc/posix-functions/ftello.texi: Likewise.
51800
51801 2008-04-13  Bruno Haible  <bruno@clisp.org>
51802
51803         Make test-signbit pass on HP-UX/hppa.
51804         * tests/test-signbit.c (minus_zerol): New variable.
51805         (test_signbitl): Use it.
51806
51807 2008-04-13  Bruno Haible  <bruno@clisp.org>
51808
51809         Make truncl work on OSF/1 4.0.
51810         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
51811         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51812         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51813         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
51814         HAVE_DECL_TRUNCL.
51815         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
51816         HAVE_DECL_TRUNCL.
51817         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
51818
51819 2008-04-13  Bruno Haible  <bruno@clisp.org>
51820
51821         * lib/unictype.h: Remove trailing comma from enumeration definitions.
51822
51823 2008-04-13  Bruno Haible  <bruno@clisp.org>
51824
51825         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
51826         expression, so as to avoid HP-UX 11 cc compiler bug.
51827
51828 2008-04-13  Bruno Haible  <bruno@clisp.org>
51829
51830         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
51831
51832 2008-04-13  Bruno Haible  <bruno@clisp.org>
51833
51834         * lib/git-merge-changelog.c: Remove empty declaration outside of
51835         functions.
51836
51837 2008-04-13  Bruno Haible  <bruno@clisp.org>
51838
51839         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
51840
51841 2008-04-13  Bruno Haible  <bruno@clisp.org>
51842
51843         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
51844         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
51845         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
51846         also if it exists but lacks definitions of the SHUT_* macros.
51847         * modules/sys_socket (Description): Update.
51848         Reported by Elbert Pol <e.pol@chello.nl>.
51849
51850 2008-04-13  Bruno Haible  <bruno@clisp.org>
51851
51852         * lib/localcharset.c (OS2): Don't redefine if already defined.
51853         Reported by Elbert Pol <e.pol@chello.nl>.
51854
51855 2008-04-13  Bruno Haible  <bruno@clisp.org>
51856
51857         * lib/binary-io.h [__EMX__]: Include <io.h>.
51858         Reported by Elbert Pol <e.pol@chello.nl>.
51859
51860 2008-04-12  Bruno Haible  <bruno@clisp.org>
51861
51862         * lib/fpucw.h: Enable the definitions also for x86_64.
51863         Needed for NetBSD/x86_64.
51864         Reported by Thomas Klausner <tk@giga.or.at>.
51865
51866 2008-04-12  Bruno Haible  <bruno@clisp.org>
51867
51868         * tests/test-strtod.c: Include isnand.h.
51869         (main): Use isnand instead of isnan.
51870         Reported by Jim Meyering.
51871
51872 2008-04-12  Bruno Haible  <bruno@clisp.org>
51873
51874         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
51875         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51876
51877 2008-04-12  Jim Meyering  <meyering@redhat.com>
51878
51879         * m4/math_h.m4 (gl_MATH_H): Fix typos.
51880
51881 2008-04-12  Bruno Haible  <bruno@clisp.org>
51882
51883         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
51884         Reported by Elbert Pol <e.pol@chello.nl>.
51885
51886 2008-04-12  Eric Blake  <ebb9@byu.net>
51887
51888         Work around Solaris 10 math.h bug.
51889         * m4/math_h.m4 (gl_MATH_H): Check for bug.
51890         (gl_MATH_H_DEFAULTS): Set up default.
51891         * modules/math (Makefile.am): Replace new indicators.
51892         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
51893         * tests/test-math.c (main): Test this.
51894         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
51895         * doc/posix-headers/math.texi (math.h): Mention bug.
51896         Reported by Nelson H. F. Beebe and Jim Meyering.
51897
51898 2008-04-11  Bruno Haible  <bruno@clisp.org>
51899
51900         Adapt to future versions of Apple GCC.
51901         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
51902         Reported by Peter O'Gorman <peter@pogma.com>.
51903
51904 2008-04-11  Bruno Haible  <bruno@clisp.org>
51905
51906         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
51907
51908 2008-04-11  Bruno Haible  <bruno@clisp.org>
51909
51910         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
51911
51912         * modules/getaddrinfo-tests (Makefile.am): Define
51913         test_getaddrinfo_LDADD.
51914
51915 2008-04-11  Bruno Haible  <bruno@clisp.org>
51916
51917         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
51918         (init): Fix syntax error.
51919         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
51920         is declared.
51921
51922 2008-04-11  Bruno Haible  <bruno@clisp.org>
51923
51924         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
51925         * modules/glob (Depends-on): Add stdbool.
51926
51927 2008-04-11  Bruno Haible  <bruno@clisp.org>
51928
51929         * lib/trim.c: Include <string.h>.
51930
51931 2008-04-11  Eric Blake  <ebb9@byu.net>
51932
51933         Avoid compile failure on OS/2.
51934         * lib/regex_internal.h (internal_function): Disable optimization
51935         on OS/2 (__EMX__), where it caused compiler error.
51936         Reported by Elbert Pol.
51937
51938 2008-04-11  Bruno Haible  <bruno@clisp.org>
51939
51940         Flush the standard error stream before aborting. Needed on mingw.
51941         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
51942         * tests/test-array_list.c (ASSERT): Likewise.
51943         * tests/test-array_oset.c (ASSERT): Likewise.
51944         * tests/test-avltree_list.c (ASSERT): Likewise.
51945         * tests/test-avltree_oset.c (ASSERT): Likewise.
51946         * tests/test-avltreehash_list.c (ASSERT): Likewise.
51947         * tests/test-binary-io.c (ASSERT): Likewise.
51948         * tests/test-byteswap.c (ASSERT): Likewise.
51949         * tests/test-c-ctype.c (ASSERT): Likewise.
51950         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
51951         * tests/test-c-strcasestr.c (ASSERT): Likewise.
51952         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
51953         * tests/test-c-strstr.c (ASSERT): Likewise.
51954         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
51955         * tests/test-canonicalize.c (ASSERT): Likewise.
51956         * tests/test-carray_list.c (ASSERT): Likewise.
51957         * tests/test-ceilf1.c (ASSERT): Likewise.
51958         * tests/test-ceilf2.c (ASSERT): Likewise.
51959         * tests/test-ceill.c (ASSERT): Likewise.
51960         * tests/test-count-one-bits.c (ASSERT): Likewise.
51961         * tests/test-fbufmode.c (ASSERT): Likewise.
51962         * tests/test-fflush2.c (ASSERT): Likewise.
51963         * tests/test-floorf1.c (ASSERT): Likewise.
51964         * tests/test-floorf2.c (ASSERT): Likewise.
51965         * tests/test-floorl.c (ASSERT): Likewise.
51966         * tests/test-fopen.c (ASSERT): Likewise.
51967         * tests/test-fpending.c (ASSERT): Likewise.
51968         * tests/test-fprintf-posix.c (ASSERT): Likewise.
51969         * tests/test-fpurge.c (ASSERT): Likewise.
51970         * tests/test-freadable.c (ASSERT): Likewise.
51971         * tests/test-freadahead.c (ASSERT): Likewise.
51972         * tests/test-freading.c (ASSERT): Likewise.
51973         * tests/test-freadptr.c (ASSERT): Likewise.
51974         * tests/test-freadptr2.c (ASSERT): Likewise.
51975         * tests/test-freadseek.c (ASSERT): Likewise.
51976         * tests/test-freopen.c (ASSERT): Likewise.
51977         * tests/test-frexp.c (ASSERT): Likewise.
51978         * tests/test-frexpl.c (ASSERT): Likewise.
51979         * tests/test-fseek.c (ASSERT): Likewise.
51980         * tests/test-fseeko.c (ASSERT): Likewise.
51981         * tests/test-fstrcmp.c (ASSERT): Likewise.
51982         * tests/test-ftell.c (ASSERT): Likewise.
51983         * tests/test-ftello.c (ASSERT): Likewise.
51984         * tests/test-func.c (ASSERT): Likewise.
51985         * tests/test-fwritable.c (ASSERT): Likewise.
51986         * tests/test-fwriting.c (ASSERT): Likewise.
51987         * tests/test-getdelim.c (ASSERT): Likewise.
51988         * tests/test-getline.c (ASSERT): Likewise.
51989         * tests/test-i-ring.c (ASSERT): Likewise.
51990         * tests/test-iconv-utf.c (ASSERT): Likewise.
51991         * tests/test-iconv.c (ASSERT): Likewise.
51992         * tests/test-isfinite.c (ASSERT): Likewise.
51993         * tests/test-isnand.c (ASSERT): Likewise.
51994         * tests/test-isnanf.c (ASSERT): Likewise.
51995         * tests/test-isnanl.h (ASSERT): Likewise.
51996         * tests/test-ldexpl.c (ASSERT): Likewise.
51997         * tests/test-linked_list.c (ASSERT): Likewise.
51998         * tests/test-linkedhash_list.c (ASSERT): Likewise.
51999         * tests/test-localename.c (ASSERT): Likewise.
52000         * tests/test-lseek.c (ASSERT): Likewise.
52001         * tests/test-mbscasecmp.c (ASSERT): Likewise.
52002         * tests/test-mbscasestr1.c (ASSERT): Likewise.
52003         * tests/test-mbscasestr2.c (ASSERT): Likewise.
52004         * tests/test-mbscasestr3.c (ASSERT): Likewise.
52005         * tests/test-mbscasestr4.c (ASSERT): Likewise.
52006         * tests/test-mbschr.c (ASSERT): Likewise.
52007         * tests/test-mbscspn.c (ASSERT): Likewise.
52008         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
52009         * tests/test-mbspbrk.c (ASSERT): Likewise.
52010         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
52011         * tests/test-mbsrchr.c (ASSERT): Likewise.
52012         * tests/test-mbsspn.c (ASSERT): Likewise.
52013         * tests/test-mbsstr1.c (ASSERT): Likewise.
52014         * tests/test-mbsstr2.c (ASSERT): Likewise.
52015         * tests/test-mbsstr3.c (ASSERT): Likewise.
52016         * tests/test-memchr2.c (ASSERT): Likewise.
52017         * tests/test-memmem.c (ASSERT): Likewise.
52018         * tests/test-open.c (ASSERT): Likewise.
52019         * tests/test-printf-frexp.c (ASSERT): Likewise.
52020         * tests/test-printf-frexpl.c (ASSERT): Likewise.
52021         * tests/test-printf-posix.c (ASSERT): Likewise.
52022         * tests/test-quotearg.c (ASSERT): Likewise.
52023         * tests/test-rbtree_list.c (ASSERT): Likewise.
52024         * tests/test-rbtree_oset.c (ASSERT): Likewise.
52025         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
52026         * tests/test-round1.c (ASSERT): Likewise.
52027         * tests/test-roundf1.c (ASSERT): Likewise.
52028         * tests/test-roundl.c (ASSERT): Likewise.
52029         * tests/test-signbit.c (ASSERT): Likewise.
52030         * tests/test-sleep.c (ASSERT): Likewise.
52031         * tests/test-snprintf-posix.c (ASSERT): Likewise.
52032         * tests/test-snprintf.c (ASSERT): Likewise.
52033         * tests/test-sprintf-posix.c (ASSERT): Likewise.
52034         * tests/test-stat-time.c (ASSERT): Likewise.
52035         * tests/test-strcasestr.c (ASSERT): Likewise.
52036         * tests/test-strerror.c (ASSERT): Likewise.
52037         * tests/test-striconv.c (ASSERT): Likewise.
52038         * tests/test-striconveh.c (ASSERT): Likewise.
52039         * tests/test-striconveha.c (ASSERT): Likewise.
52040         * tests/test-strsignal.c (ASSERT): Likewise.
52041         * tests/test-strstr.c (ASSERT): Likewise.
52042         * tests/test-strtod.c (ASSERT): Likewise.
52043         * tests/test-trunc1.c (ASSERT): Likewise.
52044         * tests/test-trunc2.c (ASSERT): Likewise.
52045         * tests/test-truncf1.c (ASSERT): Likewise.
52046         * tests/test-truncf2.c (ASSERT): Likewise.
52047         * tests/test-truncl.c (ASSERT): Likewise.
52048         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
52049         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
52050         * tests/test-vasnprintf.c (ASSERT): Likewise.
52051         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
52052         * tests/test-vasprintf.c (ASSERT): Likewise.
52053         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
52054         * tests/test-vprintf-posix.c (ASSERT): Likewise.
52055         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
52056         * tests/test-vsnprintf.c (ASSERT): Likewise.
52057         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
52058         * tests/test-wcwidth.c (ASSERT): Likewise.
52059         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
52060         * tests/test-xprintf-posix.c (ASSERT): Likewise.
52061         * tests/test-xvasprintf.c (ASSERT): Likewise.
52062         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
52063         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
52064         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
52065         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
52066         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
52067         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
52068         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
52069         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
52070         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
52071         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
52072         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
52073         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
52074         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
52075         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
52076         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
52077         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
52078         * tests/unictype/test-block_list.c (ASSERT): Likewise.
52079         * tests/unictype/test-block_of.c (ASSERT): Likewise.
52080         * tests/unictype/test-block_test.c (ASSERT): Likewise.
52081         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
52082         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
52083         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
52084         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
52085         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
52086         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
52087         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
52088         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
52089         * tests/unictype/test-combining.c (ASSERT): Likewise.
52090         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
52091         * tests/unictype/test-digit.c (ASSERT): Likewise.
52092         * tests/unictype/test-mirror.c (ASSERT): Likewise.
52093         * tests/unictype/test-numeric.c (ASSERT): Likewise.
52094         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
52095         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
52096         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
52097         * tests/unictype/test-scripts.c (ASSERT): Likewise.
52098         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
52099         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
52100         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
52101         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
52102         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
52103         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
52104         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
52105         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
52106         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
52107         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
52108         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
52109         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
52110         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
52111         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
52112         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
52113         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
52114         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
52115         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
52116         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
52117         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
52118         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
52119         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
52120         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
52121         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
52122         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
52123         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
52124         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
52125         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
52126         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
52127         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
52128         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
52129         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
52130         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
52131         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
52132         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
52133         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
52134         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
52135         Reported by Eric Blake.
52136
52137 2008-04-11  Bruno Haible  <bruno@clisp.org>
52138
52139         * lib/wchar.in.h: Tweak comment.
52140
52141 2008-04-11  Bruno Haible  <bruno@clisp.org>
52142
52143         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
52144         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
52145         gl_COMMON.
52146         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
52147
52148 2008-04-11  Bruno Haible  <bruno@clisp.org>
52149
52150         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
52151
52152 2008-04-11  Simon Josefsson  <simon@josefsson.org>
52153
52154         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
52155         of attempting to use non-existing /dev/*random.  Based on patch
52156         from Adam Strzelecki <ono@java.pl> in
52157         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
52158
52159 2008-04-08  Bruno Haible  <bruno@clisp.org>
52160
52161         Add tentative support for emx+gcc.
52162         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
52163         * lib/fpurge.c (fpurge): Likewise.
52164         * lib/freadable.c (freadable): Likewise.
52165         * lib/freadahead.c (freadahead): Likewise.
52166         * lib/freading.c (freading): Likewise.
52167         * lib/freadptr.c (freadptr): Likewise.
52168         * lib/freadseek.c (freadptrinc): Likewise.
52169         * lib/fseeko.c (rpl_fseeko): Likewise.
52170         * lib/fseterr.c (fseterr): Likewise.
52171         * lib/fwritable.c (fwritable): Likewise.
52172         * lib/fwriting.c (fwriting): Likewise.
52173         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
52174
52175 2008-04-09  Eric Blake  <ebb9@byu.net>
52176
52177         Avoid some autoconf warnings.
52178         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
52179         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
52180         * m4/afs.m4 (gl_AFS): Likewise.
52181         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
52182         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
52183         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52184         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
52185         (gl_INTEGER_TYPE_SUFFIX): Likewise.
52186         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
52187         (AC_CHECK_DECLS_ONCE): Likewise.
52188         Rename file...
52189         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
52190         gnulib-tool requires autoconf 2.59 or better.
52191         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
52192
52193 2008-04-08  Eric Blake  <ebb9@byu.net>
52194
52195         Use 'git describe --match' if present (added in git 1.5.5).
52196         * build-aux/git-version-gen: Limit result to tags that match 'v*'
52197         if possible.
52198
52199 2008-04-08  Bruno Haible  <bruno@clisp.org>
52200
52201         Add tentative support for OpenServer.
52202         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
52203         _ptr, _cnt.
52204         * lib/fpurge.c (fpurge): Likewise.
52205         * lib/freadable.c (freadable): Likewise.
52206         * lib/freadahead.c (freadahead): Likewise.
52207         * lib/freading.c (freading): Likewise.
52208         * lib/freadptr.c (freadptr): Likewise.
52209         * lib/freadseek.c (freadptrinc): Likewise.
52210         * lib/fseeko.c (rpl_fseeko): Likewise.
52211         * lib/fseterr.c (fseterr): Likewise.
52212         * lib/fwritable.c (fwritable): Likewise.
52213         * lib/fwriting.c (fwriting): Likewise.
52214         Reported by Roger Cornelius <rac@tenzing.org> and
52215         Brian K. White <brian@aljex.com>.
52216
52217 2008-04-06  Jim Meyering  <meyering@redhat.com>
52218
52219         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
52220
52221 2008-04-06  Bruno Haible  <bruno@clisp.org>
52222
52223         Avoid possible error with non-ASCII bytes in UTF-8 locales.
52224         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
52225         * tests/test-printf-posix.sh: Likewise.
52226         * tests/test-vfprintf-posix.sh: Likewise.
52227         * tests/test-vprintf-posix.sh: Likewise.
52228         * tests/test-xprintf-posix.sh: Likewise.
52229
52230 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52231
52232         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
52233         hide error from 'ls', needed on OS/2.
52234         Report by Elbert Pol <elbert.pol@gmail.com>.
52235
52236 2008-04-04  Eric Blake  <ebb9@byu.net>
52237
52238         Make test-fseeko.c failures meaningful.
52239         * tests/test-fseeko.c: Print line number on failure.
52240         * tests/test-fseek.c: Likewise.
52241         Reported by Nelson H. F. Beebe.
52242
52243         Improve strtod bug detection check.
52244         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
52245         required for Solaris 10.
52246         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
52247
52248 2008-04-04  Bruno Haible  <bruno@clisp.org>
52249
52250         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
52251         by m4/setenv.m4.
52252
52253 2008-04-03  Eric Blake  <ebb9@byu.net>
52254
52255         Ensure sane .version contents.
52256         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
52257         version string.
52258         * build-aux/git-version-gen: Improve documentation.
52259
52260         Make GNU make output nicer.
52261         * top/GNUmakefile [!_have-Makefile]: Add dependency on
52262         MAKECMDGOALS to enforce message for all command line targets.  Set
52263         srcdir for use in maint.mk.
52264
52265         Another maintainer tweak.
52266         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
52267         a target that regenerates version.
52268
52269 2008-04-03  Jim Meyering  <meyering@redhat.com>
52270
52271         vc-list-files: don't cause coreutils "make po-check" failure
52272         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
52273
52274 2008-04-03  Eric Blake  <ebb9@byu.net>
52275
52276         Allow VPATH usage of vc-list-files.
52277         * build-aux/vc-list-files (scriptversion): Add timestamp.
52278         (options): Add --help, --version, -C.
52279         (CVS): Support installed cvsu.
52280
52281 2008-04-02  Bruno Haible  <bruno@clisp.org>
52282
52283         Avoid some "statement with no effect" warnings from gcc.
52284         * tests/test-wctype.c (main): Explicitly ignore unused values.
52285         Reported by Jim Meyering.
52286
52287 2008-04-02  Jim Meyering  <meyering@redhat.com>
52288
52289         Avoid some warnings from "gcc -Wshadow".
52290         * tests/test-frexp.c (exp): Define to a different identifier.
52291         * tests/test-frexpl.c (exp): Likewise.
52292
52293 2008-04-03  Jim Meyering  <meyering@redhat.com>
52294
52295         bootstrap: remove dangling *.[ch] symlinks from lib
52296         * build-aux/bootstrap [dangling symlink removal]: Move find's
52297         -depth option to precede all others, to avoid a warning.
52298         Remove *.[ch] files too, and from "$source_base" (usually lib/).
52299
52300 2008-04-02  Bruno Haible  <bruno@clisp.org>
52301
52302         Avoid some warnings from "gcc -Wshadow".
52303         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
52304         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
52305         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
52306         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
52307         Reported by Jim Meyering.
52308
52309 2008-04-01  Bruno Haible  <bruno@clisp.org>
52310
52311         Fix test to work on IRIX 6.5 with cc.
52312         * tests/test-math.c (numeric_equal): New function.
52313         (main): Use it.
52314
52315 2008-04-01  Bruno Haible  <bruno@clisp.org>
52316
52317         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
52318
52319 2008-04-01  Bruno Haible  <bruno@clisp.org>
52320
52321         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
52322         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52323         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
52324         (Depends-on): Remove math.
52325
52326         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
52327         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52328         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
52329         (Depends-on): Remove math.
52330
52331         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
52332         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52333         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
52334         (Depends-on): Remove math.
52335         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
52336         (Depends-on): Remove math.
52337
52338         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
52339         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52340         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
52341         (Depends-on): Remove math.
52342         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
52343         (Depends-on): Remove math.
52344
52345         * tests/test-round1.c: Include nan.h.
52346         (main): Use NaNd instead of NAN.
52347         * modules/round-tests (Files): Add tests/nan.h.
52348
52349         * tests/test-trunc1.c: Include nan.h.
52350         (main): Use NaNd instead of NAN.
52351         * modules/trunc-tests (Files): Add tests/nan.h.
52352
52353         * tests/test-roundf1.c: Include nan.h.
52354         (main): Use NaNf instead of NAN.
52355         * modules/roundf-tests (Files): Add tests/nan.h.
52356
52357         * tests/test-truncf1.c: Include nan.h.
52358         (main): Use NaNf instead of NAN.
52359         * modules/truncf-tests (Files): Add tests/nan.h.
52360
52361         * tests/test-ceilf1.c: Include nan.h.
52362         (main): Use NaNf instead of NAN.
52363         * modules/ceilf-tests (Files): Add tests/nan.h.
52364
52365         * tests/test-floorf1.c: Include nan.h.
52366         (main): Use NaNf instead of NAN.
52367         * modules/floorf-tests (Files): Add tests/nan.h.
52368
52369         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
52370         (main): Use NaNf instead of NAN.
52371         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
52372
52373         * tests/test-isnand.c: Include nan.h instead of <math.h>.
52374         (main): Use NaNd instead of NAN.
52375         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
52376
52377         * tests/test-frexp.c: Include nan.h.
52378         (main): Use NaNd instead of NAN.
52379         * modules/frexp-tests (Files): Add tests/nan.h.
52380
52381         * lib/isnan.c: Don't include <math.h>.
52382         (FUNC): Don't use NAN macro.
52383         * modules/isnand-nolibm (Depends-on): Remove math.
52384         * modules/isnanf-nolibm (Depends-on): Remove math.
52385         * modules/isnanl (Depends-on): Remove math.
52386         * modules/isnanl-nolibm (Depends-on): Remove math.
52387
52388         * tests/nan.h: New file.
52389
52390 2008-04-01  Eric Blake  <ebb9@byu.net>
52391
52392         Fix typos.
52393         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
52394         values to be the right type.
52395
52396         For now, cater to gnulib strtod inaccuracies.
52397         * tests/test-strtod.c (main): Allow 1-ulp error on expected
52398         fractional results.  While not as nice from a QoI perspective, it
52399         is a quicker patch than correctly implementing decimal to binary
52400         rounding.
52401
52402 2008-03-31  Eric Blake  <ebb9@byu.net>
52403
52404         Guarantee a definition of NAN.
52405         * lib/math.in.h (NAN): Define if missing.
52406         * tests/test-math.c (main): Test it.
52407         * doc/posix-headers/math.texi (math.h): Document this.
52408         * lib/isnan.c (rpl_isnand): Use it.
52409         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
52410         * tests/test-floorf1.c (NaN): Likewise.
52411         * tests/test-frexp.c (NaN): Likewise.
52412         * tests/test-isnand.c (NaN): Likewise.
52413         * tests/test-isnanf.c (NaN): Likewise.
52414         * tests/test-round1.c (NaN): Likewise.
52415         * tests/test-roundf1.c (NaN): Likewise.
52416         * tests/test-snprintf-posix.h (NaN): Likewise.
52417         * tests/test-sprintf-posix.h (NaN): Likewise.
52418         * tests/test-trunc1.c (NaN): Likewise.
52419         * tests/test-truncf1.c (NaN): Likewise.
52420         * tests/test-vasnprintf-posix.c (NaN): Likewise.
52421         * tests/test-vasprintf-posix.c (NaN): Likewise.
52422         * modules/isnand-nolibm (Depends-on): Add math.
52423         * modules/isnanf-nolibm (Depends-on): Likewise.
52424         * modules/isnanl (Depends-on): Likewise.
52425         * modules/isnanl-nolibm (Depends-on): Likewise.
52426         * modules/snprintf-posix-tests (Depends-on): Likewise.
52427         * modules/sprintf-posix-tests (Depends-on): Likewise.
52428         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
52429         * modules/vsprintf-posix-tests (Depends-on): Likewise.
52430         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
52431         * modules/vasprintf-posix-tests (Depends-on): Likewise.
52432
52433 2008-03-31  Bruno Haible  <bruno@clisp.org>
52434
52435         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
52436         * doc/posix-functions/strtod.texi: Likewise.
52437
52438 2008-03-31  Bruno Haible  <bruno@clisp.org>
52439
52440         * tests/test-strtod.c (main): Don't use C99 syntax.
52441
52442 2008-03-31  Bruno Haible  <bruno@clisp.org>
52443
52444         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
52445         Reported by Eric Blake.
52446
52447 2008-03-31  Jim Meyering  <meyering@redhat.com>
52448
52449         Don't compare actual signbit return values.
52450         * tests/test-strtod.c (main): Rather, compare only their
52451         zero/non-zero nature.
52452
52453 2008-03-31  Eric Blake  <ebb9@byu.net>
52454
52455         More strtod documentation.
52456         * doc/posix-functions/strtod.texi (strtod): Interpret more test
52457         failures as distinct bugs.
52458
52459 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52460
52461         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
52462         Problem reported by Erik Benada in
52463         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
52464
52465 2008-03-30  Bruno Haible  <bruno@clisp.org>
52466
52467         * tests/test-strtod.c: Add comments about which assertion fails on which
52468         platform.
52469         * doc/posix-functions/strtod.texi: Add info about many more platforms.
52470
52471 2008-03-30  Eric Blake  <ebb9@byu.net>
52472
52473         Test signbit behavior on zeros.
52474         * tests/test-signbit.c (test_signbitf): Add tests for zero.
52475         (test_signbitd, test_signbitl): Likewise.
52476
52477         More strtod touchups.
52478         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
52479         sign of negative underflow, for now.  Use .5, not .1.
52480         * doc/posix-functions/strtod.texi (strtod): Mention these
52481         limitations.
52482         Reported by Jim Meyering.
52483
52484 2008-03-30  Bruno Haible  <bruno@clisp.org>
52485
52486         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
52487         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
52488
52489 2008-03-30  Bruno Haible  <bruno@clisp.org>
52490
52491         Avoid failure when attempting to return empty iconv results on some
52492         platforms.
52493         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
52494         allocation, don't report ENOMEM when the resulting string is empty.
52495
52496 2008-03-30  Bruno Haible  <bruno@clisp.org>
52497
52498         Fix buffer overrun.
52499         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
52500         Don't consider the width for tmp_length. Check count against tmp_length
52501         before doing the padding. Ensure enough allocation during padding.
52502
52503 2008-03-30  Eric Blake  <ebb9@byu.net>
52504
52505         strtod touchups.
52506         * lib/strtod.c (strtod): Avoid compiler warnings.
52507         Reported by Jim Meyering.
52508
52509 2008-03-30  Bruno Haible  <bruno@clisp.org>
52510
52511         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
52512         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
52513         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
52514         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
52515         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
52516         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
52517         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
52518         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
52519
52520         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
52521         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
52522         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
52523         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
52524         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
52525         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
52526         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
52527         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
52528
52529         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
52530         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
52531         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
52532         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
52533         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
52534         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
52535         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
52536         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
52537
52538         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
52539         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
52540
52541         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
52542         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
52543
52544         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
52545         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
52546
52547         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
52548         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
52549         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
52550
52551         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
52552         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
52553         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
52554
52555         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
52556         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
52557         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
52558
52559         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
52560         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
52561         * modules/vasprintf (Depends-on): Add EOVERFLOW.
52562
52563         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
52564         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
52565         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
52566         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
52567         (Depends-on): Add EOVERFLOW.
52568         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
52569         (Depends-on): Add EOVERFLOW.
52570         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52571         (Depends-on): Add EOVERFLOW.
52572         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52573         (Depends-on): Add EOVERFLOW.
52574         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52575         (Depends-on): Add EOVERFLOW.
52576         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52577         (Depends-on): Add EOVERFLOW.
52578         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52579         (Depends-on): Add EOVERFLOW.
52580         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52581         (Depends-on): Add EOVERFLOW.
52582
52583         * lib/sprintf.c (EOVERFLOW): Remove fallback.
52584         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
52585         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
52586
52587         * lib/snprintf.c (EOVERFLOW): Remove fallback.
52588         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
52589         * modules/snprintf (Depends-on): Add EOVERFLOW.
52590
52591         * lib/poll.c (EOVERFLOW): Remove fallback.
52592         * modules/poll (Depends-on): Add EOVERFLOW.
52593
52594         * lib/getugroups.c (EOVERFLOW): Remove fallback.
52595         * modules/getugroups (Depends-on): Add EOVERFLOW.
52596
52597         * lib/getdelim.c (EOVERFLOW): Remove fallback.
52598         * modules/getdelim (Depends-on): Add EOVERFLOW.
52599
52600         * lib/ftell.c (EOVERFLOW): Remove fallback.
52601         * modules/ftell (Depends-on): Add EOVERFLOW.
52602
52603         * lib/fprintf.c (EOVERFLOW): Remove fallback.
52604         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
52605         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
52606
52607         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
52608
52609         * modules/EOVERFLOW-tests: New file.
52610         * tests/test-EOVERFLOW.c: New file.
52611
52612         * modules/EOVERFLOW: New file.
52613         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
52614
52615 2008-03-30  Bruno Haible  <bruno@clisp.org>
52616
52617         Fix bug introduced on 2007-06-10.
52618         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
52619         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
52620
52621 2008-03-30  Bruno Haible  <bruno@clisp.org>
52622
52623         Improve freadseek's efficiency after ungetc.
52624         * lib/freadseek.c: Include freadahead.h.
52625         (freadptrinc): New function, extracted from freadseek.
52626         (freadseek): Use it in a loop. Use freadahead to determine the number
52627         of loop iterations.
52628         * modules/freadseek (Depends-on): Add freadahead.
52629         (configure.ac): Require AC_C_INLINE.
52630
52631 2008-03-30  Bruno Haible  <bruno@clisp.org>
52632
52633         * lib/freadseek.c (freadseek): Don't ignore the return value of
52634         freadptr.
52635
52636 2008-03-29  Eric Blake  <ebb9@byu.net>
52637
52638         Add hex float support.
52639         * modules/strtod (Depends-on): Add c-ctype.
52640         (Link): Mention POW_LIB.
52641         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
52642         whitespace between 'e' and exponent.
52643         * tests/test-strtod.c (main): Enable hex float tests.
52644         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
52645         now provides.
52646
52647         Document various strtod bugs, with some fixes.
52648         * doc/posix-functions/strtod.texi (strtod): Document bugs with
52649         "-0x", "inf", "nan", and hex constants.
52650         * doc/posix-functions/atof.texi (atof): Likewise.
52651         * modules/stdlib (Makefile.am): Support strtod.
52652         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
52653         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
52654         detect additional strtod bugs.
52655         * lib/stdlib.in.h (rpl_strtod): Add declarations.
52656         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
52657         bool where appropriate.  Parse 'inf' and 'nan'.
52658         * tests/test-strtod.c: New file.
52659         * modules/strtod (Depends-on): Add stdbool, stdlib.
52660         (configure.ac): Turn on module indicator.
52661         * modules/strtod-tests: New module.
52662
52663 2008-03-29  Eric Blake  <ebb9@byu.net>
52664
52665         Fix ftell on mingw.
52666         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
52667         * modules/ftell-tests (Depends-on): Add binary-io.
52668         * modules/ftello-tests (Depends-on): Likewise.
52669         * tests/test-ftell.c (main): Enhance test to cover behavior after
52670         ungetc.  Enforce binary mode.
52671         * tests/test-ftello.c (main): Likewise.
52672
52673         Pass test-freadseek on cygwin.
52674         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
52675         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
52676         ungetc buffer.
52677
52678         * tests/test-fflush2.c (main): Fix typo.
52679
52680 2008-03-29  Bruno Haible  <bruno@clisp.org>
52681
52682         * tests/test-fflush2.c (main): Temporarily disable the contents of
52683         this test.
52684         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
52685         Reported by Eric Blake.
52686
52687 2008-03-28  Simon Josefsson  <simon@josefsson.org>
52688
52689         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
52690         (GC_SHA224_DIGEST_SIZE): Add.
52691
52692         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
52693         (gc_hash_digest_length): Likewise.
52694         (gc_hash_buffer): Likewise.
52695
52696 2008-03-25  Bruno Haible  <bruno@clisp.org>
52697
52698         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
52699         detail which gettext release to use.
52700         Reported by Simon Josefsson.
52701
52702 2008-03-26  Jim Meyering  <meyering@redhat.com>
52703
52704         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
52705         * modules/gnumakefile (clean-GNUmakefile): Also, use
52706         test ... && ... || : syntax rather than if-then ... fi.
52707
52708         gnumakefile: Don't double-quote-expand $(VPATH) value.
52709         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
52710
52711 2008-03-24  Eric Blake  <ebb9@byu.net>
52712
52713         Alter GNUmakefile to install into top directory.
52714         * modules/maintainer-makefile: Split, and add dependency...
52715         * modules/gnumakefile: to this new module.
52716         * build-aux/GNUmakefile: Move...
52717         * top/GNUmakefile: ...here.
52718         * build-aux/maint.mk: Move...
52719         * top/maint.mk: ...here.
52720         * MODULES.html.sh (Support for maintaining...): Document new
52721         module.
52722
52723 2008-03-23  Bruno Haible  <bruno@clisp.org>
52724
52725         * gnulib-tool: New options --vc-files, --no-vc-files.
52726         (func_usage): Document them.
52727         (vc_files): New variable.
52728         (func_import): Consider vc_files.
52729         (func_create_testdir): Set vc_files to empty.
52730         Suggested by Jim Meyering and Karl Berry.
52731
52732 2008-03-23  Bruno Haible  <bruno@clisp.org>
52733
52734         Fix regex compilation error on HP-UX 11.
52735         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
52736         * modules/regex (Files): Add m4/mbstate_t.m4.
52737         Reported by Ton Voon <ton.voon@altinity.com>.
52738
52739 2008-03-23  Bruno Haible  <bruno@clisp.org>
52740
52741         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
52742
52743 2008-03-23  Eric Blake  <ebb9@byu.net>
52744             Bruno Haible  <bruno@clisp.org>
52745
52746         Install files from top/ in the destination directory.
52747         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52748         augmentation also for the files from top/.
52749         (func_import, func_create_testdir): Rewrite file names:
52750         top/filename -> filename.
52751
52752 2008-03-23  Bruno Haible  <bruno@clisp.org>
52753
52754         Tweak "gnulib --version" output.
52755         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
52756
52757 2008-03-23  Bruno Haible  <bruno@clisp.org>
52758
52759         Tweak "gnulib --version" output.
52760         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
52761         rather than contents of ChangeLog, when possible.
52762
52763 2008-03-21  Eric Blake  <ebb9@byu.net>
52764
52765         More --version tweaks.
52766         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
52767         date of last ChangeLog entry.
52768
52769 2008-03-21  Jim Meyering  <meyering@redhat.com>
52770
52771         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
52772
52773 2008-03-20  Eric Blake  <ebb9@byu.net>
52774
52775         VPATH fix.
52776         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
52777
52778 2008-03-20  Simon Josefsson  <simon@josefsson.org>
52779
52780         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
52781         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
52782
52783 2008-03-20  Eric Blake  <ebb9@byu.net>
52784
52785         Sync GNUmakefile with coreutils.
52786         * build-aux/GNUmakefile (have-Makefile): Rename...
52787         (_have-Makefile): ...to this, for namespace consideration.
52788         (GNUmakefile.cfg): Include, if present.
52789         (_autoreconf): Define a default.
52790         (_is-dist-target): New rule for rebuilds to pick up intra-release
52791         version.
52792         (maint-cfg.mk): Rename...
52793         (cfg.mk): ...to this.
52794
52795 2008-03-18  Jim Meyering  <meyering@redhat.com>
52796
52797         New script and module: mktempd
52798         * MODULES.html.sh (maint+release support): Add mktempd.
52799         * build-aux/mktempd: New file.
52800         * modules/mktempd: New file.
52801
52802 2008-03-15  Jim Meyering  <meyering@redhat.com>
52803
52804         Undo last change.
52805         * lib/sha1.c, lib/md5.c: 63 != ~63.
52806         Reported by Andreas Schwab.
52807
52808         sha1.c, md5.c: Hoist a redundant expression.
52809         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
52810         "ctx->buflen" only once, before calling *_process_block.
52811         * lib/md5.c (md5_process_bytes): Likewise.
52812
52813 2008-03-14  Eric Blake  <ebb9@byu.net>
52814
52815         Bump copyright year in files generated by gnulib-tool.
52816         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
52817         gnulib-tool, rather than hard-coding it.
52818
52819         Fix 'gnulib-tool --version' output to work with git.
52820         * gnulib-tool (func_gnulib_dir): New function, extracted from...
52821         (startup): ...here.
52822         (func_version): Use it to invoke git-version-gen, rather than
52823         relying on CVS keyword expansion.  Modernize wording.
52824         (cvsdatestamp, last_checkin_date, version): Kill unused
52825         variables.
52826
52827 2008-03-12  Jim Meyering  <meyering@redhat.com>
52828
52829         Recognize optional cast of the argument to free.
52830         * build-aux/useless-if-before-free: Update regexps.
52831
52832         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
52833
52834 2008-03-11  Bruno Haible  <bruno@clisp.org>
52835
52836         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
52837         by a single package.
52838         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
52839         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
52840         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
52841         Reported by Sam Steingold <sds@gnu.org>.
52842
52843 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52844
52845         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
52846         repositories.
52847
52848 2008-03-11  Bruno Haible  <bruno@clisp.org>
52849
52850         Avoid conflicts between local macro definitions.
52851         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
52852         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
52853
52854 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
52855             Bruno Haible  <bruno@clisp.org>
52856
52857         Make va_copy work with some version of xlc on AIX 5.1.
52858         * lib/stdarg.in.h: New file.
52859         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
52860         On AIX, use a <stdarg.h> file substitute.
52861         * modules/stdarg (Files): Add lib/stdarg.in.h.
52862         (Depends-on): Add include_next.
52863         (Makefile.am): Build a stdarg.h substitute if requested.
52864         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
52865
52866 2008-03-10  Bruno Haible  <bruno@clisp.org>
52867
52868         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
52869         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52870         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52871
52872 2008-03-10  Bruno Haible  <bruno@clisp.org>
52873
52874         * modules/stdlib (Depends-on): Add include_next, remove
52875         absolute-header.
52876
52877 2008-03-09  Bruno Haible  <bruno@clisp.org>
52878
52879         * lib/freadahead.h (freadahead): Document more precisely.
52880         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
52881         the sum of both buffer sizes.
52882         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
52883         * NEWS: Document the change.
52884
52885 2008-03-09  Bruno Haible  <bruno@clisp.org>
52886
52887         Extend freadptr to return also the buffer size.
52888         * lib/freadptr.h (freadptr): Add sizep argument.
52889         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
52890         (freadptr): Add sizep argument. Determine buffer size like freadahead
52891         does.
52892         * tests/test-freadptr.c: Don't include freadahead.h.
52893         (main): Adapt for new calling convention of freadptr.
52894         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
52895         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
52896         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
52897         tests/test-freadptr2.sh.
52898         (Depends): Remove freadahead.
52899         (TESTS): Add test-freadptr2.sh.
52900         (check_PROGRAMS): Add test-freadptr2.
52901
52902 2008-03-09  Bruno Haible  <bruno@clisp.org>
52903
52904         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
52905         Report and solution by Simon Josefsson.
52906
52907 2008-03-06  Bruno Haible  <bruno@clisp.org>
52908
52909         Make fflush after ungetc work on BSD platforms.
52910         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
52911         * tests/test-fflush2.c: New file.
52912         * tests/test-fflush2.sh: New file.
52913         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
52914         tests/test-fflush2.c.
52915         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
52916         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
52917
52918 2008-03-06  Eric Blake  <ebb9@byu.net>
52919
52920         Likewise for ftello.
52921         * modules/ftello (Dependencies): Add extensions.
52922         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
52923
52924 2008-03-06  Bruno Haible  <bruno@clisp.org>
52925
52926         * modules/fseeko (Dependencies): Add extensions.
52927         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
52928         Needed on glibc systems.
52929
52930 2008-03-06  Bruno Haible  <bruno@clisp.org>
52931
52932         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
52933         email address.
52934         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52935
52936 2008-03-06  Bruno Haible  <bruno@clisp.org>
52937
52938         * users.txt: Add libgnupdf.
52939
52940 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52941
52942         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
52943         (Header File Substitutes, Function Substitutes,
52944         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
52945         (Build robot for gnulib): Fix typo.
52946
52947 2008-03-06  Bruno Haible  <bruno@clisp.org>
52948
52949         * doc/gnulib-tool.texi (VCS Issues): Small updates.
52950         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52951
52952 2008-03-06  Bruno Haible  <bruno@clisp.org>
52953
52954         * doc/func.texi: New file, extracted from doc/gnulib.texi.
52955         * doc/gnulib.texi: Include it.
52956
52957 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52958
52959         * modules/func (License): Change license to unlimited; there was
52960         no LGPL parts in the module anyway.
52961
52962 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52963
52964         * modules/__func__: Renamed to modules/func.
52965         * modules/__func__-tests: Renamed to modules/func-tests.
52966         * tests/test-__func__.c: Renamed to tests/test-func.c.
52967         * m4/__func__.m4: Renamed to m4/func.m4.
52968         * doc/gnulib.texi (__func__): Section renamed to func.
52969         Suggested by Eric Blake <ebb9@byu.net>.
52970
52971 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52972
52973         * doc/gnulib.texi (__func__): Use C99 terminology when talking
52974         about __func__.  Make example self-contained.  Suggested by Eric
52975         Blake <ebb9@byu.net>.
52976
52977         * tests/test-__func__.c (main): Avoid extraneous () around __func.
52978         Suggested by Eric Blake <ebb9@byu.net>.
52979
52980 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52981
52982         * modules/__func__: New file.
52983         * modules/__func__-tests: New file.
52984         * tests/test-__func__.c: New file.
52985         * m4/__func__.m4: New file.
52986         * doc/gnulib.texi (__func__): Document __func__ module.
52987
52988 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52989
52990         * modules/byteswap (License): Re-license as LGPLv2+.
52991
52992 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52993
52994         * doc/Makefile: Add pdf target.
52995
52996 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52997
52998         * modules/inline (License): Use 'unlimited', since there are only
52999         *.m4 files in this module.
53000
53001 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
53002             Bruno Haible  <bruno@clisp.org>
53003
53004         Add support for HP C 7.1 on OpenVMS 8.3.
53005         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
53006
53007 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
53008
53009         Update VMS specifics.
53010         * lib/getopt.c [VMS]: Remove include of unixlib.h.
53011
53012 2008-03-02  Jim Meyering  <meyering@redhat.com>
53013
53014         Remove the last dependency on the "free" module.
53015         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
53016         Reported by Bob Proulx.
53017
53018         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
53019
53020         Remove useless "if" tests before free.  Deprecate "free" module.
53021         * doc/posix-functions/free.texi: Mention that this
53022         module is no longer useful.
53023         * modules/free (Notice): Say this module is obsolete.
53024         * modules/readutmp (Depends-on): Remove free.
53025         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
53026         * lib/putenv.c (putenv): Likewise.
53027         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
53028         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
53029         * tests/test-c-strcasestr.c (main): Likewise.
53030         * tests/test-c-strstr.c (main): Likewise.
53031         * tests/test-mbscasestr1.c (main): Likewise.
53032         * tests/test-mbscasestr2.c (main): Likewise.
53033         * tests/test-mbsstr1.c (main): Likewise.
53034         * tests/test-mbsstr2.c (main): Likewise.
53035         * tests/test-memmem.c (main): Likewise.
53036         * tests/test-strcasestr.c (main): Likewise.
53037         * tests/test-striconv.c (main): Likewise.
53038         * tests/test-striconveh.c (main): Likewise.
53039         * tests/test-striconveha.c (main): Likewise.
53040         * tests/test-strstr.c (main): Likewise.
53041
53042         * build-aux/git-version-gen: Adjust a comment and the Usage string.
53043
53044         bootstrap: sync from coreutils again
53045         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
53046
53047 2008-03-01  Jim Meyering  <meyering@redhat.com>
53048
53049         bootstrap: sync from coreutils
53050         * build-aux/bootstrap (update_po_files): Copy a .po file into place
53051         also when the target doesn't exist.
53052
53053 2008-03-01  Eric Blake  <ebb9@byu.net>
53054
53055         Fix bugs in last patch.
53056         * lib/memchr2.c (memchr2): Fix typo.
53057         * tests/test-memchr2.c: Test previous bug, and don't use GNU
53058         extension.
53059         Reported by Bruce Korb.
53060
53061         New module 'memchr2'.
53062         * modules/memchr2: New file.
53063         * modules/memchr2-tests: Likewise.
53064         * lib/memchr2.h: Likewise.
53065         * lib/memchr2.c: Likewise, based on memchr.c.
53066         * tests/test-memchr2.c: New test.
53067         * MODULES.html.sh (String handling): Add memchr2.
53068
53069 2008-02-29  Bruno Haible  <bruno@clisp.org>
53070
53071         * modules/freadseek-tests: New file.
53072         * tests/test-freadseek.sh: New file.
53073         * tests/test-freadseek.c: New file.
53074
53075         New module 'freadseek'.
53076         * modules/freadseek: New file.
53077         * lib/freadseek.h: New file.
53078         * lib/freadseek.c: New file.
53079         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
53080
53081 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
53082
53083         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
53084         wydawca.
53085
53086         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
53087         program_invocation_name and program_invocation_short_name are
53088         present.
53089
53090 2008-02-28  Bruno Haible  <bruno@clisp.org>
53091
53092         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
53093         * tests/test-freadptr.sh: Also test non-seekable stdin.
53094
53095 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
53096
53097         * build-aux/bootstrap (source_base, m4_base)
53098         (doc_base, tests_base): New variables.
53099         (gnulib_tool_options): Do not hardcode base directories, use
53100         the above variables instead.
53101
53102 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
53103
53104         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
53105
53106 2008-02-28  Bruno Haible  <bruno@clisp.org>
53107
53108         * modules/freadptr-tests: New file.
53109         * tests/test-freadptr.sh: New file.
53110         * tests/test-freadptr.c: New file.
53111
53112         New module 'freadptr'.
53113         * modules/freadptr: New file.
53114         * lib/freadptr.h: New file.
53115         * lib/freadptr.c: New file.
53116         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
53117
53118 2008-02-26  Karl Berry  <karl@freefriends.org>
53119
53120         Sync from Libtool:
53121         * libltdl/argz.c (argz_add, argz_count): New functions.
53122         * libltdl/argz.in.h: Declare them.
53123         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
53124
53125 2008-02-22  Bruno Haible  <bruno@clisp.org>
53126
53127         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
53128         is a pointer type.  Needed for HP-UX 10.
53129         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
53130         * doc/posix-functions/gmtime_r.texi: Likewise.
53131         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
53132
53133 2008-02-24  Bruno Haible  <bruno@clisp.org>
53134
53135         * modules/environ-tests: New file.
53136         * tests/test-environ.c: New file.
53137
53138         New module 'environ'.
53139         * modules/environ: New file.
53140         * lib/unistd.in.h (environ): New declaration.
53141         * m4/environ.m4: New file.
53142         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
53143         after use.
53144         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
53145         HAVE_DECL_ENVIRON.
53146         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
53147         HAVE_DECL_ENVIRON.
53148         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
53149         wrong claim that 'environ' is missing on some systems.
53150         * modules/execute (Depends-on): Add environ.
53151         * lib/execute.c (environ): Remove fallback declaration.
53152         * modules/pipe (Depends-on): Add environ.
53153         * lib/pipe.c (environ): Remove fallback declaration.
53154         * modules/setenv (Depends-on): Add environ.
53155         * lib/setenv.c (environ): Remove fallback declaration.
53156         * modules/unsetenv (Depends-on): Add environ.
53157         * lib/unsetenv.c (environ): Remove fallback declaration.
53158         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
53159         m4/environ.m4.
53160         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
53161         (gl_PREREQ_UNSETENV): Likewise.
53162
53163 2008-02-24  Bruno Haible  <bruno@clisp.org>
53164
53165         * doc/posix-functions/environ.texi: Document the MacOS X problem.
53166
53167 2008-02-20  Bob Proulx  <bob@proulx.com>
53168
53169         Enable use of older two part flavor 'git describe'.
53170         * build-aux/git-version-gen: If using the older two part flavor of
53171         git version then recreate the third part now present in the
53172         newer three part flavor of git describe.
53173
53174 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
53175
53176         * lib/fts.c (fts_build): Typo correction to comment.
53177
53178 2008-02-17  Bruno Haible  <bruno@clisp.org>
53179
53180         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
53181         generating no-op conflicts.
53182
53183 2008-02-17  Bruno Haible  <bruno@clisp.org>
53184
53185         Speed up by 10%.
53186         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
53187         result_entries, rather than an index-based loop.
53188
53189 2008-02-17  Bruno Haible  <bruno@clisp.org>
53190
53191         Speed up by 25%.
53192         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
53193         'hashcode_cached'.
53194         (entry_create): New function.
53195         (entry_hashcode): Use the cached hashcode if possible.
53196         (read_changelog_file, try_split_merged_entry): Use entry_create.
53197
53198 2008-02-17  Bruno Haible  <bruno@clisp.org>
53199
53200         Speed up from O(n^2) to O(n) for long ChangeLog files.
53201         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
53202         (read_changelog_file): Change implementation of entries_reversed list
53203         to rbtreehash.
53204         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
53205
53206 2008-02-17  Bruno Haible  <bruno@clisp.org>
53207
53208         New option --split-merged-entry.
53209         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
53210         (find_paragraph_end, try_split_merged_entry): New functions.
53211         (long_options): Add option --split-merged-entry.
53212         (usage): Document option --split-merged-entry.
53213         (main): Implement option --split-merged-entry.
53214         Reported by Eric Blake.
53215
53216 2008-02-17  Bruno Haible  <bruno@clisp.org>
53217
53218         * lib/git-merge-changelog.c: Include c-strstr.h.
53219         (main): Support the "git pull --rebase" situation.
53220         * modules/git-merge-changelog (Depends-on): Add c-strstr.
53221         Reported by Eric Blake.
53222
53223 2008-02-16  Eric Blake  <ebb9@byu.net>
53224
53225         Avoid doubling \ in common case of "c-maybe" quoting style.
53226         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
53227         eliding outer quotes.
53228         * lib/quotearg.h: Document this.
53229         * tests/test-quotearg.c (result_strings, inputs, results_g)
53230         (flag_results, locale_results): Test it by adding a new string to
53231         each test group.
53232         (compare_strings): Test new string.
53233
53234 2008-02-13  Eric Blake  <ebb9@byu.net>
53235
53236         Avoid trigraph quoting in default output.
53237         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
53238         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
53239         unless explicitly requested.
53240         * tests/test-quotearg.c (flag_results, main): Add additional tests.
53241
53242 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
53243
53244         Don't rely on signed integer overflowing to negative value.
53245         * lib/getugroups.c (getugroups): Include <limits.h>.
53246         Instead, compare against INT_MAX, and increment only if the test passes.
53247
53248 2008-02-13  Jim Meyering  <meyering@redhat.com>
53249         and Eric Blake  <ebb9@byu.net>
53250
53251         Avoid shadowing warning and compile errors on Linux.
53252         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
53253         forwarding macros on Linux.
53254         (dcgettext): Define a stub, for Linux.
53255         (results_g, main): Avoid warnings.
53256
53257 2008-02-12  Eric Blake  <ebb9@byu.net>
53258
53259         Silence warning in last patch.
53260         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
53261
53262         Quotearg part 4: add tests, fix c-maybe colon quoting.
53263         * lib/quotearg.h: Improve documentation.
53264         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
53265         escapes when adding outer quotes.  When quoting trigraphs, use
53266         valid C notation.  When quoting NUL, omit extra characters if next
53267         character is not digit.  Alter prototype.
53268         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
53269         callers.
53270         * modules/quotearg-tests: New module.
53271         * tests/test-quotearg.c: New test.
53272
53273 2008-02-07  Eric Blake  <ebb9@byu.net>
53274
53275         Quotearg part 3: add flag to control outer quote elision.
53276         * lib/quotearg.h (c_maybe_quoting_style): New style.
53277         (enum quoting_flags): Better documentation of flags.
53278         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
53279         c-maybe style.
53280         (quotearg_buffer_restyled): Handle new flag to elide outer
53281         quotes.
53282
53283         Quotearg part 2: add flag that can control NUL elision.
53284         * lib/quotearg.h (set_quoting_flags): New prototype.
53285         * lib/quotearg.c (struct quoting_options): Add flag field.
53286         (set_quoting_flags): New function.
53287         (quotearg_buffer_restyled): Add flags parameter.
53288         (quotearg_alloc_mem): Set the flag if length cannot be returned.
53289         (quotearg_n_options): Set the flag, since length cannot be
53290         returned.
53291         (quoting_options_from_style): Default flags correctly.
53292
53293         Quotearg part 1: more wrappers, restore quotearg_char state.
53294         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
53295         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
53296         (quotearg_colon_mem): New wrappers.
53297         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
53298         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
53299         functions.
53300         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
53301         (quotearg_colon_mem): New functions.
53302
53303 2008-02-11  Bruno Haible  <bruno@clisp.org>
53304
53305         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
53306         library in the current directory: it does not work with parallel make.
53307         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53308
53309 2008-02-11  Bruno Haible  <bruno@clisp.org>
53310
53311         * .gitattributes: New file.
53312
53313 2008-02-11  Jim Meyering  <meyering@redhat.com>
53314
53315         useless-if-before-free: Fix reversed exit values.
53316         * build-aux/useless-if-before-free: Use correct values
53317         for EXIT_MATCH and EXIT_NO_MATCH.
53318
53319         * build-aux/useless-if-before-free: Close stdout carefully.
53320
53321 2008-02-10  Bruno Haible  <bruno@clisp.org>
53322
53323         New module 'git-merge-changelog'.
53324         * modules/git-merge-changelog: New file.
53325         * lib/git-merge-changelog.c: New file.
53326
53327 2008-02-10  Jim Meyering  <meyering@redhat.com>
53328
53329         useless-if-before-free: New option: --list (-l).
53330
53331         useless-if-before-free: Don't exit immediately upon open failure.
53332         * build-aux/useless-if-before-free: Exit 2 for errors.
53333         Upon failure to open a file, don't exit immediately.
53334         Rather, just warn and continue with any remaining files.
53335
53336 2008-02-10  Bruno Haible  <bruno@clisp.org>
53337
53338         New abstract list operation 'node_set_value'.
53339         * lib/gl_list.h (gl_list_node_set_value): New function.
53340         (struct gl_list_implementation): New field node_set_value.
53341         * lib/gl_list.c (gl_list_node_set_value): New function.
53342         * lib/gl_array_list.c (gl_array_node_set_value): New function.
53343         (gl_array_list_implementation): Update.
53344         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
53345         (gl_carray_list_implementation): Update.
53346         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
53347         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53348         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53349         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
53350         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53351         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53352         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53353         Update.
53354         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
53355         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
53356         (gl_sublist_list_implementation): Update.
53357
53358 2008-02-10  Bruno Haible  <bruno@clisp.org>
53359
53360         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
53361         Needed when ELEMENT is #defined to 'some_type *'.
53362
53363 2008-02-10  Jim Meyering  <meyering@redhat.com>
53364
53365         New script and module: useless-if-before-free
53366         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
53367         * build-aux/useless-if-before-free: New file.
53368         * modules/useless-if-before-free: New file.
53369
53370         * build-aux/gitlog-to-changelog: Use committer date, not author date.
53371
53372         xstrtol_error: Fix typo.
53373         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
53374         s/exit_failure/exit_status/.
53375
53376 2008-02-09  Jim Meyering  <meyering@redhat.com>
53377
53378         New script and module: gitlog-to-changelog
53379         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
53380         * modules/gitlog-to-changelog: New file.
53381         * build-aux/gitlog-to-changelog: New file.
53382
53383 2008-02-08  Jim Meyering  <meyering@redhat.com>
53384
53385         Avoid two "parameter unused" warnings.
53386         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
53387         Mark "st" as used.
53388
53389         Use "git COMMAND", not "git-COMMAND".
53390         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
53391         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
53392         * build-aux/git-version-gen: Use "git status", not "git-status".
53393
53394 2008-02-07  Bruno Haible  <bruno@clisp.org>
53395
53396         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
53397         Avoids a crash on Windows Vista.
53398         Reported by Adam Strzelecki <ono@java.pl> via
53399         Simon Josefsson <simon@josefsson.org>.
53400
53401 2008-02-06  Bruno Haible  <bruno@clisp.org>
53402
53403         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
53404         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
53405         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
53406         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
53407         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53408         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53409         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
53410         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
53411         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53412         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53413         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53414         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53415         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53416         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53417         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53418         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
53419         left-adjust flag.
53420         * tests/test-snprintf-posix.h (test_function): Likewise.
53421         * tests/test-sprintf-posix.h (test_function): Likewise.
53422         * tests/test-vasprintf-posix.c (test_function): Likewise.
53423         * doc/posix-functions/fprintf.texi: Update.
53424         * doc/posix-functions/printf.texi: Update.
53425         * doc/posix-functions/snprintf.texi: Update.
53426         * doc/posix-functions/sprintf.texi: Update.
53427         * doc/posix-functions/vfprintf.texi: Update.
53428         * doc/posix-functions/vprintf.texi: Update.
53429         * doc/posix-functions/vsnprintf.texi: Update.
53430         * doc/posix-functions/vsprintf.texi: Update.
53431         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53432
53433 2008-02-06  Bruno Haible  <bruno@clisp.org>
53434
53435         Fix bug introduced on 2008-01-26.
53436         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
53437
53438 2008-02-06  Bruno Haible  <bruno@clisp.org>
53439
53440         Fix bug introduced on 2007-06-10.
53441         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
53442         !NEED_PRINTF_FLAG_ZERO.
53443
53444 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
53445
53446         getloadavg: use libperfstat on AIX5
53447         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
53448
53449 2008-02-03  Bruno Haible  <bruno@clisp.org>
53450
53451         * lib/diffseq.h: Add comments about required #includes.
53452         Reported by Michael Biggs <gnulib@doubleplum.net>.
53453
53454 2008-02-01  Bruno Haible  <bruno@clisp.org>
53455
53456         * users.txt: Add gnuit.
53457
53458 2008-01-31  Bruno Haible  <bruno@clisp.org>
53459
53460         * lib/md4.c (set_uint32): Mark as inline.
53461         * lib/md5.c (set_uint32): Likewise.
53462         * lib/sha1.c (set_uint32): Likewise.
53463         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
53464         * m4/md5.m4 (gl_MD5): Likewise.
53465         * m4/sha1.m4 (gl_SHA1): Likewise.
53466
53467 2008-01-31  Jim Meyering  <meyering@redhat.com>
53468
53469         Use "sizeof VAR", rather than a literal "4".
53470         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
53471         * lib/md4.c (md4_read_ctx): Likewise.
53472         * lib/sha1.c (sha1_read_ctx): Likewise.
53473
53474 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53475
53476         * tests/test-sha1.c: New file, based on test-md5.c.
53477
53478         * modules/crypto/sha1-tests: New file.
53479
53480 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53481
53482         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
53483
53484 2008-01-31  Jim Meyering  <meyering@redhat.com>
53485
53486         Prefer "sizeof v" over the equivalent "4".
53487         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
53488         * lib/md5.c (set_uint32): Likewise.
53489         * lib/sha1.c (set_uint32): Likewise.
53490
53491 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53492
53493         * lib/sha1.c (set_uint32): Mark function as static.
53494
53495 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53496
53497         md2: clarify comments to say that alignment is not required.
53498         * lib/md2.h: Remove warning about alignment in comment.
53499         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
53500         never been required.
53501
53502 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53503
53504         md4: adapt alignment constraint fix from sha1.
53505         * lib/md4.c (set_uint32): New function, from sha1.c
53506         (md4_read_ctx): Use it.
53507         (md4_finish_ctx): Doc fix.
53508         * lib/md4.h: Doc fix.
53509
53510 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53511
53512         md5: adapt alignment constraint fix from sha1.
53513         * lib/md5.c (set_uint32): New function, from sha1.c
53514         (md5_read_ctx): Use it.
53515         (md5_finish_ctx): Doc fix.
53516         * lib/md5.h: Doc fix.
53517
53518 2008-01-30  Peter Palfrader  <weasel@debian.org>
53519
53520         sha1: remove the result buffer alignment constraint
53521         * lib/sha1.c (set_uint32): New function.
53522         (sha1_read_ctx): Rewrite to remove the result buffer alignment
53523         constraint.
53524         (sha1_finish_ctx): Remove comment warning about alignment constraint.
53525         * lib/sha1.h: Likewise.
53526
53527 2008-01-30  Andreas Schwab  <schwab@suse.de>
53528             Bruno Haible  <bruno@clisp.org>
53529
53530         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
53531         correct definition of LDBL_MIN_EXP.
53532
53533 2008-01-30  Karl Berry  <karl@gnu.org>
53534
53535         * config/srclist-update: try to preserve x bit on updates.
53536         * config/srclistvars.sh: update for karl.
53537
53538 2008-01-29  Jim Meyering  <meyering@redhat.com>
53539
53540         vasnprintf.c: Avoid warning about unused label
53541         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
53542         "overflow" label definition and associated code with the
53543         same cpp condition that guards the sole use of that label.
53544
53545 2008-01-26  Bruno Haible  <bruno@clisp.org>
53546
53547         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
53548         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
53549         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
53550         * lib/isnanl-nolibm.h (isnanl): Likewise.
53551         Reported by Paul Eggert <eggert@cs.ucla.edu>.
53552
53553 2008-01-26  Bruno Haible  <bruno@clisp.org>
53554
53555         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
53556         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
53557
53558 2008-01-26  Bruno Haible  <bruno@clisp.org>
53559
53560         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
53561         GCC >= 4.0 built-in.
53562         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
53563
53564 2008-01-26  Bruno Haible  <bruno@clisp.org>
53565
53566         Rename isnan, applicable to 'double' only, to isnand.
53567         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
53568         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
53569         (configure.ac): Update.
53570         (Include): Replace "isnan.h" with "isnand.h".
53571         * m4/isnand.m4: Renamed from m4/isnan.m4.
53572         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
53573         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
53574         instead of isnan.c.
53575         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
53576         instead of HAVE_ISNAN_IN_LIBC.
53577         (isnand): Renamed from isnan.
53578         * lib/isnand.c: New file.
53579         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
53580         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
53581         (Makefile.am): Update.
53582         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
53583         Include isnand.h instead of isnan.h.
53584         (main): Test isnand instead of isnan.
53585         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
53586         isnan-nolibm.
53587         * modules/frexp (Depends-on): Likewise.
53588         * modules/frexp-tests (Depends-on): Likewise.
53589         * modules/frexp-nolibm (Depends-on): Likewise.
53590         * modules/frexp-nolibm-tests (Depends-on): Likewise.
53591         * modules/isfinite (Depends-on): Likewise.
53592         * modules/round-tests (Depends-on): Likewise.
53593         * modules/signbit (Depends-on): Likewise.
53594         * modules/signbit-tests (Depends-on): Likewise.
53595         * modules/snprintf-posix (Depends-on): Likewise.
53596         * modules/sprintf-posix (Depends-on): Likewise.
53597         * modules/trunc-tests (Depends-on): Likewise.
53598         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53599         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53600         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53601         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53602         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53603         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53604         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53605         * modules/vasnprintf-posix (Depends-on): Likewise.
53606         * modules/vasprintf-posix (Depends-on): Likewise.
53607         * modules/vfprintf-posix (Depends-on): Likewise.
53608         * modules/vsnprintf-posix (Depends-on): Likewise.
53609         * modules/vsprintf-posix (Depends-on): Likewise.
53610         * lib/frexp.c: Include isnand.h instead of isnan.h.
53611         (ISNAN): Set to isnand instead of isnan.
53612         * lib/isfinite.c: Include isnand.h instead of isnan.h.
53613         (gl_isfinited): Use isnand instead of isnan.
53614         * lib/signbitd.c: Include isnand.h instead of isnan.h.
53615         (gl_signbitd): Use isnand instead of isnan.
53616         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
53617         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
53618         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
53619         (main): Use isnand instead of isnan.
53620         * tests/test-round1.c: Include isnand.h.
53621         (main): Use isnand instead of isnan.
53622         * tests/test-round2.c: Include isnand.h instead of isnan.h.
53623         (ISNAN): Set to isnand instead of isnan.
53624         * tests/test-trunc1.c: Include isnand.h.
53625         (main): Use isnand instead of isnan.
53626         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
53627         (equal): Use isnand instead of isnan.
53628         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
53629         isnand-nolibm.
53630         * NEWS: Mention the change.
53631
53632 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
53633             Bruno Haible  <bruno@clisp.org>
53634
53635         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
53636         the GCC builtins for signbits are present and set
53637         REPLACE_SIGNBIT_USING_GCC if so.
53638         * lib/math.in.h (signbit): Define using GCC builtins if
53639         REPLACE_SIGNBIT_USING_GCC is set.
53640         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
53641         REPLACE_SIGNBIT_USING_GCC.
53642         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
53643
53644 2008-01-25  Jim Meyering  <meyering@redhat.com>
53645
53646         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
53647         * lib/poll.c: Include <config.h>, not "config.h".
53648         * tests/test-getaddrinfo.c: Likewise.
53649
53650 2008-01-25  Simon Josefsson  <simon@josefsson.org>
53651
53652         * modules/sockets-tests: New file.
53653
53654 2008-01-24  Simon Josefsson  <simon@josefsson.org>
53655
53656         * modules/sockets: New module, can be used to call WSA_Startup and
53657         WSA_Cleanup when needed.
53658
53659         * lib/sockets.h, lib/sockets.c: New files.
53660
53661         * m4/sockets.m4: New file.
53662
53663         * tests/test-sockets.c: New file.
53664
53665 2008-01-19  Bruno Haible  <bruno@clisp.org>
53666
53667         * doc/posix-headers: Renamed from doc/headers.
53668         * doc/posix-functions: Renamed from doc/functions.
53669         * doc/gnulib.texi: Update.
53670
53671 2008-01-19  Bruno Haible  <bruno@clisp.org>
53672
53673         * doc/glibc-functions/strcasestr.texi: Include contents of
53674         doc/functions/strcasestr.texi, fixing the list of platforms.
53675         * doc/functions/strcasestr.texi: Remove file.
53676
53677 2008-01-19  Bruno Haible  <bruno@clisp.org>
53678
53679         * doc/glibc-functions/memmem.texi: Include contents of
53680         doc/functions/memmem.texi.
53681         * doc/functions/memmem.texi: Remove file.
53682
53683 2008-01-18  Bruno Haible  <bruno@clisp.org>
53684
53685         * doc/glibc-functions/*.texi: New files.
53686         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
53687         to use the new files.
53688
53689 2008-01-17  Bruno Haible  <bruno@clisp.org>
53690
53691         * tests/test-gethostname.c (main): Fix printf statement.
53692
53693 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53694
53695         * modules/gethostname-tests: New file.
53696
53697         * tests/test-gethostname.c: New file.
53698
53699 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53700
53701         * lib/gethostname.c: Include string.h unconditionally, strncpy is
53702         used by the UNAME case.  Reported by Bruno Haible
53703         <bruno@clisp.org>.
53704
53705 2008-01-17  Eric Blake  <ebb9@byu.net>
53706
53707         Convert c-strcasestr to be more efficient.
53708         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
53709         (Depends-on): Add c-strcase, remove malloca, strnlen.
53710         * tests/test-c-strcasestr.c (main): Enhance test.
53711         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
53712
53713 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53714
53715         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
53716         Use it in creating po/Makevars.
53717
53718 2008-01-15  Simon Josefsson  <simon@josefsson.org>
53719
53720         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
53721         Applications that requires it should initialize libgcrypt
53722         manually.
53723
53724 2008-01-16  Simon Josefsson  <simon@josefsson.org>
53725
53726         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
53727
53728 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
53729
53730         Fix problem with getdate on mingw32 reported by Simon Josefsson
53731         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
53732         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
53733         tzname", when deciding whether to declare tzname.
53734         * lib/strftime.c (tzname): Likewise.
53735
53736 2008-01-15  Bruno Haible  <bruno@clisp.org>
53737
53738         Work around a MacOS X 10.5 bug in frexpl().
53739         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
53740         * doc/functions/frexpl.texi: Document the bug.
53741         Reported by Elias Pipping <pipping@gentoo.org>.
53742
53743 2008-01-14  Eric Blake  <ebb9@byu.net>
53744
53745         Touch up previous patch.
53746         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
53747         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
53748
53749         Convert strcasestr module to use Two-Way algorithm.
53750         * modules/strcasestr-simple: New module, based on the old
53751         strcasestr, but with Two-Way rather than KMP.
53752         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
53753         * lib/string.in.h (rpl_strcasestr): Declare.
53754         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
53755         performance.
53756         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
53757         * modules/string (Makefile.am): Support strcasestr.
53758         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
53759         * modules/strcasestr-tests (Depends-on): Check for alarm.
53760         * tests/test-strcasestr.c: Augment test.
53761         * lib/str-two-way.h: Clean up stray macro.
53762         * NEWS: Document new module.
53763         * MODULES.html.sh (string handling): Likewise.
53764         * doc/functions/strcasestr.texi: New file.
53765         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
53766         here, since it is not a POSIX function.
53767
53768 2008-01-14  Colin Watson  <cjwatson@debian.org>
53769             Bruno Haible  <bruno@clisp.org>
53770
53771         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
53772         works fine; if not, set REPLACE_STRSIGNAL.
53773         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
53774         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53775         REPLACE_STRSIGNAL.
53776         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
53777         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
53778         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
53779
53780 2008-01-14  Bruno Haible  <bruno@clisp.org>
53781
53782         * modules/strsignal (Include): Change to <string.h>.
53783
53784 2008-01-14  Colin Watson  <cjwatson@debian.org>
53785
53786         * modules/argp (Notice): Add a notice recommending to change
53787         XGETTEXT_OPTIONS.
53788         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
53789
53790 2008-01-13  Colin Watson  <cjwatson@debian.org>
53791
53792         * modules/strsignal-tests: New file.
53793         * tests/test-strsignal.c: New file.
53794
53795         * lib/strsignal.c: New file, from glibc with modifications.
53796         * lib/siglist.h: New file, from glibc with modifications.
53797         * lib/string.in.h (strsignal): New declaration.
53798         * m4/strsignal.m4: New file.
53799         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53800         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
53801         * modules/strsignal: New file.
53802         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
53803         HAVE_DECL_STRSIGNAL.
53804
53805 2008-01-13  Bruno Haible  <bruno@clisp.org>
53806
53807         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
53808         locale encoding is not ASCII. Needed for OpenBSD 4.0.
53809         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53810         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53811
53812 2008-01-13  Bruno Haible  <bruno@clisp.org>
53813
53814         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
53815         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
53816         * lib/argp.h (__attribute__): Likewise.
53817         * lib/c-stack.c (__attribute__): Likewise.
53818         * lib/error.h (__attribute__): Likewise.
53819         * lib/fts.c (__attribute__): Likewise.
53820         * lib/openat.h (__attribute__): Likewise.
53821         * lib/stdio.in.h (__attribute__): Likewise.
53822         * lib/string.in.h (__attribute__): Likewise.
53823         * lib/utimens.c (__attribute__): Likewise.
53824         * lib/vasnprintf.h (__attribute__): Likewise.
53825         * lib/xalloc.h (__attribute__): Likewise.
53826         * lib/xprintf.h (__attribute__): Likewise.
53827         * lib/xstrtol.h (__attribute__): Likewise.
53828         * lib/xvasprintf.h (__attribute__): Likewise.
53829
53830 2008-01-12  Bruno Haible  <bruno@clisp.org>
53831
53832         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
53833         * doc/glibc-headers/a.out.texi: New file.
53834         * doc/glibc-headers/aliases.texi: New file.
53835         * doc/glibc-headers/alloca.texi: New file.
53836         * doc/glibc-headers/ar.texi: New file.
53837         * doc/glibc-headers/argp.texi: New file.
53838         * doc/glibc-headers/argz.texi: New file.
53839         * doc/glibc-headers/byteswap.texi: New file.
53840         * doc/glibc-headers/crypt.texi: New file.
53841         * doc/glibc-headers/endian.texi: New file.
53842         * doc/glibc-headers/envz.texi: New file.
53843         * doc/glibc-headers/err.texi: New file.
53844         * doc/glibc-headers/error.texi: New file.
53845         * doc/glibc-headers/execinfo.texi: New file.
53846         * doc/glibc-headers/fpu_control.texi: New file.
53847         * doc/glibc-headers/fstab.texi: New file.
53848         * doc/glibc-headers/fts.texi: New file.
53849         * doc/glibc-headers/getopt.texi: New file.
53850         * doc/glibc-headers/ieee754.texi: New file.
53851         * doc/glibc-headers/ifaddrs.texi: New file.
53852         * doc/glibc-headers/libintl.texi: New file.
53853         * doc/glibc-headers/mcheck.texi: New file.
53854         * doc/glibc-headers/mntent.texi: New file.
53855         * doc/glibc-headers/obstack.texi: New file.
53856         * doc/glibc-headers/paths.texi: New file.
53857         * doc/glibc-headers/printf.texi: New file.
53858         * doc/glibc-headers/pty.texi: New file.
53859         * doc/glibc-headers/resolv.texi: New file.
53860         * doc/glibc-headers/shadow.texi: New file.
53861         * doc/glibc-headers/sysexits.texi: New file.
53862         * doc/glibc-headers/ttyent.texi: New file.
53863
53864 2008-01-12  Jim Meyering  <meyering@redhat.com>
53865
53866         announce-gen: emit Gnulib's git-based version string.
53867         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
53868         New option --gnulib-version=V, where V is expected to be
53869         the output of running git describe in the gnulib directory.
53870         (get_tool_versions): Request feedback on xdelta.  I suspect it's
53871         not useful, and plan to stop publishing an xdelta file with each
53872         coreutils release.
53873
53874         * build-aux/announce-gen: Also check for lzma-compressed files.
53875
53876 2008-01-11  Bruno Haible  <bruno@clisp.org>
53877
53878         * tests/test-memmem.c (main): Increase maximum allowed time.
53879         * tests/test-strstr.c (main): Likewise.
53880
53881 2008-01-11  Bruno Haible  <bruno@clisp.org>
53882
53883         * doc/functions/memmem.texi: Add more precisions about platforms.
53884         * doc/functions/strstr.texi: Likewise.
53885
53886 2008-01-10  Eric Blake  <ebb9@byu.net>
53887
53888         * m4/strstr.m4: Delete cruft from copy-n-paste.
53889         Reported by Bruno Haible.
53890
53891 2008-01-10  Bruno Haible  <bruno@clisp.org>
53892
53893         Make c-strstr rely on strstr.
53894         * lib/c-strstr.c: Don't include str-kmp.h.
53895         (c_strstr): Define in terms of strstr.
53896         * modules/c-strstr (Files): Remove lib/str-kmp.h.
53897         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
53898
53899 2008-01-10  Bruno Haible  <bruno@clisp.org>
53900
53901         * doc/gnulib.texi (String Functions in C Locale): New section.
53902         * doc/c-ctype.texi: New file.
53903         * doc/c-strcase.texi: New file.
53904         * doc/c-strcaseeq.texi: New file.
53905         * doc/c-strcasestr.texi: New file.
53906         * doc/c-strstr.texi: New file.
53907         * doc/c-strtod.texi: New file.
53908         * doc/c-strtold.texi: New file.
53909
53910 2008-01-10  Eric Blake  <ebb9@byu.net>
53911
53912         * lib/relocatable.h: Fix a comment.
53913
53914 2008-01-10  Eric Blake  <ebb9@byu.net>
53915
53916         Share two-way algorithm.
53917         * lib/str-two-way.h: New file, merged from...
53918         * lib/memmem.c: ...here...
53919         * lib/strstr.c: ...and here.
53920         * modules/memmem (Files): Use it.
53921         * modules/strstr (Files): Likewise.
53922
53923         Avoid quadratic strstr implementations.
53924         * lib/strstr.c: New file.
53925         * m4/strstr.m4: Likewise.
53926         * modules/strstr: Likewise.
53927         * modules/strstr-tests: Likewise.
53928         * tests/test-strstr.c: Likewise.
53929         * lib/string.in.h (rpl_strstr): Declare.
53930         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
53931         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
53932         * modules/string (Makefile.am): Likewise.
53933         * MODULES.html.sh (string handling): Mention new module.
53934         * doc/functions/strstr.texi (strstr): Document the bug.
53935
53936 2008-01-10  Bruno Haible  <bruno@clisp.org>
53937
53938         * lib/relocatable.h (relocate): State whether result is freshly
53939         allocated or not.
53940         * lib/relocatable.c (relocate): Return a freshly allocated string
53941         instead of a pointer to a privately held string.
53942         Reported by Sylvain Beucler <beuc@gnu.org>.
53943
53944 2008-01-10  Colin Watson  <cjwatson@debian.org>
53945
53946         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
53947         s/S_ISNLK/S_ISLNK/.
53948
53949 2008-01-09  Bruno Haible  <bruno@clisp.org>
53950
53951         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
53952         and other files.
53953         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
53954         if it's only a guess.
53955         * modules/memmem: Simplify by depending on memmem-simple.
53956
53957 2008-01-09  Bruno Haible  <bruno@clisp.org>
53958
53959         Work around OpenBSD 4.0 tdelete() bug.
53960         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
53961         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
53962         macros and don't redefine the enum values.
53963         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
53964         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
53965         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
53966
53967 2008-01-09  Bruno Haible  <bruno@clisp.org>
53968
53969         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
53970         (main): Don't perform the tests if setlocale did not install a UTF-8
53971         locale. Needed on OpenBSD 4.0.
53972         * modules/wcwidth-tests (Depends-on): Add localcharset.
53973
53974 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53975
53976         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
53977         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
53978         * NEWS: announce this.
53979         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
53980
53981 2008-01-09  Simon Josefsson  <simon@josefsson.org>
53982         and Eric Blake  <ebb9@byu.net>
53983
53984         Add memmem-simple module.
53985         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
53986         (gl_FUNC_MEMMEM): Separate performance from presence checks.
53987         * modules/memmem-simple: New file.
53988         * modules/memmem (Description): Tweak.
53989         * MODULES.html.sh (string handling): Mention new module.
53990         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
53991         addressed by memmem-simple.
53992         * NEWS: Document the difference.
53993
53994 2008-01-09  Eric Blake  <ebb9@byu.net>
53995
53996         Give gcc some memmem optimization hints.
53997         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
53998         (strcasestr): Declare as pure.
53999         * modules/memmem (Maintainer): Claim my implementation.
54000
54001 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54002
54003         Support AIX 6.1 and higher.
54004         * build-aux/config.libpath: Likewise.
54005         * build-aux/config.rpath: Likewise.
54006
54007 2008-01-08  Jim Meyering  <meyering@redhat.com>
54008             Bruno Haible  <bruno@clisp.org>
54009
54010         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
54011         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
54012         Reported by Peter Fales in
54013         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
54014
54015 2008-01-08  Bruno Haible  <bruno@clisp.org>
54016
54017         * modules/unictype/category-of (Depends-on): Add
54018         unictype/category-none.
54019         * modules/unictype/category-and-tests (Depends-on): Add
54020         unictype/category-{L,N,Lu,Nd}.
54021         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
54022         * modules/unictype/category-or-tests (Depends-on): Add
54023         unictype/category-{L,N}.
54024         * modules/unictype/category-name-tests (Depends-on): Add
54025         unictype/category-{Z,Nl}.
54026         Reported by Simon Josefsson.
54027
54028 2008-01-08  Bruno Haible  <bruno@clisp.org>
54029
54030         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
54031         convention better.
54032         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
54033         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
54034         Reported by Peter Miller <millerp@canb.auug.org.au>.
54035
54036 2008-01-08  Eric Blake  <ebb9@byu.net>
54037
54038         Rewrite memmem to guarantee linear complexity without malloc.
54039         * lib/memmem.c (memmem): Use Two-Way rather than
54040         Knuth-Morris-Pratt, to allow O(1) space usage.
54041         (critical_factorization, two_way_short_needle)
54042         (two_way_long_needle): New functions.
54043         (knuth_morris_pratt): Delete.
54044         * modules/memmem (Depends-on): No longer need malloca or stdbool.
54045         Add stdint.
54046         * tests/test-memmem.c (main): Add tests for periodic needle and
54047         sublinear performance.
54048         * doc/functions/memmem.texi (memmem): Document other deficiencies
54049         in cygwin and older glibc.
54050
54051 2008-01-08  Bruno Haible  <bruno@clisp.org>
54052
54053         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
54054         augmentation.
54055
54056 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
54057
54058         Add a configure time option: --disable-acl.
54059         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
54060         AC_ARG_ENABLE(acl).
54061
54062 2008-01-06  Simon Josefsson  <simon@josefsson.org>
54063
54064         * tests/test-localename.c: Don't include obsolete "setenv.h".
54065
54066         * modules/localename-tests (Depends-on): Need unsetenv.
54067
54068 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54069
54070         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
54071
54072 2008-01-06  Colin Watson  <cjwatson@debian.org>
54073
54074         * users.txt: Add man-db.
54075
54076 2008-01-07  Bruno Haible  <bruno@clisp.org>
54077
54078         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
54079         previous section name.
54080
54081 2008-01-07  Bruno Haible  <bruno@clisp.org>
54082
54083         * lib/progname.c (set_program_name): Don't strip off a leading
54084         "lt-" prefix outside a .libs directory.
54085         Suggested by Paul Eggert.
54086
54087 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
54088             Bruno Haible  <bruno@clisp.org>
54089
54090         Improve memory cleanup in 'relocatable' module.
54091         * lib/relocatable.h (compute_curr_prefix): Change return type to
54092         'char *'.
54093         * lib/relocatable.c (compute_curr_prefix): Change return type to
54094         'char *'. Free curr_installdir after use.
54095         (relocate): Free curr_prefix_better after use.
54096         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
54097
54098 2008-01-01  Bruno Haible  <bruno@clisp.org>
54099
54100         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
54101         failure on older glibc systems.
54102         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54103
54104 2008-01-05  Eric Blake  <ebb9@byu.net>
54105
54106         Avoid quadratic system memmem.
54107         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
54108         Reported by Ralf Wildenhues.
54109
54110         Fix memmem test for mingw.
54111         * modules/memmem-tests (configure.ac): Check for alarm.
54112         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
54113         it.
54114         * doc/functions/memmem.texi: New file.
54115         * doc/gnulib.texi (Function Substitutes): Add memmem.
54116         Reported by Bruno Haible.
54117
54118 2008-01-04  Bruno Haible  <bruno@clisp.org>
54119
54120         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
54121         Require gl_HEADER_STRINGS_H_DEFAULTS, not
54122         gl_HEADER_STRING_H_DEFAULTS.
54123
54124 2008-01-04  Eric Blake  <ebb9@byu.net>
54125
54126         Shorten duration of memmem test.
54127         * tests/test-memmem.c (main): Use alarm to declare failure if test
54128         is taking too long.
54129         Reported by Ralf Wildenhues.
54130
54131 2007-12-21  Simon Josefsson  <simon@josefsson.org>
54132
54133         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
54134         string, needed by strerror.
54135
54136 2008-01-03  Colin Watson  <cjwatson@debian.org>
54137             Bruno Haible  <bruno@clisp.org>
54138
54139         * doc/gnulib-tool.texi (Localization): New section.
54140
54141 2008-01-02  Bruno Haible  <bruno@clisp.org>
54142
54143         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
54144         variables to 'unsigned char *' type.
54145         Reported by Paul Eggert.
54146
54147 2008-01-02  Jim Meyering  <jim@meyering.net>
54148
54149         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
54150
54151 2007-12-31  Jim Meyering  <jim@meyering.net>
54152
54153         Avoid use of private FTS type name.
54154         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
54155
54156 2007-12-30  Karl Berry  <karl@gnu.org>
54157
54158         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
54159         work around defect in Texinfo and/or the standalone Info browser.
54160
54161 2007-12-30  Bruno Haible  <bruno@clisp.org>
54162
54163         Unify 5 copies of the KMP code.
54164         * lib/str-kmp.h: New file.
54165         * lib/c-strcasestr.c: Include str-kmp.h.
54166         (knuth_morris_pratt): Remove function.
54167         (c_strcasestr): Update.
54168         * lib/c-strstr.c: Include str-kmp.h.
54169         (knuth_morris_pratt): Remove function.
54170         (c_strcasestr): Update.
54171         * lib/mbscasestr.c: Include str-kmp.h.
54172         (knuth_morris_pratt_unibyte): Remove function.
54173         * lib/mbsstr.c: Include str-kmp.h.
54174         (knuth_morris_pratt_unibyte): Remove function.
54175         * lib/strcasestr.c: Include str-kmp.h.
54176         (knuth_morris_pratt): Remove function.
54177         (strcasestr): Update.
54178         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
54179         * modules/c-strstr (Files): Likewise.
54180         * modules/mbscasestr (Files): Likewise.
54181         * modules/mbsstr (Files): Likewise.
54182         * modules/strcasestr (Files): Likewise.
54183         Suggested by Paul Eggert.
54184
54185 2007-12-30  Bruno Haible  <bruno@clisp.org>
54186
54187         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
54188         defined.
54189
54190 2007-12-30  Bruno Haible  <bruno@clisp.org>
54191
54192         * lib/xmalloca.h: Include xalloc.h.
54193         (xnmalloca): New macro.
54194
54195 2007-12-30  Bruno Haible  <bruno@clisp.org>
54196
54197         * lib/malloca.h (nmalloca): New macro.
54198         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
54199         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
54200         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
54201         knuth_morris_pratt_multibyte): Likewise.
54202         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
54203         knuth_morris_pratt_multibyte): Likewise.
54204         * lib/memmem.c (knuth_morris_pratt): Likewise.
54205         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
54206
54207 2007-12-25  Bruno Haible  <bruno@clisp.org>
54208
54209         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
54210         * lib/glob.c: Don't include openat.h.
54211         (link_exists2_p): Add back the code that deals with the
54212         !GLOB_ALTDIRFUNC case.
54213         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
54214         let it do the filename concatenation.
54215         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
54216         * modules/glob (Depends-on): Remove openat.
54217
54218 2007-12-31  Bruno Haible  <bruno@clisp.org>
54219
54220         * modules/dirfd (License): Change to LGPLv2+.
54221         Approved by Jim Meyering.
54222
54223 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
54224
54225         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
54226         when multiplying M by sizeof (size_t).
54227
54228 2007-12-10  Martin Lambers  <marlam@marlam.de>
54229
54230         Override getpagesize on mingw.
54231         * lib/getpagesize.c: New file.
54232         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
54233         * modules/getpagesize (Files): Add lib/getpagesize.c.
54234         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
54235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54236         REPLACE_GETPAGESIZE.
54237         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
54238
54239 2007-12-25  Bruno Haible  <bruno@clisp.org>
54240
54241         * modules/localcharset (Notice): New field.
54242         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
54243         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
54244
54245 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
54246             Bruno Haible  <bruno@clisp.org>
54247
54248         Avoid using the syntax symbol() in formatted documentation.
54249         * MODULES.html.sh (func_module): When replacing symbol() with a
54250         hyperlink, remove the parentheses. Show an error if some remain.
54251         Recognize and render the '...' syntax.
54252         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
54253         Rework. Add paragraph about GCC's inlining.
54254         * doc/alloca.texi: Likewise.
54255         * doc/error.texi: Remove parentheses from symbol reference.
54256         * doc/gnulib-intro.texi: Likewise.
54257         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
54258         * modules/fnmatch (Description): Reword to say "the ... function".
54259         * modules/full-read (Description): Likewise.
54260         * modules/full-write (Description): Likewise.
54261         * modules/safe-read (Description): Likewise.
54262         * modules/safe-write (Description): Likewise.
54263         * modules/strchrnul (Description): Likewise.
54264         * modules/trim (Description): Likewise.
54265         * modules/error (Description): Remove parentheses from symbol
54266         references.
54267         * modules/verror (Description): Likewise.
54268         Reported by Karl Berry.
54269
54270 2007-12-25  Bruno Haible  <bruno@clisp.org>
54271
54272         Fixup after 2007-10-16 commit.
54273         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
54274
54275 2007-12-24  Bruno Haible  <bruno@clisp.org>
54276
54277         Make --enable-relocatable work with DESTDIR.
54278         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
54279         to compute installdir from destprog.
54280         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
54281         also set the RELOC_DESTDIR variable.
54282         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54283
54284 2007-12-24  Bruno Haible  <bruno@clisp.org>
54285
54286         Fix link error due to xalloc_die().
54287         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
54288         of xreadlink.
54289         * lib/relocwrapper.c: Update comments.
54290         * build-aux/install-reloc: Remove xreadlink.c from file list.
54291         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
54292         xreadlink.c.
54293         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54294
54295 2007-12-24  Bruno Haible  <bruno@clisp.org>
54296
54297         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
54298         * lib/setenv.h: Remove file.
54299         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
54300         lib/setenv.h.
54301         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
54302         (Depends-on): Add stdlib.
54303         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
54304         gl_FUNC_UNSETENV.
54305         (Include): Replace setenv.h with <stdlib.h>.
54306         * modules/unsetenv: New file.
54307         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
54308         * lib/unsetenv.c: Include <stdlib.h> first.
54309         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
54310         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
54311         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
54312         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
54313         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
54314         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54315         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
54316         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54317         * doc/functions/unsetenv.texi: Update.
54318         * modules/xsetenv (Depends-on): Add unsetenv.
54319         * modules/getdate (Depends-on): Likewise.
54320         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
54321         * lib/xsetenv.c: Don't include setenv.h.
54322         * lib/getdate.y: Likewise.
54323         * lib/relocwrapper.c: Likewise.
54324         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
54325         (Depends-on): Add stdlib.
54326         * NEWS: Mention the changes.
54327         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54328
54329 2007-12-23  Bruno Haible  <bruno@clisp.org>
54330
54331         * lib/memmem.c (memmem): Use lowercase variable names. Tab
54332         indentation.
54333
54334 2007-12-23  Bruno Haible  <bruno@clisp.org>
54335
54336         * lib/c-strcasestr.c: Add more comments.
54337         * lib/c-strstr.c: Likewise.
54338         * lib/mbscasestr.c: Likewise.
54339         * lib/mbsstr.c: Likewise.
54340         * lib/strcasestr.c: Likewise.
54341         * lib/memmem.c: Likewise.
54342
54343 2007-12-23  Bruno Haible  <bruno@clisp.org>
54344
54345         * tests/test-memmem.c: Include <string.h> first.
54346
54347 2007-12-22  Bruno Haible  <bruno@clisp.org>
54348
54349         * gnulib-tool (func_create_testdir): Change $auxdir while generating
54350         the contents of $testsbase.
54351         Reported by Ralf Wildenhues.
54352
54353 2007-12-22  Bruno Haible  <bruno@clisp.org>
54354
54355         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
54356         two variables local_ldadd_before, local_ldadd_last.
54357
54358 2007-12-20  Eric Blake  <ebb9@byu.net>
54359
54360         Work around circular library issue when cross-compiling.
54361         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
54362         that progname.o does not need to pull in rpl_memcmp.
54363
54364 2007-12-19  Eric Blake  <ebb9@byu.net>
54365
54366         Fix memmem to avoid O(n^2) worst-case complexity.
54367         * lib/memmem.c (knuth_morris_pratt): New function.
54368         (memmem): Use it if first few naive iterations fail.
54369         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
54370         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
54371         * modules/memchr (License): Likewise.
54372         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
54373         malloca.
54374         * tests/test-memmem.c: Rewrite, borrowing ideas from
54375         test-mbsstr1.c; the old version wouldn't even compile!
54376         * modules/memmem-tests: New file.
54377         * lib/string.in.h (rpl_memmem): Add declaration.
54378         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
54379         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
54380         REPLACE_MEMMEM.
54381
54382 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54383
54384         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
54385         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
54386         before any system include files, and undef after them all.  This
54387         should fix a problem on VMS reported by John E. Malmberg in
54388         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
54389
54390 2007-12-17  Eric Blake  <ebb9@byu.net>
54391
54392         Revert addition of verify, for BSD/OS.
54393         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
54394         can't handle large files, for the sake of obsolete platforms.
54395         * modules/fseeko (Depends-on): Remove verify.
54396         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
54397         * doc/functions/ftello.texi (ftello): Likewise.
54398         * doc/functions/fgetpos.texi (fgetpos): Likewise.
54399         Reported by Larry Jones.
54400
54401 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
54402
54403         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
54404         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
54405
54406 2007-12-17  Jim Meyering  <meyering@redhat.com>
54407
54408         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
54409         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
54410         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
54411         * modules/getcwd (Depends-on): Add openat.
54412         Reported by Petr Salinger.
54413
54414 2007-12-17  Bruno Haible  <bruno@clisp.org>
54415
54416         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
54417         avoid a segmentation fault of the configure test on x86_64 systems.
54418
54419 2007-12-15  Jim Meyering  <meyering@redhat.com>
54420
54421         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
54422
54423 2007-12-13  Eric Blake  <ebb9@byu.net>
54424
54425         Another fseek test.
54426         * tests/test-fseek.c (main): Also test ungetc handling.
54427         * tests/test-fseeko.c (main): Likewise.
54428         * modules/fseeko (Depends-on): Add verify.
54429         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
54430         large.
54431         Reported by Larry Jones.
54432
54433         Fix fseeko on mingw.
54434         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
54435         seek.
54436
54437         Beef up fseek tests.
54438         * tests/test-fseek.c (main): Also test eof handling.
54439         * tests/test-fseeko.c (main): Likewise.
54440         Reported by Larry Jones.
54441
54442 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
54443
54444         Fix fseeko on BSD-based platforms.
54445         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
54446         successful seek.
54447
54448 2007-12-12  Eric Blake  <ebb9@byu.net>
54449
54450         Allow circular dependency of separate libtests.a
54451         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
54452         when use_libtests.
54453
54454 2007-12-11  Eric Blake  <ebb9@byu.net>
54455
54456         Fix bug with -0.0L in previous patch.
54457         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
54458         * tests/test-isnan.c (main): Also test on zeroes.
54459         * tests/test-isnanf.c (main): Likewise.
54460         * tests/test-isnanl.h (main): Likewise.
54461
54462         Detect pseudo-denormals on x86 even when cross-compiling.
54463         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
54464         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
54465         invalid bit patterns that happen to satisfy ==.
54466
54467         Avoid link failures with separate libtests.a.
54468         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
54469         last, to satisfy circular dependencies.
54470
54471 2007-12-11  Eric Blake  <ebb9@byu.net>
54472         and Bruno Haible  <bruno@clisp.org>
54473
54474         Fix OpenBSD 4.0 <float.h> handling of long double.
54475         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
54476         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
54477         * doc/headers/float.texi (float.h): Document OpenBSD bug.
54478
54479 2007-12-11  Jim Meyering  <meyering@redhat.com>
54480
54481         * users.txt: Add libvirt.
54482
54483         Support versions of autoconf prior to 2.59c.
54484         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
54485         if it is not already defined.
54486
54487 2007-12-09  Bruno Haible  <bruno@clisp.org>
54488
54489         Let 'gnulib-tool --import' collect sources needed for the tests in
54490         tests/ rather than in lib/.
54491         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
54492         argument. If true, add rules to generate libtests.a, and put libtests.a
54493         into $(LDADD). Consider source files in subdirectories and set
54494         uses_subdirs.
54495         (func_emit_initmacro_start, func_emit_initmacro_end,
54496         func_emit_initmacro_done): Pass all arguments explicitly.
54497         (func_import): Determine two module lists main_modules,
54498         testsrelated_modules. Determine use_libtests. Determine two variables
54499         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
54500         instead of just sed_transform_lib_file. Determine two variables
54501         main_files and testsrelated_files. Compute 'files' as the union of
54502         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
54503         func_add_or_update. In the generated gnulib-comp.m4, collect the
54504         object files for tests/ in different variables than those for lib/.
54505         Substitute LIBTESTS_LIBDEPS.
54506         (func_create_testdir): Combine the uses_subdirs results from
54507         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
54508
54509 2007-12-09  Bruno Haible  <bruno@clisp.org>
54510
54511         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
54512         the build-aux directory.
54513
54514 2007-12-09  Bruno Haible  <bruno@clisp.org>
54515
54516         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
54517         introduced on 2006-09-09.
54518
54519 2007-12-07  Jim Meyering  <meyering@redhat.com>
54520
54521         Let these macros work also with autoconf-2.59.
54522         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
54523         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
54524         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54525
54526 2007-12-06  Jim Meyering  <meyering@redhat.com>
54527
54528         Avoid a configure-time syntax error in gl_FUNC_ACL.
54529         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
54530         function in each branch, before testing the cache variable.
54531
54532 2007-12-04  Eric Blake  <ebb9@byu.net>
54533
54534         Make scripts executable.
54535         * build-aux/config.guess: Add execute permissions.
54536         * build-aux/config.sub: Likewise.
54537         * build-aux/gendocs.sh: Likewise.
54538
54539         Fix frexp on mingw.
54540         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
54541         cross-compiling.
54542         * doc/functions/frexp.texi (frexp): Document the bug.
54543
54544         Make cygwin fseeko check more reliable.
54545         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
54546         version numbers, rather than unrelated feature check.
54547         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
54548         * doc/functions/ftello.texi (ftello): Likewise.
54549         Reported by Bruno Haible.
54550
54551         * m4/strerror.m4: Bump version number.
54552
54553 2007-12-03  Bruno Haible  <bruno@clisp.org>
54554
54555         * doc/functions/mprotect.texi: Mention the mingw problem.
54556
54557 2007-12-03  Eric Blake  <ebb9@byu.net>
54558
54559         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
54560         REPLACE_STRERROR is initialized before this macro.
54561
54562 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54563
54564         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
54565         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
54566         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
54567         put -lsec in even for programs other than 'ls'.  This fixes a problem
54568         for gettext reported by Bruno Haible in
54569         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
54570         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
54571         Add support for Solaris 10.  This isn't efficient, but should get the
54572         job done for now.
54573
54574 2007-12-03  James Youngman  <jay@gnu.org>
54575
54576         * doc/regexprops-generic.texi: change "an close-group" to "a
54577         close-group" and "illegal" to "not allowed".
54578
54579 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54580
54581         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
54582         pr_byname.h. Needed for the rare case when the maintainer has done
54583         "make maintainer-clean" in the source directory and then attempts a
54584         build outside the source directory.
54585         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
54586         scripts_byname.h.
54587
54588 2007-12-02  Martin Lambers <marlam@marlam.de>
54589             Bruno Haible  <bruno@clisp.org>
54590
54591         * lib/getpagesize.h: Remove file.
54592         * lib/unistd.in.h: Include declaration of getpagesize here.
54593         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
54594         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
54595         HAVE_SYS_PARAM_H.
54596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
54597         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54598         * modules/getpagesize (Files): Remove lib/getpagesize.h.
54599         (Depends-on): Add unistd.
54600         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54601         (Include): Use <unistd.h> instead of getpagesize.h.
54602         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
54603         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54604         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
54605         gl_GETPAGESIZE invocation, already handled by module dependency.
54606         * lib/pagealign_alloc.c: Don't include getpagesize.h.
54607
54608 2007-12-02  Bruno Haible  <bruno@clisp.org>
54609
54610         * modules/strings-tests: New file.
54611         * tests/test-strings.c: New file.
54612
54613         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
54614         * lib/strings.in.h: New file.
54615         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
54616         * m4/strings_h.m4: New file.
54617         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
54618         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
54619         * modules/strings: New file.
54620         * modules/string (Makefile.am): Update.
54621         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
54622         Reported by Karl Berry.
54623
54624 2007-12-01  Eric Blake  <ebb9@byu.net>
54625
54626         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
54627         accomodate fix in cygwin 1.5.25.
54628
54629 2007-12-01  Jim Meyering  <meyering@redhat.com>
54630
54631         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
54632         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
54633         that would inhibit utf8-optimization of a regexp containing line-
54634         or buffer-anchors, e.g., `^', `$'.
54635
54636 2007-11-30  Bruno Haible  <bruno@clisp.org>
54637
54638         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
54639         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
54640         glthread_recursive_lock_init.
54641         * lib/lock.c (glthread_recursive_lock_init)
54642         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
54643         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54644
54645 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
54646
54647         New function qset_acl, like set_acl but with syscall semantics.
54648         * lib/acl.h (qset_acl): New decl.
54649         * lib/acl.c (qset_acl): New function.
54650         (set_acl): Use new function.  Use more-consistent diagnostics.
54651
54652 2007-11-28  Jim Meyering  <meyering@redhat.com>
54653
54654         * modules/physmem (License): Change from GPL to LGPLv2+.
54655
54656 2007-11-26  Bruno Haible  <bruno@clisp.org>
54657
54658         * lib/vasnprintf.c (decode_long_double): Don't abort if the
54659         'long double' type has excess precision.
54660         Reported by Jim Meyering in
54661         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
54662
54663 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54664
54665         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
54666         Sync from <http://gnu.org/licenses>.
54667         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
54668         with license text from same location.
54669         * doc/maintain.texi, doc/standards.texi:  Sync from
54670         <http://savannah.gnu.org/projects/gnustandards>.
54671
54672 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
54673         and Jim Meyering  <meyering@redhat.com>
54674
54675         Adjust getdate' grammar to accept a slightly more regular language.
54676         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
54677         Before, the former was rejected.
54678         * lib/getdate.y (digits_to_date_time): New function, factored
54679         out of ...
54680         (number): ...here.  Just call digits_to_date_time.
54681         (hybrid): New non-terminal to handle an <unsigned number,
54682         signed relative offset> sequence consistently.
54683
54684 2007-11-18  Jim Meyering  <meyering@redhat.com>
54685
54686         Pull my changes from coreutils:
54687         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
54688         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
54689         use of $gnulib_tool_option_extras, so that it's separated from the
54690         preceding argument.
54691
54692         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
54693         * build-aux/bootstrap (cp_mark_as_generated): Create any required
54694         parent destination directories before copying a file into place.
54695
54696 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
54697
54698         bootstrap: work also with 4-argument variant of AC_INIT
54699         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
54700
54701 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54702
54703         Port test-getaddrinfo to Solaris.
54704         Problem reported by Bruno Haible in
54705         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
54706         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
54707         explanation of setting 'hints'.
54708         Don't reject an implementation merely because it returns EAI_SERVICE.
54709         (EAI_SERVICE): Define to 0 if not defined.
54710
54711 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
54712
54713         The license of gnu-make and posix-shell is now "GPLed build tool".
54714         * modules/gnu-make (License): Likewise.
54715         * modules/posix-shell (License): Likewise.
54716
54717         New module posix-shell, for determining a POSIX shell
54718         or perhaps something that is close enough to a POSIX shell.
54719         * m4/posix-shell.m4: New file.
54720         * modules/posix-shell: New file.
54721
54722         * MODULES.html.sh: Mention new module.
54723
54724         New module gnu-make, for determining whether we're using GNU Make.
54725         * m4/gnu-make.m4: New file.
54726         * modules/gnu-make: New file.
54727         * MODULES.html.sh: Mention new module.
54728
54729 2007-11-14  Jim Meyering  <meyering@redhat.com>
54730
54731         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
54732         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
54733         use this macro to create a function _definition_.
54734         Remove useless "#undef ARGMATCH_DIE".
54735
54736 2007-11-14  Bruno Haible  <bruno@clisp.org>
54737
54738         * lib/config.charset: Update for OpenBSD 4.1.
54739         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
54740
54741 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
54742
54743         Document 64-bit #if problems in stdint.texi.
54744         * doc/headers/stdint.texi (stdint.h): Mention problems with
54745         64-bit-#if, and how to work around them.
54746
54747         Don't insist on 'long long int' support in the preprocessor.  It
54748         breaks too many things.  For example, PRIdMAX still uses a 'long
54749         long int' format with the latest Sun compiler, even though
54750         HAVE_LONG_LONG_INT isn't defined due to that compiler's
54751         preprocessor problem.  This causes the latest coreutils to dump
54752         core on Solaris 10 sparc with the Sun C compiler.
54753         Instead, fix the 2007-10-16 problem in a different way, by evaluating
54754         the troublesome expressions at configure-time, not at #if-time.
54755         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
54756         preprocessor.
54757         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
54758         compile-time C checks, done at 'configure'-time.
54759         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
54760         * modules/inttypes (Makefile): Substitute the new symbols that
54761         gl_INTTYPES_H now generates.
54762         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
54763
54764 2007-11-12  Bruno Haible  <bruno@clisp.org>
54765
54766         Tests for Unicode character classification functions.
54767
54768         * modules/unictype/bidicategory-byname-tests: New file.
54769         * modules/unictype/bidicategory-name-tests: New file.
54770         * modules/unictype/bidicategory-of-tests: New file.
54771         * modules/unictype/bidicategory-test-tests: New file.
54772         * modules/unictype/block-list-tests: New file.
54773         * modules/unictype/block-of-tests: New file.
54774         * modules/unictype/block-test-tests: New file.
54775         * modules/unictype/category-C-tests: New file.
54776         * modules/unictype/category-Cc-tests: New file.
54777         * modules/unictype/category-Cf-tests: New file.
54778         * modules/unictype/category-Cn-tests: New file.
54779         * modules/unictype/category-Co-tests: New file.
54780         * modules/unictype/category-Cs-tests: New file.
54781         * modules/unictype/category-L-tests: New file.
54782         * modules/unictype/category-Ll-tests: New file.
54783         * modules/unictype/category-Lm-tests: New file.
54784         * modules/unictype/category-Lo-tests: New file.
54785         * modules/unictype/category-Lt-tests: New file.
54786         * modules/unictype/category-Lu-tests: New file.
54787         * modules/unictype/category-M-tests: New file.
54788         * modules/unictype/category-Mc-tests: New file.
54789         * modules/unictype/category-Me-tests: New file.
54790         * modules/unictype/category-Mn-tests: New file.
54791         * modules/unictype/category-N-tests: New file.
54792         * modules/unictype/category-Nd-tests: New file.
54793         * modules/unictype/category-Nl-tests: New file.
54794         * modules/unictype/category-No-tests: New file.
54795         * modules/unictype/category-P-tests: New file.
54796         * modules/unictype/category-Pc-tests: New file.
54797         * modules/unictype/category-Pd-tests: New file.
54798         * modules/unictype/category-Pe-tests: New file.
54799         * modules/unictype/category-Pf-tests: New file.
54800         * modules/unictype/category-Pi-tests: New file.
54801         * modules/unictype/category-Po-tests: New file.
54802         * modules/unictype/category-Ps-tests: New file.
54803         * modules/unictype/category-S-tests: New file.
54804         * modules/unictype/category-Sc-tests: New file.
54805         * modules/unictype/category-Sk-tests: New file.
54806         * modules/unictype/category-Sm-tests: New file.
54807         * modules/unictype/category-So-tests: New file.
54808         * modules/unictype/category-Z-tests: New file.
54809         * modules/unictype/category-Zl-tests: New file.
54810         * modules/unictype/category-Zp-tests: New file.
54811         * modules/unictype/category-Zs-tests: New file.
54812         * modules/unictype/category-and-not-tests: New file.
54813         * modules/unictype/category-and-tests: New file.
54814         * modules/unictype/category-byname-tests: New file.
54815         * modules/unictype/category-name-tests: New file.
54816         * modules/unictype/category-none-tests: New file.
54817         * modules/unictype/category-of-tests: New file.
54818         * modules/unictype/category-or-tests: New file.
54819         * modules/unictype/category-test-withtable-tests: New file.
54820         * modules/unictype/combining-class-tests: New file.
54821         * modules/unictype/ctype-alnum-tests: New file.
54822         * modules/unictype/ctype-alpha-tests: New file.
54823         * modules/unictype/ctype-blank-tests: New file.
54824         * modules/unictype/ctype-cntrl-tests: New file.
54825         * modules/unictype/ctype-digit-tests: New file.
54826         * modules/unictype/ctype-graph-tests: New file.
54827         * modules/unictype/ctype-lower-tests: New file.
54828         * modules/unictype/ctype-print-tests: New file.
54829         * modules/unictype/ctype-punct-tests: New file.
54830         * modules/unictype/ctype-space-tests: New file.
54831         * modules/unictype/ctype-upper-tests: New file.
54832         * modules/unictype/ctype-xdigit-tests: New file.
54833         * modules/unictype/decimal-digit-tests: New file.
54834         * modules/unictype/digit-tests: New file.
54835         * modules/unictype/mirror-tests: New file.
54836         * modules/unictype/numeric-tests: New file.
54837         * modules/unictype/property-alphabetic-tests: New file.
54838         * modules/unictype/property-ascii-hex-digit-tests: New file.
54839         * modules/unictype/property-bidi-arabic-digit-tests: New file.
54840         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
54841         * modules/unictype/property-bidi-block-separator-tests: New file.
54842         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
54843         * modules/unictype/property-bidi-common-separator-tests: New file.
54844         * modules/unictype/property-bidi-control-tests: New file.
54845         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
54846         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
54847         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
54848         * modules/unictype/property-bidi-european-digit-tests: New file.
54849         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
54850         * modules/unictype/property-bidi-left-to-right-tests: New file.
54851         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
54852         * modules/unictype/property-bidi-other-neutral-tests: New file.
54853         * modules/unictype/property-bidi-pdf-tests: New file.
54854         * modules/unictype/property-bidi-segment-separator-tests: New file.
54855         * modules/unictype/property-bidi-whitespace-tests: New file.
54856         * modules/unictype/property-byname-tests: New file.
54857         * modules/unictype/property-combining-tests: New file.
54858         * modules/unictype/property-composite-tests: New file.
54859         * modules/unictype/property-currency-symbol-tests: New file.
54860         * modules/unictype/property-dash-tests: New file.
54861         * modules/unictype/property-decimal-digit-tests: New file.
54862         * modules/unictype/property-default-ignorable-code-point-tests: New file.
54863         * modules/unictype/property-deprecated-tests: New file.
54864         * modules/unictype/property-diacritic-tests: New file.
54865         * modules/unictype/property-extender-tests: New file.
54866         * modules/unictype/property-format-control-tests: New file.
54867         * modules/unictype/property-grapheme-base-tests: New file.
54868         * modules/unictype/property-grapheme-extend-tests: New file.
54869         * modules/unictype/property-grapheme-link-tests: New file.
54870         * modules/unictype/property-hex-digit-tests: New file.
54871         * modules/unictype/property-hyphen-tests: New file.
54872         * modules/unictype/property-id-continue-tests: New file.
54873         * modules/unictype/property-id-start-tests: New file.
54874         * modules/unictype/property-ideographic-tests: New file.
54875         * modules/unictype/property-ids-binary-operator-tests: New file.
54876         * modules/unictype/property-ids-trinary-operator-tests: New file.
54877         * modules/unictype/property-ignorable-control-tests: New file.
54878         * modules/unictype/property-iso-control-tests: New file.
54879         * modules/unictype/property-join-control-tests: New file.
54880         * modules/unictype/property-left-of-pair-tests: New file.
54881         * modules/unictype/property-line-separator-tests: New file.
54882         * modules/unictype/property-logical-order-exception-tests: New file.
54883         * modules/unictype/property-lowercase-tests: New file.
54884         * modules/unictype/property-math-tests: New file.
54885         * modules/unictype/property-non-break-tests: New file.
54886         * modules/unictype/property-not-a-character-tests: New file.
54887         * modules/unictype/property-numeric-tests: New file.
54888         * modules/unictype/property-other-alphabetic-tests: New file.
54889         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
54890         * modules/unictype/property-other-grapheme-extend-tests: New file.
54891         * modules/unictype/property-other-id-continue-tests: New file.
54892         * modules/unictype/property-other-id-start-tests: New file.
54893         * modules/unictype/property-other-lowercase-tests: New file.
54894         * modules/unictype/property-other-math-tests: New file.
54895         * modules/unictype/property-other-uppercase-tests: New file.
54896         * modules/unictype/property-paired-punctuation-tests: New file.
54897         * modules/unictype/property-paragraph-separator-tests: New file.
54898         * modules/unictype/property-pattern-syntax-tests: New file.
54899         * modules/unictype/property-pattern-white-space-tests: New file.
54900         * modules/unictype/property-private-use-tests: New file.
54901         * modules/unictype/property-punctuation-tests: New file.
54902         * modules/unictype/property-quotation-mark-tests: New file.
54903         * modules/unictype/property-radical-tests: New file.
54904         * modules/unictype/property-sentence-terminal-tests: New file.
54905         * modules/unictype/property-soft-dotted-tests: New file.
54906         * modules/unictype/property-space-tests: New file.
54907         * modules/unictype/property-terminal-punctuation-tests: New file.
54908         * modules/unictype/property-test-tests: New file.
54909         * modules/unictype/property-titlecase-tests: New file.
54910         * modules/unictype/property-unassigned-code-value-tests: New file.
54911         * modules/unictype/property-unified-ideograph-tests: New file.
54912         * modules/unictype/property-uppercase-tests: New file.
54913         * modules/unictype/property-variation-selector-tests: New file.
54914         * modules/unictype/property-white-space-tests: New file.
54915         * modules/unictype/property-xid-continue-tests: New file.
54916         * modules/unictype/property-xid-start-tests: New file.
54917         * modules/unictype/property-zero-width-tests: New file.
54918         * modules/unictype/scripts-tests: New file.
54919         * modules/unictype/syntax-c-ident-tests: New file.
54920         * modules/unictype/syntax-c-whitespace-tests: New file.
54921         * modules/unictype/syntax-java-ident-tests: New file.
54922         * modules/unictype/syntax-java-whitespace-tests: New file.
54923         * tests/unictype/test-bidi_byname.c: New file.
54924         * tests/unictype/test-bidi_name.c: New file.
54925         * tests/unictype/test-bidi_of.c: New file.
54926         * tests/unictype/test-bidi_test.c: New file.
54927         * tests/unictype/test-block_list.c: New file.
54928         * tests/unictype/test-block_of.c: New file.
54929         * tests/unictype/test-block_test.c: New file.
54930         * tests/unictype/test-categ_and.c: New file.
54931         * tests/unictype/test-categ_and_not.c: New file.
54932         * tests/unictype/test-categ_byname.c: New file.
54933         * tests/unictype/test-categ_name.c: New file.
54934         * tests/unictype/test-categ_none.c: New file.
54935         * tests/unictype/test-categ_of.c: New file.
54936         * tests/unictype/test-categ_or.c: New file.
54937         * tests/unictype/test-categ_test_withtable.c: New file.
54938         * tests/unictype/test-combining.c: New file.
54939         * tests/unictype/test-decdigit.c: New file.
54940         * tests/unictype/test-digit.c: New file.
54941         * tests/unictype/test-mirror.c: New file.
54942         * tests/unictype/test-numeric.c: New file.
54943         * tests/unictype/test-pr_byname.c: New file.
54944         * tests/unictype/test-pr_test.c: New file.
54945         * tests/unictype/test-predicate-part1.h: New file.
54946         * tests/unictype/test-predicate-part2.h: New file.
54947         * tests/unictype/test-scripts.c: New file.
54948         * tests/unictype/test-sy_c_ident.c: New file.
54949         * tests/unictype/test-sy_java_ident.c: New file.
54950
54951         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
54952         for Unicode 5.0.0.
54953         * tests/unictype/test-categ_Cc.c: Likewise.
54954         * tests/unictype/test-categ_Cf.c: Likewise.
54955         * tests/unictype/test-categ_Cn.c: Likewise.
54956         * tests/unictype/test-categ_Co.c: Likewise.
54957         * tests/unictype/test-categ_Cs.c: Likewise.
54958         * tests/unictype/test-categ_L.c: Likewise.
54959         * tests/unictype/test-categ_Ll.c: Likewise.
54960         * tests/unictype/test-categ_Lm.c: Likewise.
54961         * tests/unictype/test-categ_Lo.c: Likewise.
54962         * tests/unictype/test-categ_Lt.c: Likewise.
54963         * tests/unictype/test-categ_Lu.c: Likewise.
54964         * tests/unictype/test-categ_M.c: Likewise.
54965         * tests/unictype/test-categ_Mc.c: Likewise.
54966         * tests/unictype/test-categ_Me.c: Likewise.
54967         * tests/unictype/test-categ_Mn.c: Likewise.
54968         * tests/unictype/test-categ_N.c: Likewise.
54969         * tests/unictype/test-categ_Nd.c: Likewise.
54970         * tests/unictype/test-categ_Nl.c: Likewise.
54971         * tests/unictype/test-categ_No.c: Likewise.
54972         * tests/unictype/test-categ_P.c: Likewise.
54973         * tests/unictype/test-categ_Pc.c: Likewise.
54974         * tests/unictype/test-categ_Pd.c: Likewise.
54975         * tests/unictype/test-categ_Pe.c: Likewise.
54976         * tests/unictype/test-categ_Pf.c: Likewise.
54977         * tests/unictype/test-categ_Pi.c: Likewise.
54978         * tests/unictype/test-categ_Po.c: Likewise.
54979         * tests/unictype/test-categ_Ps.c: Likewise.
54980         * tests/unictype/test-categ_S.c: Likewise.
54981         * tests/unictype/test-categ_Sc.c: Likewise.
54982         * tests/unictype/test-categ_Sk.c: Likewise.
54983         * tests/unictype/test-categ_Sm.c: Likewise.
54984         * tests/unictype/test-categ_So.c: Likewise.
54985         * tests/unictype/test-categ_Z.c: Likewise.
54986         * tests/unictype/test-categ_Zl.c: Likewise.
54987         * tests/unictype/test-categ_Zp.c: Likewise.
54988         * tests/unictype/test-categ_Zs.c: Likewise.
54989         * tests/unictype/test-ctype_alnum.c: Likewise.
54990         * tests/unictype/test-ctype_alpha.c: Likewise.
54991         * tests/unictype/test-ctype_blank.c: Likewise.
54992         * tests/unictype/test-ctype_cntrl.c: Likewise.
54993         * tests/unictype/test-ctype_digit.c: Likewise.
54994         * tests/unictype/test-ctype_graph.c: Likewise.
54995         * tests/unictype/test-ctype_lower.c: Likewise.
54996         * tests/unictype/test-ctype_print.c: Likewise.
54997         * tests/unictype/test-ctype_punct.c: Likewise.
54998         * tests/unictype/test-ctype_space.c: Likewise.
54999         * tests/unictype/test-ctype_upper.c: Likewise.
55000         * tests/unictype/test-ctype_xdigit.c: Likewise.
55001         * tests/unictype/test-decdigit.h: Likewise.
55002         * tests/unictype/test-digit.h: Likewise.
55003         * tests/unictype/test-numeric.h: Likewise.
55004         * tests/unictype/test-pr_alphabetic.c: Likewise.
55005         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
55006         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
55007         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
55008         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
55009         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
55010         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
55011         * tests/unictype/test-pr_bidi_control.c: Likewise.
55012         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
55013         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
55014         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
55015         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
55016         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
55017         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
55018         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
55019         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
55020         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
55021         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
55022         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
55023         * tests/unictype/test-pr_combining.c: Likewise.
55024         * tests/unictype/test-pr_composite.c: Likewise.
55025         * tests/unictype/test-pr_currency_symbol.c: Likewise.
55026         * tests/unictype/test-pr_dash.c: Likewise.
55027         * tests/unictype/test-pr_decimal_digit.c: Likewise.
55028         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
55029         * tests/unictype/test-pr_deprecated.c: Likewise.
55030         * tests/unictype/test-pr_diacritic.c: Likewise.
55031         * tests/unictype/test-pr_extender.c: Likewise.
55032         * tests/unictype/test-pr_format_control.c: Likewise.
55033         * tests/unictype/test-pr_grapheme_base.c: Likewise.
55034         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
55035         * tests/unictype/test-pr_grapheme_link.c: Likewise.
55036         * tests/unictype/test-pr_hex_digit.c: Likewise.
55037         * tests/unictype/test-pr_hyphen.c: Likewise.
55038         * tests/unictype/test-pr_id_continue.c: Likewise.
55039         * tests/unictype/test-pr_id_start.c: Likewise.
55040         * tests/unictype/test-pr_ideographic.c: Likewise.
55041         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
55042         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
55043         * tests/unictype/test-pr_ignorable_control.c: Likewise.
55044         * tests/unictype/test-pr_iso_control.c: Likewise.
55045         * tests/unictype/test-pr_join_control.c: Likewise.
55046         * tests/unictype/test-pr_left_of_pair.c: Likewise.
55047         * tests/unictype/test-pr_line_separator.c: Likewise.
55048         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
55049         * tests/unictype/test-pr_lowercase.c: Likewise.
55050         * tests/unictype/test-pr_math.c: Likewise.
55051         * tests/unictype/test-pr_non_break.c: Likewise.
55052         * tests/unictype/test-pr_not_a_character.c: Likewise.
55053         * tests/unictype/test-pr_numeric.c: Likewise.
55054         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
55055         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
55056         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
55057         * tests/unictype/test-pr_other_id_continue.c: Likewise.
55058         * tests/unictype/test-pr_other_id_start.c: Likewise.
55059         * tests/unictype/test-pr_other_lowercase.c: Likewise.
55060         * tests/unictype/test-pr_other_math.c: Likewise.
55061         * tests/unictype/test-pr_other_uppercase.c: Likewise.
55062         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
55063         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
55064         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
55065         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
55066         * tests/unictype/test-pr_private_use.c: Likewise.
55067         * tests/unictype/test-pr_punctuation.c: Likewise.
55068         * tests/unictype/test-pr_quotation_mark.c: Likewise.
55069         * tests/unictype/test-pr_radical.c: Likewise.
55070         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
55071         * tests/unictype/test-pr_soft_dotted.c: Likewise.
55072         * tests/unictype/test-pr_space.c: Likewise.
55073         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
55074         * tests/unictype/test-pr_titlecase.c: Likewise.
55075         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
55076         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
55077         * tests/unictype/test-pr_uppercase.c: Likewise.
55078         * tests/unictype/test-pr_variation_selector.c: Likewise.
55079         * tests/unictype/test-pr_white_space.c: Likewise.
55080         * tests/unictype/test-pr_xid_continue.c: Likewise.
55081         * tests/unictype/test-pr_xid_start.c: Likewise.
55082         * tests/unictype/test-pr_zero_width.c: Likewise.
55083         * tests/unictype/test-sy_c_whitespace.c: Likewise.
55084         * tests/unictype/test-sy_java_whitespace.c: Likewise.
55085
55086 2007-11-12  Bruno Haible  <bruno@clisp.org>
55087
55088         Unicode character classification functions.
55089         * lib/unictype.h: New file.
55090         * modules/unictype/base: New file.
55091         * modules/unictype/category-L: New file.
55092         * modules/unictype/category-Lu: New file.
55093         * modules/unictype/category-Ll: New file.
55094         * modules/unictype/category-Lt: New file.
55095         * modules/unictype/category-Lm: New file.
55096         * modules/unictype/category-Lo: New file.
55097         * modules/unictype/category-M: New file.
55098         * modules/unictype/category-Mn: New file.
55099         * modules/unictype/category-Mc: New file.
55100         * modules/unictype/category-Me: New file.
55101         * modules/unictype/category-N: New file.
55102         * modules/unictype/category-Nd: New file.
55103         * modules/unictype/category-Nl: New file.
55104         * modules/unictype/category-No: New file.
55105         * modules/unictype/category-P: New file.
55106         * modules/unictype/category-Pc: New file.
55107         * modules/unictype/category-Pd: New file.
55108         * modules/unictype/category-Ps: New file.
55109         * modules/unictype/category-Pe: New file.
55110         * modules/unictype/category-Pi: New file.
55111         * modules/unictype/category-Pf: New file.
55112         * modules/unictype/category-Po: New file.
55113         * modules/unictype/category-S: New file.
55114         * modules/unictype/category-Sm: New file.
55115         * modules/unictype/category-Sc: New file.
55116         * modules/unictype/category-Sk: New file.
55117         * modules/unictype/category-So: New file.
55118         * modules/unictype/category-Z: New file.
55119         * modules/unictype/category-Zs: New file.
55120         * modules/unictype/category-Zl: New file.
55121         * modules/unictype/category-Zp: New file.
55122         * modules/unictype/category-C: New file.
55123         * modules/unictype/category-Cc: New file.
55124         * modules/unictype/category-Cf: New file.
55125         * modules/unictype/category-Cs: New file.
55126         * modules/unictype/category-Co: New file.
55127         * modules/unictype/category-Cn: New file.
55128         * modules/unictype/category-or: New file.
55129         * modules/unictype/category-of: New file.
55130         * modules/unictype/category-test: New file.
55131         * modules/unictype/category-test-withtable: New file.
55132         * modules/unictype/category-byname: New file.
55133         * modules/unictype/category-none: New file.
55134         * modules/unictype/category-and: New file.
55135         * modules/unictype/category-and-not: New file.
55136         * modules/unictype/category-name: New file.
55137         * modules/unictype/combining-class: New file.
55138         * modules/unictype/category-all: New file.
55139         * modules/unictype/bidicategory-all: New file.
55140         * modules/unictype/bidicategory-byname: New file.
55141         * modules/unictype/bidicategory-name: New file.
55142         * modules/unictype/bidicategory-of: New file.
55143         * modules/unictype/bidicategory-test: New file.
55144         * modules/unictype/decimal-digit: New file.
55145         * modules/unictype/digit: New file.
55146         * modules/unictype/numeric: New file.
55147         * modules/unictype/mirror: New file.
55148         * modules/unictype/property-white-space: New file.
55149         * modules/unictype/property-alphabetic: New file.
55150         * modules/unictype/property-other-alphabetic: New file.
55151         * modules/unictype/property-not-a-character: New file.
55152         * modules/unictype/property-default-ignorable-code-point: New file.
55153         * modules/unictype/property-other-default-ignorable-code-point: New
55154         file.
55155         * modules/unictype/property-deprecated: New file.
55156         * modules/unictype/property-logical-order-exception: New file.
55157         * modules/unictype/property-variation-selector: New file.
55158         * modules/unictype/property-private-use: New file.
55159         * modules/unictype/property-unassigned-code-value: New file.
55160         * modules/unictype/property-uppercase: New file.
55161         * modules/unictype/property-other-uppercase: New file.
55162         * modules/unictype/property-lowercase: New file.
55163         * modules/unictype/property-other-lowercase: New file.
55164         * modules/unictype/property-titlecase: New file.
55165         * modules/unictype/property-soft-dotted: New file.
55166         * modules/unictype/property-id-start: New file.
55167         * modules/unictype/property-other-id-start: New file.
55168         * modules/unictype/property-id-continue: New file.
55169         * modules/unictype/property-other-id-continue: New file.
55170         * modules/unictype/property-xid-start: New file.
55171         * modules/unictype/property-xid-continue: New file.
55172         * modules/unictype/property-pattern-white-space: New file.
55173         * modules/unictype/property-pattern-syntax: New file.
55174         * modules/unictype/property-join-control: New file.
55175         * modules/unictype/property-grapheme-base: New file.
55176         * modules/unictype/property-grapheme-extend: New file.
55177         * modules/unictype/property-other-grapheme-extend: New file.
55178         * modules/unictype/property-grapheme-link: New file.
55179         * modules/unictype/property-bidi-control: New file.
55180         * modules/unictype/property-bidi-left-to-right: New file.
55181         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
55182         * modules/unictype/property-bidi-arabic-right-to-left: New file.
55183         * modules/unictype/property-bidi-european-digit: New file.
55184         * modules/unictype/property-bidi-eur-num-separator: New file.
55185         * modules/unictype/property-bidi-eur-num-terminator: New file.
55186         * modules/unictype/property-bidi-arabic-digit: New file.
55187         * modules/unictype/property-bidi-common-separator: New file.
55188         * modules/unictype/property-bidi-block-separator: New file.
55189         * modules/unictype/property-bidi-segment-separator: New file.
55190         * modules/unictype/property-bidi-whitespace: New file.
55191         * modules/unictype/property-bidi-non-spacing-mark: New file.
55192         * modules/unictype/property-bidi-boundary-neutral: New file.
55193         * modules/unictype/property-bidi-pdf: New file.
55194         * modules/unictype/property-bidi-embedding-or-override: New file.
55195         * modules/unictype/property-bidi-other-neutral: New file.
55196         * modules/unictype/property-hex-digit: New file.
55197         * modules/unictype/property-ascii-hex-digit: New file.
55198         * modules/unictype/property-ideographic: New file.
55199         * modules/unictype/property-unified-ideograph: New file.
55200         * modules/unictype/property-radical: New file.
55201         * modules/unictype/property-ids-binary-operator: New file.
55202         * modules/unictype/property-ids-trinary-operator: New file.
55203         * modules/unictype/property-zero-width: New file.
55204         * modules/unictype/property-space: New file.
55205         * modules/unictype/property-non-break: New file.
55206         * modules/unictype/property-iso-control: New file.
55207         * modules/unictype/property-format-control: New file.
55208         * modules/unictype/property-dash: New file.
55209         * modules/unictype/property-hyphen: New file.
55210         * modules/unictype/property-punctuation: New file.
55211         * modules/unictype/property-line-separator: New file.
55212         * modules/unictype/property-paragraph-separator: New file.
55213         * modules/unictype/property-quotation-mark: New file.
55214         * modules/unictype/property-sentence-terminal: New file.
55215         * modules/unictype/property-terminal-punctuation: New file.
55216         * modules/unictype/property-currency-symbol: New file.
55217         * modules/unictype/property-math: New file.
55218         * modules/unictype/property-other-math: New file.
55219         * modules/unictype/property-paired-punctuation: New file.
55220         * modules/unictype/property-left-of-pair: New file.
55221         * modules/unictype/property-combining: New file.
55222         * modules/unictype/property-composite: New file.
55223         * modules/unictype/property-decimal-digit: New file.
55224         * modules/unictype/property-numeric: New file.
55225         * modules/unictype/property-diacritic: New file.
55226         * modules/unictype/property-extender: New file.
55227         * modules/unictype/property-ignorable-control: New file.
55228         * modules/unictype/property-test: New file.
55229         * modules/unictype/property-byname: New file.
55230         * modules/unictype/property-all: New file.
55231         * modules/unictype/scripts: New file.
55232         * modules/unictype/scripts-all: New file.
55233         * modules/unictype/block-of: New file.
55234         * modules/unictype/block-test: New file.
55235         * modules/unictype/block-list: New file.
55236         * modules/unictype/block-all: New file.
55237         * modules/unictype/syntax-c-whitespace: New file.
55238         * modules/unictype/syntax-java-whitespace: New file.
55239         * modules/unictype/syntax-c-ident: New file.
55240         * modules/unictype/syntax-java-ident: New file.
55241         * modules/unictype/ctype-alnum: New file.
55242         * modules/unictype/ctype-alpha: New file.
55243         * modules/unictype/ctype-cntrl: New file.
55244         * modules/unictype/ctype-digit: New file.
55245         * modules/unictype/ctype-graph: New file.
55246         * modules/unictype/ctype-lower: New file.
55247         * modules/unictype/ctype-print: New file.
55248         * modules/unictype/ctype-punct: New file.
55249         * modules/unictype/ctype-space: New file.
55250         * modules/unictype/ctype-upper: New file.
55251         * modules/unictype/ctype-xdigit: New file.
55252         * modules/unictype/ctype-blank: New file.
55253         * lib/unictype/bidi_byname.c: New file.
55254         * lib/unictype/bidi_name.c: New file.
55255         * lib/unictype/bidi_of.c: New file.
55256         * lib/unictype/bidi_test.c: New file.
55257         * lib/unictype/bitmap.h: New file.
55258         * lib/unictype/block_test.c: New file.
55259         * lib/unictype/blocks.c: New file.
55260         * lib/unictype/categ_C.c: New file.
55261         * lib/unictype/categ_Cc.c: New file.
55262         * lib/unictype/categ_Cf.c: New file.
55263         * lib/unictype/categ_Cn.c: New file.
55264         * lib/unictype/categ_Co.c: New file.
55265         * lib/unictype/categ_Cs.c: New file.
55266         * lib/unictype/categ_L.c: New file.
55267         * lib/unictype/categ_Ll.c: New file.
55268         * lib/unictype/categ_Lm.c: New file.
55269         * lib/unictype/categ_Lo.c: New file.
55270         * lib/unictype/categ_Lt.c: New file.
55271         * lib/unictype/categ_Lu.c: New file.
55272         * lib/unictype/categ_M.c: New file.
55273         * lib/unictype/categ_Mc.c: New file.
55274         * lib/unictype/categ_Me.c: New file.
55275         * lib/unictype/categ_Mn.c: New file.
55276         * lib/unictype/categ_N.c: New file.
55277         * lib/unictype/categ_Nd.c: New file.
55278         * lib/unictype/categ_Nl.c: New file.
55279         * lib/unictype/categ_No.c: New file.
55280         * lib/unictype/categ_P.c: New file.
55281         * lib/unictype/categ_Pc.c: New file.
55282         * lib/unictype/categ_Pd.c: New file.
55283         * lib/unictype/categ_Pe.c: New file.
55284         * lib/unictype/categ_Pf.c: New file.
55285         * lib/unictype/categ_Pi.c: New file.
55286         * lib/unictype/categ_Po.c: New file.
55287         * lib/unictype/categ_Ps.c: New file.
55288         * lib/unictype/categ_S.c: New file.
55289         * lib/unictype/categ_Sc.c: New file.
55290         * lib/unictype/categ_Sk.c: New file.
55291         * lib/unictype/categ_Sm.c: New file.
55292         * lib/unictype/categ_So.c: New file.
55293         * lib/unictype/categ_Z.c: New file.
55294         * lib/unictype/categ_Zl.c: New file.
55295         * lib/unictype/categ_Zp.c: New file.
55296         * lib/unictype/categ_Zs.c: New file.
55297         * lib/unictype/categ_and.c: New file.
55298         * lib/unictype/categ_and_not.c: New file.
55299         * lib/unictype/categ_byname.c: New file.
55300         * lib/unictype/categ_name.c: New file.
55301         * lib/unictype/categ_none.c: New file.
55302         * lib/unictype/categ_of.c: New file.
55303         * lib/unictype/categ_or.c: New file.
55304         * lib/unictype/categ_test.c: New file.
55305         * lib/unictype/combining.c: New file.
55306         * lib/unictype/ctype_alnum.c: New file.
55307         * lib/unictype/ctype_alpha.c: New file.
55308         * lib/unictype/ctype_blank.c: New file.
55309         * lib/unictype/ctype_cntrl.c: New file.
55310         * lib/unictype/ctype_digit.c: New file.
55311         * lib/unictype/ctype_graph.c: New file.
55312         * lib/unictype/ctype_lower.c: New file.
55313         * lib/unictype/ctype_print.c: New file.
55314         * lib/unictype/ctype_punct.c: New file.
55315         * lib/unictype/ctype_space.c: New file.
55316         * lib/unictype/ctype_upper.c: New file.
55317         * lib/unictype/ctype_xdigit.c: New file.
55318         * lib/unictype/decdigit.c: New file.
55319         * lib/unictype/digit.c: New file.
55320         * lib/unictype/identsyntaxmap.h: New file.
55321         * lib/unictype/mirror.c: New file.
55322         * lib/unictype/numeric.c: New file.
55323         * lib/unictype/pr_alphabetic.c: New file.
55324         * lib/unictype/pr_ascii_hex_digit.c: New file.
55325         * lib/unictype/pr_bidi_arabic_digit.c: New file.
55326         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
55327         * lib/unictype/pr_bidi_block_separator.c: New file.
55328         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
55329         * lib/unictype/pr_bidi_common_separator.c: New file.
55330         * lib/unictype/pr_bidi_control.c: New file.
55331         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
55332         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
55333         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
55334         * lib/unictype/pr_bidi_european_digit.c: New file.
55335         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
55336         * lib/unictype/pr_bidi_left_to_right.c: New file.
55337         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
55338         * lib/unictype/pr_bidi_other_neutral.c: New file.
55339         * lib/unictype/pr_bidi_pdf.c: New file.
55340         * lib/unictype/pr_bidi_segment_separator.c: New file.
55341         * lib/unictype/pr_bidi_whitespace.c: New file.
55342         * lib/unictype/pr_byname.c: New file.
55343         * lib/unictype/pr_byname.gperf: New file.
55344         * lib/unictype/pr_combining.c: New file.
55345         * lib/unictype/pr_composite.c: New file.
55346         * lib/unictype/pr_currency_symbol.c: New file.
55347         * lib/unictype/pr_dash.c: New file.
55348         * lib/unictype/pr_decimal_digit.c: New file.
55349         * lib/unictype/pr_default_ignorable_code_point.c: New file.
55350         * lib/unictype/pr_deprecated.c: New file.
55351         * lib/unictype/pr_diacritic.c: New file.
55352         * lib/unictype/pr_extender.c: New file.
55353         * lib/unictype/pr_format_control.c: New file.
55354         * lib/unictype/pr_grapheme_base.c: New file.
55355         * lib/unictype/pr_grapheme_extend.c: New file.
55356         * lib/unictype/pr_grapheme_link.c: New file.
55357         * lib/unictype/pr_hex_digit.c: New file.
55358         * lib/unictype/pr_hyphen.c: New file.
55359         * lib/unictype/pr_id_continue.c: New file.
55360         * lib/unictype/pr_id_start.c: New file.
55361         * lib/unictype/pr_ideographic.c: New file.
55362         * lib/unictype/pr_ids_binary_operator.c: New file.
55363         * lib/unictype/pr_ids_trinary_operator.c: New file.
55364         * lib/unictype/pr_ignorable_control.c: New file.
55365         * lib/unictype/pr_iso_control.c: New file.
55366         * lib/unictype/pr_join_control.c: New file.
55367         * lib/unictype/pr_left_of_pair.c: New file.
55368         * lib/unictype/pr_line_separator.c: New file.
55369         * lib/unictype/pr_logical_order_exception.c: New file.
55370         * lib/unictype/pr_lowercase.c: New file.
55371         * lib/unictype/pr_math.c: New file.
55372         * lib/unictype/pr_non_break.c: New file.
55373         * lib/unictype/pr_not_a_character.c: New file.
55374         * lib/unictype/pr_numeric.c: New file.
55375         * lib/unictype/pr_other_alphabetic.c: New file.
55376         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
55377         * lib/unictype/pr_other_grapheme_extend.c: New file.
55378         * lib/unictype/pr_other_id_continue.c: New file.
55379         * lib/unictype/pr_other_id_start.c: New file.
55380         * lib/unictype/pr_other_lowercase.c: New file.
55381         * lib/unictype/pr_other_math.c: New file.
55382         * lib/unictype/pr_other_uppercase.c: New file.
55383         * lib/unictype/pr_paired_punctuation.c: New file.
55384         * lib/unictype/pr_paragraph_separator.c: New file.
55385         * lib/unictype/pr_pattern_syntax.c: New file.
55386         * lib/unictype/pr_pattern_white_space.c: New file.
55387         * lib/unictype/pr_private_use.c: New file.
55388         * lib/unictype/pr_punctuation.c: New file.
55389         * lib/unictype/pr_quotation_mark.c: New file.
55390         * lib/unictype/pr_radical.c: New file.
55391         * lib/unictype/pr_sentence_terminal.c: New file.
55392         * lib/unictype/pr_soft_dotted.c: New file.
55393         * lib/unictype/pr_space.c: New file.
55394         * lib/unictype/pr_terminal_punctuation.c: New file.
55395         * lib/unictype/pr_test.c: New file.
55396         * lib/unictype/pr_titlecase.c: New file.
55397         * lib/unictype/pr_unassigned_code_value.c: New file.
55398         * lib/unictype/pr_unified_ideograph.c: New file.
55399         * lib/unictype/pr_uppercase.c: New file.
55400         * lib/unictype/pr_variation_selector.c: New file.
55401         * lib/unictype/pr_white_space.c: New file.
55402         * lib/unictype/pr_xid_continue.c: New file.
55403         * lib/unictype/pr_xid_start.c: New file.
55404         * lib/unictype/pr_zero_width.c: New file.
55405         * lib/unictype/scripts.c: New file.
55406         * lib/unictype/sy_c_ident.c: New file.
55407         * lib/unictype/sy_c_whitespace.c: New file.
55408         * lib/unictype/sy_java_ident.c: New file.
55409         * lib/unictype/sy_java_whitespace.c: New file.
55410
55411         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
55412         Unicode 5.0.0.
55413         * lib/unictype/blocks.h: Likewise.
55414         * lib/unictype/categ_C.h: Likewise.
55415         * lib/unictype/categ_Cc.h: Likewise.
55416         * lib/unictype/categ_Cf.h: Likewise.
55417         * lib/unictype/categ_Cn.h: Likewise.
55418         * lib/unictype/categ_Co.h: Likewise.
55419         * lib/unictype/categ_Cs.h: Likewise.
55420         * lib/unictype/categ_L.h: Likewise.
55421         * lib/unictype/categ_Ll.h: Likewise.
55422         * lib/unictype/categ_Lm.h: Likewise.
55423         * lib/unictype/categ_Lo.h: Likewise.
55424         * lib/unictype/categ_Lt.h: Likewise.
55425         * lib/unictype/categ_Lu.h: Likewise.
55426         * lib/unictype/categ_M.h: Likewise.
55427         * lib/unictype/categ_Mc.h: Likewise.
55428         * lib/unictype/categ_Me.h: Likewise.
55429         * lib/unictype/categ_Mn.h: Likewise.
55430         * lib/unictype/categ_N.h: Likewise.
55431         * lib/unictype/categ_Nd.h: Likewise.
55432         * lib/unictype/categ_Nl.h: Likewise.
55433         * lib/unictype/categ_No.h: Likewise.
55434         * lib/unictype/categ_P.h: Likewise.
55435         * lib/unictype/categ_Pc.h: Likewise.
55436         * lib/unictype/categ_Pd.h: Likewise.
55437         * lib/unictype/categ_Pe.h: Likewise.
55438         * lib/unictype/categ_Pf.h: Likewise.
55439         * lib/unictype/categ_Pi.h: Likewise.
55440         * lib/unictype/categ_Po.h: Likewise.
55441         * lib/unictype/categ_Ps.h: Likewise.
55442         * lib/unictype/categ_S.h: Likewise.
55443         * lib/unictype/categ_Sc.h: Likewise.
55444         * lib/unictype/categ_Sk.h: Likewise.
55445         * lib/unictype/categ_Sm.h: Likewise.
55446         * lib/unictype/categ_So.h: Likewise.
55447         * lib/unictype/categ_Z.h: Likewise.
55448         * lib/unictype/categ_Zl.h: Likewise.
55449         * lib/unictype/categ_Zp.h: Likewise.
55450         * lib/unictype/categ_Zs.h: Likewise.
55451         * lib/unictype/categ_of.h: Likewise.
55452         * lib/unictype/combining.h: Likewise.
55453         * lib/unictype/ctype_alnum.h: Likewise.
55454         * lib/unictype/ctype_alpha.h: Likewise.
55455         * lib/unictype/ctype_blank.h: Likewise.
55456         * lib/unictype/ctype_cntrl.h: Likewise.
55457         * lib/unictype/ctype_digit.h: Likewise.
55458         * lib/unictype/ctype_graph.h: Likewise.
55459         * lib/unictype/ctype_lower.h: Likewise.
55460         * lib/unictype/ctype_print.h: Likewise.
55461         * lib/unictype/ctype_punct.h: Likewise.
55462         * lib/unictype/ctype_space.h: Likewise.
55463         * lib/unictype/ctype_upper.h: Likewise.
55464         * lib/unictype/ctype_xdigit.h: Likewise.
55465         * lib/unictype/decdigit.h: Likewise.
55466         * lib/unictype/digit.h: Likewise.
55467         * lib/unictype/mirror.h: Likewise.
55468         * lib/unictype/numeric.h: Likewise.
55469         * lib/unictype/pr_alphabetic.h: Likewise.
55470         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
55471         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
55472         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
55473         * lib/unictype/pr_bidi_block_separator.h: Likewise.
55474         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
55475         * lib/unictype/pr_bidi_common_separator.h: Likewise.
55476         * lib/unictype/pr_bidi_control.h: Likewise.
55477         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
55478         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
55479         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
55480         * lib/unictype/pr_bidi_european_digit.h: Likewise.
55481         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
55482         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
55483         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
55484         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
55485         * lib/unictype/pr_bidi_pdf.h: Likewise.
55486         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
55487         * lib/unictype/pr_bidi_whitespace.h: Likewise.
55488         * lib/unictype/pr_combining.h: Likewise.
55489         * lib/unictype/pr_composite.h: Likewise.
55490         * lib/unictype/pr_currency_symbol.h: Likewise.
55491         * lib/unictype/pr_dash.h: Likewise.
55492         * lib/unictype/pr_decimal_digit.h: Likewise.
55493         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
55494         * lib/unictype/pr_deprecated.h: Likewise.
55495         * lib/unictype/pr_diacritic.h: Likewise.
55496         * lib/unictype/pr_extender.h: Likewise.
55497         * lib/unictype/pr_format_control.h: Likewise.
55498         * lib/unictype/pr_grapheme_base.h: Likewise.
55499         * lib/unictype/pr_grapheme_extend.h: Likewise.
55500         * lib/unictype/pr_grapheme_link.h: Likewise.
55501         * lib/unictype/pr_hex_digit.h: Likewise.
55502         * lib/unictype/pr_hyphen.h: Likewise.
55503         * lib/unictype/pr_id_continue.h: Likewise.
55504         * lib/unictype/pr_id_start.h: Likewise.
55505         * lib/unictype/pr_ideographic.h: Likewise.
55506         * lib/unictype/pr_ids_binary_operator.h: Likewise.
55507         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
55508         * lib/unictype/pr_ignorable_control.h: Likewise.
55509         * lib/unictype/pr_iso_control.h: Likewise.
55510         * lib/unictype/pr_join_control.h: Likewise.
55511         * lib/unictype/pr_left_of_pair.h: Likewise.
55512         * lib/unictype/pr_line_separator.h: Likewise.
55513         * lib/unictype/pr_logical_order_exception.h: Likewise.
55514         * lib/unictype/pr_lowercase.h: Likewise.
55515         * lib/unictype/pr_math.h: Likewise.
55516         * lib/unictype/pr_non_break.h: Likewise.
55517         * lib/unictype/pr_not_a_character.h: Likewise.
55518         * lib/unictype/pr_numeric.h: Likewise.
55519         * lib/unictype/pr_other_alphabetic.h: Likewise.
55520         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
55521         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
55522         * lib/unictype/pr_other_id_continue.h: Likewise.
55523         * lib/unictype/pr_other_id_start.h: Likewise.
55524         * lib/unictype/pr_other_lowercase.h: Likewise.
55525         * lib/unictype/pr_other_math.h: Likewise.
55526         * lib/unictype/pr_other_uppercase.h: Likewise.
55527         * lib/unictype/pr_paired_punctuation.h: Likewise.
55528         * lib/unictype/pr_paragraph_separator.h: Likewise.
55529         * lib/unictype/pr_pattern_syntax.h: Likewise.
55530         * lib/unictype/pr_pattern_white_space.h: Likewise.
55531         * lib/unictype/pr_private_use.h: Likewise.
55532         * lib/unictype/pr_punctuation.h: Likewise.
55533         * lib/unictype/pr_quotation_mark.h: Likewise.
55534         * lib/unictype/pr_radical.h: Likewise.
55535         * lib/unictype/pr_sentence_terminal.h: Likewise.
55536         * lib/unictype/pr_soft_dotted.h: Likewise.
55537         * lib/unictype/pr_space.h: Likewise.
55538         * lib/unictype/pr_terminal_punctuation.h: Likewise.
55539         * lib/unictype/pr_titlecase.h: Likewise.
55540         * lib/unictype/pr_unassigned_code_value.h: Likewise.
55541         * lib/unictype/pr_unified_ideograph.h: Likewise.
55542         * lib/unictype/pr_uppercase.h: Likewise.
55543         * lib/unictype/pr_variation_selector.h: Likewise.
55544         * lib/unictype/pr_white_space.h: Likewise.
55545         * lib/unictype/pr_xid_continue.h: Likewise.
55546         * lib/unictype/pr_xid_start.h: Likewise.
55547         * lib/unictype/pr_zero_width.h: Likewise.
55548         * lib/unictype/scripts.h: Likewise.
55549         * lib/unictype/scripts_byname.gperf: Likewise.
55550         * lib/unictype/sy_c_ident.h: Likewise.
55551         * lib/unictype/sy_c_whitespace.h: Likewise.
55552         * lib/unictype/sy_java_ident.h: Likewise.
55553         * lib/unictype/sy_java_whitespace.h: Likewise.
55554
55555         * lib/unictype/Makefile: New file.
55556         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
55557         glibc.
55558         * lib/unictype/3level.h: New file, copied from glibc.
55559         * lib/unictype/3levelbit.h: New file.
55560
55561 2007-11-11  Bruno Haible  <bruno@clisp.org>
55562
55563         * modules/gperf: New file.
55564         * modules/iconv_open (Depends-on): Add it.
55565         (Makefile.am): Remove the GPERF definition.
55566
55567 2007-11-11  Bruno Haible  <bruno@clisp.org>
55568
55569         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
55570         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
55571
55572 2007-11-11  Bruno Haible  <bruno@clisp.org>
55573
55574         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
55575         (usage): Remove function.
55576
55577 2007-11-11  Bruno Haible  <bruno@clisp.org>
55578
55579         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
55580         gl_FUNC_CEILF_LIBS.
55581         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
55582         gl_FUNC_CEIL_LIBS.
55583         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
55584         gl_FUNC_CEILL_LIBS.
55585         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
55586         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
55587         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
55588
55589 2007-11-11  Bruno Haible  <bruno@clisp.org>
55590
55591         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
55592         roundf were declared but do not exist on functions.
55593         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
55594         roundl were declared but do not exist on functions.
55595         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
55596         HAVE_FLOORL_AND_CEILL, respectively.
55597         Needed for Sun C on Solaris 10.
55598
55599 2007-11-11  Bruno Haible  <bruno@clisp.org>
55600
55601         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
55602         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
55603         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
55604         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
55605         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
55606         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
55607         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
55608         HAVE_DECL_ROUNDF.
55609         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
55610         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
55611         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
55612         of HAVE_DECL_ROUND*.
55613         * modules/math (Makefile.am): Update.
55614
55615 2007-11-10  Bruno Haible  <bruno@clisp.org>
55616
55617         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
55618         ptrdiff_t as m4/intl.m4.
55619
55620 2007-11-10  Jim Meyering  <meyering@redhat.com>
55621
55622         Avoid link failure for the argmatch test.
55623         * tests/test-argmatch.c (usage): Define function to avoid a link
55624         failure: argmatch_die requires a usage function.
55625
55626 2007-11-09  Bruno Haible  <bruno@clisp.org>
55627
55628         * doc/functions/snprintf.texi: Mention BeOS deficiency.
55629         * doc/functions/vsnprintf.texi: Likewise.
55630         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
55631         with a size argument < 2.
55632
55633 2007-11-09  Bruno Haible  <bruno@clisp.org>
55634
55635         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
55636         buffer. Fixes an inefficiency introduced on 2007-11-03.
55637
55638 2007-11-09  Bruno Haible  <bruno@clisp.org>
55639
55640         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
55641         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
55642
55643 2007-11-08  Jim Meyering  <meyering@redhat.com>
55644
55645         Change cache variable name prefix "jm_" to "gl_" everywhere.
55646         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
55647         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
55648         * m4/uptime.m4: s/gl_/jm_/
55649
55650 2007-11-07  Bruno Haible  <bruno@clisp.org>
55651
55652         Update to GNU gettext 0.17.
55653         * m4/intl.m4: Update to GNU gettext 0.17.
55654         * m4/po.m4: Likewise.
55655         * modules/gettext (Files): Remove m4/ulonglong.m4.
55656         (configure.ac): Require gettext infrastructure from version 0.17.
55657
55658 2007-11-06  Bruno Haible  <bruno@clisp.org>
55659
55660         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
55661         symbolic values are not defined in a public header.
55662         * lib/freadable.c (freadable) [QNX]: Likewise.
55663         * lib/freadahead.c (freadahead) [QNX]: Likewise.
55664         * lib/freading.c (freading) [QNX]: Likewise.
55665         * lib/fseterr.c (fseterr) [QNX]: Likewise.
55666         * lib/fwritable.c (fwritable) [QNX]: Likewise.
55667         * lib/fwriting.c (fwriting) [QNX]: Likewise.
55668         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
55669         Reported by Alain Magloire.
55670
55671         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
55672
55673 2007-11-05  Bruno Haible  <bruno@clisp.org>
55674
55675         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
55676         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
55677         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
55678         Reported by Eric Blake.
55679
55680 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55681             Bruno Haible  <bruno@clisp.org>
55682
55683         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
55684         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
55685         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
55686         (malloc): Undefine also before including <stdlib.h>.
55687         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
55688         Needed on OSF/1 4.0.
55689
55690 2007-11-05  Jim Meyering  <meyering@redhat.com>
55691
55692         git-version-gen: sync from coreutils.
55693         * build-aux/git-version-gen: Add comments.
55694         Change the first '-' to '.' in the snapshot version string,
55695         e.g., 6.9-377-08144 -> 6.9.377-08144
55696         Remove first parameter.
55697         Don't declare a version "-dirty" merely because a time
55698         stamp has changed.
55699
55700 2007-11-04  Bruno Haible  <bruno@clisp.org>
55701
55702         * lib/lock.h: Protect all macro definitions containing an 'if'
55703         statement through a "do { ... } while (0)".
55704         * lib/tls.h: Likewise.
55705
55706 2007-11-04  Bruno Haible  <bruno@clisp.org>
55707
55708         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
55709
55710 2007-11-04  Bruno Haible  <bruno@clisp.org>
55711
55712         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
55713         * modules/fprintf-posix (Depends-on): Add nocrash.
55714         * modules/snprintf-posix (Depends-on): Likewise.
55715         * modules/sprintf-posix (Depends-on): Likewise.
55716         * modules/vasnprintf-posix (Depends-on): Likewise.
55717         * modules/vasprintf-posix (Depends-on): Likewise.
55718         * modules/vfprintf-posix (Depends-on): Likewise.
55719         * modules/vsnprintf-posix (Depends-on): Likewise.
55720         * modules/vsprintf-posix (Depends-on): Likewise.
55721         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55722         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55723         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55724         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55725         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55726         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55727         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55728
55729 2007-11-04  Bruno Haible  <bruno@clisp.org>
55730
55731         * modules/nocrash: New file.
55732         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
55733         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
55734
55735 2007-11-04  Bruno Haible  <bruno@clisp.org>
55736
55737         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
55738         precision handling.
55739         * tests/test-vasprintf-posix.c (test_function): Likewise.
55740         * tests/test-snprintf-posix.h (test_function): Likewise.
55741         * tests/test-sprintf-posix.h (test_function): Likewise.
55742
55743         Fix *printf behaviour for large precisions on mingw and BeOS.
55744         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
55745         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
55746         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
55747         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55748         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55749         gl_PRINTF_PRECISION and test its result. Invoke
55750         gl_PREREQ_VASNPRINTF_PRECISION.
55751         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55752         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55753         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55754         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55755         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55756         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55757         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55758         * doc/functions/fprintf.texi: Update.
55759         * doc/functions/printf.texi: Update.
55760         * doc/functions/snprintf.texi: Update.
55761         * doc/functions/sprintf.texi: Update.
55762         * doc/functions/vfprintf.texi: Update.
55763         * doc/functions/vprintf.texi: Update.
55764         * doc/functions/vsnprintf.texi: Update.
55765         * doc/functions/vsprintf.texi: Update.
55766
55767 2007-11-04  Bruno Haible  <bruno@clisp.org>
55768
55769         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
55770
55771 2007-11-04  Bruno Haible  <bruno@clisp.org>
55772
55773         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
55774         Reported by Sylvain Beucler <beuc@gnu.org>.
55775
55776 2007-11-03  Bruno Haible  <bruno@clisp.org>
55777
55778         * tests/test-fprintf-posix2.sh: New file.
55779         * tests/test-fprintf-posix2.c: New file.
55780         * modules/fprintf-posix-tests (Files): Add them.
55781         (TESTS): Add test-fprintf-posix2.sh.
55782         (configure.ac): Check for getrlimit and setrlimit.
55783         (check_PROGRAMS): Add test-fprintf-posix2.
55784
55785         * tests/test-printf-posix2.sh: New file.
55786         * tests/test-printf-posix2.c: New file.
55787         * modules/printf-posix-tests (Files): Add them.
55788         (TESTS): Add test-printf-posix2.sh.
55789         (configure.ac): Check for getrlimit and setrlimit.
55790         (check_PROGRAMS): Add test-printf-posix2.
55791
55792         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
55793         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
55794         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
55795         (decode_double): New function, copied from decode_long_double.
55796         (scale10_round_decimal_decoded): New function, extracted from
55797         scale10_round_decimal_long_double.
55798         (scale10_round_decimal_long_double): Use it.
55799         (scale10_round_decimal_double): New function.
55800         (floorlog10): New function.
55801         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
55802         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
55803         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55804         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55805         gl_PRINTF_ENOMEM and test its result. Invoke
55806         gl_PREREQ_VASNPRINTF_ENOMEM.
55807         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55808         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55809         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55810         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55811         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55812         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55813         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55814         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
55815         * modules/snprintf-posix (Depends-on): Likewise.
55816         * modules/sprintf-posix (Depends-on): Likewise.
55817         * modules/vasnprintf-posix (Depends-on): Likewise.
55818         * modules/vasprintf-posix (Depends-on): Likewise.
55819         * modules/vfprintf-posix (Depends-on): Likewise.
55820         * modules/vsnprintf-posix (Depends-on): Likewise.
55821         * modules/vsprintf-posix (Depends-on): Likewise.
55822         * doc/functions/fprintf.texi: Update.
55823         * doc/functions/printf.texi: Update.
55824         * doc/functions/snprintf.texi: Update.
55825         * doc/functions/sprintf.texi: Update.
55826         * doc/functions/vfprintf.texi: Update.
55827         * doc/functions/vprintf.texi: Update.
55828         * doc/functions/vsnprintf.texi: Update.
55829         * doc/functions/vsprintf.texi: Update.
55830
55831 2007-11-03  Bruno Haible  <bruno@clisp.org>
55832
55833         * modules/frexp-nolibm-tests: New file.
55834
55835         * modules/frexp-nolibm: New file.
55836         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
55837
55838 2007-11-03  Bruno Haible  <bruno@clisp.org>
55839
55840         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
55841         value is C99 compliant.
55842         Needed for OSF/1 5.1.
55843
55844 2007-11-03  Bruno Haible  <bruno@clisp.org>
55845
55846         Fix out-of-memory handling of vasnprintf.
55847         * lib/printf-parse.c: Include <errno.h>.
55848         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
55849         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
55850         is already set.
55851
55852 2007-11-02  Eric Blake  <ebb9@byu.net>
55853
55854         Fix tests on cygwin.
55855         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
55856
55857 2007-11-01  Bruno Haible  <bruno@clisp.org>
55858
55859         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
55860         warning.
55861         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
55862         needed for POSIX compatibility.
55863
55864 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55865
55866         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
55867         for compatibility with GNU.
55868
55869 2007-11-01  Bruno Haible  <bruno@clisp.org>
55870
55871         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
55872         (putenv): Renamed from rpl_putenv. Change argument type from
55873         'const char *' to 'char *'.
55874         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
55875         of defining putenv in config.h, just set REPLACE_PUTENV.
55876         * modules/putenv (Depends-on): Add stdlib.
55877         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55878         (Include): Use <stdlib.h>.
55879         * lib/stdlib.in.h (putenv): New declaration.
55880         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
55881         REPLACE_PUTENV.
55882         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
55883         REPLACE_PUTENV.
55884         Needed for MacOS X 10.5.0.
55885         Reported by Peter O'Gorman <peter@pogma.com>.
55886
55887 2007-11-01  Jim Meyering  <meyering@redhat.com>
55888
55889         Treat an empty date string exactly like "0".
55890         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
55891         if the remaining date string (to be parsed) is empty, use "0".
55892         Reported by Mischa Molhoek and discussed in this thread:
55893         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
55894
55895 2007-10-31  Bruno Haible  <bruno@clisp.org>
55896
55897         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
55898         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
55899         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
55900         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
55901         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
55902         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
55903
55904 2007-10-31  Bruno Haible  <bruno@clisp.org>
55905
55906         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
55907         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
55908         (AC_TYPE_LONG_LONG_INT): Use it.
55909         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
55910         it as well.
55911         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
55912         to m4/longlong.m4.
55913         * modules/stdint (Files): Remove m4/ulonglong.m4.
55914         * modules/strtoull (Files): Use m4/longlong.m4 instead of
55915         m4/ulonglong.m4.
55916         * modules/strtoumax (Files): Likewise.
55917
55918 2007-10-30  Bruno Haible  <bruno@clisp.org>
55919
55920         * modules/xvasprintf-posix: New file.
55921         Suggested by Eric Blake.
55922
55923 2007-10-30  Bruno Haible  <bruno@clisp.org>
55924
55925         * modules/xprintf-posix-tests: New file.
55926         * tests/test-xprintf-posix.sh: New file.
55927         * tests/test-xprintf-posix.c: New file.
55928         * tests/test-xfprintf-posix.c: New file.
55929
55930         * modules/xprintf-posix: New file.
55931
55932 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55933
55934         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
55935         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
55936         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
55937
55938 2007-10-29  Bruno Haible  <bruno@clisp.org>
55939
55940         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
55941         contain the special marker '_cv_'.
55942         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
55943         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
55944         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
55945         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
55946         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
55947         Reported by Ralf Wildenhues.
55948
55949 2007-10-29  Bruno Haible  <bruno@clisp.org>
55950
55951         * gnulib-tool (func_import): When --lgpl is not specified, set
55952         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
55953         GPLv3.
55954         Reported by Simon Josefsson.
55955
55956 2007-10-28  Bruno Haible  <bruno@clisp.org>
55957
55958         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
55959         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
55960         HAVE_DECL_ISFINITE.
55961         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55962         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
55963         HAVE_DECL_ISFINITE.
55964
55965 2007-10-28  Bruno Haible  <bruno@clisp.org>
55966
55967         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
55968         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
55969
55970 2007-10-28  Bruno Haible  <bruno@clisp.org>
55971
55972         Fix link errors with Sun C 5.0 on Solaris 10.
55973         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
55974         function is declared but not present in the compiler's libm.
55975         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
55976         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
55977         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
55978         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
55979         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
55980         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
55981         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
55982         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55983         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
55984         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
55985         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
55986         HAVE_DECL_FLOORL.
55987
55988 2007-10-28  Bruno Haible  <bruno@clisp.org>
55989
55990         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
55991         gl_FUNC_FLOORL. Cache the result.
55992         (gl_FUNC_FLOORL): Use it.
55993         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
55994         gl_FUNC_CEILL. Cache the result.
55995         (gl_FUNC_CEILL): Use it.
55996
55997         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
55998         gl_FUNC_FLOOR. Cache the result.
55999         (gl_FUNC_FLOOR): Use it.
56000         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
56001         gl_FUNC_CEIL. Cache the result.
56002         (gl_FUNC_CEIL): Use it.
56003
56004         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
56005         gl_FUNC_FLOORF. Cache the result.
56006         (gl_FUNC_FLOORF): Use it.
56007         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
56008         gl_FUNC_CEILF. Cache the result.
56009         (gl_FUNC_CEILF): Use it.
56010
56011 2007-10-28  Bruno Haible  <bruno@clisp.org>
56012
56013         * gnulib-tool: Allow specifying the LGPL version number through
56014         --lgpl=2 or --lgpl=3.
56015         (func_usage): Document --lgpl with argument.
56016         Handle --lgpl=... arguments.
56017         (func_import): Recognize also gl_LGPL calls with an argument. When
56018         --lgpl=2 is used and the module's license is just LGPL, report an
56019         error. Set sed_transform_lib_file according to the lgpl variable. In
56020         the generated files, use --lgpl or gl_LGPL invocations with argument,
56021         if necessary.
56022         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
56023         an LGPv2+ license.
56024         * doc/gnulib-tool.texi (Modified imports): Update explanation of
56025         gl_LGPL macro.
56026
56027 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56028             Bruno Haible  <bruno@clisp.org>
56029
56030         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
56031         (u16_uctomb_aux): Likewise.
56032         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
56033         !HAVE_INLINE.
56034         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
56035
56036 2007-10-28  Bruno Haible  <bruno@clisp.org>
56037
56038         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
56039         Invoke AM_GETTEXT_OPTION if it exists.
56040         * modules/vasprintf: Likewise.
56041         * modules/verror: Likewise.
56042         * modules/xprintf: Likewise.
56043         * modules/xvasprintf: Likewise.
56044
56045 2007-10-27  Ben Pfaff  <blp@gnu.org>
56046
56047         * lib/math.in.h: Define isfinite macro and prototypes for
56048         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
56049         implementations.
56050         * m4/math_h.m4: New substitutions for isfinite module.
56051         * lib/isfinite.c: New file.
56052         * m4/isfinite.m4: New file.
56053         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
56054         * modules/isfinite: New file.
56055         * modules/isfinite-tests: New file.
56056         * tests/tests-isfinite.c: New file.
56057         * doc/functions/isfinite.texi: Mention isfinite module.
56058         * MODULES.html.sh: Mention new module.
56059
56060 2007-10-27  Ben Pfaff  <blp@gnu.org>
56061
56062         Ralf Wildenhues reported that Tru64 4.0D declares the round
56063         functions but does not have definitions.
56064         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
56065         cannot be found in any library, set the output variable to
56066         "missing" instead of "".
56067         * m4/round.m4: Also use our substitute if we cannot find round in
56068         any library, even if it is declared.
56069         * m4/roundf.m4: Likewise for roundf.
56070         * m4/roundl.m4: Likewise for roundl.
56071         * lib/math.in.h: Undefine roundf, round, roundl before defining
56072         their replacements, to allow for hypothetical systems where these
56073         may be defined as macros but not available in libraries.
56074
56075 2007-10-27  Bruno Haible  <bruno@clisp.org>
56076
56077         * doc/gnulib.texi: Invoke @firstparagraphindent.
56078         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
56079         changes in gnulib.
56080         (Source changes): New section.
56081
56082 2007-10-26  Bruno Haible  <bruno@clisp.org>
56083
56084         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
56085         borrowed from autoconf.
56086
56087 2007-10-26  Bruno Haible  <bruno@clisp.org>
56088
56089         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
56090         strerror returned the empty string. Needed on HP-UX 11.00.
56091
56092 2007-10-24  Micah Cowan  <micah@cowan.name>
56093
56094         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
56095         * build-aux/bootstrap: Remove support for now-unnecessary option,
56096         --cvs-user, and envvars CVS_USER, CVS_RSH.
56097
56098 2007-10-24  Jim Meyering  <meyering@redhat.com>
56099
56100         Avoid diagnostics from sha1sum when there is no cached checksum.
56101         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
56102         if the po.s1 file hasn't been created yet.
56103
56104         * build-aux/bootstrap: Sync from coreutils:
56105         2007-10-24  Jim Meyering  <meyering@redhat.com>
56106         Get gnulib from the git repository, not from an obsolete cvs one.
56107         * build-aux/bootstrap: Suggestion from Micah Cowan.
56108         2007-10-04  Jim Meyering  <jim@meyering.net>
56109         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
56110         (update_po_files): Work also when there are no .po files in po/.
56111
56112 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56113
56114         * README: Append ".git" to git and cg examples.
56115         Problem reported by Benoit Sigoure.
56116
56117 2007-10-23  Micah Cowan  <micah@cowan.name>
56118
56119         * users.txt: Add wget.
56120
56121 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56122
56123         Fix linking of some unistdio tests on FreeBSD.
56124         * modules/unistdio/u16-vsnprintf-tests
56125         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
56126         * modules/unistdio/u16-vsprintf-tests
56127         (test_u16_vsnprintf1_LDADD): Likewise.
56128         * modules/unistdio/u32-vsnprintf-tests
56129         (test_u32_vsnprintf1_LDADD): Likewise.
56130         * modules/unistdio/u32-vsprintf-tests
56131         (test_u32_vsprintf1_LDADD): Likewise.
56132         * modules/unistdio/u8-vsnprintf-tests
56133         (test_u8_vsnprintf1_LDADD): Likewise.
56134         * modules/unistdio/u8-vsprintf-tests
56135         (test_u8_vsprintf1_LDADD): Likewise.
56136         * modules/unistdio/ulc-vsnprintf-tests
56137         (test_ulc_vsnprintf1_LDADD): Likewise.
56138         * modules/unistdio/ulc-vsprintf-tests
56139         (test_ulc_vsprintf1_LDADD): Likewise.
56140
56141         Fix linking of some uniconv tests on FreeBSD.
56142         * modules/uniconv/u16-conv-from-enc-tests
56143         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
56144         * modules/uniconv/u16-conv-to-enc-tests
56145         (test_u16_conv_to_enc_LDADD): Likewise.
56146         * modules/uniconv/u16-strconv-from-enc-tests
56147         (test_u16_strconv_from_enc_LDADD): Likewise.
56148         * modules/uniconv/u16-strconv-to-enc-tests
56149         (test_u16_strconv_to_enc_LDADD): Likewise.
56150         * modules/uniconv/u32-conv-from-enc-tests
56151         (test_u32_conv_from_enc_LDADD): Likewise.
56152         * modules/uniconv/u32-conv-to-enc-tests
56153         (test_u32_conv_to_enc_LDADD): Likewise.
56154         * modules/uniconv/u32-strconv-from-enc-tests
56155         (test_u32_strconv_from_enc_LDADD): Likewise.
56156         * modules/uniconv/u32-strconv-to-enc-tests
56157         (test_u32_strconv_to_enc_LDADD): Likewise.
56158         * modules/uniconv/u8-conv-from-enc-tests
56159         (test_u8_conv_from_enc_LDADD): Likewise.
56160         * modules/uniconv/u8-conv-to-enc-tests
56161         (test_u8_conv_to_enc_LDADD): Likewise.
56162         * modules/uniconv/u8-strconv-from-enc-tests
56163         (test_u8_strconv_from_enc_LDADD): Likewise.
56164         * modules/uniconv/u8-strconv-to-enc-tests
56165         (test_u8_strconv_to_enc_LDADD): Likewise.
56166
56167 2007-10-22  Bruno Haible  <bruno@clisp.org>
56168
56169         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
56170         size.
56171
56172 2007-10-22  Eric Blake  <ebb9@byu.net>
56173
56174         Tweak x*printf documentation.
56175         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
56176         variable name and comments.
56177         Suggested by Bruno Haible.
56178
56179 2007-10-22  Bruno Haible  <bruno@clisp.org>
56180
56181         * lib/acl.c (copy_acl): Fix file name in comment.
56182
56183 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56184
56185         Fix Tru64 problem with stdbool.h.
56186         * lib/stdbool.in.h (false, true):
56187         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
56188         Don't declare as an enum in this situation; it runs afoul of Tru64.
56189         Problem reported by Steven M. Schweda in
56190         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
56191
56192 2007-10-22  Eric Blake  <ebb9@byu.net>
56193
56194         Also wrap vf?printf.
56195         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
56196         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
56197         (xvprintf, xvfprintf): New functions.
56198
56199 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56200
56201         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
56202         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
56203
56204         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
56205         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
56206
56207 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56208
56209         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
56210         by Bruno Haible.
56211
56212 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56213
56214         * lib/getloadavg.c
56215         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
56216         Undef `sys' after including sys/table.h, for Tru64 4.0D.
56217
56218         * tests/test-i-ring.c: Work for C89.
56219
56220 2007-10-22  Bruno Haible  <bruno@clisp.org>
56221
56222         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
56223         -1u, in preprocessor expression, so that we don't test for the bug
56224         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
56225         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
56226
56227 2007-10-22  Eric Blake  <ebb9@byu.net>
56228
56229         * tests/test-yesno.sh: Silence stderr during test.
56230
56231 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56232
56233         * modules/crypto/gc-camellia: New file.
56234
56235         * m4/gc-camellia.m4: New file.
56236
56237         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
56238
56239         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
56240
56241 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56242
56243         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
56244         --help to stdout.  Reported by sms@antinode.org (Steven
56245         M. Schweda).
56246
56247 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56248
56249         * users.txt: Fix link to libksba.
56250
56251 2007-10-21  Ben Pfaff  <blp@gnu.org>
56252
56253         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
56254         round.c roundf implementation that depends on floorf and ceilf to
56255         be tested unconditionally.
56256
56257 2007-10-21  Ben Pfaff  <blp@gnu.org>
56258
56259         * m4/check-libm-func.m4: Removed.
56260         * m4/check-math-lib.m4: New file.
56261         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
56262         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
56263         definition and lack of AC_LIBOBJ([roundf]).
56264         * m4/roundl.m4: Ditto, and similarly for roundl.
56265         * modules/round: Reference new m4 file.
56266         * modules/roundf: Ditto.
56267         * modules/roundl: Ditto.
56268         * tests/test-round2.c (main): Use ROUND instead of round.
56269         Bug report from Bruno Haible.
56270
56271 2007-10-21  Bruno Haible  <bruno@clisp.org>
56272
56273         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
56274         context.
56275
56276 2007-10-21  Bruno Haible  <bruno@clisp.org>
56277
56278         * tests/test-wcwidth.c (main): Allow negative result for some control
56279         characters.
56280
56281         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
56282         Needed on OSF/1 5.1.
56283
56284 2007-10-21  Bruno Haible  <bruno@clisp.org>
56285
56286         * tests/test-floorf1.c: Include isnanf.h.
56287         (main): Use isnanf() instead of isnan().
56288         * tests/test-ceilf1.c: Include isnanf.h.
56289         (main): Use isnanf() instead of isnan().
56290         * tests/test-truncf1.c: Include isnanf.h.
56291         (main): Use isnanf() instead of isnan().
56292         * tests/test-roundf1.c: Include isnanf.h.
56293         (main): Use isnanf() instead of isnan().
56294
56295 2007-10-21  Eric Blake  <ebb9@byu.net>
56296
56297         * users.txt: Update URL for m4.
56298
56299 2007-10-21  Bruno Haible  <bruno@clisp.org>
56300
56301         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
56302
56303 2007-10-21  Bruno Haible  <bruno@clisp.org>
56304
56305         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
56306         Git's management files if the CVS files are not present.
56307
56308 2007-10-20  Bruno Haible  <bruno@clisp.org>
56309
56310         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
56311         gcc-3.4.x.
56312
56313 2007-10-20  Ben Pfaff  <blp@gnu.org>
56314
56315         * lib/math.in.h: Declare round, roundf, roundl if we are providing
56316         implementations.
56317         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
56318         * lib/round.c: New file.
56319         * lib/roundf.c: New file.
56320         * lib/roundl.c: New file.
56321         * m4/round.m4: New file.
56322         * m4/roundf.m4: New file.
56323         * m4/roundl.m4: New file.
56324         * m4/check-libm-func-m4: New file.
56325         * modules/math: Replace round, roundf, roundl related @VARS@ in
56326         math.in.h.
56327         * modules/round: New file.
56328         * modules/round-tests: New file.
56329         * modules/roundf: New file.
56330         * modules/roundf-tests: New file.
56331         * modules/roundl: New file.
56332         * modules/roundl-tests: New file.
56333         * tests/test-round1.c: New file.
56334         * tests/test-round2.c: New file.
56335         * tests/test-roundf1.c: New file.
56336         * tests/test-roundf2.c: New file.
56337         * tests/test-roundl.c: New file.
56338         * doc/functions/round.texi: Mention round module.
56339         * doc/functions/roundf.texi: Mention roundf module.
56340         * doc/functions/roundl.texi: Mention roundl module.
56341         * MODULES.html.sh: Mention new modules.
56342         Thanks to Bruno Haible for suggestions.
56343
56344 2007-10-20  Jim Meyering  <meyering@redhat.com>
56345
56346         * lib/xprintf.c: Include <config.h> unconditionally.
56347
56348         Change xprintf's license to GPL.
56349         * modules/xprintf (License): s/LGPL/GPL/, since this module
56350         depends on modules (exit and exitfail) which are GPL.
56351         Suggestion from Bruno Haible.
56352
56353         xprintf fixes.
56354         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
56355         Use a clearer diagnostic.
56356         Patch from Bruno Haible.
56357
56358 2007-10-20  Bruno Haible  <bruno@clisp.org>
56359
56360         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
56361         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
56362         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56363
56364 2007-10-20  Bruno Haible  <bruno@clisp.org>
56365
56366         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
56367         precision in the comparison result > x - 1 or similar.
56368         * tests/test-ceilf2.c (correct_result_p): Likewise.
56369         * tests/test-truncf2.c (correct_result_p): Likewise.
56370         * tests/test-trunc2.c (correct_result_p): Likewise.
56371         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56372
56373 2007-10-20  Bruno Haible  <bruno@clisp.org>
56374
56375         * modules/ceil: New file.
56376         * m4/ceil.m4: New file.
56377         * doc/functions/ceil.texi: Mention the 'ceil' module.
56378
56379 2007-10-20  Bruno Haible  <bruno@clisp.org>
56380
56381         * modules/floor: New file.
56382         * m4/floor.m4: New file.
56383         * doc/functions/floor.texi: Mention the 'floor' module.
56384
56385 2007-10-20  Bruno Haible  <bruno@clisp.org>
56386
56387         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
56388         of %a.
56389         * modules/floorf-tests (Depends-on): Likewise.
56390         * modules/truncf-tests (Depends-on): Likewise.
56391         * modules/trunc-tests (Depends-on): Likewise.
56392         Reported by Ben Pfaff.
56393
56394 2007-10-19  Jim Meyering  <meyering@redhat.com>
56395
56396         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
56397         Don't bother testing specific errno values.  Just test ferror.
56398
56399         New module: xprintf
56400         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
56401
56402 2007-10-19  Bruno Haible  <bruno@clisp.org>
56403
56404         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
56405         syntax.
56406         * modules/javaexec (Makefile.am): Likewise.
56407         * modules/relocatable-prog (Makefile.am): Likewise.
56408         Suggested by Jim Meyering.
56409
56410 2007-10-18  Bruno Haible  <bruno@clisp.org>
56411
56412         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
56413         Reported by Jim Meyering.
56414
56415 2007-10-18  Eric Blake  <ebb9@byu.net>
56416
56417         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
56418
56419 2007-10-18  Bruno Haible  <bruno@clisp.org>
56420
56421         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
56422         the format string into writable memory. Needed in Fortify conditions.
56423
56424 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
56425             Bruno Haible  <bruno@clisp.org>
56426
56427         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
56428         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
56429         * modules/trim (Depends-on): Add mbchar.
56430         (configure.ac): Add gl_FUNC_MBRTOWC.
56431         (Makefile.am): Augment lib_SOURCES.
56432
56433 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56434
56435         Modify glob.c to use fstatat and dirfd, to simplify it.
56436         Suggested by Eric Blake.
56437         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
56438         Don't include <stdbool.h>; not used.
56439         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
56440         (link_exists_p): Simplify implementation, since we can now assume
56441         dirfd and fstatat.
56442         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
56443
56444 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56445
56446         * gnulib-tool (func_get_dependencies): Fix sed script to
56447         match only tests.
56448
56449 2007-10-17  Bruno Haible  <bruno@clisp.org>
56450
56451         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
56452         allow locale names without encoding suffix.
56453         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56454         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56455
56456 2007-10-16  Bruno Haible  <bruno@clisp.org>
56457
56458         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
56459         * lib/getgroups.c (getgroups): Likewise.
56460         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
56461
56462 2007-10-16  Bruno Haible  <bruno@clisp.org>
56463
56464         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
56465         * modules/malloc-posix (License): Likewise.
56466         * modules/realloc-posix (License): Likewise.
56467         * modules/calloc-posix (License): Likewise.
56468         * modules/intprops (License): Change from GPL to LGPL, with
56469         Paul Eggert's approval.
56470
56471 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56472
56473         Merge glibc changes into lib/glob.c.
56474
56475         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
56476         2007-10-15 04:59:03 UTC.  Here are the changes:
56477
56478         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
56479
56480         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
56481
56482         * lib/glob.c: Add some branch prediction throughout.
56483
56484         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
56485
56486         [BZ #5103]
56487         * lib/glob.c (glob): Recognize patterns starting \/.
56488
56489         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
56490
56491         [BZ #3996]
56492         * lib/glob.c (attribute_hidden): Define if not defined.
56493         (glob): Unescape dirname, filename or username when needed and not
56494         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
56495         is NULL.  Handle unescaped [ in pattern without closing ].
56496         Don't pass GLOB_CHECK down to recursive glob for directories.
56497         (__glob_pattern_type): New function.
56498         (__glob_pattern_p): Implement using __glob_pattern_type.
56499         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
56500         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
56501         Remove unreachable code.
56502
56503         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
56504
56505         * lib/glob.c (glob_in_dir): Add some comments and asserts to
56506         explain why there are no leaks.
56507
56508         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
56509
56510         [BZ #3253]
56511         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
56512         time, rather allocate increasingly bigger arrays of pointers, if
56513         possible with alloca, if too large with malloc.
56514
56515 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56516
56517         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
56518         Problem reported by H.Merijn Brand in
56519         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
56520         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
56521         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56522
56523 2007-10-15  Bruno Haible  <bruno@clisp.org>
56524
56525         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
56526         with explicit rpl_ prefix.
56527         * lib/fopen.c (fopen): Likewise.
56528         * lib/freopen.c (freopen): Likewise.
56529         * lib/iconv.c (iconv): Likewise.
56530         * lib/iconv_close.c (iconv_close): Likewise.
56531
56532 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56533
56534         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
56535
56536 2007-10-15  Bruno Haible  <bruno@clisp.org>
56537
56538         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
56539         <stddef.h> instead of <stdlib.h> since we only need NULL.
56540         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56541
56542 2007-10-15  Bruno Haible  <bruno@clisp.org>
56543
56544         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
56545         Replace paragraph talking about LIBOBJS.
56546         Reported by Colin Watson <cjwatson@debian.org>.
56547
56548 2007-10-15  Bruno Haible  <bruno@clisp.org>
56549
56550         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
56551         <stdlib.h> before using NULL.
56552
56553 2007-10-15  Simon Josefsson  <simon@josefsson.org>
56554
56555         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
56556         Reported by Albert Chin <china@thewrittenword.com>.
56557
56558 2007-10-14  Bruno Haible  <bruno@clisp.org>
56559
56560         * modules/iconv_open-utf-tests: New file.
56561         * tests/test-iconv-utf.c: New file.
56562
56563         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
56564         * modules/iconv_open-utf: New file.
56565         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
56566         (iconv, iconv_close): New declarations.
56567         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
56568         be defined.
56569         (iconv_open): Add special handling of conversion between UTF-8 and
56570         UTF-{16,32}{BE,LE}.
56571         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
56572         * lib/iconv_close.c: New file.
56573         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
56574         gl_FUNC_ICONV_OPEN.
56575         (gl_FUNC_ICONV_OPEN): Use it.
56576         (gl_FUNC_ICONV_OPEN_UTF): New macro.
56577         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
56578         and REPLACE_ICONV_UTF.
56579         * modules/iconv_open (Depends-on): Add c-strcase.
56580         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
56581         ICONV_CONST.
56582         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
56583
56584 2007-10-13  Albert Chin  <china@thewrittenword.com>
56585             Bruno Haible  <bruno@clisp.org>
56586
56587         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
56588         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
56589
56590 2007-10-13  Bruno Haible  <bruno@clisp.org>
56591
56592         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
56593         defined, use the ISO C99 inline semantics.
56594         * lib/argp.h (ARGP_EI): Likewise.
56595
56596 2007-10-13  Bruno Haible  <bruno@clisp.org>
56597
56598         Handle 'inline' change in gcc 4.3.0.
56599         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
56600         argp_fmtstream_write, argp_fmtstream_set_lmargin,
56601         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
56602         argp_fmtstream_point): Disable 'extern' declaration if the function
56603         definition is going to be provided inline.
56604         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
56605         semantics, not the ISO C99 inline semantics.
56606         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
56607         'extern' declaration if the function definition is going to be provided
56608         inline.
56609         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
56610         the GNU C inline semantics, not the ISO C99 inline semantics. With
56611         GCC 4.2, avoid a warning.
56612
56613 2007-10-13  Bruno Haible  <bruno@clisp.org>
56614
56615         * lib/freading.h (freading): Enable the use of __freading for
56616         glibc >= 2.7.
56617         * lib/freading.c (freading): Likewise.
56618
56619 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56620
56621         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
56622         "warning: C99 inline functions are not supported; using GNU89".
56623
56624 2007-10-12  Bruno Haible  <bruno@clisp.org>
56625
56626         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
56627         of 2.
56628         * tests/test-ceilf2.c: New file.
56629         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
56630
56631         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
56632         * modules/ceilf-tests: Update.
56633
56634 2007-10-12  Bruno Haible  <bruno@clisp.org>
56635
56636         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
56637         of 2.
56638         * tests/test-floorf2.c: New file.
56639         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
56640
56641         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
56642         * modules/floorf-tests: Update.
56643
56644 2007-10-12  Bruno Haible  <bruno@clisp.org>
56645
56646         * tests/test-trunc2.c: New file.
56647         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
56648
56649         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
56650         * modules/trunc-tests: Update.
56651
56652 2007-10-12  Bruno Haible  <bruno@clisp.org>
56653
56654         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
56655         of 2.
56656         * tests/test-truncf2.c: New file.
56657         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
56658
56659         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
56660         * modules/truncf-tests: Update.
56661
56662 2007-10-11  Eric Blake  <ebb9@byu.net>
56663
56664         Don't claim strerror is broken on Interix.
56665         * doc/functions/strerror.texi (strerror): Known broken systems are
56666         now Solaris 8, and not Interix.
56667         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
56668         Interix on cross-compile.
56669         Reported by Martin Koeppe in
56670         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
56671
56672 2007-10-11  Bruno Haible  <bruno@clisp.org>
56673
56674         * modules/i-ring-tests: New file.
56675         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
56676         instead of assert.
56677
56678 2007-10-11  Bruno Haible  <bruno@clisp.org>
56679
56680         * modules/filenamecat-tests: New file.
56681         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
56682         * lib/filenamecat.c: Remove test code.
56683
56684 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56685
56686         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
56687
56688         * lib/strerror.c: Include <string.h> always, to test interface,
56689         and to remove the need for the dummy.
56690         Include intprops.h to compute width instead of doing it ourselves
56691         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
56692         (strerror): Define it to return NULL if there's no system strerror.
56693         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
56694         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
56695         ancient pre-strerror Unix systems well any more.  Saying "unknown
56696         system error" is enough.
56697         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
56698         simpler strerror.c implementation.
56699         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
56700         Simplify the tests to reflect the simpler strerror implementation.
56701         * modules/strerror (Depends-on): Add intprops.
56702
56703 2007-10-09  Eric Blake  <ebb9@byu.net>
56704
56705         Silence test-fpending.
56706         * modules/fpending-tests (Files): Add wrapper script.
56707         * tests/test-fpending.sh: New file.
56708
56709 2007-10-09  Bruno Haible  <bruno@clisp.org>
56710
56711         * MODULES.html.sh (func_module): Don't create a hyperlink for
56712         function names like 'printf_frexp'.
56713         (Misc): Add crc, memxor.
56714         (Characteristics of floating types): New section.
56715         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
56716         isnanf-nolibm, signbit, trunc, truncf, truncl.
56717         (Enhancements for ISO C 99 functions): New subsection Input/output.
56718         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
56719         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
56720         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
56721         (Compatibility checks for POSIX:2001 functions): Add clock-time.
56722         (Enhancements for POSIX:2001 functions): Add chdir-long.
56723         (File system functions): Add areadlink, chdir-safer, read-file.
56724         Remove cycle-check.
56725         (File system as inode set): New section.
56726         (Date and time): Add gethrxtime.
56727         (Multithreading): Add openmp.
56728         (Internationalization functions): Add localename.
56729         (Unicode string functions): Add unistr/u*-mbsnlen.
56730         (Support for maintaining and releasing projects): Add git-version-gen.
56731         (Lone files): Remove directories.
56732
56733 2007-10-08  Ben Pfaff  <blp@gnu.org>
56734
56735         * lib/xmalloca.h: Fix typo in comment.
56736
56737 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56738
56739         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
56740         when avoiding problems with integer overflow.  Use a portable test
56741         instead.
56742
56743 2007-10-08  Simon Josefsson  <simon@josefsson.org>
56744
56745         * modules/dummy (License): Change to LGPLv2+.
56746         * modules/float (License): Likewise
56747         * modules/realloc (License): Likewise
56748         * modules/stdlib (License): Likewise
56749
56750 2007-10-07  Bruno Haible  <bruno@clisp.org>
56751
56752         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
56753         * floor.c (TWO_MANT_DIG): Likewise.
56754         * ceil.c (TWO_MANT_DIG): Likewise.
56755         Reported by Ben Pfaff.
56756
56757 2007-10-07  Bruno Haible  <bruno@clisp.org>
56758
56759         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
56760         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
56761         * lib/frexp.c (FUNC): Likewise.
56762         * lib/printf-frexp.h (printf_frexp): Likewise.
56763         * lib/printf-frexpl.h (printf_frexpl): Likewise.
56764         * lib/printf-frexp.c (FUNC): Likewise.
56765         Suggested by Jim Meyering.
56766
56767 2007-10-07  Jim Meyering  <meyering@redhat.com>
56768
56769         Make xnanosleep's integer overflow test more robust.
56770         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
56771         so that gcc-4.3.0 doesn't optimize away this test for overflow.
56772
56773 2007-10-07  Bruno Haible  <bruno@clisp.org>
56774
56775         * NEWS: Mention the license change.
56776
56777         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
56778         abbreviations in the modules files.
56779
56780         Change copyright notice from GPLv2+ to GPLv3+.
56781         * README: Change copyright notice.
56782         * MODULES.html.sh: Likewise.
56783         * build-aux/bootstrap.conf: Likewise.
56784         * build-aux/config.libpath: Likewise.
56785         * build-aux/csharpcomp.sh.in: Likewise.
56786         * build-aux/csharpexec.sh.in: Likewise.
56787         * build-aux/install-reloc: Likewise.
56788         * build-aux/javacomp.sh.in: Likewise.
56789         * build-aux/javaexec.sh.in: Likewise.
56790         * build-aux/ldd.sh.in: Likewise.
56791         * build-aux/reloc-ldflags: Likewise.
56792         * build-aux/relocatable.sh.in: Likewise.
56793         * build-aux/x-to-1.in: Likewise.
56794         * check-module: Likewise.
56795         * config/srclistvars.sh: Likewise.
56796         * gnulib-tool: Likewise.
56797         * lib/acl-internal.h: Likewise.
56798         * lib/acl.c: Likewise.
56799         * lib/acl.h: Likewise.
56800         * lib/acl_entries.c: Likewise.
56801         * lib/areadlink-with-size.c: Likewise.
56802         * lib/areadlink.c: Likewise.
56803         * lib/areadlink.h: Likewise.
56804         * lib/argmatch.c: Likewise.
56805         * lib/argmatch.h: Likewise.
56806         * lib/argp-ba.c: Likewise.
56807         * lib/argp-eexst.c: Likewise.
56808         * lib/argp-fmtstream.c: Likewise.
56809         * lib/argp-fmtstream.h: Likewise.
56810         * lib/argp-fs-xinl.c: Likewise.
56811         * lib/argp-help.c: Likewise.
56812         * lib/argp-namefrob.h: Likewise.
56813         * lib/argp-parse.c: Likewise.
56814         * lib/argp-pin.c: Likewise.
56815         * lib/argp-pv.c: Likewise.
56816         * lib/argp-pvh.c: Likewise.
56817         * lib/argp-xinl.c: Likewise.
56818         * lib/argp.h: Likewise.
56819         * lib/at-func.c: Likewise.
56820         * lib/atanl.c: Likewise.
56821         * lib/backupfile.c: Likewise.
56822         * lib/backupfile.h: Likewise.
56823         * lib/basename.c: Likewise.
56824         * lib/binary-io.h: Likewise.
56825         * lib/byteswap.in.h: Likewise.
56826         * lib/c-stack.c: Likewise.
56827         * lib/c-stack.h: Likewise.
56828         * lib/c-strcasestr.c: Likewise.
56829         * lib/c-strcasestr.h: Likewise.
56830         * lib/c-strstr.c: Likewise.
56831         * lib/c-strstr.h: Likewise.
56832         * lib/c-strtod.c: Likewise.
56833         * lib/calloc.c: Likewise.
56834         * lib/canon-host.c: Likewise.
56835         * lib/canon-host.h: Likewise.
56836         * lib/canonicalize-lgpl.c: Likewise.
56837         * lib/canonicalize.c: Likewise.
56838         * lib/canonicalize.h: Likewise.
56839         * lib/ceil.c: Likewise.
56840         * lib/ceilf.c: Likewise.
56841         * lib/ceill.c: Likewise.
56842         * lib/chdir-long.c: Likewise.
56843         * lib/chdir-long.h: Likewise.
56844         * lib/chdir-safer.c: Likewise.
56845         * lib/chdir-safer.h: Likewise.
56846         * lib/chown.c: Likewise.
56847         * lib/classpath.c: Likewise.
56848         * lib/classpath.h: Likewise.
56849         * lib/clean-temp.c: Likewise.
56850         * lib/clean-temp.h: Likewise.
56851         * lib/cloexec.c: Likewise.
56852         * lib/close-stream.c: Likewise.
56853         * lib/closein.c: Likewise.
56854         * lib/closein.h: Likewise.
56855         * lib/closeout.c: Likewise.
56856         * lib/closeout.h: Likewise.
56857         * lib/concat-filename.c: Likewise.
56858         * lib/copy-file.c: Likewise.
56859         * lib/copy-file.h: Likewise.
56860         * lib/count-one-bits.h: Likewise.
56861         * lib/crc.c: Likewise.
56862         * lib/crc.h: Likewise.
56863         * lib/creat-safer.c: Likewise.
56864         * lib/csharpcomp.c: Likewise.
56865         * lib/csharpcomp.h: Likewise.
56866         * lib/csharpexec.c: Likewise.
56867         * lib/csharpexec.h: Likewise.
56868         * lib/cycle-check.c: Likewise.
56869         * lib/cycle-check.h: Likewise.
56870         * lib/diacrit.c: Likewise.
56871         * lib/diacrit.h: Likewise.
56872         * lib/diffseq.h: Likewise.
56873         * lib/dirchownmod.c: Likewise.
56874         * lib/dirent.in.h: Likewise.
56875         * lib/dirfd.c: Likewise.
56876         * lib/dirfd.h: Likewise.
56877         * lib/dirname.c: Likewise.
56878         * lib/dirname.h: Likewise.
56879         * lib/dummy.c: Likewise.
56880         * lib/dup-safer.c: Likewise.
56881         * lib/dup2.c: Likewise.
56882         * lib/eealloc.h: Likewise.
56883         * lib/error.c: Likewise.
56884         * lib/error.h: Likewise.
56885         * lib/euidaccess.c: Likewise.
56886         * lib/exclude.c: Likewise.
56887         * lib/exclude.h: Likewise.
56888         * lib/execute.c: Likewise.
56889         * lib/execute.h: Likewise.
56890         * lib/exitfail.c: Likewise.
56891         * lib/exitfail.h: Likewise.
56892         * lib/expl.c: Likewise.
56893         * lib/fatal-signal.c: Likewise.
56894         * lib/fatal-signal.h: Likewise.
56895         * lib/fbufmode.c: Likewise.
56896         * lib/fbufmode.h: Likewise.
56897         * lib/fchdir.c: Likewise.
56898         * lib/fchmodat.c: Likewise.
56899         * lib/fchownat.c: Likewise.
56900         * lib/fcntl--.h: Likewise.
56901         * lib/fcntl-safer.h: Likewise.
56902         * lib/fcntl.in.h: Likewise.
56903         * lib/fd-safer.c: Likewise.
56904         * lib/fflush.c: Likewise.
56905         * lib/file-has-acl.c: Likewise.
56906         * lib/file-set.c: Likewise.
56907         * lib/file-type.c: Likewise.
56908         * lib/file-type.h: Likewise.
56909         * lib/fileblocks.c: Likewise.
56910         * lib/filemode.c: Likewise.
56911         * lib/filemode.h: Likewise.
56912         * lib/filename.h: Likewise.
56913         * lib/filenamecat.c: Likewise.
56914         * lib/filenamecat.h: Likewise.
56915         * lib/findprog.c: Likewise.
56916         * lib/findprog.h: Likewise.
56917         * lib/float.in.h: Likewise.
56918         * lib/floor.c: Likewise.
56919         * lib/floorf.c: Likewise.
56920         * lib/floorl.c: Likewise.
56921         * lib/fopen-safer.c: Likewise.
56922         * lib/fopen.c: Likewise.
56923         * lib/fpending.c: Likewise.
56924         * lib/fpending.h: Likewise.
56925         * lib/fprintf.c: Likewise.
56926         * lib/fprintftime.h: Likewise.
56927         * lib/fpucw.h: Likewise.
56928         * lib/fpurge.c: Likewise.
56929         * lib/fpurge.h: Likewise.
56930         * lib/freadable.c: Likewise.
56931         * lib/freadable.h: Likewise.
56932         * lib/freadahead.c: Likewise.
56933         * lib/freadahead.h: Likewise.
56934         * lib/freading.c: Likewise.
56935         * lib/freading.h: Likewise.
56936         * lib/free.c: Likewise.
56937         * lib/freopen.c: Likewise.
56938         * lib/frexp.c: Likewise.
56939         * lib/frexpl.c: Likewise.
56940         * lib/fseek.c: Likewise.
56941         * lib/fseterr.c: Likewise.
56942         * lib/fseterr.h: Likewise.
56943         * lib/fstatat.c: Likewise.
56944         * lib/fstrcmp.c: Likewise.
56945         * lib/fstrcmp.h: Likewise.
56946         * lib/fsusage.c: Likewise.
56947         * lib/fsusage.h: Likewise.
56948         * lib/ftell.c: Likewise.
56949         * lib/ftello.c: Likewise.
56950         * lib/fts-cycle.c: Likewise.
56951         * lib/fts.c: Likewise.
56952         * lib/fts_.h: Likewise.
56953         * lib/full-read.c: Likewise.
56954         * lib/full-read.h: Likewise.
56955         * lib/full-write.c: Likewise.
56956         * lib/full-write.h: Likewise.
56957         * lib/fwritable.c: Likewise.
56958         * lib/fwritable.h: Likewise.
56959         * lib/fwriteerror.c: Likewise.
56960         * lib/fwriteerror.h: Likewise.
56961         * lib/fwriting.c: Likewise.
56962         * lib/fwriting.h: Likewise.
56963         * lib/gcd.c: Likewise.
56964         * lib/gcd.h: Likewise.
56965         * lib/getcwd.c: Likewise.
56966         * lib/getdate.h: Likewise.
56967         * lib/getdate.y: Likewise.
56968         * lib/getdomainname.c: Likewise.
56969         * lib/getdomainname.h: Likewise.
56970         * lib/getgroups.c: Likewise.
56971         * lib/gethostname.c: Likewise.
56972         * lib/gethrxtime.c: Likewise.
56973         * lib/gethrxtime.h: Likewise.
56974         * lib/getloadavg.c: Likewise.
56975         * lib/getndelim2.c: Likewise.
56976         * lib/getndelim2.h: Likewise.
56977         * lib/getnline.c: Likewise.
56978         * lib/getnline.h: Likewise.
56979         * lib/getopt.c: Likewise.
56980         * lib/getopt.in.h: Likewise.
56981         * lib/getopt1.c: Likewise.
56982         * lib/getopt_int.h: Likewise.
56983         * lib/getpagesize.h: Likewise.
56984         * lib/getsubopt.c: Likewise.
56985         * lib/gettime.c: Likewise.
56986         * lib/getugroups.c: Likewise.
56987         * lib/getugroups.h: Likewise.
56988         * lib/getusershell.c: Likewise.
56989         * lib/gl_anyavltree_list1.h: Likewise.
56990         * lib/gl_anyavltree_list2.h: Likewise.
56991         * lib/gl_anyhash_list1.h: Likewise.
56992         * lib/gl_anyhash_list2.h: Likewise.
56993         * lib/gl_anylinked_list1.h: Likewise.
56994         * lib/gl_anylinked_list2.h: Likewise.
56995         * lib/gl_anyrbtree_list1.h: Likewise.
56996         * lib/gl_anyrbtree_list2.h: Likewise.
56997         * lib/gl_anytree_list1.h: Likewise.
56998         * lib/gl_anytree_list2.h: Likewise.
56999         * lib/gl_anytree_oset.h: Likewise.
57000         * lib/gl_anytreehash_list1.h: Likewise.
57001         * lib/gl_anytreehash_list2.h: Likewise.
57002         * lib/gl_array_list.c: Likewise.
57003         * lib/gl_array_list.h: Likewise.
57004         * lib/gl_array_oset.c: Likewise.
57005         * lib/gl_array_oset.h: Likewise.
57006         * lib/gl_avltree_list.c: Likewise.
57007         * lib/gl_avltree_list.h: Likewise.
57008         * lib/gl_avltree_oset.c: Likewise.
57009         * lib/gl_avltree_oset.h: Likewise.
57010         * lib/gl_avltreehash_list.c: Likewise.
57011         * lib/gl_avltreehash_list.h: Likewise.
57012         * lib/gl_carray_list.c: Likewise.
57013         * lib/gl_carray_list.h: Likewise.
57014         * lib/gl_linked_list.c: Likewise.
57015         * lib/gl_linked_list.h: Likewise.
57016         * lib/gl_linkedhash_list.c: Likewise.
57017         * lib/gl_linkedhash_list.h: Likewise.
57018         * lib/gl_list.c: Likewise.
57019         * lib/gl_list.h: Likewise.
57020         * lib/gl_oset.c: Likewise.
57021         * lib/gl_oset.h: Likewise.
57022         * lib/gl_rbtree_list.c: Likewise.
57023         * lib/gl_rbtree_list.h: Likewise.
57024         * lib/gl_rbtree_oset.c: Likewise.
57025         * lib/gl_rbtree_oset.h: Likewise.
57026         * lib/gl_rbtreehash_list.c: Likewise.
57027         * lib/gl_rbtreehash_list.h: Likewise.
57028         * lib/gl_sublist.c: Likewise.
57029         * lib/gl_sublist.h: Likewise.
57030         * lib/group-member.c: Likewise.
57031         * lib/group-member.h: Likewise.
57032         * lib/hard-locale.c: Likewise.
57033         * lib/hard-locale.h: Likewise.
57034         * lib/hash-pjw.c: Likewise.
57035         * lib/hash-pjw.h: Likewise.
57036         * lib/hash-triple.c: Likewise.
57037         * lib/hash.c: Likewise.
57038         * lib/hash.h: Likewise.
57039         * lib/human.c: Likewise.
57040         * lib/human.h: Likewise.
57041         * lib/i-ring.c: Likewise.
57042         * lib/i-ring.h: Likewise.
57043         * lib/idcache.c: Likewise.
57044         * lib/imaxabs.c: Likewise.
57045         * lib/imaxdiv.c: Likewise.
57046         * lib/inet_pton.c: Likewise.
57047         * lib/inet_pton.h: Likewise.
57048         * lib/intprops.h: Likewise.
57049         * lib/inttostr.c: Likewise.
57050         * lib/inttostr.h: Likewise.
57051         * lib/inttypes.in.h: Likewise.
57052         * lib/isapipe.c: Likewise.
57053         * lib/isdir.c: Likewise.
57054         * lib/isnan.c: Likewise.
57055         * lib/isnan.h: Likewise.
57056         * lib/isnanf.c: Likewise.
57057         * lib/isnanf.h: Likewise.
57058         * lib/isnanl-nolibm.h: Likewise.
57059         * lib/isnanl.c: Likewise.
57060         * lib/isnanl.h: Likewise.
57061         * lib/javacomp.c: Likewise.
57062         * lib/javacomp.h: Likewise.
57063         * lib/javaexec.c: Likewise.
57064         * lib/javaexec.h: Likewise.
57065         * lib/javaversion.c: Likewise.
57066         * lib/javaversion.h: Likewise.
57067         * lib/javaversion.java: Likewise.
57068         * lib/lbrkprop.h: Likewise.
57069         * lib/lchmod.h: Likewise.
57070         * lib/lchown.c: Likewise.
57071         * lib/ldexpl.c: Likewise.
57072         * lib/linebreak.c: Likewise.
57073         * lib/linebreak.h: Likewise.
57074         * lib/linebuffer.c: Likewise.
57075         * lib/linebuffer.h: Likewise.
57076         * lib/locale.in.h: Likewise.
57077         * lib/logl.c: Likewise.
57078         * lib/long-options.c: Likewise.
57079         * lib/long-options.h: Likewise.
57080         * lib/lstat.c: Likewise.
57081         * lib/lstat.h: Likewise.
57082         * lib/math.in.h: Likewise.
57083         * lib/mbchar.c: Likewise.
57084         * lib/mbchar.h: Likewise.
57085         * lib/mbfile.h: Likewise.
57086         * lib/mbiter.h: Likewise.
57087         * lib/mbscasecmp.c: Likewise.
57088         * lib/mbscasestr.c: Likewise.
57089         * lib/mbschr.c: Likewise.
57090         * lib/mbscspn.c: Likewise.
57091         * lib/mbslen.c: Likewise.
57092         * lib/mbsncasecmp.c: Likewise.
57093         * lib/mbsnlen.c: Likewise.
57094         * lib/mbspbrk.c: Likewise.
57095         * lib/mbspcasecmp.c: Likewise.
57096         * lib/mbsrchr.c: Likewise.
57097         * lib/mbssep.c: Likewise.
57098         * lib/mbsspn.c: Likewise.
57099         * lib/mbsstr.c: Likewise.
57100         * lib/mbstok_r.c: Likewise.
57101         * lib/mbswidth.c: Likewise.
57102         * lib/mbswidth.h: Likewise.
57103         * lib/mbuiter.h: Likewise.
57104         * lib/memcasecmp.c: Likewise.
57105         * lib/memcasecmp.h: Likewise.
57106         * lib/memchr.c: Likewise.
57107         * lib/memcmp.c: Likewise.
57108         * lib/memcoll.c: Likewise.
57109         * lib/memcoll.h: Likewise.
57110         * lib/memcpy.c: Likewise.
57111         * lib/memrchr.c: Likewise.
57112         * lib/mkancesdirs.c: Likewise.
57113         * lib/mkdir-p.c: Likewise.
57114         * lib/mkdir-p.h: Likewise.
57115         * lib/mkdir.c: Likewise.
57116         * lib/mkdirat.c: Likewise.
57117         * lib/mkdtemp.c: Likewise.
57118         * lib/mkstemp-safer.c: Likewise.
57119         * lib/mkstemp.c: Likewise.
57120         * lib/modechange.c: Likewise.
57121         * lib/modechange.h: Likewise.
57122         * lib/mountlist.c: Likewise.
57123         * lib/mountlist.h: Likewise.
57124         * lib/mpsort.c: Likewise.
57125         * lib/nanosleep.c: Likewise.
57126         * lib/obstack.c: Likewise.
57127         * lib/obstack.h: Likewise.
57128         * lib/open-safer.c: Likewise.
57129         * lib/open.c: Likewise.
57130         * lib/openat-die.c: Likewise.
57131         * lib/openat-priv.h: Likewise.
57132         * lib/openat-proc.c: Likewise.
57133         * lib/openat.c: Likewise.
57134         * lib/openat.h: Likewise.
57135         * lib/pagealign_alloc.c: Likewise.
57136         * lib/pagealign_alloc.h: Likewise.
57137         * lib/physmem.c: Likewise.
57138         * lib/physmem.h: Likewise.
57139         * lib/pipe-safer.c: Likewise.
57140         * lib/pipe.c: Likewise.
57141         * lib/pipe.h: Likewise.
57142         * lib/posixtm.c: Likewise.
57143         * lib/posixtm.h: Likewise.
57144         * lib/posixver.c: Likewise.
57145         * lib/printf-frexp.c: Likewise.
57146         * lib/printf-frexp.h: Likewise.
57147         * lib/printf-frexpl.c: Likewise.
57148         * lib/printf-frexpl.h: Likewise.
57149         * lib/printf.c: Likewise.
57150         * lib/progname.c: Likewise.
57151         * lib/progname.h: Likewise.
57152         * lib/progreloc.c: Likewise.
57153         * lib/putenv.c: Likewise.
57154         * lib/quote.c: Likewise.
57155         * lib/quote.h: Likewise.
57156         * lib/quotearg.c: Likewise.
57157         * lib/quotearg.h: Likewise.
57158         * lib/raise.c: Likewise.
57159         * lib/readline.c: Likewise.
57160         * lib/readline.h: Likewise.
57161         * lib/readlink.c: Likewise.
57162         * lib/readtokens.c: Likewise.
57163         * lib/readtokens.h: Likewise.
57164         * lib/readtokens0.c: Likewise.
57165         * lib/readtokens0.h: Likewise.
57166         * lib/readutmp.c: Likewise.
57167         * lib/readutmp.h: Likewise.
57168         * lib/realloc.c: Likewise.
57169         * lib/relocwrapper.c: Likewise.
57170         * lib/rename-dest-slash.c: Likewise.
57171         * lib/rename.c: Likewise.
57172         * lib/rmdir.c: Likewise.
57173         * lib/rpmatch.c: Likewise.
57174         * lib/safe-read.c: Likewise.
57175         * lib/safe-read.h: Likewise.
57176         * lib/safe-write.c: Likewise.
57177         * lib/safe-write.h: Likewise.
57178         * lib/same-inode.h: Likewise.
57179         * lib/same.c: Likewise.
57180         * lib/same.h: Likewise.
57181         * lib/save-cwd.c: Likewise.
57182         * lib/save-cwd.h: Likewise.
57183         * lib/savedir.c: Likewise.
57184         * lib/savedir.h: Likewise.
57185         * lib/savewd.c: Likewise.
57186         * lib/savewd.h: Likewise.
57187         * lib/search.in.h: Likewise.
57188         * lib/setenv.c: Likewise.
57189         * lib/setenv.h: Likewise.
57190         * lib/settime.c: Likewise.
57191         * lib/sh-quote.c: Likewise.
57192         * lib/sh-quote.h: Likewise.
57193         * lib/sig2str.c: Likewise.
57194         * lib/sig2str.h: Likewise.
57195         * lib/signal.in.h: Likewise.
57196         * lib/signbitd.c: Likewise.
57197         * lib/signbitf.c: Likewise.
57198         * lib/signbitl.c: Likewise.
57199         * lib/sigprocmask.c: Likewise.
57200         * lib/sincosl.c: Likewise.
57201         * lib/sleep.c: Likewise.
57202         * lib/sprintf.c: Likewise.
57203         * lib/sqrtl.c: Likewise.
57204         * lib/stat-time.h: Likewise.
57205         * lib/stdio--.h: Likewise.
57206         * lib/stdio-safer.h: Likewise.
57207         * lib/stdlib--.h: Likewise.
57208         * lib/stdlib-safer.h: Likewise.
57209         * lib/stdlib.in.h: Likewise.
57210         * lib/stpcpy.c: Likewise.
57211         * lib/stpncpy.c: Likewise.
57212         * lib/strchrnul.c: Likewise.
57213         * lib/strcspn.c: Likewise.
57214         * lib/strerror.c: Likewise.
57215         * lib/strftime.c: Likewise.
57216         * lib/strftime.h: Likewise.
57217         * lib/striconveh.c: Likewise.
57218         * lib/striconveh.h: Likewise.
57219         * lib/striconveha.c: Likewise.
57220         * lib/striconveha.h: Likewise.
57221         * lib/stripslash.c: Likewise.
57222         * lib/strnlen1.c: Likewise.
57223         * lib/strnlen1.h: Likewise.
57224         * lib/strtod.c: Likewise.
57225         * lib/strtoimax.c: Likewise.
57226         * lib/strtok_r.c: Likewise.
57227         * lib/strtol.c: Likewise.
57228         * lib/strtoll.c: Likewise.
57229         * lib/strtoul.c: Likewise.
57230         * lib/strtoull.c: Likewise.
57231         * lib/sysexits.in.h: Likewise.
57232         * lib/tempname.c: Likewise.
57233         * lib/tempname.h: Likewise.
57234         * lib/timespec.h: Likewise.
57235         * lib/tls.c: Likewise.
57236         * lib/tls.h: Likewise.
57237         * lib/tmpdir.c: Likewise.
57238         * lib/tmpdir.h: Likewise.
57239         * lib/tmpfile-safer.c: Likewise.
57240         * lib/tmpfile.c: Likewise.
57241         * lib/trigl.c: Likewise.
57242         * lib/trigl.h: Likewise.
57243         * lib/trim.c: Likewise.
57244         * lib/trim.h: Likewise.
57245         * lib/trunc.c: Likewise.
57246         * lib/truncf.c: Likewise.
57247         * lib/truncl.c: Likewise.
57248         * lib/tsearch.c: Likewise.
57249         * lib/unicodeio.c: Likewise.
57250         * lib/unicodeio.h: Likewise.
57251         * lib/unistd--.h: Likewise.
57252         * lib/unistd-safer.h: Likewise.
57253         * lib/unistdio/ulc-fprintf.c: Likewise.
57254         * lib/unistdio/ulc-vfprintf.c: Likewise.
57255         * lib/unlinkdir.c: Likewise.
57256         * lib/unlinkdir.h: Likewise.
57257         * lib/unlocked-io.h: Likewise.
57258         * lib/unsetenv.c: Likewise.
57259         * lib/userspec.c: Likewise.
57260         * lib/utime.c: Likewise.
57261         * lib/utimecmp.c: Likewise.
57262         * lib/utimecmp.h: Likewise.
57263         * lib/utimens.c: Likewise.
57264         * lib/verify.h: Likewise.
57265         * lib/verror.c: Likewise.
57266         * lib/verror.h: Likewise.
57267         * lib/version-etc-fsf.c: Likewise.
57268         * lib/version-etc.c: Likewise.
57269         * lib/version-etc.h: Likewise.
57270         * lib/vfprintf.c: Likewise.
57271         * lib/vprintf.c: Likewise.
57272         * lib/vsprintf.c: Likewise.
57273         * lib/w32spawn.h: Likewise.
57274         * lib/wait-process.c: Likewise.
57275         * lib/wait-process.h: Likewise.
57276         * lib/wcwidth.c: Likewise.
57277         * lib/write-any-file.c: Likewise.
57278         * lib/xalloc-die.c: Likewise.
57279         * lib/xalloc.h: Likewise.
57280         * lib/xasprintf.c: Likewise.
57281         * lib/xgetcwd.c: Likewise.
57282         * lib/xgetcwd.h: Likewise.
57283         * lib/xgetdomainname.c: Likewise.
57284         * lib/xgetdomainname.h: Likewise.
57285         * lib/xgethostname.c: Likewise.
57286         * lib/xmalloc.c: Likewise.
57287         * lib/xmalloca.c: Likewise.
57288         * lib/xmalloca.h: Likewise.
57289         * lib/xmemcoll.c: Likewise.
57290         * lib/xnanosleep.c: Likewise.
57291         * lib/xreadlink.c: Likewise.
57292         * lib/xreadlink.h: Likewise.
57293         * lib/xsetenv.c: Likewise.
57294         * lib/xsetenv.h: Likewise.
57295         * lib/xstriconv.c: Likewise.
57296         * lib/xstriconv.h: Likewise.
57297         * lib/xstrndup.c: Likewise.
57298         * lib/xstrndup.h: Likewise.
57299         * lib/xstrtod.c: Likewise.
57300         * lib/xstrtod.h: Likewise.
57301         * lib/xstrtol-error.c: Likewise.
57302         * lib/xstrtol.c: Likewise.
57303         * lib/xstrtol.h: Likewise.
57304         * lib/xtime.h: Likewise.
57305         * lib/xvasprintf.c: Likewise.
57306         * lib/xvasprintf.h: Likewise.
57307         * lib/yesno.c: Likewise.
57308         * lib/yesno.h: Likewise.
57309         * posix-modules: Likewise.
57310         * tests/test-alloca-opt.c: Likewise.
57311         * tests/test-arcfour.c: Likewise.
57312         * tests/test-arctwo.c: Likewise.
57313         * tests/test-argmatch.c: Likewise.
57314         * tests/test-argp-2.sh: Likewise.
57315         * tests/test-argp.c: Likewise.
57316         * tests/test-arpa_inet.c: Likewise.
57317         * tests/test-array_list.c: Likewise.
57318         * tests/test-array_oset.c: Likewise.
57319         * tests/test-atexit.c: Likewise.
57320         * tests/test-avltree_list.c: Likewise.
57321         * tests/test-avltree_oset.c: Likewise.
57322         * tests/test-avltreehash_list.c: Likewise.
57323         * tests/test-base64.c: Likewise.
57324         * tests/test-binary-io.c: Likewise.
57325         * tests/test-byteswap.c: Likewise.
57326         * tests/test-c-ctype.c: Likewise.
57327         * tests/test-c-strcasecmp.c: Likewise.
57328         * tests/test-c-strcasestr.c: Likewise.
57329         * tests/test-c-strncasecmp.c: Likewise.
57330         * tests/test-c-strstr.c: Likewise.
57331         * tests/test-canonicalize-lgpl.c: Likewise.
57332         * tests/test-canonicalize.c: Likewise.
57333         * tests/test-carray_list.c: Likewise.
57334         * tests/test-ceilf.c: Likewise.
57335         * tests/test-ceill.c: Likewise.
57336         * tests/test-count-one-bits.c: Likewise.
57337         * tests/test-crc.c: Likewise.
57338         * tests/test-dirname.c: Likewise.
57339         * tests/test-fbufmode.c: Likewise.
57340         * tests/test-fcntl.c: Likewise.
57341         * tests/test-fflush.c: Likewise.
57342         * tests/test-floorf.c: Likewise.
57343         * tests/test-floorl.c: Likewise.
57344         * tests/test-fopen.c: Likewise.
57345         * tests/test-fprintf-posix.c: Likewise.
57346         * tests/test-fprintf-posix.h: Likewise.
57347         * tests/test-fpurge.c: Likewise.
57348         * tests/test-freadable.c: Likewise.
57349         * tests/test-freadahead.c: Likewise.
57350         * tests/test-freading.c: Likewise.
57351         * tests/test-freopen.c: Likewise.
57352         * tests/test-frexp.c: Likewise.
57353         * tests/test-frexpl.c: Likewise.
57354         * tests/test-fseek.c: Likewise.
57355         * tests/test-fseeko.c: Likewise.
57356         * tests/test-fseterr.c: Likewise.
57357         * tests/test-fstrcmp.c: Likewise.
57358         * tests/test-ftell.c: Likewise.
57359         * tests/test-ftello.c: Likewise.
57360         * tests/test-fwritable.c: Likewise.
57361         * tests/test-fwriting.c: Likewise.
57362         * tests/test-getaddrinfo.c: Likewise.
57363         * tests/test-getpass.c: Likewise.
57364         * tests/test-gettimeofday.c: Likewise.
57365         * tests/test-hmac-md5.c: Likewise.
57366         * tests/test-hmac-sha1.c: Likewise.
57367         * tests/test-iconv.c: Likewise.
57368         * tests/test-iconvme.c: Likewise.
57369         * tests/test-inttypes.c: Likewise.
57370         * tests/test-isnan.c: Likewise.
57371         * tests/test-isnanf.c: Likewise.
57372         * tests/test-isnanl-nolibm.c: Likewise.
57373         * tests/test-isnanl.c: Likewise.
57374         * tests/test-isnanl.h: Likewise.
57375         * tests/test-ldexpl.c: Likewise.
57376         * tests/test-linked_list.c: Likewise.
57377         * tests/test-linkedhash_list.c: Likewise.
57378         * tests/test-locale.c: Likewise.
57379         * tests/test-localename.c: Likewise.
57380         * tests/test-lock.c: Likewise.
57381         * tests/test-lseek.c: Likewise.
57382         * tests/test-malloca.c: Likewise.
57383         * tests/test-math.c: Likewise.
57384         * tests/test-mbscasecmp.c: Likewise.
57385         * tests/test-mbscasestr1.c: Likewise.
57386         * tests/test-mbscasestr2.c: Likewise.
57387         * tests/test-mbscasestr3.c: Likewise.
57388         * tests/test-mbscasestr4.c: Likewise.
57389         * tests/test-mbschr.c: Likewise.
57390         * tests/test-mbscspn.c: Likewise.
57391         * tests/test-mbsncasecmp.c: Likewise.
57392         * tests/test-mbspbrk.c: Likewise.
57393         * tests/test-mbspcasecmp.c: Likewise.
57394         * tests/test-mbsrchr.c: Likewise.
57395         * tests/test-mbsspn.c: Likewise.
57396         * tests/test-mbsstr1.c: Likewise.
57397         * tests/test-mbsstr2.c: Likewise.
57398         * tests/test-mbsstr3.c: Likewise.
57399         * tests/test-md5.c: Likewise.
57400         * tests/test-memmem.c: Likewise.
57401         * tests/test-netinet_in.c: Likewise.
57402         * tests/test-open.c: Likewise.
57403         * tests/test-printf-frexp.c: Likewise.
57404         * tests/test-printf-frexpl.c: Likewise.
57405         * tests/test-printf-posix.c: Likewise.
57406         * tests/test-printf-posix.h: Likewise.
57407         * tests/test-rbtree_list.c: Likewise.
57408         * tests/test-rbtree_oset.c: Likewise.
57409         * tests/test-rbtreehash_list.c: Likewise.
57410         * tests/test-read-file.c: Likewise.
57411         * tests/test-rijndael.c: Likewise.
57412         * tests/test-search.c: Likewise.
57413         * tests/test-signbit.c: Likewise.
57414         * tests/test-sleep.c: Likewise.
57415         * tests/test-snprintf-posix.c: Likewise.
57416         * tests/test-snprintf-posix.h: Likewise.
57417         * tests/test-snprintf.c: Likewise.
57418         * tests/test-sprintf-posix.c: Likewise.
57419         * tests/test-sprintf-posix.h: Likewise.
57420         * tests/test-stat-time.c: Likewise.
57421         * tests/test-stdbool.c: Likewise.
57422         * tests/test-stdint.c: Likewise.
57423         * tests/test-stdio.c: Likewise.
57424         * tests/test-stdlib.c: Likewise.
57425         * tests/test-stpncpy.c: Likewise.
57426         * tests/test-strcasestr.c: Likewise.
57427         * tests/test-striconv.c: Likewise.
57428         * tests/test-striconveh.c: Likewise.
57429         * tests/test-striconveha.c: Likewise.
57430         * tests/test-string.c: Likewise.
57431         * tests/test-sys_select.c: Likewise.
57432         * tests/test-sys_socket.c: Likewise.
57433         * tests/test-sys_stat.c: Likewise.
57434         * tests/test-sys_time.c: Likewise.
57435         * tests/test-sysexits.c: Likewise.
57436         * tests/test-time.c: Likewise.
57437         * tests/test-tls.c: Likewise.
57438         * tests/test-trunc.c: Likewise.
57439         * tests/test-truncf.c: Likewise.
57440         * tests/test-truncl.c: Likewise.
57441         * tests/test-unistd.c: Likewise.
57442         * tests/test-vasnprintf-posix.c: Likewise.
57443         * tests/test-vasnprintf-posix2.c: Likewise.
57444         * tests/test-vasnprintf.c: Likewise.
57445         * tests/test-vasprintf-posix.c: Likewise.
57446         * tests/test-vasprintf.c: Likewise.
57447         * tests/test-verify.c: Likewise.
57448         * tests/test-vfprintf-posix.c: Likewise.
57449         * tests/test-vprintf-posix.c: Likewise.
57450         * tests/test-vsnprintf-posix.c: Likewise.
57451         * tests/test-vsnprintf.c: Likewise.
57452         * tests/test-vsprintf-posix.c: Likewise.
57453         * tests/test-wchar.c: Likewise.
57454         * tests/test-wctype.c: Likewise.
57455         * tests/test-wcwidth.c: Likewise.
57456         * tests/test-xstrtol.c: Likewise.
57457         * tests/test-xvasprintf.c: Likewise.
57458         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
57459         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
57460         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57461         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57462         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57463         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
57464         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57465         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57466         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57467         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
57468         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57469         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57470         * tests/uniname/test-uninames.c: Likewise.
57471         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
57472         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
57473         * tests/unistdio/test-u16-printf1.h: Likewise.
57474         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
57475         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
57476         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
57477         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
57478         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
57479         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
57480         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
57481         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
57482         * tests/unistdio/test-u32-printf1.h: Likewise.
57483         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
57484         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
57485         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
57486         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
57487         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
57488         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
57489         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
57490         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
57491         * tests/unistdio/test-u8-printf1.h: Likewise.
57492         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
57493         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
57494         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
57495         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
57496         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
57497         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
57498         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
57499         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
57500         * tests/unistdio/test-ulc-printf1.h: Likewise.
57501         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
57502         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
57503         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
57504         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
57505         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
57506         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
57507         * tests/uniwidth/test-u16-strwidth.c: Likewise.
57508         * tests/uniwidth/test-u16-width.c: Likewise.
57509         * tests/uniwidth/test-u32-strwidth.c: Likewise.
57510         * tests/uniwidth/test-u32-width.c: Likewise.
57511         * tests/uniwidth/test-u8-strwidth.c: Likewise.
57512         * tests/uniwidth/test-u8-width.c: Likewise.
57513         * tests/uniwidth/test-uc_width.c: Likewise.
57514         * config/srclist-update: Likewise.
57515         (fixlicense): Update to GPLv3+.
57516
57517         Change copyright notice from LGPLv2.1+ to LGPLv3+.
57518         * tests/test-tsearch.c: Change copyright notice.
57519
57520         Change copyright notice from LGPLv2.0+ to LGPLv3+.
57521         * lib/c-strcaseeq.h: Change copyright notice.
57522         * lib/streq.h: Likewise.
57523         * lib/uniconv.h: Likewise.
57524         * lib/uniconv/u-conv-from-enc.h: Likewise.
57525         * lib/uniconv/u-conv-to-enc.h: Likewise.
57526         * lib/uniconv/u-strconv-from-enc.h: Likewise.
57527         * lib/uniconv/u-strconv-to-enc.h: Likewise.
57528         * lib/uniconv/u16-conv-from-enc.c: Likewise.
57529         * lib/uniconv/u16-conv-to-enc.c: Likewise.
57530         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
57531         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
57532         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
57533         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
57534         * lib/uniconv/u32-conv-from-enc.c: Likewise.
57535         * lib/uniconv/u32-conv-to-enc.c: Likewise.
57536         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
57537         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
57538         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
57539         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
57540         * lib/uniconv/u8-conv-from-enc.c: Likewise.
57541         * lib/uniconv/u8-conv-to-enc.c: Likewise.
57542         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
57543         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
57544         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
57545         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
57546         * lib/uniname.h: Likewise.
57547         * lib/uniname/uniname.c: Likewise.
57548         * lib/unistdio.h: Likewise.
57549         * lib/unistdio/u-asnprintf.h: Likewise.
57550         * lib/unistdio/u-asprintf.h: Likewise.
57551         * lib/unistdio/u-printf-args.c: Likewise.
57552         * lib/unistdio/u-printf-args.h: Likewise.
57553         * lib/unistdio/u-printf-parse.h: Likewise.
57554         * lib/unistdio/u-snprintf.h: Likewise.
57555         * lib/unistdio/u-sprintf.h: Likewise.
57556         * lib/unistdio/u-vasprintf.h: Likewise.
57557         * lib/unistdio/u-vsnprintf.h: Likewise.
57558         * lib/unistdio/u-vsprintf.h: Likewise.
57559         * lib/unistdio/u16-asnprintf.c: Likewise.
57560         * lib/unistdio/u16-asprintf.c: Likewise.
57561         * lib/unistdio/u16-printf-parse.c: Likewise.
57562         * lib/unistdio/u16-snprintf.c: Likewise.
57563         * lib/unistdio/u16-sprintf.c: Likewise.
57564         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
57565         * lib/unistdio/u16-u16-asprintf.c: Likewise.
57566         * lib/unistdio/u16-u16-snprintf.c: Likewise.
57567         * lib/unistdio/u16-u16-sprintf.c: Likewise.
57568         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
57569         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
57570         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
57571         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
57572         * lib/unistdio/u16-vasnprintf.c: Likewise.
57573         * lib/unistdio/u16-vasprintf.c: Likewise.
57574         * lib/unistdio/u16-vsnprintf.c: Likewise.
57575         * lib/unistdio/u16-vsprintf.c: Likewise.
57576         * lib/unistdio/u32-asnprintf.c: Likewise.
57577         * lib/unistdio/u32-asprintf.c: Likewise.
57578         * lib/unistdio/u32-printf-parse.c: Likewise.
57579         * lib/unistdio/u32-snprintf.c: Likewise.
57580         * lib/unistdio/u32-sprintf.c: Likewise.
57581         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
57582         * lib/unistdio/u32-u32-asprintf.c: Likewise.
57583         * lib/unistdio/u32-u32-snprintf.c: Likewise.
57584         * lib/unistdio/u32-u32-sprintf.c: Likewise.
57585         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
57586         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
57587         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
57588         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
57589         * lib/unistdio/u32-vasnprintf.c: Likewise.
57590         * lib/unistdio/u32-vasprintf.c: Likewise.
57591         * lib/unistdio/u32-vsnprintf.c: Likewise.
57592         * lib/unistdio/u32-vsprintf.c: Likewise.
57593         * lib/unistdio/u8-asnprintf.c: Likewise.
57594         * lib/unistdio/u8-asprintf.c: Likewise.
57595         * lib/unistdio/u8-printf-parse.c: Likewise.
57596         * lib/unistdio/u8-snprintf.c: Likewise.
57597         * lib/unistdio/u8-sprintf.c: Likewise.
57598         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
57599         * lib/unistdio/u8-u8-asprintf.c: Likewise.
57600         * lib/unistdio/u8-u8-snprintf.c: Likewise.
57601         * lib/unistdio/u8-u8-sprintf.c: Likewise.
57602         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
57603         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
57604         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
57605         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
57606         * lib/unistdio/u8-vasnprintf.c: Likewise.
57607         * lib/unistdio/u8-vasprintf.c: Likewise.
57608         * lib/unistdio/u8-vsnprintf.c: Likewise.
57609         * lib/unistdio/u8-vsprintf.c: Likewise.
57610         * lib/unistdio/ulc-asnprintf.c: Likewise.
57611         * lib/unistdio/ulc-asprintf.c: Likewise.
57612         * lib/unistdio/ulc-printf-parse.c: Likewise.
57613         * lib/unistdio/ulc-snprintf.c: Likewise.
57614         * lib/unistdio/ulc-sprintf.c: Likewise.
57615         * lib/unistdio/ulc-vasnprintf.c: Likewise.
57616         * lib/unistdio/ulc-vasprintf.c: Likewise.
57617         * lib/unistdio/ulc-vsnprintf.c: Likewise.
57618         * lib/unistdio/ulc-vsprintf.c: Likewise.
57619         * lib/unistr.h: Likewise.
57620         * lib/unistr/u-cpy-alloc.h: Likewise.
57621         * lib/unistr/u-cpy.h: Likewise.
57622         * lib/unistr/u-endswith.h: Likewise.
57623         * lib/unistr/u-move.h: Likewise.
57624         * lib/unistr/u-set.h: Likewise.
57625         * lib/unistr/u-startswith.h: Likewise.
57626         * lib/unistr/u-stpcpy.h: Likewise.
57627         * lib/unistr/u-stpncpy.h: Likewise.
57628         * lib/unistr/u-strcat.h: Likewise.
57629         * lib/unistr/u-strcpy.h: Likewise.
57630         * lib/unistr/u-strcspn.h: Likewise.
57631         * lib/unistr/u-strdup.h: Likewise.
57632         * lib/unistr/u-strlen.h: Likewise.
57633         * lib/unistr/u-strncat.h: Likewise.
57634         * lib/unistr/u-strncpy.h: Likewise.
57635         * lib/unistr/u-strnlen.h: Likewise.
57636         * lib/unistr/u-strpbrk.h: Likewise.
57637         * lib/unistr/u-strspn.h: Likewise.
57638         * lib/unistr/u-strstr.h: Likewise.
57639         * lib/unistr/u-strtok.h: Likewise.
57640         * lib/unistr/u16-check.c: Likewise.
57641         * lib/unistr/u16-chr.c: Likewise.
57642         * lib/unistr/u16-cmp.c: Likewise.
57643         * lib/unistr/u16-cpy-alloc.c: Likewise.
57644         * lib/unistr/u16-cpy.c: Likewise.
57645         * lib/unistr/u16-endswith.c: Likewise.
57646         * lib/unistr/u16-mblen.c: Likewise.
57647         * lib/unistr/u16-mbsnlen.c: Likewise.
57648         * lib/unistr/u16-mbtouc-aux.c: Likewise.
57649         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
57650         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
57651         * lib/unistr/u16-mbtouc.c: Likewise.
57652         * lib/unistr/u16-mbtoucr.c: Likewise.
57653         * lib/unistr/u16-move.c: Likewise.
57654         * lib/unistr/u16-next.c: Likewise.
57655         * lib/unistr/u16-prev.c: Likewise.
57656         * lib/unistr/u16-set.c: Likewise.
57657         * lib/unistr/u16-startswith.c: Likewise.
57658         * lib/unistr/u16-stpcpy.c: Likewise.
57659         * lib/unistr/u16-stpncpy.c: Likewise.
57660         * lib/unistr/u16-strcat.c: Likewise.
57661         * lib/unistr/u16-strchr.c: Likewise.
57662         * lib/unistr/u16-strcmp.c: Likewise.
57663         * lib/unistr/u16-strcpy.c: Likewise.
57664         * lib/unistr/u16-strcspn.c: Likewise.
57665         * lib/unistr/u16-strdup.c: Likewise.
57666         * lib/unistr/u16-strlen.c: Likewise.
57667         * lib/unistr/u16-strmblen.c: Likewise.
57668         * lib/unistr/u16-strmbtouc.c: Likewise.
57669         * lib/unistr/u16-strncat.c: Likewise.
57670         * lib/unistr/u16-strncmp.c: Likewise.
57671         * lib/unistr/u16-strncpy.c: Likewise.
57672         * lib/unistr/u16-strnlen.c: Likewise.
57673         * lib/unistr/u16-strpbrk.c: Likewise.
57674         * lib/unistr/u16-strrchr.c: Likewise.
57675         * lib/unistr/u16-strspn.c: Likewise.
57676         * lib/unistr/u16-strstr.c: Likewise.
57677         * lib/unistr/u16-strtok.c: Likewise.
57678         * lib/unistr/u16-to-u32.c: Likewise.
57679         * lib/unistr/u16-to-u8.c: Likewise.
57680         * lib/unistr/u16-uctomb-aux.c: Likewise.
57681         * lib/unistr/u16-uctomb.c: Likewise.
57682         * lib/unistr/u32-check.c: Likewise.
57683         * lib/unistr/u32-chr.c: Likewise.
57684         * lib/unistr/u32-cmp.c: Likewise.
57685         * lib/unistr/u32-cpy-alloc.c: Likewise.
57686         * lib/unistr/u32-cpy.c: Likewise.
57687         * lib/unistr/u32-endswith.c: Likewise.
57688         * lib/unistr/u32-mblen.c: Likewise.
57689         * lib/unistr/u32-mbsnlen.c: Likewise.
57690         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
57691         * lib/unistr/u32-mbtouc.c: Likewise.
57692         * lib/unistr/u32-mbtoucr.c: Likewise.
57693         * lib/unistr/u32-move.c: Likewise.
57694         * lib/unistr/u32-next.c: Likewise.
57695         * lib/unistr/u32-prev.c: Likewise.
57696         * lib/unistr/u32-set.c: Likewise.
57697         * lib/unistr/u32-startswith.c: Likewise.
57698         * lib/unistr/u32-stpcpy.c: Likewise.
57699         * lib/unistr/u32-stpncpy.c: Likewise.
57700         * lib/unistr/u32-strcat.c: Likewise.
57701         * lib/unistr/u32-strchr.c: Likewise.
57702         * lib/unistr/u32-strcmp.c: Likewise.
57703         * lib/unistr/u32-strcpy.c: Likewise.
57704         * lib/unistr/u32-strcspn.c: Likewise.
57705         * lib/unistr/u32-strdup.c: Likewise.
57706         * lib/unistr/u32-strlen.c: Likewise.
57707         * lib/unistr/u32-strmblen.c: Likewise.
57708         * lib/unistr/u32-strmbtouc.c: Likewise.
57709         * lib/unistr/u32-strncat.c: Likewise.
57710         * lib/unistr/u32-strncmp.c: Likewise.
57711         * lib/unistr/u32-strncpy.c: Likewise.
57712         * lib/unistr/u32-strnlen.c: Likewise.
57713         * lib/unistr/u32-strpbrk.c: Likewise.
57714         * lib/unistr/u32-strrchr.c: Likewise.
57715         * lib/unistr/u32-strspn.c: Likewise.
57716         * lib/unistr/u32-strstr.c: Likewise.
57717         * lib/unistr/u32-strtok.c: Likewise.
57718         * lib/unistr/u32-to-u16.c: Likewise.
57719         * lib/unistr/u32-to-u8.c: Likewise.
57720         * lib/unistr/u32-uctomb.c: Likewise.
57721         * lib/unistr/u8-check.c: Likewise.
57722         * lib/unistr/u8-chr.c: Likewise.
57723         * lib/unistr/u8-cmp.c: Likewise.
57724         * lib/unistr/u8-cpy-alloc.c: Likewise.
57725         * lib/unistr/u8-cpy.c: Likewise.
57726         * lib/unistr/u8-endswith.c: Likewise.
57727         * lib/unistr/u8-mblen.c: Likewise.
57728         * lib/unistr/u8-mbsnlen.c: Likewise.
57729         * lib/unistr/u8-mbtouc-aux.c: Likewise.
57730         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
57731         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
57732         * lib/unistr/u8-mbtouc.c: Likewise.
57733         * lib/unistr/u8-mbtoucr.c: Likewise.
57734         * lib/unistr/u8-move.c: Likewise.
57735         * lib/unistr/u8-next.c: Likewise.
57736         * lib/unistr/u8-prev.c: Likewise.
57737         * lib/unistr/u8-set.c: Likewise.
57738         * lib/unistr/u8-startswith.c: Likewise.
57739         * lib/unistr/u8-stpcpy.c: Likewise.
57740         * lib/unistr/u8-stpncpy.c: Likewise.
57741         * lib/unistr/u8-strcat.c: Likewise.
57742         * lib/unistr/u8-strchr.c: Likewise.
57743         * lib/unistr/u8-strcmp.c: Likewise.
57744         * lib/unistr/u8-strcpy.c: Likewise.
57745         * lib/unistr/u8-strcspn.c: Likewise.
57746         * lib/unistr/u8-strdup.c: Likewise.
57747         * lib/unistr/u8-strlen.c: Likewise.
57748         * lib/unistr/u8-strmblen.c: Likewise.
57749         * lib/unistr/u8-strmbtouc.c: Likewise.
57750         * lib/unistr/u8-strncat.c: Likewise.
57751         * lib/unistr/u8-strncmp.c: Likewise.
57752         * lib/unistr/u8-strncpy.c: Likewise.
57753         * lib/unistr/u8-strnlen.c: Likewise.
57754         * lib/unistr/u8-strpbrk.c: Likewise.
57755         * lib/unistr/u8-strrchr.c: Likewise.
57756         * lib/unistr/u8-strspn.c: Likewise.
57757         * lib/unistr/u8-strstr.c: Likewise.
57758         * lib/unistr/u8-strtok.c: Likewise.
57759         * lib/unistr/u8-to-u16.c: Likewise.
57760         * lib/unistr/u8-to-u32.c: Likewise.
57761         * lib/unistr/u8-uctomb-aux.c: Likewise.
57762         * lib/unistr/u8-uctomb.c: Likewise.
57763         * lib/unitypes.h: Likewise.
57764         * lib/uniwidth.h: Likewise.
57765         * lib/uniwidth/cjk.h: Likewise.
57766         * lib/uniwidth/u16-strwidth.c: Likewise.
57767         * lib/uniwidth/u16-width.c: Likewise.
57768         * lib/uniwidth/u32-strwidth.c: Likewise.
57769         * lib/uniwidth/u32-width.c: Likewise.
57770         * lib/uniwidth/u8-strwidth.c: Likewise.
57771         * lib/uniwidth/u8-width.c: Likewise.
57772         * lib/uniwidth/width.c: Likewise.
57773
57774 2007-10-07  Bruno Haible  <bruno@clisp.org>
57775
57776         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
57777         The file is still under LGPL (see modules/inttypes).
57778
57779 2007-10-06  Bruno Haible  <bruno@clisp.org>
57780
57781         * modules/trunc (Dependencies): Add 'extensions'.
57782         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
57783         Reported by Ben Pfaff <blp@gnu.org>.
57784
57785 2007-10-06  Bruno Haible  <bruno@clisp.org>
57786
57787         * modules/freopen-tests: New file.
57788         * tests/test-freopen.c: New file.
57789
57790         * modules/fopen-tests: New file.
57791         * tests/test-fopen.c: New file.
57792
57793         * modules/fopen: New file.
57794         * lib/fopen.c: New file.
57795         * m4/fopen.m4: New file.
57796         * modules/freopen: New file.
57797         * lib/freopen.c: New file.
57798         * m4/freopen.m4: New file.
57799         * lib/stdio.in.h (fopen, freopen): New declarations.
57800         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
57801         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57802         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
57803         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57804         * doc/functions/fopen.texi: Mention the 'fopen' module.
57805         * doc/functions/freopen.texi: Mention the 'freopen' module.
57806
57807 2007-10-06  Bruno Haible  <bruno@clisp.org>
57808
57809         * modules/open-tests: New file.
57810         * tests/test-open.c: New file.
57811
57812         * modules/open: New file.
57813         * lib/open.c: New file.
57814         * m4/open.m4: New file.
57815         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
57816         lib/open.c does.
57817         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
57818         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
57819         macros.
57820         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
57821         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
57822         REPLACE_OPEN.
57823         * doc/functions/open.texi: Mention the 'open' module.
57824
57825 2007-10-04  Bruno Haible  <bruno@clisp.org>
57826
57827         * modules/ceill-tests: New file.
57828         * tests/test-ceill.c: New file.
57829
57830         * modules/ceill: New file.
57831         * lib/ceill.c: Replace entire file.
57832         * m4/ceill.m4: New file.
57833         * lib/math.in.h (ceill): Replace declaration.
57834         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
57835         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
57836         * doc/functions/ceill.texi: Mention the 'ceill' module.
57837         * modules/mathl (Files): Remove lib/ceill.c.
57838         (Depends-on): Add ceill.
57839
57840 2007-10-04  Bruno Haible  <bruno@clisp.org>
57841
57842         * modules/ceilf-tests: New file.
57843         * tests/test-ceilf.c: New file.
57844
57845         * modules/ceilf: New file.
57846         * lib/ceil.c: New file.
57847         * lib/ceilf.c: New file.
57848         * m4/ceilf.m4: New file.
57849         * lib/math.in.h (ceilf): New declaration.
57850         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
57851         HAVE_DECL_CEILF.
57852         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
57853         HAVE_DECL_CEILF.
57854         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
57855
57856 2007-10-04  Bruno Haible  <bruno@clisp.org>
57857
57858         * modules/floorl-tests: New file.
57859         * tests/test-floorl.c: New file.
57860
57861         * modules/floorl: New file.
57862         * lib/floorl.c: Replace entire file.
57863         * m4/floorl.m4: New file.
57864         * lib/math.in.h (floorl): Replace declaration.
57865         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
57866         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
57867         * doc/functions/floorl.texi: Mention the 'floorl' module.
57868         * modules/mathl (Files): Remove lib/floorl.c.
57869         (Depends-on): Add floorl.
57870
57871 2007-10-04  Bruno Haible  <bruno@clisp.org>
57872
57873         * modules/floorf-tests: New file.
57874         * tests/test-floorf.c: New file.
57875
57876         * modules/floorf: New file.
57877         * lib/floor.c: New file.
57878         * lib/floorf.c: New file.
57879         * m4/floorf.m4: New file.
57880         * lib/math.in.h (floorf): New declaration.
57881         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
57882         HAVE_DECL_FLOORF.
57883         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
57884         HAVE_DECL_FLOORF.
57885         * doc/functions/floorf.texi: Mention the 'floorf' module.
57886
57887 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
57888             Bruno Haible  <bruno@clisp.org>
57889
57890         Advertise for the Git server instead of the CVS server.
57891         * doc/gnulib-intro.texi (Steady Development): Mention the Git
57892         repository instead of the CVS one.
57893         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
57894         about all VCS systems generically.
57895         * doc/gnulib.texi (Introduction): Capitalize `Git'.
57896
57897 2007-10-04  Bruno Haible  <bruno@clisp.org>
57898
57899         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
57900         means.
57901         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
57902
57903 2007-10-04  Bruno Haible  <bruno@clisp.org>
57904
57905         * modules/truncl-tests: New file.
57906         * tests/test-truncl.c: New file.
57907
57908         * modules/truncl: New file.
57909         * lib/truncl.c: New file.
57910         * m4/truncl.m4: New file.
57911         * lib/math.in.h (truncl): New declaration.
57912         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
57913         HAVE_DECL_TRUNCL.
57914         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
57915         HAVE_DECL_TRUNCL.
57916         * doc/functions/truncl.texi: Mention the 'truncl' module.
57917
57918 2007-10-04  Bruno Haible  <bruno@clisp.org>
57919
57920         * modules/truncf-tests: New file.
57921         * tests/test-truncf.c: New file.
57922
57923         * modules/truncf: New file.
57924         * lib/trunc.c: Make paramerizable through USE_* macros.
57925         * lib/truncf.c: New file.
57926         * m4/truncf.m4: New file.
57927         * lib/math.in.h (truncf): New declaration.
57928         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
57929         HAVE_DECL_TRUNCF.
57930         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
57931         HAVE_DECL_TRUNCF.
57932         * doc/functions/truncf.texi: Mention the 'truncf' module.
57933
57934 2007-10-03  Bruno Haible  <bruno@clisp.org>
57935
57936         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57937         augmentation also for tests modules.
57938         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
57939         * modules/atexit-tests (Makefile.am): Likewise.
57940         * modules/binary-io-tests (Makefile.am): Likewise.
57941         * modules/c-strcase-tests (Makefile.am): Likewise.
57942         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
57943         * modules/canonicalize-tests (Makefile.am): Likewise.
57944         * modules/closein-tests (Makefile.am): Likewise.
57945         * modules/fprintf-posix-tests (Makefile.am): Likewise.
57946         * modules/freadahead-tests (Makefile.am): Likewise.
57947         * modules/fseek-tests (Makefile.am): Likewise.
57948         * modules/fseeko-tests (Makefile.am): Likewise.
57949         * modules/ftell-tests (Makefile.am): Likewise.
57950         * modules/ftello-tests (Makefile.am): Likewise.
57951         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
57952         * modules/isnanl-tests (Makefile.am): Likewise.
57953         * modules/lseek-tests (Makefile.am): Likewise.
57954         * modules/mbscasecmp-tests (Makefile.am): Likewise.
57955         * modules/mbscasestr-tests (Makefile.am): Likewise.
57956         * modules/mbschr-tests (Makefile.am): Likewise.
57957         * modules/mbscspn-tests (Makefile.am): Likewise.
57958         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
57959         * modules/mbspbrk-tests (Makefile.am): Likewise.
57960         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
57961         * modules/mbsrchr-tests (Makefile.am): Likewise.
57962         * modules/mbsspn-tests (Makefile.am): Likewise.
57963         * modules/mbsstr-tests (Makefile.am): Likewise.
57964         * modules/printf-posix-tests (Makefile.am): Likewise.
57965         * modules/snprintf-posix-tests (Makefile.am): Likewise.
57966         * modules/sprintf-posix-tests (Makefile.am): Likewise.
57967         * modules/tsearch-tests (Makefile.am): Likewise.
57968         * modules/uniname/uniname-tests (Makefile.am): Likewise.
57969         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
57970         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
57971         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
57972         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
57973         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
57974         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
57975         * modules/vprintf-posix-tests (Makefile.am): Likewise.
57976         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
57977         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
57978         * modules/xstrtoimax-tests (Makefile.am): Likewise.
57979         * modules/xstrtol-tests (Makefile.am): Likewise.
57980         * modules/xstrtoumax-tests (Makefile.am): Likewise.
57981         * modules/yesno-tests (Makefile.am): Likewise.
57982
57983 2007-10-03  Bruno Haible  <bruno@clisp.org>
57984
57985         * modules/trunc-tests: New file.
57986         * tests/test-trunc.c: New file.
57987
57988         * modules/trunc: New file.
57989         * lib/trunc.c: New file.
57990         * m4/trunc.m4: New file.
57991         * lib/math.in.h (trunc): New declaration.
57992         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
57993         HAVE_DECL_TRUNC.
57994         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
57995         HAVE_DECL_TRUNC.
57996         * doc/functions/trunc.texi: Mention the 'trunc' module.
57997
57998 2007-10-03  Bruno Haible  <bruno@clisp.org>
57999
58000         * tests/test-fpending.c: New file, mostly copied
58001         from coreutils/lib/t-fpending.c.
58002         * modules/fpending-tests: New file.
58003
58004 2007-10-03  Bruno Haible  <bruno@clisp.org>
58005
58006         Port the stdio extensions to QNX (untested).
58007         * lib/fseterr.c (fseterr): Add support for QNX.
58008         * lib/fbufmode.c (fbufmode): Likewise.
58009         * lib/freadable.c (freadable): Likewise.
58010         * lib/fwritable.c (fwritable): Likewise.
58011         * lib/freading.c (freading): Likewise.
58012         * lib/fwriting.c (fwriting): Likewise.
58013         * lib/freadahead.c (freadahed): Likewise.
58014         * lib/fpurge.c (fpurge): Likewise.
58015         * lib/fseeko.c (rpl_fseeko): Likewise.
58016
58017 2007-10-03  Bruno Haible  <bruno@clisp.org>
58018             Jim Meyering  <jim@meyering.net>
58019             Eric Blake  <ebb9@byu.net>
58020
58021         * doc/relocatable.texi: Use @command instead of @program.
58022
58023 2007-10-02  Jim Meyering  <jim@meyering.net>
58024
58025         Perform one more "_.h" -> ".in.h" substitution.
58026         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
58027         instead of unistd_.h here, too.
58028
58029 2007-10-01  Bruno Haible  <bruno@clisp.org>
58030
58031         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
58032         Needed for the alloca-opt module.
58033
58034 2007-09-30  Bruno Haible  <bruno@clisp.org>
58035
58036         * lib/alloca.in.h: Renamed from lib/alloca_.h.
58037         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
58038         alloca_.h.
58039         * lib/argz.in.h: Renamed from lib/argz_.h.
58040         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
58041         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
58042         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
58043         byteswap_.h.
58044         * lib/dirent.in.h: Renamed from lib/dirent_.h.
58045         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
58046         dirent_.h.
58047         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
58048         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
58049         fcntl_.h.
58050         * lib/float.in.h: Renamed from lib/float_.h.
58051         * modules/float (Files, Makefile.am): Use float.in.h instead of
58052         float_.h.
58053         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
58054         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
58055         fnmatch_.h.
58056         * lib/getopt.in.h: Renamed from lib/getopt_.h.
58057         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
58058         getopt_.h.
58059         * lib/glob.in.h: Renamed from lib/glob_.h.
58060         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
58061         * lib/iconv.in.h: Renamed from lib/iconv_.h.
58062         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
58063         iconv_.h.
58064         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
58065         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
58066         inttypes_.h.
58067         * lib/locale.in.h: Renamed from lib/locale_.h.
58068         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
58069         locale_.h.
58070         * lib/math.in.h: Renamed from lib/math_.h.
58071         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
58072         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
58073         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
58074         of netinet_in_.h. Add dependency.
58075         * lib/poll.in.h: Renamed from lib/poll_.h.
58076         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
58077         * lib/search.in.h: Renamed from lib/search_.h.
58078         * modules/search (Files, Makefile.am): Use search.in.h instead of
58079         search_.h.
58080         * lib/signal.in.h: Renamed from lib/signal_.h.
58081         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
58082         _signal.h.
58083         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
58084         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
58085         stdbool_.h.
58086         * lib/stdint.in.h: Renamed from lib/stdint_.h.
58087         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
58088         stdint_.h.
58089         * lib/stdio.in.h: Renamed from lib/stdio_.h.
58090         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
58091         stdio_.h.
58092         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
58093         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
58094         stdlib_.h.
58095         * lib/string.in.h: Renamed from lib/string_.h.
58096         * modules/string (Files, Makefile.am): Use string.in.h instead of
58097         string_.h.
58098         * doc/gnulib-tool.texi (Initial import): Update.
58099         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
58100         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
58101         of sys_select_.h. Add dependency.
58102         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
58103         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
58104         of sys_socket_.h.
58105         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
58106         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
58107         sys_stat_.h.
58108         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
58109         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
58110         sys_time_.h.
58111         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
58112         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
58113         sysexits_.h.
58114         * lib/time.in.h: Renamed from lib/time_.h.
58115         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
58116         * lib/unistd.in.h: Renamed from lib/unistd_.h.
58117         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
58118         unistd_.h.
58119         * lib/wchar.in.h: Renamed from lib/wchar_.h.
58120         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
58121         wchar_.h.
58122         * lib/wctype.in.h: Renamed from lib/wctype_.h.
58123         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
58124         wctype_.h.
58125         * build-aux/bootstrap (slurp): Update.
58126         * lib/.cppi-disable: Update.
58127
58128 2007-09-30  Bruno Haible  <bruno@clisp.org>
58129
58130         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
58131         Needed on BeOS.
58132
58133 2007-09-30  Bruno Haible  <bruno@clisp.org>
58134
58135         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
58136
58137 2007-09-29  Bruno Haible  <bruno@clisp.org>
58138
58139         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
58140
58141 2007-09-29  Bruno Haible  <bruno@clisp.org>
58142
58143         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
58144         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
58145         * build-aux/install-reloc: Compile also areadlink.c.
58146         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
58147
58148 2007-09-29  Bruno Haible  <bruno@clisp.org>
58149
58150         * gnulib-tool (func_emit_initmacro_done): Indentation.
58151
58152 2007-09-29  Bruno Haible  <bruno@clisp.org>
58153
58154         * README: Add CVS checkout update instructions.
58155         Info from Bob Proulx <bob@proulx.com>.
58156
58157 2007-09-28  Eric Blake  <ebb9@byu.net>
58158
58159         Provide move-if-change.
58160         * build-aux/move-if-change: New file, based on best practice
58161         rather than any canonical upstream location.
58162
58163 2007-09-28  Jim Meyering  <jim@meyering.net>
58164
58165         Fix canonicalize loop-detection corner case.
58166         Do not attempt to stat the symlink values stored via seen_triple.
58167         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
58168         on linux-2.6.18, (but not 2.6.22).
58169         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
58170         triple_compare.  The former compares dev,ino,filename, while the latter
58171         would actually stat dirname(filename) when dev and ino were equal.
58172         * lib/hash-triple.c: Install <string.h>.
58173         (STREQ): Define.
58174         (triple_compare_ino_str): New function.
58175         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
58176
58177 2007-09-28  Eric Blake  <ebb9@byu.net>
58178
58179         Enforce that AC_REPLACE_FUNCS files exist.
58180         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
58181         override check for typos.
58182
58183         Fix test-closein on Solaris 10.
58184         * tests/test-closein.c (main): Don't assume stdin can be inherited
58185         closed on all systems.
58186         * tests/test-closein.sh: Likewise.
58187         Reported by Piotr Tarnowski.
58188
58189 2007-09-28  Jim Meyering  <jim@meyering.net>
58190
58191         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
58192
58193 2007-09-27  Jim Meyering  <jim@meyering.net>
58194
58195         canonicalize: Avoid a false-positive cycle failure.
58196         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
58197         Sort.  Remove cycle-check.
58198         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
58199         not cycle-check.h.
58200         (seen_triple): New function.
58201         (canonicalize_filename_mode): Use it instead of cycle-check.
58202         * tests/test-canonicalize.c: Add a test for this bug.
58203         * tests/test-canonicalize.sh: Set up and run the test.
58204
58205         New module, file-set, from coreutils.
58206         * modules/file-set: Define it.
58207         * lib/file-set.c, lib/file-set.h: Implement.
58208
58209         New module, hash-triple, from coreutils.
58210         * modules/hash-triple: Define it.
58211         * lib/hash-triple.c, lib/hash-triple.h: Implement.
58212
58213 2007-09-25  Eric Blake  <ebb9@byu.net>
58214
58215         Fix strerror on Interix.
58216         * lib/string_.h (strerror): Declare replacement.
58217         * doc/functions/strerror.texi (strerror): Document the Interix
58218         shortcoming.
58219         * modules/string (Makefile.am): Support new hooks.
58220         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
58221         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
58222         gl_FUNC_STRERROR_SEPARATE.
58223         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
58224         * lib/strerror.c (rpl_strerror): Provide replacement.
58225         * modules/strerror (Depends-on): Add string.
58226         (configure.ac): Detect use of module.
58227         * tests/test-strerror.c: New file.
58228         * modules/strerror-tests: New test module.
58229         * modules/argp (Depends-on): Add strerror.
58230         * modules/error (Depends-on): Likewise.
58231         Reported by Martin Koeppe.
58232
58233 2007-09-24  Bruno Haible  <bruno@clisp.org>
58234
58235         * README: Update git instructions.
58236
58237 2007-09-24  Eric Blake  <ebb9@byu.net>
58238
58239         Revert fpending breakage from 2007-09-08.
58240         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
58241         __fpending.c.
58242
58243 2007-09-24  Jim Meyering  <jim@meyering.net>
58244
58245         filenamecat.c: Add a test.
58246         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
58247         showing how the function works when DIR is the empty string.
58248
58249 2007-09-21  Simon Josefsson  <simon@josefsson.org>
58250
58251         * tests/test-canonicalize.sh: Turn on executable bit.
58252
58253 2007-09-19  Eric Blake  <ebb9@byu.net>
58254
58255         * README: Update CVS instructions.
58256
58257 2007-09-18  Bruno Haible  <bruno@clisp.org>
58258
58259         * modules/areadlink: New file.
58260         * lib/areadlink.h (areadlink): New declaration.
58261         * lib/areadlink.c: New file, based on lib/xreadlink.c.
58262
58263 2007-09-17  Jim Meyering  <jim@meyering.net>
58264
58265         * lib/savewd.c (ESTALE) [!defined]: Define.
58266         Reported to be required on Interix by Martin Koeppe.
58267
58268 2007-09-17  Bruno Haible  <bruno@clisp.org>
58269
58270         * gnulib-tool (func_version): Use $version.
58271
58272 2007-09-16  Bruno Haible  <bruno@clisp.org>
58273
58274         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
58275         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
58276         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
58277         Reported by Greg Schafer <gschafer@zip.com.au>.
58278
58279 2007-09-15  Bruno Haible  <bruno@clisp.org>
58280
58281         * gnulib-tool (sed): Try a little harder to make bash understand the
58282         alias.
58283         Reported by Bruce Korb <bruce.korb@gmail.com>.
58284
58285 2007-09-13  Eric Blake  <ebb9@byu.net>
58286
58287         * ChangeLog: Remove conflict markers.
58288
58289 2007-09-13  Simon Josefsson  <simon@josefsson.org>
58290
58291         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
58292         Reported by Bruno Haible <bruno@clisp.org>.
58293
58294 2007-09-12  Bruno Haible  <bruno@clisp.org>
58295
58296         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
58297         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
58298         is not defined.
58299
58300 2007-09-12  Eric Blake  <ebb9@byu.net>
58301
58302         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
58303         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
58304         Autoconf definition.
58305         * modules/euidaccess (Depends-on): Add extensions, for
58306         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
58307         * modules/fnmatch (Depends-on): Likewise.
58308         * modules/getaddrinfo (Depends-on): Likewise.
58309         * modules/getdelim (Depends-on): Likewise.
58310         * modules/getline (Depends-on): Likewise.
58311         * modules/getsubopt (Depends-on): Likewise.
58312         * modules/gettext (Depends-on): Likewise.
58313         * modules/group-member (Depends-on): Likewise.
58314         * modules/mbchar (Depends-on): Likewise.
58315         * modules/memmem (Depends-on): Likewise.
58316         * modules/mempcpy (Depends-on): Likewise.
58317         * modules/memrchr (Depends-on): Likewise.
58318         * modules/pagealign_alloc (Depends-on): Likewise.
58319         * modules/readutmp (Depends-on): Likewise.
58320         * modules/stpcpy (Depends-on): Likewise.
58321         * modules/stpncpy (Depends-on): Likewise.
58322         * modules/strchrnul (Depends-on): Likewise.
58323         * modules/strndup (Depends-on): Likewise.
58324         * modules/strsep (Depends-on): Likewise.
58325         * modules/strverscmp (Depends-on): Likewise.
58326         * modules/vasprintf (Depends-on): Likewise.
58327         * modules/wcwidth (Depends-on): Likewise.
58328         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
58329         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
58330         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
58331         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
58332         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58333         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58334         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
58335         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58336         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
58337         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
58338         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58339         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58340         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58341         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
58342         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
58343         * m4/readutmp.m4 (gl_READUTMP): Likewise.
58344         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58345         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58346         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58347         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58348         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58349         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58350         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58351         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
58352         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
58353         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58354         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
58355         so that lock.m4 can be used in gettext without extensions module.
58356
58357 2007-09-11  Bruno Haible  <bruno@clisp.org>
58358
58359         * m4/isc-posix.m4: Remove file.
58360         Suggested by Eric Blake.
58361
58362 2007-09-11  Eric Blake  <ebb9@byu.net>
58363
58364         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
58365
58366 2007-09-10  Bruno Haible  <bruno@clisp.org>
58367
58368         * posix-modules: Fix typo in error message.
58369         Reported by Matt <mkraai@beckman.com>.
58370
58371 2007-09-09  Bruno Haible  <bruno@clisp.org>
58372
58373         * doc/functions/getdelim.texi: Update list of platforms lacking the
58374         function.
58375         * doc/functions/getline.texi: Likewise.
58376
58377 2007-09-09  Jim Meyering  <jim@meyering.net>
58378
58379         * lib/hash.c (hash_initialize): Detect calloc failure.
58380         Reported by Bruno Haible.
58381
58382 2007-09-09  Bruno Haible  <bruno@clisp.org>
58383
58384         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
58385         malloc or realloc fails.
58386
58387 2007-09-09  Bruno Haible  <bruno@clisp.org>
58388
58389         * modules/getcwd (Depends-on): Add malloc-posix.
58390         * modules/glob (Depends-on): Likewise.
58391         * modules/putenv (Depends-on): Likewise.
58392         * modules/strdup (Depends-on): Likewise.
58393         * modules/getdelim (Depends-on): Add realloc-posix.
58394         * modules/read-file (Depends-on): Likewise.
58395
58396 2007-09-09  Bruno Haible  <bruno@clisp.org>
58397
58398         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
58399         (gl_FUNC_MALLOC_POSIX): Require it.
58400         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
58401         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
58402         * modules/realloc (Files): Add m4/malloc.m4.
58403         * modules/calloc (Files): Likewise.
58404
58405 2007-09-09  Bruno Haible  <bruno@clisp.org>
58406
58407         * modules/malloc-posix: New file.
58408         * modules/malloc (Depends-on): Add malloc-posix.
58409         * lib/malloc.c: Include errno.h.
58410         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
58411         and a POSIX-compatible malloc into a single function. Set ENOMEM
58412         when returning NULL.
58413         * m4/malloc.m4: New file.
58414         * doc/functions/malloc.texi: Mention the malloc-posix module.
58415         * lib/stdlib_.h (malloc): New declaration.
58416         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58417         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
58418         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
58419         and HAVE_MALLOC_POSIX.
58420
58421 2007-09-09  Bruno Haible  <bruno@clisp.org>
58422
58423         * modules/realloc-posix: New file.
58424         * modules/realloc (Depends-on): Add realloc-posix.
58425         * lib/realloc.c: Include errno.h.
58426         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
58427         and a POSIX-compatible realloc into a single function. Set ENOMEM
58428         when returning NULL.
58429         * m4/realloc.m4: New file.
58430         * doc/functions/realloc.texi: Mention the realloc-posix module.
58431         * lib/stdlib_.h (realloc): New declaration.
58432         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58433         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
58434         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
58435         and HAVE_REALLOC_POSIX.
58436
58437 2007-09-09  Bruno Haible  <bruno@clisp.org>
58438
58439         * modules/calloc-posix: New file.
58440         * modules/calloc (Depends-on): Add calloc-posix.
58441         * lib/calloc.c: Include errno.h.
58442         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
58443         and a POSIX-compatible calloc into a single function. Set ENOMEM
58444         when returning NULL.
58445         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
58446         * doc/functions/calloc.texi: Mention the calloc-posix module.
58447         * lib/stdlib_.h (calloc): New declaration.
58448         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58449         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
58450         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
58451         and HAVE_CALLOC_POSIX.
58452
58453 2007-09-09  Bruno Haible  <bruno@clisp.org>
58454
58455         Allow for modules to show an arbitrary notice.
58456         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
58457         * gnulib-tool: New option --extract-notice.
58458         (func_usage): Document it.
58459         (sed_extract_prog): Update.
58460         (func_get_notice): New function.
58461         (func_modules_notice): New function.
58462         (func_import, func_create_testdir): Invoke it.
58463         Suggested by Jim Meyering.
58464
58465 2007-09-09  Bruno Haible  <bruno@clisp.org>
58466
58467         * gnulib-tool: New options --verbose, --quiet.
58468         (func_usage): Document them.
58469         (verbose): New variable.
58470         (func_execute_command): New function.
58471         (func_import): Don't show the module list and the file list if
58472         $verbose < 0.
58473         (func_create_testdir): Likewise. Use func_execute_command.
58474         (func_create_megatestdir): Use func_execute_command.
58475
58476 2007-09-08  Bruno Haible  <bruno@clisp.org>
58477
58478         * gnulib-tool (func_import): Prefer rsync over wget when available,
58479         for fetching the PO files.
58480
58481 2007-09-08  Bruno Haible  <bruno@clisp.org>
58482
58483         * posix-modules: New file. Portions copied from gnulib-tool.
58484         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
58485
58486 2007-09-08  Jim Meyering  <jim@meyering.net>
58487
58488         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
58489         * lib/fpending.h: Rename from __fpending.h.
58490         * lib/fpending.c: Rename from __fpending.c.
58491         Include "fpending.h", not "__fpending.h".
58492         * lib/__fpending.h, lib/__fpending.c: Remove files.
58493         * modules/fpending (Files): Reflect new file names.
58494         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
58495
58496 2007-09-08  Bruno Haible  <bruno@clisp.org>
58497
58498         * m4/inttypes-h.m4: Remove stub file.
58499
58500 2007-09-07  Simon Josefsson  <simon@josefsson.org>
58501
58502         * doc/headers/stdint.texi: Discuss #include_next issue.
58503
58504 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58505
58506         * build-aux/bootstrap: Remove obsolete comment about wget --help.
58507
58508 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58509
58510         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
58511         in variable name.
58512
58513 2007-09-03  Jim Meyering  <jim@meyering.net>
58514
58515         New module: git-version-gen.
58516         * modules/git-version-gen: New file.
58517
58518         Import changes from coreutils for bootstrap script.
58519
58520         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
58521
58522         bootstrap: uses rsync to download the .po files
58523         * build-aux/bootstrap (po_download_command_format): New global.
58524         (download_po_files): Use rsync.
58525         (update_po_files): Don't remove .po files after download,
58526         so future rsync runs can take advantage of the copies.
58527
58528         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
58529
58530         Solve the unnecessary-.po-file-regeneration problem once and for all.
58531         * build-aux/bootstrap (download_po_files): New function, renamed from
58532         get_translations.  Now, downloads, but doesn't update LINGUAS.
58533         (update_po_files): New function.
58534
58535         bootstrap: Ignore more.
58536         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
58537         uniwidth to e.g., lib/.gitignore.
58538         (slurp): Handle the sys_stat_.h -> sys mapping, too.
58539
58540         * build-aux/bootstrap: New setting: vc_ignore.
58541         (insert_sorted_if_absent): Create $file if absent.
58542         Adapt to new, possibly empty, list: $vc_ignore.
58543
58544         bootstrap: generate more ignorable names
58545         * build-aux/bootstrap (slurp): When generating ignorable names,
58546         also map .sin to .sed, .gperf to .c, and .y to .c.
58547
58548 2007-09-03  Jim Meyering  <jim@meyering.net>
58549
58550         * build-aux/git-version-gen: New file, from coreutils.  For details, see
58551         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
58552
58553 2007-09-02  Bruno Haible  <bruno@clisp.org>
58554
58555         Fix mis-recognition of 'mcs' on QNX 6.
58556         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
58557         output contains the string "Mono".
58558         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
58559         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
58560
58561 2007-09-01  Bruno Haible  <bruno@clisp.org>
58562
58563         Fix collision between uniwidth/* and linebreak modules.
58564         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
58565         u32_width): Remove declarations.
58566         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
58567         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
58568         streq3, streq2, streq1, streq0): Remove functions.
58569         (STREQ): Remove macro.
58570         (is_cjk_encoding): Remove function.
58571         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
58572         (uc_width, u8_width, u16_width, u32_width): Remove functions.
58573         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
58574         * NEWS: Document the change.
58575
58576 2007-09-01  Bruno Haible  <bruno@clisp.org>
58577
58578         * lib/streq.h: Add double-inclusion guard.
58579
58580 2007-09-01  Karl Berry  <karl@gnu.org>
58581
58582         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
58583
58584 2007-08-28  Jim Meyering  <jim@meyering.net>
58585
58586         Rename mreadlink_with_size to areadlink_with_size.
58587         * NEWS: Document the change.
58588         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
58589         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
58590         * lib/mreadlink.h: Rename this to...
58591         * lib/areadlink.h: ...this.
58592         * modules/mreadlink-with-size: Rename this to...
58593         * modules/areadlink-with-size: ...this.
58594         * lib/canonicalize.c: Reflect the renaming.
58595         * modules/canonicalize: Likewise.
58596
58597 2007-08-26  Bruno Haible  <bruno@clisp.org>
58598
58599         * gnulib-tool (func_import): When deciding which files to remove,
58600         consider also dangling symbolic links.
58601         Reported by Eric Blake.
58602
58603 2007-08-26  Bruno Haible  <bruno@clisp.org>
58604
58605         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
58606
58607 2007-08-23  Simon Josefsson  <simon@josefsson.org>
58608
58609         * lib/readline.c: Don't include getline.h, the prototype is now
58610         found in stdio.h.
58611
58612 2007-08-23  Jim Meyering  <jim@meyering.net>
58613
58614         Getdelim touchup.
58615         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
58616         around the funlockfile call, since funlockfile never sets errno.
58617         Don't set errno upon failed realloc.
58618
58619 2007-08-22  Eric Blake  <ebb9@byu.net>
58620
58621         Getline touchups.
58622         * lib/getdelim.c (getdelim): Revert regression that required *n to
58623         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
58624         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
58625         getdelim, rather than whether implementation is missing.
58626         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
58627         * lib/stdio_.h (getline): Also declare if replacement is
58628         required.
58629         * doc/functions/getdelim.texi: New file.
58630         * doc/functions/getline.texi: Likewise.
58631         * doc/gnulib.texi (Function Substitutes): Add new files.
58632         Reported by Bruno Haible.
58633
58634 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
58635
58636         * users.txt: Add Guile.
58637
58638 2007-08-22  Eric Blake  <ebb9@byu.net>
58639
58640         * tests/test-getdelim.c (main): Use remove, not unlink.
58641         * tests/test-getline.c (main): Likewise.
58642
58643         Move getline and getdelim into stdio.h, per POSIX 200x.
58644         * modules/getline (Files): Remove getline.h.
58645         (Depends-on): Add stdio.
58646         (configure.ac): Add module indicator.
58647         * modules/getdelim (Files): Remove getdelim.h.
58648         (Depends-on): Add stdio.
58649         (configure.ac): Add module indicator.
58650         * modules/stdio (Makefile.am): Work with new indicators.
58651         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
58652         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
58653         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58654         * lib/getdelim.h: Delete.
58655         * lib/getline.h: Delete.
58656         * lib/stdio_.h (getdelim, getline): Declare.
58657         * modules/getdelim-tests: New module.
58658         * modules/getline-tests: Likewise.
58659         * tests/test-getdelim.c: New file.
58660         * tests/test-getline.c: Likewise.
58661         * NEWS: Document the change.
58662         * lib/getline.c: Update choice of header.
58663         * lib/csharpcomp.c: Likewise.
58664         * lib/getpass.c: Likewise.
58665         * lib/javacomp.c: Likewise.
58666         * lib/javaversion.c: Likewise.
58667         * lib/yesno.c: Likewise.
58668         * lib/getdelim.c: Likewise.
58669         (getdelim): Set errno on failure, and avoid memory leak.
58670
58671 2007-08-19  Bruno Haible  <bruno@clisp.org>
58672
58673         * modules/closein (Depends-on): Add freadahead.
58674         * lib/closein.c: Include freadahead.h.
58675         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
58676         is zero.
58677
58678 2007-08-19  Bruno Haible  <bruno@clisp.org>
58679
58680         * modules/freadahead-tests: New file.
58681         * tests/test-freadahead.sh: New file.
58682         * tests/test-freadahead.c: New file.
58683
58684         * modules/freadahead: New file.
58685         * lib/freadahead.h: New file.
58686         * lib/freadahead.c: New file.
58687         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
58688         fbufmode, fpurge, freadable, fwritable.
58689
58690 2007-08-19  Eric Blake  <ebb9@byu.net>
58691
58692         Test yesno in combination with closein.
58693         * lib/yesno.c (yesno): Document use of stdin.
58694         * modules/yesno-tests (Files): New module.
58695         * tests/test-yesno.c (main): New file.
58696         * tests/test-yesno.sh: Likewise.
58697
58698 2007-08-19  Bruno Haible  <bruno@clisp.org>
58699
58700         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
58701         * lib/fseeko.c (rpl_fseeko): Likewise.
58702         * lib/fseterr.c (fseterr): Likewise.
58703
58704 2007-08-19  Bruno Haible  <bruno@clisp.org>
58705
58706         * tests/test-lseek.c (main): Disable a test for BeOS.
58707         * doc/functions/lseek.texi: Document the BeOS bug.
58708
58709 2007-08-19  Bruno Haible  <bruno@clisp.org>
58710             Eric Blake  <ebb9@byu.net>
58711
58712         * lib/lseek.c: Include <sys/stat.h>.
58713         (rpl_lseek): Add workaround code also for Unix platforms.
58714         Needed for BeOS.
58715         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
58716         * doc/functions/lseek.texi: Document BeOS definiency.
58717
58718 2007-08-18  Bruno Haible  <bruno@clisp.org>
58719
58720         * modules/fstrcmp-tests: New file.
58721         * tests/test-fstrcmp.c: New file.
58722
58723 2007-08-18  Bruno Haible  <bruno@clisp.org>
58724
58725         * modules/fstrcmp: New file, from GNU gettext with modifications.
58726         * lib/fstrcmp.h: New file, from GNU gettext.
58727         * lib/fstrcmp.c: New file, from GNU gettext.
58728         * MODULES.html.sh (String handling): Add fstrcmp.
58729
58730 2007-08-18  Bruno Haible  <bruno@clisp.org>
58731
58732         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
58733         'bool'.
58734         (diag, compareseq): Remove const from the ctxt argument.
58735         (USE_HEURISTIC): Undefine at the end.
58736
58737 2007-08-18  Jim Meyering  <jim@meyering.net>
58738
58739         New file: lib/idcache.h
58740         * NEWS: Mention the addition.
58741         * modules/idcache (Files): Add lib/idcache.h
58742         * lib/idcache.c: Include "idcache.h".
58743         Don't include <sys/types.h>.
58744         Add a FIXME comment.
58745         Move file-scoped "static" declarations to the top.
58746         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
58747
58748 2007-08-17  Bruno Haible  <bruno@clisp.org>
58749         and Paul Eggert  <eggert@cs.ucla.edu>
58750
58751         * MODULES.html.sh: Add diffseq.
58752         * modules/diffseq: New file.
58753         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
58754         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
58755
58756 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58757
58758         Import changes from coreutils for bootstrap script.
58759
58760         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
58761
58762         * build-aux/bootstrap (slurp): Work even in environments where
58763         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
58764         current code does not slurp files whose names start with ".", and
58765         this looks like it might be a troublesome area.
58766
58767         2007-07-11  Jim Meyering  <jim@meyering.net>
58768
58769         If there's a GPL vN copyright comment, require that N == 3.
58770
58771         2007-07-08  Jim Meyering  <jim@meyering.net>
58772
58773         Run the coreutils-specific code only if tests/Makefile.am.in exists.
58774         * build-aux/bootstrap (mam_template): Move definition out of loop.
58775
58776         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
58777
58778         * build-aux/bootstrap (symlink_to_dir): Rename function from
58779         symlink_to_gnulib.  Add a directory parameter.  Update all
58780         callers.
58781         (cp_mark_as_generated): Also check for -- and link to -- files in
58782         gl/.
58783
58784         2007-07-08  Jim Meyering  <jim@meyering.net>
58785
58786         Adapt to deeper hierarchy in gnulib.
58787         * build-aux/bootstrap (symlink_to_dir): If the destination
58788         directory doesn't exist, create it. This is required at least for
58789         "lib/uniwidth/cjk.h".
58790
58791         2007-05-15  Jim Meyering  <jim@meyering.net>
58792
58793         * build-aux/bootstrap: Now that generated Makefile.am files
58794         are no longer under version control, they must be created at
58795         bootstrap time.
58796
58797 2007-08-14  Ben Pfaff  <blp@gnu.org>
58798
58799         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
58800
58801 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58802
58803         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
58804         given the changes below.
58805         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
58806         even on hosts that have padding bits beyond the supported 64.
58807
58808 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58809
58810         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
58811         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
58812         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
58813         depends on it.
58814         (xstrtol_error): Remove.
58815         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
58816         but with a different signature.
58817         (ATTRIBUTE_NORETURN, __attribute__): New macros.
58818         * lib/xstrtol-error.c: Include exitfail.h.
58819         (xstrtol_fatal): New function, with a different signature from the
58820         old xstrtol_error, so that the caller need not worry about passing
58821         in an exit status, or about storage management of the option argument.
58822         (xstrtol_error): Now a static function.  Redo signature to
58823         implement xstrtol_fatal.  Output the correct number of hyphens in
58824         front of the option so that the caller need not worry about
58825         storage management.
58826         (N_): New macro.
58827         (_): Remove; not used now.
58828         * modules/xstrtol: Depend on getopt.
58829         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
58830         of old STRTOL_FATAL_ERROR macro.
58831         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
58832         of test program.
58833         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
58834         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
58835
58836 2007-08-08  Eric Blake  <ebb9@byu.net>
58837
58838         * lib/xstrtol-error.c: Add missing include.
58839
58840         Move xstrtol messages into gnulib domain, when --pobase is used.
58841         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
58842         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
58843         * modules/xstrtol (Files): Distribute new file.
58844         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
58845         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
58846         * tests/test-xstrtol.c: ...into new file.
58847         * tests/test-xstrtoul.c: Also test xstrtoul.
58848         * tests/test-xstrtoimax.c: Also test xstrtoimax.
58849         * tests/test-xstrtoumax.c: Also test xstrtoumax.
58850         * tests/test-xstrtol.sh: Drive the tests.
58851         * tests/test-xstrtoimax.sh: Likewise.
58852         * tests/test-xstrtoumax.sh: Likewise.
58853         * modules/xstrtol-tests: New module.
58854         * modules/xstrtoimax-tests: Likewise.
58855         * modules/xstrtoumax-tests: Likewise.
58856
58857 2007-08-08  Jim Meyering  <jim@meyering.net>
58858
58859         New function: mfile_name_concat.
58860         * lib/filenamecat.c (mfile_name_concat): New function, just like
58861         file_name_concat, but return NULL upon failure rather than exiting
58862         with a diagnostic.
58863         * lib/filenamecat.h: Declare it.
58864
58865 2007-08-07  Bruno Haible  <bruno@clisp.org>
58866
58867         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
58868         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
58869         warning from gcc.
58870         Reported by Eric Blake.
58871
58872 2007-08-07  Simon Josefsson  <simon@josefsson.org>
58873
58874         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
58875         * modules/crypto/arcfour (License): Likewise.
58876         * modules/crypto/des-tests (License): Likewise.
58877         * modules/crypto/gc-arctwo-tests (License): Likewise.
58878         * modules/crypto/gc-des-tests (License): Likewise.
58879         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
58880         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
58881         * modules/crypto/gc-md2-tests (License): Likewise.
58882         * modules/crypto/gc-md4-tests (License): Likewise.
58883         * modules/crypto/gc-md5-tests (License): Likewise.
58884         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
58885         * modules/crypto/gc-rijndael-tests (License): Likewise.
58886         * modules/crypto/gc-sha1-tests (License): Likewise.
58887         * modules/crypto/gc-tests (License): Likewise.
58888         * modules/crypto/hmac-md5 (License): Likewise.
58889         * modules/crypto/hmac-sha1 (License): Likewise.
58890         * modules/crypto/md2-tests (License): Likewise.
58891         * modules/crypto/md4-tests (License): Likewise.
58892         * modules/crypto/md5 (License): Likewise.
58893         * modules/crypto/rijndael (License): Likewise.
58894         * modules/crypto/sha1 (License): Likewise.
58895         * modules/memxor (License): Likewise.
58896
58897 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58898         and Bruno Haible  <bruno@clisp.org>
58899
58900         * NEWS: Describe interface changes to human, xstrtol.
58901         * lib/human.h: Include <xstrtol.h>.
58902         (human_options): Return enum strtol_error, not int.  Remove
58903         bool arg; take int * instead.
58904         * lib/human.c: Don't include "gettext.h".
58905         (_): Remove; no longer used.
58906         Don't include <xstrtol.h>, since human.h does it.
58907         (human_options): Adjust to abovementioned interface changes.
58908         Do not report error to stderr; that's now the caller's
58909         responsibility.
58910         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
58911         interface change.
58912         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
58913         Str, Argument_type_string.  All uses changed.  Put " argument"
58914         in diagnostics to make them clearer.  Change wording of suffix
58915         message for clarity.
58916         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
58917         Argument_type_string.
58918         (STRTOL_FATAL_WARN): Remove; no longer used.
58919         * modules/human (Depends-on): Remove gettext-h.
58920
58921 2007-08-06  Simon Josefsson  <simon@josefsson.org>
58922
58923         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
58924
58925 2007-07-31  Bruno Haible  <bruno@clisp.org>
58926
58927         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
58928         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
58929         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
58930
58931 2007-07-31  Bruno Haible  <bruno@clisp.org>
58932
58933         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
58934         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
58935
58936 2007-07-30  Bruno Haible  <bruno@clisp.org>
58937
58938         * modules/base64 (License): Use the synonymous term "LGPLv2+".
58939         * modules/c-ctype (License): Likewise.
58940         * modules/c-strcase (License): Likewise.
58941         * modules/check-version (License): Likewise.
58942         * modules/iconv (License): Likewise.
58943         * modules/iconv_open (License): Likewise.
58944         * modules/read-file (License): Likewise.
58945         * modules/striconv (License): Likewise.
58946         * modules/strverscmp (License): Likewise.
58947         * modules/vasprintf (License): Likewise.
58948         * modules/crypto/des (License): Likewise.
58949         * modules/crypto/gc (License): Likewise.
58950         * modules/crypto/gc-arcfour (License): Likewise.
58951         * modules/crypto/gc-arctwo (License): Likewise.
58952         * modules/crypto/gc-des (License): Likewise.
58953         * modules/crypto/gc-hmac-md5 (License): Likewise.
58954         * modules/crypto/gc-hmac-sha1 (License): Likewise.
58955         * modules/crypto/gc-md2 (License): Likewise.
58956         * modules/crypto/gc-md4 (License): Likewise.
58957         * modules/crypto/gc-md5 (License): Likewise.
58958         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
58959         * modules/crypto/gc-random (License): Likewise.
58960         * modules/crypto/gc-rijndael (License): Likewise.
58961         * modules/crypto/gc-sha1 (License): Likewise.
58962         * modules/crypto/md2 (License): Likewise.
58963         * modules/crypto/md4 (License): Likewise.
58964
58965 2007-07-30  Jim Meyering  <jim@meyering.net>
58966
58967         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
58968         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
58969         it has valid stat data.  This bug would cause du not to count the
58970         sizes of inaccessible directories.
58971         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
58972         in <http://bugzilla.redhat.com/250077>.
58973
58974 2007-07-25  Peter O'Gorman  <peter@pogma.com>
58975             Bruno Haible  <bruno@clisp.org>
58976
58977         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
58978         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
58979         #include_next, gives a diagnostic about it, but reports no error in
58980         the exit code.
58981         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
58982
58983 2007-07-24  Ben Pfaff  <blp@gnu.org>
58984
58985         Improve name: "count-one-bits" is better than "popcount".
58986         * MODULES.html.sh: Update name.
58987         * lib/popcount.h: Renamed lib/count-one-bits.h.
58988         (popcount): Renamed count_one_bits.
58989         (popcountl): Renamed count_one_bits_l.
58990         (popcountll): Renamed count_one_bits_ll.
58991         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
58992         * modules/popcount: Renamed module/count-one-bits.
58993         * modules/popcount-tests: Renamed module/count-one-bits-tests.
58994         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
58995
58996 2007-07-23  Ben Pfaff  <blp@gnu.org>
58997
58998         * lib/popcount.h (popcount32): Reduce size of constants, to allow
58999         better code generation, and add U to large constants to avoid
59000         warnings, in non-GCC case.
59001         Suggested by Bruno Haible.
59002
59003 2007-07-23  Ben Pfaff  <blp@gnu.org>
59004
59005         * lib/popcount.h: Use verify_true instead of if...abort.
59006         * modules/popcount: Depend on verify module.
59007         Suggested by Jim Meyering.
59008
59009 2007-07-23  Bruno Haible  <bruno@clisp.org>
59010
59011         * gnulib-tool (func_import): Create a .cvsignore file also when the
59012         directory is not yet in CVS but the toplevel directory is. When
59013         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
59014         Reported by Karl Berry.
59015
59016 2007-07-22  Ben Pfaff  <blp@gnu.org>
59017
59018         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
59019         case.
59020         Suggested by Eric Blake.
59021
59022 2007-07-22  Ben Pfaff  <blp@gnu.org>
59023
59024         New module: popcount.
59025         * MODULES.html.sh: Add popcount.
59026         * modules/popcount: New file.
59027         * modules/popcount-tests: New file.
59028         * tests/test-popcount.c: New file.
59029         * lib/popcount.h: New file.
59030         * m4/popcount.m4: New file.
59031
59032 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59033
59034         * build-aux/announce-gen: Update to GPLv3.
59035
59036         * build-aux/config.guess: Update from config.
59037
59038 2007-07-21  Bruno Haible  <bruno@clisp.org>
59039
59040         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
59041         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
59042
59043 2007-07-20  Jim Meyering  <jim@meyering.net>
59044
59045         * check-module: Diagnose a self-dependency.
59046
59047 2007-07-19  Bruno Haible  <bruno@clisp.org>
59048
59049         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
59050         empty.
59051         Reported by Eric Blake.
59052
59053 2007-07-18  Bruno Haible  <bruno@clisp.org>
59054
59055         * gnulib-tool: New options --po-base, --po-domain.
59056         (func_usage): Document them.
59057         (pobase, po_domain): New variables.
59058         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
59059         DEFAULT_TEXT_DOMAIN.
59060         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
59061         (func_import): Consider pobase and po_domain. Create a po/ directory.
59062         (func_create_testdir): Set pobase and po_domain to empty.
59063         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
59064         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
59065
59066 2007-07-18  Bruno Haible  <bruno@clisp.org>
59067
59068         * gnulib-tool (func_get_automake_snippet): Synthesize also an
59069         EXTRA_DIST augmentation for files in build-aux/.
59070
59071 2007-07-16  Bruno Haible  <bruno@clisp.org>
59072
59073         * modules/lseek (License): Use the synonymous term "LGPLv2+".
59074         * modules/getdelim (License): Likewise.
59075
59076 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59077
59078         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
59079         * modules/d-type (License): Likewise.
59080         * modules/extensions (License): Likewise.
59081         * modules/fnmatch (License): Likewise.
59082         * modules/fseeko (License): Likewise.
59083         * modules/getaddrinfo (License): Likewise.
59084         * modules/getline (License): Likewise.
59085         * modules/getlogin_r (License): Likewise.
59086         * modules/getpass (License): Likewise.
59087         * modules/gettimeofday (License): Likewise.
59088         * modules/glob (License): Likewise.
59089         * modules/inet_ntop (License): Likewise.
59090         * modules/malloc (License): Likewise.
59091         * modules/malloca (License): Likewise.
59092         * modules/memmem (License): Likewise.
59093         * modules/mempcpy (License): Likewise.
59094         * modules/memset (License): Likewise.
59095         * modules/minmax (License): Likewise.
59096         * modules/mktime (License): Likewise.
59097         * modules/netinet_in (License): Likewise.
59098         * modules/pathmax (License): Likewise.
59099         * modules/poll (License): Likewise.
59100         * modules/regex (License): Likewise.
59101         * modules/snprintf (License): Likewise.
59102         * modules/stdbool (License): Likewise.
59103         * modules/stdint (License): Likewise.
59104         * modules/stdio (License): Likewise.
59105         * modules/strcase (License): Likewise.
59106         * modules/strcasestr (License): Likewise.
59107         * modules/strdup (License): Likewise.
59108         * modules/string (License): Likewise.
59109         * modules/strndup (License): Likewise.
59110         * modules/strnlen (License): Likewise.
59111         * modules/strpbrk (License): Likewise.
59112         * modules/strptime (License): Likewise.
59113         * modules/strsep (License): Likewise.
59114         * modules/sys_select (License): Likewise.
59115         * modules/sys_socket (License): Likewise.
59116         * modules/sys_stat (License): Likewise.
59117         * modules/sys_time (License): Likewise.
59118         * modules/time (License): Likewise.
59119         * modules/time_r (License): Likewise.
59120         * modules/timegm (License): Likewise.
59121         * modules/unistd (License): Likewise.
59122         * modules/vsnprintf (License): Likewise.
59123         * modules/wctype (License): Likewise.
59124
59125 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59126
59127         * modules/argz (License): LGPLv2+.
59128
59129 2007-07-15  Karl Berry  <karl@gnu.org>
59130
59131         * doc/gnulib.texi: revise node structure per new fdl.texi.
59132
59133 2007-07-14  Bruno Haible  <bruno@clisp.org>
59134
59135         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
59136         the output file.
59137         * lib/uniname/uninames.h: Regenerated.
59138
59139 2007-07-14  Karl Berry  <karl@gnu.org>
59140
59141         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
59142         omitting sectioning and index commands.
59143
59144 2007-07-13  Bruno Haible  <bruno@clisp.org>
59145
59146         New gnulib-tool option --more-symlinks.
59147         * gnulib-tool (func_usage): Document --more-symlinks.
59148         (do_copyrights): New variable.
59149         Recognize option --more-symlinks.
59150         (func_import): Don't add a copyright notice transform to
59151         sed_transform_lib_file if do_copyrights is empty.
59152
59153 2007-07-13  Bruno Haible  <bruno@clisp.org>
59154
59155         * lib/vasnprintf.c (decimal_point_char): Define also if
59156         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
59157         && !NEED_PRINTF_DIRECTIVE_A.
59158         Reported by Clemens Koller <clemens.koller@anagramm.de> via
59159         Gary V. Vaughan <gary@gnu.org>.
59160
59161 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
59162
59163         * lib/inttypes_.h: Undo previous change, since it was fixed
59164         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
59165
59166 2007-07-13  Bruno Haible  <bruno@clisp.org>
59167
59168         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
59169         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
59170
59171 2007-07-13  Jim Meyering  <jim@meyering.net>
59172
59173         df: Don't fail for Tru64's "file-on-file mount".
59174         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
59175         so we fall through and use statfs instead.  Details here:
59176         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
59177         Reported by Albert Chin.
59178
59179 2007-07-13  Bruno Haible  <bruno@clisp.org>
59180
59181         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
59182         * modules/configmake (License): Likewise.
59183         * modules/gettext (License): Likewise.
59184         * modules/gettext-h (License): Likewise.
59185         * modules/include_next (License): Likewise.
59186         * modules/link-warning (License): Likewise.
59187         * modules/localcharset (License): Likewise.
59188         * modules/localename (License): Likewise.
59189         * modules/lock (License): Likewise.
59190         * modules/relocatable-lib-lgpl (License): Likewise.
59191         * modules/size_max (License): Likewise.
59192         * modules/vasnprintf (License): Likewise.
59193         * modules/wchar (License): Likewise.
59194         * modules/xsize (License): Likewise.
59195
59196 2007-07-13  Bruno Haible  <bruno@clisp.org>
59197
59198         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
59199         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
59200
59201 2007-07-12  Bruno Haible  <bruno@clisp.org>
59202
59203         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
59204         in the modules files.
59205
59206 2007-07-11  Karl Berry  <karl@gnu.org>
59207
59208         * MODULES.html.sh (func_module): use
59209          sed -e '\|^'"${includefile}"'$|d'
59210          instead of /.../d, to avoid errors on $includefile's containing /.
59211
59212 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59213
59214         * gnulib-tool (func_import): Avoid duplication of --avoid
59215         statements
59216         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
59217         names to `_' in variable names.
59218
59219 2007-07-10  Eric Blake  <ebb9@byu.net>
59220
59221         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
59222         * NEWS: Document this change.
59223
59224 2007-07-08  Bruno Haible  <bruno@clisp.org>
59225
59226         Update to Unicode 5.0.
59227         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
59228         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
59229         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
59230         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
59231         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
59232         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
59233         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
59234         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
59235         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
59236         U+10A3F, U+1D242..U+1D244.
59237         (nonspacing_table_ind): Update.
59238         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
59239         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
59240
59241 2007-07-08  Bruno Haible  <bruno@clisp.org>
59242
59243         Update to Unicode 5.0.
59244         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
59245         code transform. Extend the name index field of unicode_name_to_code and
59246         unicode_code_to_name from 16 to 24 bits.
59247         * lib/uniname/uniname.c (unicode_character_name,
59248         unicode_name_character): Add the range 0x12xxx to the code transform.
59249         * lib/uniname/uninames.h: Regenerated.
59250         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
59251
59252 2007-07-07  Bruno Haible  <bruno@clisp.org>
59253
59254         * modules/wcwidth-tests: New file.
59255         * tests/test-wcwidth.c: New file.
59256
59257         Work around MacOS X wcwidth() bug.
59258         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
59259         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
59260         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
59261         original wcwidth in non-UTF-8 locales.
59262         * modules/wcwidth (Depends-on): Add localcharset, streq,
59263         uniwidth/width.
59264         * doc/functions/wcwidth.texi: Update.
59265
59266 2007-07-07  Bruno Haible  <bruno@clisp.org>
59267
59268         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
59269         (wcwidth): New declaration.
59270         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
59271         macros.
59272         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
59273         here. Prepare for creating <wchar.h> unconditionally.
59274         * modules/wchar (Depends-on): Add link-warning.
59275         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
59276         REPLACE_WCWIDTH, and GL_LINK_WARNING.
59277         * lib/wcwidth.h: Remove file.
59278         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
59279         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
59280         * modules/wcwidth (Files): Remove lib/wcwidth.h.
59281         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
59282         (Include): Replace wcwidth.h with <wchar.h>.
59283         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
59284         * lib/mbchar.h: Don't include wcwidth.h.
59285         * lib/mbswidth.c: Likewise.
59286         * NEWS: Mention the change.
59287
59288 2007-07-07  Bruno Haible  <bruno@clisp.org>
59289
59290         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
59291         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
59292         definition with an external declaration.
59293         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
59294         defined as a function. Remove AC_C_INLINE requirement.
59295         * modules/wcwidth (Files): Add lib/wcwidth.c.
59296         (Makefile.am): Remove redundant statement.
59297
59298 2007-07-07  Bruno Haible  <bruno@clisp.org>
59299
59300         * MODULES.html.sh (Unicode string functions): Add the new modules.
59301
59302         * tests/uniwidth/test-u32-strwidth.c: New file.
59303         * modules/uniwidth/u32-strwidth-tests: New file.
59304
59305         * lib/uniwidth/u32-strwidth.c: New file.
59306         * modules/uniwidth/u32-strwidth: New file.
59307
59308         * tests/uniwidth/test-u16-strwidth.c: New file.
59309         * modules/uniwidth/u16-strwidth-tests: New file.
59310
59311         * lib/uniwidth/u16-strwidth.c: New file.
59312         * modules/uniwidth/u16-strwidth: New file.
59313
59314         * tests/uniwidth/test-u8-strwidth.c: New file.
59315         * modules/uniwidth/u8-strwidth-tests: New file.
59316
59317         * lib/uniwidth/u8-strwidth.c: New file.
59318         * modules/uniwidth/u8-strwidth: New file.
59319
59320         * tests/uniwidth/test-u32-width.c: New file.
59321         * modules/uniwidth/u32-width-tests: New file.
59322
59323         * lib/uniwidth/u32-width.c: New file.
59324         * modules/uniwidth/u32-width: New file.
59325
59326         * tests/uniwidth/test-u16-width.c: New file.
59327         * modules/uniwidth/u16-width-tests: New file.
59328
59329         * lib/uniwidth/u16-width.c: New file.
59330         * modules/uniwidth/u16-width: New file.
59331
59332         * tests/uniwidth/test-u8-width.c: New file.
59333         * modules/uniwidth/u8-width-tests: New file.
59334
59335         * lib/uniwidth/u8-width.c: New file.
59336         * modules/uniwidth/u8-width: New file.
59337
59338         * tests/uniwidth/test-uc_width.c: New file.
59339         * modules/uniwidth/width-tests: New file.
59340
59341         * lib/uniwidth/width.c: New file, from GNU libiconv.
59342         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
59343         * modules/uniwidth/width: New file.
59344
59345         * lib/uniwidth.h: New file, from GNU libiconv.
59346         * modules/uniwidth/base: New file.
59347
59348 2007-07-07  Bruno Haible  <bruno@clisp.org>
59349
59350         * lib/uniname.h: New file, from GNU gettext.
59351         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
59352         * lib/uniname/uninames.h: New file, from GNU gettext.
59353         * lib/uniname/uniname.c: New file, from GNU gettext.
59354         * tests/uniname/test-uninames.sh: New file.
59355         * tests/uniname/test-uninames.c: New file, from GNU gettext.
59356         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
59357         * modules/uniname/base: New file.
59358         * modules/uniname/uniname: New file.
59359         * modules/uniname/uniname-tests: New file.
59360         * MODULES.html.sh (Unicode string functions): Add the new modules.
59361
59362 2007-07-06  Bruno Haible  <bruno@clisp.org>
59363
59364         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
59365
59366 2007-07-06  Bruno Haible  <bruno@clisp.org>
59367
59368         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
59369         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
59370         includes <cygwin/sys_time.h> which includes <sys/select.h> which
59371         include <sys/time.h>.
59372         Reported by Eric Blake.
59373
59374 2007-07-06  Eric Blake  <ebb9@byu.net>
59375
59376         Fix testing canonicalize on cygwin.
59377         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59378         Revert patch from 2007-06-19.
59379         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
59380         canonicalize module is also in use.
59381         * tests/test-canonicalize.c: New file.
59382         * tests/test-canonicalize.sh: Likewise.
59383         * modules/canonicalize-tests: Likewise.
59384
59385 2007-07-06  Jim Meyering  <jim@meyering.net>
59386
59387         * lib/getugroups.c (getugroups): Detect getgrent failure.
59388         Adjust comment to reflect reality: this function may return -1.
59389
59390 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
59391
59392         * build-aux/bootstrap (TP_URL,get_translations): Update to use
59393         the new TP address.
59394         (usage): Fix typo
59395         (gnulib_mk): New variable.
59396
59397 2007-07-05  Jim Meyering  <jim@meyering.net>
59398
59399         Don't let endgrent clobber errno, no matter how improbable.
59400         * lib/getugroups.c (getugroups): Save and restore errno around
59401         endgrent call.
59402
59403         Close the group DB even when failing with 2^31 or more members.
59404         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
59405
59406 2007-07-04  Jim Meyering  <jim@meyering.net>
59407
59408         * lib/getugroups.h: New file.
59409         * lib/getugroups.c: Include "getugroups.h".
59410         Remove uses of "register" keyword.
59411         Move local variable, "cp", down into scope where used.
59412         Give "username" parameter the "const" attribute.
59413         * modules/getugroups (Files): Add lib/getugroups.h
59414
59415 2007-07-04  Karl Berry  <karl@gnu.org>
59416
59417         * MODULES.html.sh (func_all_modules): Complete rename of
59418         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
59419
59420 2007-07-02  Bruno Haible  <bruno@clisp.org>
59421
59422         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
59423         mode, when inttypes.h comes from gnulib.
59424         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59425
59426 2007-07-02  Simon Josefsson  <simon@josefsson.org>
59427
59428         * NEWS: Mention lgpl module name change.
59429
59430         * modules/lgpl-2.1: Renamed from lgpl.
59431
59432         * NEWS: Mention gpl module name change.
59433
59434         * modules/gpl-3.0: New file, based on gpl-2.0.
59435
59436         * modules/gpl-2.0: Renamed from gpl.
59437
59438         * modules/gpl: Fix filename, doc/gpl.texi is now found at
59439         doc/gpl-2.0.texi.
59440
59441 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59442
59443         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
59444         #define __STDC_LIMIT_MACROS temporarily while including
59445         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
59446         Problem reported by Joel E. Denny in
59447         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
59448
59449 2007-07-01  Bruno Haible  <bruno@clisp.org>
59450
59451         * lib/unistdio.h: New file.
59452         * lib/unistdio/u-asnprintf.h: New file.
59453         * lib/unistdio/u-asprintf.h: New file.
59454         * lib/unistdio/u-printf-args.c: New file.
59455         * lib/unistdio/u-printf-args.h: New file.
59456         * lib/unistdio/u-printf-parse.h: New file.
59457         * lib/unistdio/u-snprintf.h: New file.
59458         * lib/unistdio/u-sprintf.h: New file.
59459         * lib/unistdio/u-vasprintf.h: New file.
59460         * lib/unistdio/u-vsnprintf.h: New file.
59461         * lib/unistdio/u-vsprintf.h: New file.
59462         * lib/unistdio/ulc-asnprintf.c: New file.
59463         * lib/unistdio/ulc-asprintf.c: New file.
59464         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
59465         * lib/unistdio/ulc-printf-parse.c: New file.
59466         * lib/unistdio/ulc-snprintf.c: New file.
59467         * lib/unistdio/ulc-sprintf.c: New file.
59468         * lib/unistdio/ulc-vasnprintf.c: New file.
59469         * lib/unistdio/ulc-vasprintf.c: New file.
59470         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
59471         * lib/unistdio/ulc-vsnprintf.c: New file.
59472         * lib/unistdio/ulc-vsprintf.c: New file.
59473         * lib/unistdio/u8-asnprintf.c: New file.
59474         * lib/unistdio/u8-asprintf.c: New file.
59475         * lib/unistdio/u8-printf-parse.c: New file.
59476         * lib/unistdio/u8-snprintf.c: New file.
59477         * lib/unistdio/u8-sprintf.c: New file.
59478         * lib/unistdio/u8-vasnprintf.c: New file.
59479         * lib/unistdio/u8-vasprintf.c: New file.
59480         * lib/unistdio/u8-vsnprintf.c: New file.
59481         * lib/unistdio/u8-vsprintf.c: New file.
59482         * lib/unistdio/u8-u8-asnprintf.c: New file.
59483         * lib/unistdio/u8-u8-asprintf.c: New file.
59484         * lib/unistdio/u8-u8-snprintf.c: New file.
59485         * lib/unistdio/u8-u8-sprintf.c: New file.
59486         * lib/unistdio/u8-u8-vasnprintf.c: New file.
59487         * lib/unistdio/u8-u8-vasprintf.c: New file.
59488         * lib/unistdio/u8-u8-vsnprintf.c: New file.
59489         * lib/unistdio/u8-u8-vsprintf.c: New file.
59490         * lib/unistdio/u16-asnprintf.c: New file.
59491         * lib/unistdio/u16-asprintf.c: New file.
59492         * lib/unistdio/u16-printf-parse.c: New file.
59493         * lib/unistdio/u16-snprintf.c: New file.
59494         * lib/unistdio/u16-sprintf.c: New file.
59495         * lib/unistdio/u16-vasnprintf.c: New file.
59496         * lib/unistdio/u16-vasprintf.c: New file.
59497         * lib/unistdio/u16-vsnprintf.c: New file.
59498         * lib/unistdio/u16-vsprintf.c: New file.
59499         * lib/unistdio/u16-u16-asnprintf.c: New file.
59500         * lib/unistdio/u16-u16-asprintf.c: New file.
59501         * lib/unistdio/u16-u16-snprintf.c: New file.
59502         * lib/unistdio/u16-u16-sprintf.c: New file.
59503         * lib/unistdio/u16-u16-vasnprintf.c: New file.
59504         * lib/unistdio/u16-u16-vasprintf.c: New file.
59505         * lib/unistdio/u16-u16-vsnprintf.c: New file.
59506         * lib/unistdio/u16-u16-vsprintf.c: New file.
59507         * lib/unistdio/u32-asnprintf.c: New file.
59508         * lib/unistdio/u32-asprintf.c: New file.
59509         * lib/unistdio/u32-printf-parse.c: New file.
59510         * lib/unistdio/u32-snprintf.c: New file.
59511         * lib/unistdio/u32-sprintf.c: New file.
59512         * lib/unistdio/u32-vasnprintf.c: New file.
59513         * lib/unistdio/u32-vasprintf.c: New file.
59514         * lib/unistdio/u32-vsnprintf.c: New file.
59515         * lib/unistdio/u32-vsprintf.c: New file.
59516         * lib/unistdio/u32-u32-asnprintf.c: New file.
59517         * lib/unistdio/u32-u32-asprintf.c: New file.
59518         * lib/unistdio/u32-u32-snprintf.c: New file.
59519         * lib/unistdio/u32-u32-sprintf.c: New file.
59520         * lib/unistdio/u32-u32-vasnprintf.c: New file.
59521         * lib/unistdio/u32-u32-vasprintf.c: New file.
59522         * lib/unistdio/u32-u32-vsnprintf.c: New file.
59523         * lib/unistdio/u32-u32-vsprintf.c: New file.
59524         * tests/unistdio/test-ulc-asnprintf1.c: New file.
59525         * tests/unistdio/test-ulc-asnprintf1.h: New file.
59526         * tests/unistdio/test-ulc-printf1.h: New file.
59527         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
59528         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
59529         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
59530         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
59531         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
59532         * tests/unistdio/test-ulc-vasprintf1.c: New file.
59533         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
59534         * tests/unistdio/test-ulc-vsprintf1.c: New file.
59535         * tests/unistdio/test-u8-asnprintf1.c: New file.
59536         * tests/unistdio/test-u8-asnprintf1.h: New file.
59537         * tests/unistdio/test-u8-printf1.h: New file.
59538         * tests/unistdio/test-u8-vasnprintf1.c: New file.
59539         * tests/unistdio/test-u8-vasnprintf2.c: New file.
59540         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
59541         * tests/unistdio/test-u8-vasnprintf3.c: New file.
59542         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
59543         * tests/unistdio/test-u8-vasprintf1.c: New file.
59544         * tests/unistdio/test-u8-vsnprintf1.c: New file.
59545         * tests/unistdio/test-u8-vsprintf1.c: New file.
59546         * tests/unistdio/test-u16-asnprintf1.c: New file.
59547         * tests/unistdio/test-u16-asnprintf1.h: New file.
59548         * tests/unistdio/test-u16-printf1.h: New file.
59549         * tests/unistdio/test-u16-vasnprintf1.c: New file.
59550         * tests/unistdio/test-u16-vasnprintf2.c: New file.
59551         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
59552         * tests/unistdio/test-u16-vasnprintf3.c: New file.
59553         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
59554         * tests/unistdio/test-u16-vasprintf1.c: New file.
59555         * tests/unistdio/test-u16-vsnprintf1.c: New file.
59556         * tests/unistdio/test-u16-vsprintf1.c: New file.
59557         * tests/unistdio/test-u32-asnprintf1.c: New file.
59558         * tests/unistdio/test-u32-asnprintf1.h: New file.
59559         * tests/unistdio/test-u32-printf1.h: New file.
59560         * tests/unistdio/test-u32-vasnprintf1.c: New file.
59561         * tests/unistdio/test-u32-vasnprintf2.c: New file.
59562         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
59563         * tests/unistdio/test-u32-vasnprintf3.c: New file.
59564         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
59565         * tests/unistdio/test-u32-vasprintf1.c: New file.
59566         * tests/unistdio/test-u32-vsnprintf1.c: New file.
59567         * tests/unistdio/test-u32-vsprintf1.c: New file.
59568         * modules/unistdio/base: New file.
59569         * modules/unistdio/u-printf-args: New file.
59570         * modules/unistdio/ulc-asnprintf: New file.
59571         * modules/unistdio/ulc-asprintf: New file.
59572         * modules/unistdio/ulc-fprintf: New file.
59573         * modules/unistdio/ulc-printf-parse: New file.
59574         * modules/unistdio/ulc-snprintf: New file.
59575         * modules/unistdio/ulc-sprintf: New file.
59576         * modules/unistdio/ulc-vasnprintf: New file.
59577         * modules/unistdio/ulc-vasprintf: New file.
59578         * modules/unistdio/ulc-vfprintf: New file.
59579         * modules/unistdio/ulc-vsnprintf: New file.
59580         * modules/unistdio/ulc-vsprintf: New file.
59581         * modules/unistdio/u8-asnprintf: New file.
59582         * modules/unistdio/u8-asprintf: New file.
59583         * modules/unistdio/u8-printf-parse: New file.
59584         * modules/unistdio/u8-snprintf: New file.
59585         * modules/unistdio/u8-sprintf: New file.
59586         * modules/unistdio/u8-vasnprintf: New file.
59587         * modules/unistdio/u8-vasprintf: New file.
59588         * modules/unistdio/u8-vsnprintf: New file.
59589         * modules/unistdio/u8-vsprintf: New file.
59590         * modules/unistdio/u8-u8-asnprintf: New file.
59591         * modules/unistdio/u8-u8-asprintf: New file.
59592         * modules/unistdio/u8-u8-snprintf: New file.
59593         * modules/unistdio/u8-u8-sprintf: New file.
59594         * modules/unistdio/u8-u8-vasnprintf: New file.
59595         * modules/unistdio/u8-u8-vasprintf: New file.
59596         * modules/unistdio/u8-u8-vsnprintf: New file.
59597         * modules/unistdio/u8-u8-vsprintf: New file.
59598         * modules/unistdio/u16-asnprintf: New file.
59599         * modules/unistdio/u16-asprintf: New file.
59600         * modules/unistdio/u16-printf-parse: New file.
59601         * modules/unistdio/u16-snprintf: New file.
59602         * modules/unistdio/u16-sprintf: New file.
59603         * modules/unistdio/u16-vasnprintf: New file.
59604         * modules/unistdio/u16-vasprintf: New file.
59605         * modules/unistdio/u16-vsnprintf: New file.
59606         * modules/unistdio/u16-vsprintf: New file.
59607         * modules/unistdio/u16-u16-asnprintf: New file.
59608         * modules/unistdio/u16-u16-asprintf: New file.
59609         * modules/unistdio/u16-u16-snprintf: New file.
59610         * modules/unistdio/u16-u16-sprintf: New file.
59611         * modules/unistdio/u16-u16-vasnprintf: New file.
59612         * modules/unistdio/u16-u16-vasprintf: New file.
59613         * modules/unistdio/u16-u16-vsnprintf: New file.
59614         * modules/unistdio/u16-u16-vsprintf: New file.
59615         * modules/unistdio/u32-asnprintf: New file.
59616         * modules/unistdio/u32-asprintf: New file.
59617         * modules/unistdio/u32-printf-parse: New file.
59618         * modules/unistdio/u32-snprintf: New file.
59619         * modules/unistdio/u32-sprintf: New file.
59620         * modules/unistdio/u32-vasnprintf: New file.
59621         * modules/unistdio/u32-vasprintf: New file.
59622         * modules/unistdio/u32-vsnprintf: New file.
59623         * modules/unistdio/u32-vsprintf: New file.
59624         * modules/unistdio/u32-u32-asnprintf: New file.
59625         * modules/unistdio/u32-u32-asprintf: New file.
59626         * modules/unistdio/u32-u32-snprintf: New file.
59627         * modules/unistdio/u32-u32-sprintf: New file.
59628         * modules/unistdio/u32-u32-vasnprintf: New file.
59629         * modules/unistdio/u32-u32-vasprintf: New file.
59630         * modules/unistdio/u32-u32-vsnprintf: New file.
59631         * modules/unistdio/u32-u32-vsprintf: New file.
59632         * modules/unistdio/ulc-asnprintf-tests: New file.
59633         * modules/unistdio/ulc-vasnprintf-tests: New file.
59634         * modules/unistdio/ulc-vasprintf-tests: New file.
59635         * modules/unistdio/ulc-vsnprintf-tests: New file.
59636         * modules/unistdio/ulc-vsprintf-tests: New file.
59637         * modules/unistdio/u8-asnprintf-tests: New file.
59638         * modules/unistdio/u8-vasnprintf-tests: New file.
59639         * modules/unistdio/u8-vasprintf-tests: New file.
59640         * modules/unistdio/u8-vsnprintf-tests: New file.
59641         * modules/unistdio/u8-vsprintf-tests: New file.
59642         * modules/unistdio/u16-asnprintf-tests: New file.
59643         * modules/unistdio/u16-vasnprintf-tests: New file.
59644         * modules/unistdio/u16-vasprintf-tests: New file.
59645         * modules/unistdio/u16-vsnprintf-tests: New file.
59646         * modules/unistdio/u16-vsprintf-tests: New file.
59647         * modules/unistdio/u32-asnprintf-tests: New file.
59648         * modules/unistdio/u32-vasnprintf-tests: New file.
59649         * modules/unistdio/u32-vasprintf-tests: New file.
59650         * modules/unistdio/u32-vsnprintf-tests: New file.
59651         * modules/unistdio/u32-vsprintf-tests: New file.
59652         * MODULES.html.sh (Unicode string functions): Add the new modules.
59653
59654 2007-07-01  Bruno Haible  <bruno@clisp.org>
59655
59656         * lib/sprintf.c (sprintf): Limit the available length estimation,
59657         to avoid address wraparound.
59658         * lib/vsprintf.c (vsprintf): Likewise.
59659         * modules/sprintf-posix (Dependencies): Add stdint.
59660         * modules/vsprintf-posix (Dependencies): Likewise.
59661
59662 2007-07-01  Bruno Haible  <bruno@clisp.org>
59663
59664         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
59665         Windows PATH as well. Conservative double-quoting. Comments.
59666
59667 2007-07-01  Bruno Haible  <bruno@clisp.org>
59668             Eric Blake  <ebb9@byu.net>
59669             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59670
59671         * gnulib-tool (self_abspathname): Fix algorithm to cope with
59672         empty components in $PATH, denoting '.'.
59673
59674 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59675
59676         * gnulib-tool: Fix indentation.
59677         (func_create_megatestdir): Likewise.
59678         Report by Bruno Haible.
59679
59680 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59681
59682         Sync from Automake.
59683         * build-aux/gnupload: Fix shell portability issues with for loops.
59684         Report by Karl Berry.
59685
59686 2007-06-29  Simon Josefsson  <simon@josefsson.org>
59687
59688         * build-aux/maint.mk (POURL): Use translationproject.org.
59689
59690 2007-06-27  Simon Josefsson  <simon@josefsson.org>
59691             Bruno Haible  <bruno@clisp.org>
59692
59693         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
59694         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
59695         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
59696         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
59697         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
59698
59699 2007-06-27  Bruno Haible  <bruno@clisp.org>
59700
59701         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
59702         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
59703
59704 2007-06-26  Karl Berry  <karl@gnu.org>
59705
59706         * MODULES.html.sh: remove xreadlink-with-size.
59707
59708 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59709
59710         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
59711         method that I hope also handles the double-include problem noted
59712         by Bruno Haible in
59713         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
59714
59715 2007-06-23  Bruno Haible  <bruno@clisp.org>
59716
59717         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59718         Don't let the 'mostlyclean' target fail if the last subdirectory could
59719         not be removed.
59720         Reported by Karl Berry.
59721
59722 2007-06-23  Bruno Haible  <bruno@clisp.org>
59723
59724         * gnulib-tool (echo): Add a speedier workaround for ksh.
59725         * tests/test-echo.sh: Likewise.
59726
59727 2007-06-23  Bruno Haible  <bruno@clisp.org>
59728
59729         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
59730         * tests/test-echo.sh: Likewise.
59731
59732 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59733
59734         * gnulib-tool (IFS): Initialize early, so we don't set it to
59735         empty later.
59736         (self_abspathname): Rewrite algorithm to set it, reindent.
59737         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
59738         (func_create_megatestdir): Merge some sed scripts.
59739
59740 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59741
59742         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
59743         exposed by Sun Studio 11 cc on Solaris 8.
59744
59745 2007-06-22  Bruno Haible  <bruno@clisp.org>
59746
59747         * gnulib-tool (echo): Ensure the echo primitive does not interpret
59748         backslashes.
59749         * tests/test-echo.sh: New file.
59750
59751 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59752
59753         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
59754         simplify `sed_replace_build_aux' scripts, they are portable but
59755         echoing them with `echo' is not.
59756         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
59757
59758 2007-06-21  Karl Berry  <karl@gnu.org>
59759
59760         * config/srclist.txt: guess we can't handle the licenses via
59761         srclist at the moment.
59762
59763 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59764
59765         * MODULES.html.sh: Add include_next.
59766         * modules/include_next: New file.
59767
59768 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59769
59770         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
59771         INCLUDE_NEXT.
59772         (gl_CHECK_NEXT_HEADERS): New macro.
59773         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
59774         the obsolescent gl_ABSOLUTE_HEADER.
59775         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
59776         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
59777         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
59778         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59779         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
59780         * m4/math_h.m4 (gl_MATH_H): Likewise.
59781         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59782         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59783         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
59784         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59785         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
59786         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
59787         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
59788         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59789         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59790         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
59791         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
59792         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
59793         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
59794         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59795         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
59796         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59797         * m4/inttypes.m4 (gl_INTTYPES_H): Define
59798         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
59799         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
59800         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
59801         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
59802         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
59803         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
59804         * lib/float_.h: Likewise.
59805         * lib/inttypes_.h: Likewise.
59806         * lib/math_.h: Likewise.
59807         * lib/search_.h: Likewise.
59808         * lib/signal_.h: Likewise.
59809         * lib/stdint_.h: Likewise.
59810         * lib/stdio_.h: Likewise.
59811         * lib/stdlib_.h: Likewise.
59812         * lib/string_.h: Likewise.
59813         * lib/sys_stat_.h: Likewise.
59814         * lib/sys_time_.h: Likewise.
59815         * lib/time_.h: Likewise.
59816         * lib/unistd_.h: Likewise.
59817         * lib/wchar_.h: Likewise.
59818         * lib/wctype_.h: Likewise.
59819         * lib/dirent_.h: Likewise.
59820         * lib/iconv_.h: Likewise.
59821         * lib/locale_.h: Likewise.
59822         * lib/netinet_in_.h: Likewise.
59823         * lib/sys_select_.h: Likewise.
59824         * lib/sys_socket_.h: Likewise.
59825         * lib/sysexits_.h: Likewise.
59826         * modules/fcntl (Depends-on): Depend on include_next, not
59827         absolute_header.
59828         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
59829         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
59830         * modules/fchdir: Likewise.
59831         * modules/float: Likewise.
59832         * modules/iconv_open: Likewise.
59833         * modules/inttypes: Likewise.
59834         * modules/locale: Likewise.
59835         * modules/math: Likewise.
59836         * modules/netinet_in: Likewise.
59837         * modules/search: Likewise.
59838         * modules/signal: Likewise.
59839         * modules/stdint: Likewise.
59840         * modules/stdio: Likewise.
59841         * modules/stdlib: Likewise.
59842         * modules/string: Likewise.
59843         * modules/sys_select: Likewise.
59844         * modules/sys_socket: Likewise.
59845         * modules/sys_stat: Likewise.
59846         * modules/sys_time: Likewise.
59847         * modules/sysexits: Likewise.
59848         * modules/time: Likewise.
59849         * modules/unistd: Likewise.
59850         * modules/wchar: Likewise.
59851         * modules/wctype: Likewise.
59852         * modules/sys_stat: Change maintainer to "all".
59853         * modules/unistd: Likewise.
59854
59855 2007-06-20  Karl Berry  <karl@gnu.org>
59856
59857         * config/srclist.txt: track www changes in license files.
59858
59859 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
59860
59861         * build-aux/bootstrap: Remove stray dot.
59862         Make sure build_aux settings are honored when linking
59863         gnulib_extra_files.
59864
59865 2007-06-19  Eric Blake  <ebb9@byu.net>
59866
59867         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59868         Allow compilation on cygwin.
59869
59870 2007-06-19  Jim Meyering  <jim@meyering.net>
59871
59872         xreadlink-with-size: Remove module.  No longer used.
59873         Ex-callers now use xreadlink or mreadlink-with-size.
59874         * modules/xreadlink-with-size: Remove module.
59875         * lib/xreadlink-with-size.c: Remove file.
59876         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
59877         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
59878         just before the function definition *is* accurate.
59879
59880         Eliminate one way canonicalize_filename_mode could exit.
59881         * lib/canonicalize.c (canonicalize_filename_mode):
59882         Use mreadlink_with_size, not xreadlink_with_size.
59883
59884 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
59885
59886         Detect porting problems to FreeBSD/arm, which has time_t wider than
59887         long int.  Original problem reported for GNU diff by Xin Li in
59888         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
59889         * modules/getdate (Depends-on): Add intprops, verify.
59890         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
59891         is an integer type no wider than long int.
59892
59893 2007-06-18  Jim Meyering  <jim@meyering.net>
59894
59895         New module: mreadlink-with-size.
59896         * MODULES.html.sh: Add mreadlink-with-size.
59897         * modules/mreadlink-with-size: New module
59898         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
59899         not xreadlink-with-size.
59900         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
59901
59902 2007-06-16  Bruno Haible  <bruno@clisp.org>
59903
59904         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
59905         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
59906         Reported by Gary V. Vaughan <gary@gnu.org>.
59907
59908 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
59909
59910         Revamp lchown so that it lives in unistd.h where it belongs.
59911         * lib/lchown.h: Remove.
59912         * lib/dirchownmod.c: Don't include lib/lchown.h.
59913         * lib/fchownat.c: Likewise.
59914         * lib/openat.c: Likewise.
59915         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
59916         does not follow symlinks.
59917         (EOPNOTSUPP): Define if not defined.
59918         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
59919         is defined to 0.
59920         (lchown): New decl.
59921         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
59922         Do not check for lchown decl.
59923         Set REPLACE_LCHOWN.
59924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
59925         REPLACE_LCHOWN.
59926         * modules/chown: Make it clear it follows symlinks.
59927         * modules/lchown: Make it clear it doesn't follow symlinks.
59928         (Files): Remove lib/lchown.h
59929         (Depends-on): Add unistd.
59930         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
59931         (Include): Include <unistd.h>, not "lchown.h".
59932         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
59933         REPLACE_LCHOWN.
59934
59935 2007-06-15  Jim Meyering  <jim@meyering.net>
59936
59937         Change license (GPL to LGPL) of fsusage and dependents.
59938         * modules/fsusage (License): Change to LGPL.
59939         * modules/full-read (License): Likewise.
59940         * modules/full-write (License): Likewise.
59941         * modules/safe-read (License): Likewise.
59942         * modules/safe-write (License): Likewise.
59943
59944 2007-06-14  Ben Pfaff  <blp@gnu.org>
59945
59946         Missing part of allocsa -> malloca transition.
59947         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
59948         gl_MALLOCA.
59949
59950 2007-06-12  Bruno Haible  <bruno@clisp.org>
59951
59952         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
59953         to ia64, x86_64, i386.
59954         Reported by Eric Blake.
59955
59956 2007-06-12  Bruno Haible  <bruno@clisp.org>
59957
59958         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
59959         cross-compiling to x86_64.
59960
59961 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
59962
59963         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
59964         glitch reported by Ralf Wildenhues in
59965         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
59966
59967         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
59968         Vin Shelton.
59969
59970 2007-06-11  Bruno Haible  <bruno@clisp.org>
59971
59972         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
59973         replacement string.
59974         Reported by Eric Blake.
59975
59976 2007-06-10  Bruno Haible  <bruno@clisp.org>
59977
59978         Prepare vasnprintf code for use with Unicode strings.
59979         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
59980         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
59981         TYPE_U32_STRING.
59982         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
59983         a_u32_string variants.
59984         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59985         * lib/printf-args.c: Don't include config.h and the specification
59986         header if PRINTF_FETCHARGS is already defined.
59987         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59988         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
59989         TYPE_U16_STRING, TYPE_U32_STRING.
59990         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
59991         u16_directive, u16_directives, u32_directive, u32_directives): New
59992         types.
59993         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
59994         New declarations.
59995         * lib/printf-parse.c: Don't include config.h and the specification
59996         header if PRINTF_PARSE is already defined. Eliminate the set of
59997         parameters for WIDE_CHAR_VERSION; the user of this file must provide
59998         them now. Include c-ctype.h.
59999         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
60000         directive and CHAR_T_ONLY_ASCII.
60001         * lib/vasnprintf.c: Don't include config.h and the specification header
60002         if VASNPRINTF is already defined.
60003         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
60004         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
60005         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
60006         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
60007         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
60008         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
60009         code accordingly.
60010         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
60011         pad_ourselves also in this case, with the 'c' and 's' directives, and
60012         with a different notion of "width".
60013         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
60014
60015 2007-06-10  Bruno Haible  <bruno@clisp.org>
60016
60017         * modules/unistr/u32-mbsnlen: New file.
60018         * lib/unistr/u32-mbsnlen.c: New file.
60019
60020         * modules/unistr/u16-mbsnlen: New file.
60021         * lib/unistr/u16-mbsnlen.c: New file.
60022
60023         * modules/unistr/u8-mbsnlen: New file.
60024         * lib/unistr/u8-mbsnlen.c: New file.
60025
60026         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
60027         declarations.
60028
60029 2007-06-10  Bruno Haible  <bruno@clisp.org>
60030
60031         * lib/string_.h (mbsnlen): New declaration.
60032         * lib/mbsnlen.c: New file.
60033         * m4/mbsnlen.m4: New file.
60034         * modules/mbsnlen: New file.
60035         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
60036         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
60037         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
60038
60039 2007-06-10  Bruno Haible  <bruno@clisp.org>
60040
60041         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
60042
60043 2007-06-10  Bruno Haible  <bruno@clisp.org>
60044
60045         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
60046         * lib/mbuiter.h: Likewise.
60047
60048 2007-06-10  Bruno Haible  <bruno@clisp.org>
60049
60050         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
60051         declaration.
60052
60053 2007-06-10  Karl Berry  <karl@gnu.org>
60054
60055         * config/srclist.txt: remove gettext entries, Bruno prefers
60056         to update individually.
60057
60058 2007-06-10  Bruno Haible  <bruno@clisp.org>
60059
60060         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
60061         'maxlen'. Ensure only length + width bytes are allocated, not
60062         length + 1 + width.
60063
60064 2007-06-09  Bruno Haible  <bruno@clisp.org>
60065
60066         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
60067         (CHAR_T): Remove macro.
60068         (VASNPRINTF): Update.
60069
60070 2007-06-09  Bruno Haible  <bruno@clisp.org>
60071
60072         * MODULES.html.sh (Unicode string functions): Add the new modules.
60073
60074         * modules/uniconv/u32-conv-to-enc: New file.
60075         * lib/uniconv/u32-conv-to-enc.c: New file.
60076         * modules/uniconv/u32-conv-to-enc-tests: New file.
60077         * tests/uniconv/test-u32-conv-to-enc.c: New file.
60078
60079         * modules/uniconv/u16-conv-to-enc: New file.
60080         * lib/uniconv/u16-conv-to-enc.c: New file.
60081         * lib/uniconv/u-conv-to-enc.h: New file.
60082         * modules/uniconv/u16-conv-to-enc-tests: New file.
60083         * tests/uniconv/test-u16-conv-to-enc.c: New file.
60084
60085         * modules/uniconv/u8-conv-to-enc: New file.
60086         * lib/uniconv/u8-conv-to-enc.c: New file.
60087         * modules/uniconv/u8-conv-to-enc-tests: New file.
60088         * tests/uniconv/test-u8-conv-to-enc.c: New file.
60089
60090         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
60091         u32_conv_to_encoding): New declarations.
60092
60093 2007-06-09  Bruno Haible  <bruno@clisp.org>
60094
60095         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
60096
60097 2007-06-09  Bruno Haible  <bruno@clisp.org>
60098
60099         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
60100         * modules/malloca: Renamed from modules/allocsa, updated.
60101         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
60102         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
60103         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
60104         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
60105         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
60106         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
60107         * modules/xmalloca: Renamed from modules/xallocsa, updated.
60108         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
60109         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
60110         * modules/c-strcasestr (Depends-on): Update.
60111         * lib/c-strcasestr.c: Update.
60112         * modules/c-strstr (Depends-on): Update.
60113         * lib/c-strstr.c: Update.
60114         * modules/canonicalize-lgpl (Depends-on): Update.
60115         * lib/canonicalize-lgpl.c: Update.
60116         * modules/clean-temp (Depends-on): Update.
60117         * lib/clean-temp.c: Update.
60118         * modules/csharpcomp (Depends-on): Update.
60119         * lib/csharpcomp.c: Update.
60120         * modules/csharpexec (Depends-on): Update.
60121         * lib/csharpexec.c: Update.
60122         * modules/javacomp (Depends-on): Update.
60123         * lib/javacomp.c: Update.
60124         * modules/javaexec (Depends-on): Update.
60125         * lib/javaexec.c: Update.
60126         * modules/mbscasestr (Depends-on): Update.
60127         * lib/mbscasestr.c: Update.
60128         * modules/mbsstr (Depends-on): Update.
60129         * lib/mbsstr.c: Update.
60130         * modules/setenv (Depends-on): Update.
60131         * lib/setenv.c: Update.
60132         * modules/strcasestr (Depends-on): Update.
60133         * lib/strcasestr.c: Update.
60134         * modules/striconveha (Depends-on): Update.
60135         * lib/striconveha.c: Update.
60136         * modules/relocatable-prog-wrapper (Files): Update.
60137         * lib/relocwrapper.c: Update.
60138         * build-aux/install-reloc: Update.
60139         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
60140
60141 2007-06-08  Bruno Haible  <bruno@clisp.org>
60142
60143         Port to uClibc.
60144         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
60145         * lib/fpurge.c (fpurge): Likewise.
60146         * lib/freading.c (freading): Likewise.
60147         * lib/fseeko.c (rpl_fseeko): Likewise.
60148         * lib/fseterr.c (fseterr): Likewise.
60149         * lib/fwriting.c (fwriting): Likewise.
60150         * tests/test-fflush.c (main): Avoid a failure on uClibc.
60151
60152 2007-06-08  Bruno Haible  <bruno@clisp.org>
60153
60154         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
60155         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
60156         * modules/gettext (Files): Add m4/intlmacosx.m4.
60157
60158 2007-06-07  Bruno Haible  <bruno@clisp.org>
60159
60160         * modules/localename-tests: New file.
60161         * tests/test-localename.c: New file.
60162
60163         New module 'localename'.
60164         * lib/localename.h: New file.
60165         * lib/localename.c: New file, from GNU gettext.
60166         * m4/localename.m4: New file.
60167         * modules/localename: New file.
60168
60169 2007-06-07  Bruno Haible  <bruno@clisp.org>
60170
60171         Work around the lack of <wchar.h> on some builds of uClibc.
60172         * doc/headers/wchar.texi: Update.
60173         * lib/wchar_.h: Include <wchar.h> only if it exists.
60174         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
60175         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
60176         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
60177         doesn't exist.
60178         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
60179         * modules/mbfile (Depends-on): Add wchar.
60180         * modules/mbiter (Depends-on): Likewise.
60181         * modules/mbuiter (Depends-on): Likewise.
60182         Reported by Simon Josefsson.
60183
60184 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60185
60186         Work around problem reported by Steven M. Schweda in
60187         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
60188         Tru64 5.1B with the Compaq compiler environment installed declares
60189         an 'isblank' function but does not define it in the C library.
60190         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
60191         * lib/regex_internal.h (isblank): Likewise.
60192         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
60193         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60194
60195 2007-06-05  Bruno Haible  <bruno@clisp.org>
60196
60197         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
60198         ia64.
60199         * modules/printf-safe: New file.
60200         * modules/fprintf-posix (Depends-on): Add printf-safe.
60201         * modules/printf-posix (Depends-on): Likewise.
60202         * modules/snprintf-posix (Depends-on): Likewise.
60203         * modules/sprintf-posix (Depends-on): Likewise.
60204         * modules/vasnprintf-posix (Depends-on): Likewise.
60205         * modules/vasprintf-posix (Depends-on): Likewise.
60206         * modules/vfprintf-posix (Depends-on): Likewise.
60207         * modules/vprintf-posix (Depends-on): Likewise.
60208         * modules/vsnprintf-posix (Depends-on): Likewise.
60209         * modules/vsprintf-posix (Depends-on): Likewise.
60210         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
60211         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
60212         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
60213         "no" on i386, x86_64, ia64.
60214         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
60215         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60216         on i386, x86_64, ia64.
60217         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
60218         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60219         on i386, x86_64, ia64.
60220         * tests/test-vasnprintf-posix.c: Include float.h.
60221         (LDBL80_WORDS): New macro.
60222         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60223         on i386, x86_64, ia64.
60224         * tests/test-vasprintf-posix.c: Include float.h.
60225         (LDBL80_WORDS): New macro.
60226         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60227         on i386, x86_64, ia64.
60228         * tests/test-snprintf-posix.c: Include float.h.
60229         * tests/test-sprintf-posix.c: Likewise.
60230         * tests/test-vsnprintf-posix.c: Likewise.
60231         * tests/test-vsprintf-posix.c: Likewise.
60232
60233 2007-06-05  Bruno Haible  <bruno@clisp.org>
60234
60235         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
60236         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
60237         non-IEEE numbers on i386, x86_64, ia64.
60238         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
60239         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
60240         * tests/test-isnanl.h: Include float.h.
60241         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
60242
60243 2007-06-05  Bruno Haible  <bruno@clisp.org>
60244
60245         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
60246         also the %a / %A. Handle the %a / %A code before this extra handling.
60247
60248 2007-06-05  Bruno Haible  <bruno@clisp.org>
60249
60250         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
60251         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
60252
60253 2007-06-05  Bruno Haible  <bruno@clisp.org>
60254
60255         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
60256         typo in variable name.
60257
60258 2007-06-05  Eric Blake  <ebb9@byu.net>
60259
60260         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
60261         Reported by Simon Josefsson.
60262
60263 2007-06-04  Bruno Haible  <bruno@clisp.org>
60264
60265         Avoid test failures on some PowerPC platforms.
60266         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
60267         Define differently for PowerPC.
60268         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
60269         Reported by Gary V. Vaughan <gary@gnu.org>.
60270
60271 2007-06-02  Bruno Haible  <bruno@clisp.org>
60272
60273         Fix test-stdint failure on FreeBSD/ia64.
60274         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
60275         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
60276         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
60277         * doc/headers/stdint.texi: Update.
60278
60279 2007-06-01  Bruno Haible  <bruno@clisp.org>
60280
60281         * tests/test-binary-io.c (main): Pass a third argument to open().
60282         Reported by Gary V. Vaughan <gary@gnu.org>.
60283
60284 2007-06-01  Bruno Haible  <bruno@clisp.org>
60285
60286         * doc/functions/frexpl.texi: Update for mingw.
60287
60288 2007-06-01  Bruno Haible  <bruno@clisp.org>
60289
60290         * tests/test-lseek.c (main): Disable test of errno for invalid third
60291         argument.
60292         * doc/functions/lseek.texi: Update.
60293         Reported by Gary V. Vaughan <gary@gnu.org>.
60294
60295 2007-05-28  Bruno Haible  <bruno@clisp.org>
60296
60297         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
60298
60299 2007-05-31  Eric Blake  <ebb9@byu.net>
60300
60301         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
60302         cross compiling.
60303
60304 2007-05-30  Eric Blake  <ebb9@byu.net>
60305         and Bruno Haible  <bruno@clisp.org>
60306
60307         Work around mingw test failures exposed by m4-1.4.9b.
60308         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
60309         * tests/test-unistd.c: Disable uid_t and git_t tests for the
60310         moment.
60311
60312 2007-05-30  Bruno Haible  <bruno@clisp.org>
60313
60314         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
60315         assuming that they are closed. Needed on HP-UX 11.
60316
60317 2007-05-29  Bruno Haible  <bruno@clisp.org>
60318
60319         Fix a problem with #include_next.
60320         * lib/dirent_.h: Split the double-inclusion guard.
60321         * lib/fcntl_.h: Likewise.
60322         * lib/float_.h: Likewise.
60323         * lib/iconv_.h: Likewise.
60324         * lib/inttypes_.h: Likewise.
60325         * lib/locale_.h: Likewise.
60326         * lib/math_.h: Likewise.
60327         * lib/netinet_in_.h: Likewise.
60328         * lib/search_.h: Likewise.
60329         * lib/signal_.h: Likewise.
60330         * lib/stdint_.h: Likewise.
60331         * lib/stdio_.h: Likewise.
60332         * lib/stdlib_.h: Likewise.
60333         * lib/string_.h: Likewise.
60334         * lib/sys_select_.h: Likewise.
60335         * lib/sys_socket_.h: Likewise.
60336         * lib/sys_stat_.h: Likewise.
60337         * lib/sys_time_.h: Likewise.
60338         * lib/sysexits_.h: Likewise.
60339         * lib/time_.h: Likewise.
60340         * lib/unistd_.h: Likewise.
60341         * lib/wchar_.h: Likewise.
60342         * lib/wctype_.h: Likewise.
60343
60344 2007-05-29  Bruno Haible  <bruno@clisp.org>
60345
60346         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
60347         for the moment.
60348
60349 2007-05-29  Bruno Haible  <bruno@clisp.org>
60350
60351         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
60352         invocation.
60353         Reported by Eric Blake.
60354
60355 2007-05-29  Bruno Haible  <bruno@clisp.org>
60356
60357         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
60358         compiling case.
60359
60360 2007-05-29  Eric Blake  <ebb9@byu.net>
60361             Bruno Haible  <bruno@clisp.org>
60362
60363         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
60364         cross compiles.
60365
60366 2007-05-28  Eric Blake  <ebb9@byu.net>
60367
60368         * modules/closein-tests (test_closein_LDADD): Support test on
60369         cygwin with libtool.
60370
60371 2007-05-28  Bruno Haible  <bruno@clisp.org>
60372
60373         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
60374         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60375         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60376         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60377         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60378         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60379         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60380         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60381         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60382
60383 2007-05-28  Eric Blake  <ebb9@byu.net>
60384
60385         Unconditionally include <config.h> in unit tests.
60386         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
60387         * tests/test-allocsa.c, tests/test-arcfour.c,
60388         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
60389         tests/test-array_list.c, tests/test-array_oset.c,
60390         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
60391         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
60392         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
60393         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
60394         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
60395         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
60396         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
60397         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
60398         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
60399         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
60400         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
60401         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
60402         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
60403         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
60404         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
60405         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
60406         test-md5.c, test-memmem.c, test-printf-posix.c,
60407         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
60408         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
60409         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
60410         test-strcasestr.c, test-striconv.c, test-striconveh.c,
60411         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
60412         test-vasnprintf-posix2.c, test-vasnprintf.c,
60413         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
60414         test-vfprintf-posix.c, test-vprintf-posix.c,
60415         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
60416         test-xvasprintf.c: Likewise.
60417
60418 2007-05-28  Bruno Haible  <bruno@clisp.org>
60419
60420         * gnulib-tool (func_import): Remember the --with-tests command-line
60421         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
60422         Reported by Eric Blake.
60423
60424 2007-05-28  Bruno Haible  <bruno@clisp.org>
60425
60426         * modules/ftell-tests: New file.
60427         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
60428         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
60429
60430         * lib/ftell.c: New file.
60431         * modules/ftell: New file.
60432         * m4/ftell.m4: New file.
60433         * doc/functions/ftell.texi: Update.
60434         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
60435         REPLACE_FTELL.
60436         * lib/stdio_.h (rpl_ftell): New declaration.
60437         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
60438         REPLACE_FTELL.
60439
60440 2007-05-28  Eric Blake  <ebb9@byu.net>
60441
60442         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
60443
60444 2007-05-28  Bruno Haible  <bruno@clisp.org>
60445
60446         * modules/fseek-tests: New file.
60447         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
60448         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
60449
60450         * lib/fseek.c: New file.
60451         * modules/fseek: New file.
60452         * m4/fseek.m4: New file.
60453         * doc/functions/fseek.texi: Update.
60454         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
60455         REPLACE_FSEEK.
60456         * lib/stdio_.h (rpl_fseek): New declaration.
60457         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
60458         REPLACE_FSEEK.
60459
60460 2007-05-28  Bruno Haible  <bruno@clisp.org>
60461
60462         * lib/stdio_.h (fflush): More comments.
60463
60464 2007-05-28  Bruno Haible  <bruno@clisp.org>
60465
60466         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
60467         runtime test.
60468
60469 2007-05-28  Eric Blake  <ebb9@byu.net>
60470
60471         Improve lseek module.
60472         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
60473         * lib/unistd_.h (lseek): Scale back link warning message.
60474         * tests/test-lseek.c: Beef up test.
60475         * tests/test-lseek.sh: Exercise more facets of lseek.
60476         Reported by Bruno Haible.
60477
60478 2007-05-28  Bruno Haible  <bruno@clisp.org>
60479
60480         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
60481         to define.
60482
60483 2007-05-27  Bruno Haible  <bruno@clisp.org>
60484
60485         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
60486
60487 2007-05-27  Bruno Haible  <bruno@clisp.org>
60488
60489         * modules/openmp: New file.
60490         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
60491         Noah Misch.
60492
60493 2007-05-26  Bruno Haible  <bruno@clisp.org>
60494
60495         * modules/chdir-long (Depends-on): Add fchdir.
60496         * modules/chdir-safer (Depends-on): Likewise.
60497         * modules/fts (Depends-on): Likewise.
60498         * modules/fts-lgpl (Depends-on): Likewise.
60499         * modules/openat (Depends-on): Likewise.
60500         * modules/savewd (Depends-on): Likewise.
60501
60502 2007-05-24  Eric Blake  <ebb9@byu.net>
60503
60504         Fix lseek on mingw.
60505         * modules/lseek: New module.
60506         * m4/lseek.m4: New file.
60507         * lib/lseek.c: New file.
60508         * modules/lseek-tests: New file.
60509         * tests/test-lseek.c: New file.
60510         * tests/test-lseek.sh: New file.
60511         * MODULES.html.sh: Document lseek module.
60512         * modules/fflush (Depends-on): Add lseek, fseeko.
60513         * modules/fseeko (Depends-on): Likewise.
60514         * modules/ftello (Depends-on): Likewise.
60515         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
60516         broken.
60517         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
60518         broken.
60519         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
60520         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
60521         * lib/ftello.c (rpl_ftello): Likewise.
60522         * tests/test-fseeko.c (main): Test this.
60523         * tests/test-fseeko.sh: Likewise.
60524         * tests/test-ftello.c (main): Likewise.
60525         * tests/test-ftello.sh: Likewise.
60526         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
60527         implies replacing fseek.
60528         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
60529         HAVE_FTELLO.
60530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
60531         * modules/unistd (Makefile.am): Likewise.
60532         * lib/unistd_.h (lseek): Declare a replacement.
60533         * doc/functions/lseek.texi (lseek): Document this fix.
60534         * doc/functions/fseek.texi (fseek): Likewise.
60535         * doc/functions/ftell.texi (ftell): Likewise.
60536
60537 2007-05-24  Bruno Haible  <bruno@clisp.org>
60538
60539         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
60540         in the printed representation of a NaN.
60541         * tests/test-vasprintf-posix.c (test_function): Likewise.
60542         * tests/test-snprintf-posix.h (test_function): Likewise.
60543         * tests/test-sprintf-posix.h (test_function): Likewise.
60544         Reported by Eric Blake.
60545
60546 2007-05-23  Eric Blake  <ebb9@byu.net>
60547
60548         Fix fseeko/ftello on cygwin 1.5.24.
60549         * doc/functions/fseeko.texi (fseeko): Document the fix.
60550         * doc/functions/ftello.texi (ftello): Document the fix.
60551         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
60552         * doc/functions/stdout.text (stdout): New file.
60553         * doc/functions/stderr.text (stderr): New file.
60554         * doc/gnulib.texi (Function Substitutes): Use new files.
60555         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
60556         prior to 1.7.0.
60557         * tests/test-ftello.c (main): Likewise for ftello.
60558         * tests/test-fseeko.sh: New file.
60559         * tests/test-ftello.sh: New file.
60560         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
60561         with seekable stdin.
60562         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
60563         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
60564         (gl_REPLACE_FSEEKO): New macro.
60565         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
60566         * modules/fseeko (Files): Distribute fseeko.c.
60567         * modules/ftello (Files): Distribute ftello.c.
60568         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
60569         mode.
60570         * lib/ftello.c (rpl_ftello): New file.
60571         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
60572         fseeko, ftello.
60573         (gl_STDIN_LARGE_OFFSET): New macro.
60574         * modules/stdio (Makefile.am): Perform the replacement.
60575         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
60576
60577 2007-05-23  Bruno Haible  <bruno@clisp.org>
60578
60579         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
60580         GNULIB_POSIXCHECK is defined.
60581
60582 2007-05-21  Bruno Haible  <bruno@clisp.org>
60583
60584         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
60585         Check also the output for NaN arguments. When cross-compiling, guess
60586         no on IRIX.
60587         * lib/vasnprintf.c: Update comments.
60588         * tests/test-vasnprintf-posix.c (strisnan): New function.
60589         (test_function): Use it.
60590         * tests/test-vasprintf-posix.c (strisnan): New function.
60591         (test_function): Use it.
60592         * tests/test-snprintf-posix.h (strisnan): New function.
60593         (test_function): Use it.
60594         * tests/test-sprintf-posix.h (strisnan): New function.
60595         (test_function): Use it.
60596         Reported by Eric Blake.
60597
60598 2007-05-20  Bruno Haible  <bruno@clisp.org>
60599
60600         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
60601         numbers that fails on BeOS.
60602         * doc/functions/frexpl.texi: Update.
60603
60604 2007-05-20  Jim Meyering  <jim@meyering.net>
60605
60606         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
60607         forced upon us by glibc-2.6.
60608
60609 2007-05-20  Bruno Haible  <bruno@clisp.org>
60610
60611         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
60612         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
60613         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
60614         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
60615         NEED_PRINTF_INFINITE.
60616         (is_infinitel): New function.
60617         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
60618         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
60619         gl_PREREQ_VASNPRINTF_INFINITE.
60620         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
60621         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60622         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
60623         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
60624         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
60625         gl_PREREQ_VASNPRINTF_INFINITE.
60626         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60627         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60628         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60629         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60630         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60631         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60632         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60633         * doc/functions/fprintf.texi: Update.
60634         * doc/functions/printf.texi: Update.
60635         * doc/functions/snprintf.texi: Update.
60636         * doc/functions/sprintf.texi: Update.
60637         * doc/functions/vfprintf.texi: Update.
60638         * doc/functions/vprintf.texi: Update.
60639         * doc/functions/vsnprintf.texi: Update.
60640         * doc/functions/vsprintf.texi: Update.
60641
60642 2007-05-20  Bruno Haible  <bruno@clisp.org>
60643
60644         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
60645         was not found in libc.
60646         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
60647
60648 2007-05-20  Bruno Haible  <bruno@clisp.org>
60649
60650         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60651         printed as "-nan" instead of "nan".
60652         * tests/test-vasprintf-posix.c (test_function): Likewise.
60653         * tests/test-snprintf-posix.h (test_function): Likewise.
60654         * tests/test-sprintf-posix.h (test_function): Likewise.
60655         Needed for HP-UX 11.
60656
60657 2007-05-20  Jim Meyering  <jim@meyering.net>
60658
60659         Fix buggy test for the fchownat-deref bug.
60660         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
60661         symlink required for the run-test.  Without it, this test would
60662         always declare that fchownat doesn't work, and client code would
60663         unnecessarily use the replacement function with fixed libc.
60664         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
60665         Reported by Greg Schafer.
60666
60667 2007-05-19  Bruno Haible  <bruno@clisp.org>
60668
60669         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
60670         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
60671         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
60672         Needed for IRIX 6.5 and Solaris 2.5.1.
60673
60674 2007-05-19  Bruno Haible  <bruno@clisp.org>
60675
60676         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
60677         (test_function): Skip tests involving -0.0 on platforms where
60678         -0.0 = 0.0.
60679         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
60680         (test_function): Skip tests involving -0.0 on platforms where
60681         -0.0 = 0.0.
60682         * tests/test-snprintf-posix.h (have_minus_zero): New function.
60683         (test_function): Skip tests involving -0.0 on platforms where
60684         -0.0 = 0.0.
60685         * tests/test-sprintf-posix.h (have_minus_zero): New function.
60686         (test_function): Skip tests involving -0.0 on platforms where
60687         -0.0 = 0.0.
60688         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
60689         tests.
60690         * tests/test-printf-posix.h (test_function): Likewise.
60691         * tests/test-printf-posix.output: Remove all -0.0 related results.
60692         Needed for IRIX 6.5.
60693
60694 2007-05-19  Bruno Haible  <bruno@clisp.org>
60695
60696         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60697         printed as "nan0x7fffffff" instead of "nan".
60698         * tests/test-vasprintf-posix.c (test_function): Likewise.
60699         * tests/test-snprintf-posix.h (test_function): Likewise.
60700         * tests/test-sprintf-posix.h (test_function): Likewise.
60701         * tests/test-fprintf-posix.h (NaN): Remove macro.
60702         (test_function): Remove all NaN related tests.
60703         * tests/test-printf-posix.h (NaN): Remove macro.
60704         (test_function): Remove all NaN related tests.
60705         * tests/test-printf-posix.output: Remove all NaN related results.
60706         Needed for IRIX 6.5.
60707
60708 2007-05-19  Bruno Haible  <bruno@clisp.org>
60709
60710         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
60711         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
60712
60713 2007-05-19  Bruno Haible  <bruno@clisp.org>
60714
60715         * lib/float_.h: New file.
60716         * m4/float_h.m4: New file.
60717         * modules/float: New file.
60718         * modules/isnanl (Dependencies): Add float.
60719         * modules/isnanl-nolibm (Dependencies): Likewise.
60720         * modules/mathl (Dependencies): Likewise.
60721         * modules/printf-frexpl (Dependencies): Likewise.
60722         * modules/signbit (Dependencies): Likewise.
60723         * modules/vasnprintf (Dependencies): Likewise.
60724         * doc/headers/float.texi: Update.
60725
60726 2007-05-19  Jim Meyering  <jim@meyering.net>
60727
60728         * lib/utimens.c (gl_futimens): Rename from futimens,
60729         now that glibc-2.6 declares futimens.
60730         * lib/utimens.h: Likewise.
60731
60732 2007-05-19  Bruno Haible  <bruno@clisp.org>
60733
60734         Avoid test failures on mingw.
60735         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
60736         * tests/test-printf-posix.sh: Likewise.
60737         * tests/test-vfprintf-posix.sh: Likewise.
60738         * tests/test-vprintf-posix.sh: Likewise.
60739
60740 2007-05-19  Bruno Haible  <bruno@clisp.org>
60741
60742         Fix *printf result for NaN, Inf, -0.0 on mingw.
60743         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
60744         * lib/vasnprintf.c: Include math.h and isnan.h.
60745         (is_infinite_or_zero): New function.
60746         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
60747         values in the %f, %F, %e, %E, %g, %G directives.
60748         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
60749         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60750         gl_PRINTF_INFINITE and test its result. Invoke
60751         gl_PREREQ_VASNPRINTF_INFINITE.
60752         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60753         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60754         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60755         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60756         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60757         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60758         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60759         * doc/functions/fprintf.texi: Update.
60760         * doc/functions/printf.texi: Update.
60761         * doc/functions/snprintf.texi: Update.
60762         * doc/functions/sprintf.texi: Update.
60763         * doc/functions/vfprintf.texi: Update.
60764         * doc/functions/vprintf.texi: Update.
60765         * doc/functions/vsnprintf.texi: Update.
60766         * doc/functions/vsprintf.texi: Update.
60767
60768 2007-05-19  Bruno Haible  <bruno@clisp.org>
60769
60770         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
60771         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
60772         Instead of multiplying with 10^k, set extra_zeroes to k.
60773         (scale10_round_long_double): Remove function.
60774
60775 2007-05-18  Bruno Haible  <bruno@clisp.org>
60776
60777         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
60778         introduced on 2007-05-06.
60779
60780 2007-05-18  Bruno Haible  <bruno@clisp.org>
60781
60782         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
60783         %g directives.
60784         * tests/test-vasprintf-posix.c (test_function): Likewise.
60785         * tests/test-snprintf-posix.h (test_function): Likewise.
60786         * tests/test-sprintf-posix.h (test_function): Likewise.
60787
60788 2007-05-18  Bruno Haible  <bruno@clisp.org>
60789
60790         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
60791         (strmatch): New function.
60792         (test_function): Test the %f directive on numbers of various exponents.
60793         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
60794         (strmatch): New function.
60795         (test_function): Test the %f directive on numbers of various exponents.
60796         * tests/test-snprintf-posix.h (strmatch): New function.
60797         (test_function): Test the %f directive on numbers of various exponents.
60798         * tests/test-sprintf-posix.h (strmatch): New function.
60799         (test_function): Test the %f directive on numbers of various exponents.
60800         * tests/test-snprintf-posix.c (SIZEOF): New macro.
60801         * tests/test-sprintf-posix.c (SIZEOF): New macro.
60802         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
60803         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
60804
60805 2007-05-18  Bruno Haible  <bruno@clisp.org>
60806
60807         Add support for 'long double' number output.
60808         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
60809         * lib/vasnprintf.c: Include math.h and float+.h.
60810         (mp_limb_t): New type.
60811         (GMP_LIMB_BITS): New macro.
60812         (mp_twolimb_t): New type.
60813         (GMP_TWOLIMB_BITS): New macro.
60814         (mpn_t): New type.
60815         (multiply, divide, convert_to_decimal, decode_long_double,
60816         scale10_round_long_double, scale10_round_decimal_long_double,
60817         floorlog10l): New functions.
60818         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
60819         for the %f, %F, %e, %E, %g, %G directives.
60820         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
60821         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60822         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
60823         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
60824         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60825         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60826         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60827         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60828         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60829         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60830         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60831         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
60832         * modules/snprintf-posix (Depends-on): Likewise.
60833         * modules/sprintf-posix (Depends-on): Likewise.
60834         * modules/vasnprintf-posix (Depends-on): Likewise.
60835         * modules/vasprintf-posix (Depends-on): Likewise.
60836         * modules/vfprintf-posix (Depends-on): Likewise.
60837         * modules/vsnprintf-posix (Depends-on): Likewise.
60838         * modules/vsprintf-posix (Depends-on): Likewise.
60839         * modules/vasnprintf (Files): Add lib/float+.h.
60840         * doc/functions/fprintf.texi: Update.
60841         * doc/functions/printf.texi: Update.
60842         * doc/functions/snprintf.texi: Update.
60843         * doc/functions/sprintf.texi: Update.
60844         * doc/functions/vfprintf.texi: Update.
60845         * doc/functions/vprintf.texi: Update.
60846         * doc/functions/vsnprintf.texi: Update.
60847         * doc/functions/vsprintf.texi: Update.
60848
60849 2007-05-18  Bruno Haible  <bruno@clisp.org>
60850
60851         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
60852
60853 2007-05-18  Bruno Haible  <bruno@clisp.org>
60854
60855         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
60856         for printing 64-bit integers. Needed for mingw.
60857
60858 2007-05-18  Bruno Haible  <bruno@clisp.org>
60859
60860         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60861         gl_FUNC_FREXPL_WORKS.
60862         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
60863
60864 2007-05-18  Bruno Haible  <bruno@clisp.org>
60865
60866         * modules/frexpl-nolibm-tests: New file.
60867
60868         * modules/frexpl-nolibm: New file.
60869         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
60870
60871 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60872
60873         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
60874         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60875         GCC 4.2, which otherwise issues a lot of warnings.
60876         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
60877         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
60878         Likewise.
60879         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
60880         * modules/iconv_open (iconv.h): Likewise.
60881         * modules/locale (locale.h): Likewise.
60882         * modules/netinet_in (netinet/in.h): Likewise.
60883         * modules/sys_select (sys_select.h): Likewise.
60884         * modules/sys_socket (sys/socket.h): Likewise.
60885         * modules/sys_stat (sys/stat.h): Likewise.
60886         * modules/sysexits (sysexits.h): Likewise.
60887         * modules/unistd (unistd.h): Likewise.
60888
60889 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60890
60891         * modules/closein-tests (Makefile.am): Distribute
60892         `test-closein.sh'.
60893
60894 2007-05-17  Bruno Haible  <bruno@clisp.org>
60895
60896         * tests/test-printf-posix.output: Renamed from
60897         tests/test-fprintf-posix.out.
60898         * modules/fprintf-posix-tests: Update.
60899         * modules/printf-posix-tests: Update.
60900         * modules/vfprintf-posix-tests: Update.
60901         * modules/vprintf-posix-tests: Update.
60902         * tests/test-fprintf-posix.sh: Update.
60903         * tests/test-printf-posix.sh: Update.
60904         * tests/test-vfprintf-posix.sh: Update.
60905         * tests/test-vprintf-posix.sh: Update.
60906         Reported by Ralf Wildenhues.
60907
60908 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60909
60910         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
60911         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60912         GCC 4.2, which otherwise issues a lot of warnings.
60913         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
60914         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
60915         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
60916         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
60917         it should no longer be needed.
60918         * lib/string_.h: Likewise.
60919         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
60920         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
60921         * modules/inttypes (inttypes.h): Likewise.
60922         * modules/math (math.h): Likewise.
60923         * modules/search (search.h): Likewise.
60924         * modules/signal (signal.h): Likewise.
60925         * modules/stdint (stdint.h): Likewise.
60926         * modules/stdio (stdio.h): Likewise.
60927         * modules/stdlib (stdlib.h): Likewise.
60928         * modules/string (string.h): Likewise.
60929         * modules/sys_time (sys/time.h): Likewise.
60930         * modules/time (time.h): Likewise.
60931         * modules/wchar (wchar.h): Likewise.
60932         * modules/wctype (wtype.h): Likewise.
60933
60934 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60935
60936         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
60937
60938 2007-05-13  Bruno Haible  <bruno@clisp.org>
60939
60940         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
60941         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60942         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
60943         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60944         (gl_PREREQ_STRTOK_R): Don't require it here.
60945
60946 2007-05-13  Bruno Haible  <bruno@clisp.org>
60947
60948         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
60949         when used in C++ mode.
60950
60951 2007-05-12  Bruno Haible  <bruno@clisp.org>
60952
60953         * lib/linebuffer.h: Tweak doc.
60954         * lib/linebuffer.c: Likewise.
60955
60956 2007-05-12  James Youngman  <jay@gnu.org>
60957
60958         * lib/linebuffer.c (readlinebuffer_delim): New function,
60959         like readlinebuffer, but use a caller-specified delimiter.
60960         (readlinebuffer): Just call readlinebuffer_delim with '\n'
60961         as the delimiter.
60962         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
60963
60964 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60965
60966         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
60967         * modules/openat (Files): Remove openat-die.c.
60968         (Depends-on): Add openat-die.
60969         * modules/openat-die: New module.
60970
60971 2007-05-06  Bruno Haible  <bruno@clisp.org>
60972
60973         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
60974         Update with info about Cygwin.
60975         * doc/functions/fprintf.texi: Update.
60976         * doc/functions/printf.texi: Update.
60977         * doc/functions/snprintf.texi: Update.
60978         * doc/functions/sprintf.texi: Update.
60979         * doc/functions/vfprintf.texi: Update.
60980         * doc/functions/vprintf.texi: Update.
60981         * doc/functions/vsnprintf.texi: Update.
60982         * doc/functions/vsprintf.texi: Update.
60983         Reported by Eric Blake.
60984
60985 2007-05-06  Bruno Haible  <bruno@clisp.org>
60986
60987         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
60988         padding ourselves for the floating-point directives.
60989         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
60990         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
60991         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60992         gl_PRINTF_FLAG_ZERO and test its result. Invoke
60993         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
60994         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60995         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60996         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60997         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60998         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60999         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61000         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61001         * tests/test-snprintf-posix.h (test_function): Also check the width
61002         and some flags in the %f directive.
61003         * tests/test-sprintf-posix.h (test_function): Likewise.
61004         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61005         * tests/test-vasprintf-posix.c (test_function): Likewise.
61006         * doc/functions/fprintf.texi: Update.
61007         * doc/functions/printf.texi: Update.
61008         * doc/functions/snprintf.texi: Update.
61009         * doc/functions/sprintf.texi: Update.
61010         * doc/functions/vfprintf.texi: Update.
61011         * doc/functions/vprintf.texi: Update.
61012         * doc/functions/vsnprintf.texi: Update.
61013         * doc/functions/vsprintf.texi: Update.
61014
61015 2007-05-06  Bruno Haible  <bruno@clisp.org>
61016
61017         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
61018         pass the ' flag character to sprintf or snprintf.
61019         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
61020         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
61021         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61022         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
61023         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
61024         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61025         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
61026         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61027         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61028         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61029         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61030         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61031         * tests/test-snprintf-posix.h (test_function): Also check the grouping
61032         flag.
61033         * tests/test-sprintf-posix.h (test_function): Likewise.
61034         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61035         * tests/test-vasprintf-posix.c (test_function): Likewise.
61036         * doc/functions/fprintf.texi: Update.
61037         * doc/functions/printf.texi: Update.
61038         * doc/functions/snprintf.texi: Update.
61039         * doc/functions/sprintf.texi: Update.
61040         * doc/functions/vfprintf.texi: Update.
61041         * doc/functions/vprintf.texi: Update.
61042         * doc/functions/vsnprintf.texi: Update.
61043         * doc/functions/vsprintf.texi: Update.
61044
61045 2007-05-01  Bruno Haible  <bruno@clisp.org>
61046
61047         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
61048
61049 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
61050
61051         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
61052         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
61053
61054 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61055
61056         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
61057         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
61058         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
61059
61060 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
61061
61062         * lib/argp-help.c (struct hol_entry): New member `ord'.
61063         (HOL_ENTRY_PTRCMP): Use ord for comparison
61064         (hol_sort): Initialize ord.
61065
61066 2007-05-01  Bruno Haible  <bruno@clisp.org>
61067
61068         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
61069         Reported by Eric Blake.
61070         * doc/gnulib.texi (Function Substitutes): Update.
61071
61072 2007-05-01  Bruno Haible  <bruno@clisp.org>
61073
61074         * doc/functions.texi: Remove file, now redundant through
61075         doc/functions/*.texi.
61076
61077 2007-05-01  Bruno Haible  <bruno@clisp.org>
61078
61079         * modules/argp (Depends-on): Add sleep.
61080
61081 2007-05-01  Bruno Haible  <bruno@clisp.org>
61082
61083         * modules/sleep-tests: New file.
61084         * tests/test-sleep.c: New file.
61085
61086         * modules/sleep: New file.
61087         * lib/sleep.c: New file.
61088         * m4/sleep.m4: New file.
61089         * lib/unistd_.h (sleep): New declaration.
61090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
61091         HAVE_SLEEP.
61092         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
61093         * doc/functions/sleep.texi: Document the sleep module.
61094
61095 2007-05-01  Bruno Haible  <bruno@clisp.org>
61096
61097         * lib/sigprocmask.h: Remove file.
61098         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
61099         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
61100         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
61101         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
61102         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
61103         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
61104         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
61105         HAVE_SIGSET_T as a shell variable.
61106         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
61107         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
61108         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
61109         (Depends-on): Add signal. Remove verify.
61110         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
61111         (Include): Mention <signal.h> instead of sigprocmask.h.
61112         * NEWS: Mention the change.
61113         * lib/fatal-signal.c: Don't include sigprocmask.h.
61114
61115 2007-05-01  Bruno Haible  <bruno@clisp.org>
61116
61117         * modules/signal: New file.
61118         * lib/signal_.h: New file.
61119         * m4/signal_h.m4: New file.
61120
61121 2007-05-01  Bruno Haible  <bruno@clisp.org>
61122
61123         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
61124         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
61125         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
61126         HAVE_WCTYPE_CTMP_BUG into wctype.h.
61127
61128 2007-05-01  Bruno Haible  <bruno@clisp.org>
61129
61130         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
61131         configure time.
61132         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
61133         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
61134         * modules/sys_stat (Makefile.am): Substitute their values into
61135         sys/stat.h.
61136
61137 2007-05-01  Bruno Haible  <bruno@clisp.org>
61138
61139         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
61140         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
61141         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
61142
61143 2007-05-01  Bruno Haible  <bruno@clisp.org>
61144
61145         * doc/header/assert.texi: Undo last change: don't mention the gnulib
61146         'assert' module here.
61147
61148 2007-05-01  Bruno Haible  <bruno@clisp.org>
61149
61150         * doc/functions/*.texi: New files.
61151         * doc/functions/google-ranking.txt: New file.
61152         * doc/gnulib.texi (Function Substitutes): New chapter.
61153         (ctime, inet_ntoa): Remove sections.
61154         * doc/ctime.texi: Remove file.
61155         * doc/inet_ntoa.texi: Remove file.
61156         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
61157         dependencies.
61158         (%.info): New rule, specifying a --reference-limit.
61159
61160 2007-05-01  Bruno Haible  <bruno@clisp.org>
61161
61162         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
61163
61164 2007-05-01  Bruno Haible  <bruno@clisp.org>
61165
61166         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
61167         the portability of 'mkdir' to mingw systems.
61168
61169 2007-05-01  Bruno Haible  <bruno@clisp.org>
61170
61171         * doc/headers/google-ranking.txt: New file.
61172
61173 2007-04-30  Eric Blake  <ebb9@byu.net>
61174
61175         Prefer fseeko to fseek.
61176         * modules/getpass (Depends-on): Add fseeko.
61177         * lib/getpass.c (getpass): Use fseeko, not fseek.
61178
61179 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
61180
61181         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
61182         assumes the sorting is stable, while most qsort implementations
61183         are not.  Use argument addresses to ensure they never compare as
61184         equal.
61185
61186         * tests/test-argp-2.sh (usage-indent test): Fix output
61187         (func_compare): Restore diff options
61188         * tests/test-argp.c: Restore #include "progname.h"
61189
61190 2007-04-29  Bruno Haible  <bruno@clisp.org>
61191
61192         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
61193         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61194         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
61195         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61196         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
61197         (configure.ac): Define CHECK_SNPRINTF_POSIX.
61198         (TESTS, check_PROGRAMS): Add test-snprintf.
61199         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
61200         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
61201         (TESTS, check_PROGRAMS): Add test-vsnprintf.
61202         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
61203         assertions that fail on HP-UX, OSF/1, or IRIX.
61204         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
61205
61206 2007-04-29  Bruno Haible  <bruno@clisp.org>
61207
61208         * MODULES.html.sh (posix_functions): Remove 'contents'.
61209
61210 2007-04-29  Karl Berry  <karl@gnu.org>
61211
61212         * config/srclist.txt (gendocs_template_min): new entry.
61213
61214 2007-04-29  Bruno Haible  <bruno@clisp.org>
61215
61216         Work around fpurge bug on BSD systems.
61217         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
61218         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
61219         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
61220         fpurge to rpl_fpurge if the system already has this function.
61221         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
61222         the case where the system already has this function. Correct invariants
61223         on BSD systems.
61224         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
61225         BSD systems.
61226
61227 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61228
61229         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
61230         proposed by Sven Verdoolaege.
61231
61232         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
61233         options.
61234         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
61235         (usage and help tests): Update
61236
61237 2007-04-29  Bruno Haible  <bruno@clisp.org>
61238
61239         * tests/test-fflush.c (main): Use a file of size 17, not 10.
61240         Print more information in case of failure. Disable a test on BeOS.
61241
61242 2007-04-29  Bruno Haible  <bruno@clisp.org>
61243
61244         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
61245         This helps debugging on systems on which no gdb is available.
61246
61247 2007-04-29  Bruno Haible  <bruno@clisp.org>
61248
61249         * lib/freading.h: Improve comments.
61250         * lib/fwriting.h: Likewise.
61251         * tests/test-freading.c (main): Don't check freading immediately after
61252         repositioning. Needed for glibc.
61253
61254 2007-04-29  Bruno Haible  <bruno@clisp.org>
61255
61256         * lib/freading.c (freading): Trivial simplification.
61257
61258 2007-04-28  Bruno Haible  <bruno@clisp.org>
61259
61260         * tests/test-fwriting.c (main): Also test the interaction between
61261         fflush and fwriting.
61262         * modules/fwriting-tests (Depends-on): Add fflush.
61263
61264         * tests/test-freading.c (main): Also test the interaction between
61265         fflush and freading.
61266         * modules/freading-tests (Depends-on): Add fflush.
61267
61268 2007-04-28  Bruno Haible  <bruno@clisp.org>
61269
61270         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
61271         fseeko and ftello.
61272         Suggested by Eric Blake.
61273
61274 2007-04-28  Jim Meyering  <jim@meyering.net>
61275
61276         Avoid false-negative in gl_STDINT_H's C99 conformance test.
61277         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
61278         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
61279
61280 2007-04-27  Eric Blake  <ebb9@byu.net>
61281
61282         * doc/headers/assert.texi (assert.h): Document assert module use.
61283
61284 2007-04-27  Bruno Haible  <bruno@clisp.org>
61285
61286         * doc/headers/*.texi: New files.
61287         * doc/gnulib.texi (Header File Substitutes): New chapter.
61288         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
61289         dependencies.
61290         (standards.info ,standards.html, standards.dvi): Update dependencies.
61291         (mostlyclean, clean): New targets.
61292
61293 2007-04-27  Bruno Haible  <bruno@clisp.org>
61294
61295         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
61296         * modules/sysexits (Files, Makefile.am): Update.
61297
61298         * lib/sys_socket_.h: Renamed from lib/socket_.h.
61299         * modules/sys_socket (Files, Makefile.am): Update.
61300
61301         * lib/sys_stat_.h: Renamed from lib/stat_.h.
61302         * modules/sys_stat (Files, Makefile.am): Update.
61303
61304 2007-04-27  Eric Blake  <ebb9@byu.net>
61305
61306         * lib/freading.h: Improve comments.
61307         * lib/fwriting.h: Likewise.
61308         * lib/fflush.c: Likewise.
61309
61310         Fix closein for mingw.
61311         * modules/closein-tests: Add tests for closein.
61312         * tests/test-closein.c: New file.
61313         * tests/test-closein.sh: Likewise.
61314         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
61315         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
61316
61317 2007-04-27  Bruno Haible  <bruno@clisp.org>
61318
61319         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
61320         version is < 6.
61321         * lib/math_.h [__DECC]: Likewise.
61322         * lib/stdio_.h [__DECC]: Likewise.
61323         * lib/stdlib_.h [__DECC]: Likewise.
61324         * lib/string_.h [__DECC]: Likewise.
61325         * lib/time_.h [__DECC]: Likewise.
61326         * lib/wchar_.h [__DECC]: Likewise.
61327         * lib/wctype_.h [__DECC]: Likewise.
61328
61329 2007-04-27  Bruno Haible  <bruno@clisp.org>
61330
61331         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
61332
61333 2007-04-27  Bruno Haible  <bruno@clisp.org>
61334
61335         * lib/fflush.c: Add comments.
61336         * modules/fpurge-tests (Depends-on): Add fflush.
61337         * modules/freadable-tests (Depends-on): Likewise.
61338         * modules/fwritable-tests (Depends-on): Likewise.
61339
61340 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
61341
61342         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
61343         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
61344         Report by Bruno Haible <bruno@clisp.org>.
61345
61346 2007-04-26  Eric Blake  <ebb9@byu.net>
61347
61348         Fix fflush on mingw.
61349         * modules/fflush (Depends-on): Add freading.
61350         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
61351         but unread data.
61352
61353 2007-04-26  Eric Blake  <ebb9@byu.net>
61354         and Bruno Haible  <bruno@clisp.org>
61355
61356         Implement freading and fwriting.
61357         * lib/freading.c: New file.
61358         * lib/freading.h: Likewise.
61359         * m4/freading.m4: Likewise.
61360         * modules/freading: Likewise.
61361         * modules/freading-tests: Likewise.
61362         * tests/test-freading.c: Likewise.
61363         * lib/fwriting.c: New file.
61364         * lib/fwriting.h: Likewise.
61365         * m4/fwriting.m4: Likewise.
61366         * modules/fwriting: Likewise.
61367         * modules/fwriting-tests: Likewise.
61368         * tests/test-fwriting.c: Likewise.
61369         * MODULES.html.sh (File stream based Input/Output): Mention them.
61370
61371 2007-04-26  Bruno Haible  <bruno@clisp.org>
61372
61373         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
61374         'long' when we assume it.
61375         Suggested by Eric Blake.
61376
61377 2007-04-26  Bruno Haible  <bruno@clisp.org>
61378
61379         Ensure fseeko, ftello are declared on glibc systems.
61380         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
61381         * modules/fseeko (configure.ac-early): Likewise.
61382         * modules/ftello (configure.ac-early): Likewise.
61383         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
61384         AC_FUNC_FSEEKO for this.
61385         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
61386         (gl_CHECK_FSEEKO): Remove macro.
61387
61388 2007-04-26  Bruno Haible  <bruno@clisp.org>
61389
61390         * tests/test-fflush.c (main): Also check the ftell result after
61391         fflush and fseek/fseeko.
61392         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
61393         file descriptor position cache in the stream.
61394         * lib/fseeko.c (rpl_fseeko): Likewise.
61395
61396 2007-04-26  Bruno Haible  <bruno@clisp.org>
61397
61398         * modules/fflush-tests (Depends-on): Add fseeko.
61399
61400 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
61401             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61402
61403         * lib/argz_.h: ensure error_t definition is obtained in same
61404         mechanism system argz.h would have.
61405         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
61406         argz facilities are known bad.  Err on the side of caution if
61407         cross-compiling.
61408
61409 2007-04-25  Eric Blake  <ebb9@byu.net>
61410
61411         * lib/fpurge.c (includes): Use stdlib.h for free.
61412         * tests/test-fflush.c (main): Also test fflush-fseeko.
61413
61414 2007-04-25  Bruno Haible  <bruno@clisp.org>
61415
61416         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
61417         * lib/fseeko.c: New file.
61418         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
61419         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
61420         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
61421         gl_FUNC_FSEEKO.
61422         (gl_FUNC_FSEEKO): Invoke it.
61423         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
61424         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
61425         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
61426
61427 2007-04-25  Bruno Haible  <bruno@clisp.org>
61428
61429         * modules/fflush (Depends-on): Add ftello.
61430
61431 2007-04-25  Bruno Haible  <bruno@clisp.org>
61432
61433         * modules/ftello-tests: New file.
61434         * tests/test-ftello.c: New file.
61435
61436         * modules/ftello: New file.
61437         * m4/ftello.m4: New file.
61438         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
61439         HAVE_FTELLO.
61440         * lib/stdio_.h (ftello): New declaration.
61441         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
61442         HAVE_FTELLO.
61443
61444 2007-04-25  Bruno Haible  <bruno@clisp.org>
61445
61446         * modules/fseeko-tests: New file.
61447         * tests/test-fseeko.c: New file.
61448
61449         * modules/fseeko: New file.
61450         * m4/fseeko.m4: New file.
61451         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
61452         HAVE_FSEEKO.
61453         * lib/stdio_.h (fseeko): New declaration.
61454         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
61455         HAVE_FSEEKO.
61456
61457 2007-04-25  Bruno Haible  <bruno@clisp.org>
61458
61459         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
61460
61461 2007-04-25  Bruno Haible  <bruno@clisp.org>
61462
61463         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
61464         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
61465         * tests/test-unistd.c: Likewise.
61466         * tests/test-fcntl.c: Likewise.
61467
61468 2007-04-23  Eric Blake  <ebb9@byu.net>
61469
61470         * lib/fflush.c: Fix missing include.
61471         Reported by Bruno Haible.
61472
61473 2007-04-23  Bruno Haible  <bruno@clisp.org>
61474
61475         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
61476         Reported by Eric Blake.
61477
61478 2007-04-23  Bruno Haible  <bruno@clisp.org>
61479
61480         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
61481
61482 2007-04-23  Bruno Haible  <bruno@clisp.org>
61483
61484         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
61485
61486 2007-04-23  Bruno Haible  <bruno@clisp.org>
61487
61488         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
61489         Needed on HP-UX 11.
61490
61491 2007-04-16  Eric Blake  <ebb9@byu.net>
61492
61493         Make fflush rely on fpurge.
61494         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
61495         open coding all variants.
61496         * modules/fflush (Depends-on): Add fpurge and unistd.
61497         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
61498         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
61499
61500         Fix --with-tests compilation on cygwin.
61501         * modules/argmatch-tests (Makefile.am): List gnulib library first
61502         in LDADD.
61503         * modules/argp-tests (Makefile.am): Likewise.
61504         * modules/array-list-tests (Makefile.am): Likewise.
61505         * modules/array-oset-tests (Makefile.am): Likewise.
61506         * modules/avltree-list-tests (Makefile.am): Likewise.
61507         * modules/avltree-oset-tests (Makefile.am): Likewise.
61508         * modules/avltreehash-list-tests (Makefile.am): Likewise.
61509         * modules/carray-list-tests (Makefile.am): Likewise.
61510         * modules/dirname-tests (Makefile.am): Likewise.
61511         * modules/frexp-tests (Makefile.am): Likewise.
61512         * modules/isnanl-tests (Makefile.am): Likewise.
61513         * modules/linked-list-tests (Makefile.am): Likewise.
61514         * modules/linkedhash-list-tests (Makefile.am): Likewise.
61515         * modules/lock-tests (Makefile.am): Likewise.
61516         * modules/rbtree-list-tests (Makefile.am): Likewise.
61517         * modules/rbtree-oset-tests (Makefile.am): Likewise.
61518         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
61519         * modules/tls-tests (Makefile.am): Likewise.
61520         * modules/tsearch-tests (Makefile.am): Likewise.
61521         * modules/xvasprintf-tests (Makefile.am): Likewise.
61522
61523         Fix fpurge for cygwin.
61524         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
61525         value.
61526         * modules/fpurge-tests (Depends-on): Clean up trash.
61527
61528 2007-04-16  Simon Josefsson  <simon@josefsson.org>
61529
61530         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
61531
61532         * m4/autobuild.m4: Re-indent.
61533
61534 2007-04-13  Bruno Haible  <bruno@clisp.org>
61535
61536         * modules/fpurge-tests: New file.
61537         * tests/test-fpurge.c: New file.
61538
61539         * modules/fpurge: New file.
61540         * lib/fpurge.h: New file.
61541         * lib/fpurge.c: New file.
61542         * m4/fpurge.m4: New file.
61543
61544 2007-04-13  Bruno Haible  <bruno@clisp.org>
61545
61546         * modules/fbufmode-tests: New file.
61547         * tests/test-fbufmode.c: New file.
61548
61549         * modules/fbufmode: New file.
61550         * lib/fbufmode.h: New file.
61551         * lib/fbufmode.c: New file.
61552         * m4/fbufmode.m4: New file.
61553
61554 2007-04-13  Bruno Haible  <bruno@clisp.org>
61555
61556         * modules/fwritable-tests: New file.
61557         * tests/test-fwritable.c: New file.
61558
61559         * modules/fwritable: New file.
61560         * lib/fwritable.h: New file.
61561         * lib/fwritable.c: New file.
61562         * m4/fwritable.m4: New file.
61563
61564 2007-04-13  Bruno Haible  <bruno@clisp.org>
61565
61566         * modules/freadable-tests: New file.
61567         * tests/test-freadable.c: New file.
61568
61569         * modules/freadable: New file.
61570         * lib/freadable.h: New file.
61571         * lib/freadable.c: New file.
61572         * m4/freadable.m4: New file.
61573
61574 2007-04-13  Bruno Haible  <bruno@clisp.org>
61575
61576         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
61577         MOSTLYCLEANFILES.
61578
61579 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61580
61581         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
61582         gzip bootstrap.conf to avoid dragging in i18n machinery.
61583         (gnulib_tool_option): Use it.
61584
61585 2007-04-13  Bruno Haible  <bruno@clisp.org>
61586
61587         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
61588         %F directives.
61589         * tests/test-vasprintf-posix.c (test_function): Likewise.
61590         * tests/test-snprintf-posix.h (test_function): Likewise.
61591         * tests/test-sprintf-posix.h (test_function): Likewise.
61592         * tests/test-fprintf-posix.h (test_function): Likewise.
61593         * tests/test-printf-posix.h (test_function): Likewise.
61594         * tests/test-fprintf-posix.out: Likewise.
61595
61596 2007-04-13  Bruno Haible  <bruno@clisp.org>
61597
61598         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
61599         * modules/tls-tests (configure.ac): Likewise.
61600         Reported by Arto C. Nirkko <anirkko@insel.ch>.
61601
61602 2007-04-13  Bruno Haible  <bruno@clisp.org>
61603
61604         * lib/tls.c (glthread_tls_get): Fix return type.
61605         Patch by Arto C. Nirkko <anirkko@insel.ch>.
61606
61607 2007-04-12  Eric Blake  <ebb9@byu.net>
61608
61609         * modules/gettime (Depends-on): Remove gettime.
61610         Reported by Dmitry V. Levin.
61611
61612 2007-04-12  Bruno Haible  <bruno@clisp.org>
61613
61614         * modules/fflush (Include): Mention <stdio.h>.
61615         * modules/strtoimax (Include): Mention <inttypes.h>.
61616         * modules/strtoumax (Include): Likewise.
61617
61618 2007-04-12  Eric Blake  <ebb9@byu.net>
61619
61620         * .cvsignore: New file.
61621         * .gitignore: Likewise.
61622
61623 2007-04-12  Bruno Haible  <bruno@clisp.org>
61624
61625         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
61626         not before, since $(LDADD) often contains libgnu.a.
61627         * modules/striconv-tests (test_striconv_LDADD): Likewise.
61628         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
61629         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
61630         Needed on Cygwin.
61631
61632 2007-04-12  Eric Blake  <ebb9@byu.net>
61633
61634         Work around glibc's failure to flush stdin on fclose.
61635         * lib/closein.c (close_stdin): Flush stdin before closing.
61636
61637         Work around glibc's failure to reset seekable stdin on exit.
61638         * modules/closein: New module.
61639         * lib/closein.c: New file.
61640         * lib/closein.h: Likewise.
61641         * m4/closein.m4: Likewise.
61642         * MODULES.html.sh (File stream based Input/Output): Document it.
61643
61644 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61645
61646         * gnulib-tool: Rename generated 'autobuild' script to
61647         'do-autobuild' in --create-megatestdir output.
61648
61649         * doc/gnulib.texi (Build robot for gnulib): Fix.
61650
61651 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61652
61653         * modules/sysexits (Depends-on): Add absolute-header.
61654
61655 2007-04-12  Eric Blake  <ebb9@byu.net>
61656
61657         No need to preserve errno on success.
61658         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
61659         Reported by Bruno Haible.
61660
61661 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61662
61663         * MODULES.html.sh (Support for maintaining and releasing
61664         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
61665
61666 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61667
61668         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
61669
61670 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61671
61672         * modules/autobuild: New module.
61673
61674         * m4/autobuild.m4: New file.
61675
61676 2007-04-11  Bruno Haible  <bruno@clisp.org>
61677
61678         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
61679         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
61680         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
61681         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
61682         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61683         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61684         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61685         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61686         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61687         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61688         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
61689         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61690         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61691         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
61692         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61693         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61694         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
61695         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61696         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61697         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
61698         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61699         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61700         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
61701         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61702         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61703         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
61704         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61705         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61706         Reported by Eric Blake.
61707
61708 2007-04-11  Bruno Haible  <bruno@clisp.org>
61709
61710         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
61711
61712 2007-04-10  Bruno Haible  <bruno@clisp.org>
61713
61714         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
61715         for NaN and Infinity. Needed on FreeBSD 6.1.
61716         * tests/test-vasnprintf-posix.c (test_function): Undo last change
61717         regarding results for "%010a" of Infinity and NaN.
61718         * tests/test-vasprintf-posix.c (test_function): Likewise.
61719         * tests/test-snprintf-posix.h (test_function): Likewise.
61720         * tests/test-sprintf-posix.h (test_function): Likewise.
61721         * tests/test-fprintf-posix.h (test_function): Likewise.
61722         * tests/test-printf-posix.h (test_function): Likewise.
61723         * tests/test-fprintf-posix.out: Likewise.
61724
61725 2007-04-10  Bruno Haible  <bruno@clisp.org>
61726
61727         * modules/locale-tests: New file.
61728         * tests/test-locale.c: New file.
61729
61730         * modules/locale: New file.
61731         * lib/locale_.h: New file.
61732         * m4/locale_h.m4: New file.
61733
61734 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
61735             Bruno Haible  <bruno@clisp.org>
61736
61737         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
61738         be determined, test for availability of the copysignf, copysign,
61739         copysignl functions.
61740         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
61741         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
61742         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
61743
61744 2007-04-09  Eric Blake  <ebb9@byu.net>
61745
61746         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
61747         * modules/stdio (Makefile.am): Support fflush.
61748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61749         * modules/fflush: New file.
61750         * lib/fflush.c: Likewise.
61751         * m4/fflush.m4: Likewise.
61752         * modules/fflush-tests: New test.
61753         * tests/test-fflush.c: Likewise.
61754         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
61755
61756 2007-04-06  Bruno Haible  <bruno@clisp.org>
61757
61758         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
61759         (VASNPRINTF): Use signbit for faster determination whether to print a
61760         minus sign.
61761         * modules/vasnprintf (Files): Remove lib/float+.h.
61762         * modules/fprintf-posix (Depends-on): Add signbit.
61763         * modules/snprintf-posix (Depends-on): Likewise.
61764         * modules/sprintf-posix (Depends-on): Likewise.
61765         * modules/vasnprintf-posix (Depends-on): Likewise.
61766         * modules/vasprintf-posix (Depends-on): Likewise.
61767         * modules/vfprintf-posix (Depends-on): Likewise.
61768         * modules/vsnprintf-posix (Depends-on): Likewise.
61769         * modules/vsprintf-posix (Depends-on): Likewise.
61770
61771 2007-04-06  Bruno Haible  <bruno@clisp.org>
61772
61773         * tests/test-frexp.c (main): Test also the sign bit of zero results.
61774         * tests/test-frexpl.c (main): Likewise.
61775         * tests/test-ldexpl.c (main): Likewise.
61776         * modules/frexp-tests (Depends-on): Add signbit.
61777         * modules/frexpl-tests (Depdends-on): Likewise.
61778         * modules/ldexpl-tests (Depdends-on): Likewise.
61779
61780 2007-04-06  Bruno Haible  <bruno@clisp.org>
61781
61782         * modules/signbit-tests: New file.
61783         * tests/test-signbit.c: New file.
61784
61785         * modules/signbit: New file.
61786         * lib/signbitf.c: New file.
61787         * lib/signbitd.c: New file.
61788         * lib/signbitl.c: New file.
61789         * m4/signbit.m4: New file.
61790         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
61791         (signbit): New macro.
61792         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
61793         REPLACE_SIGNBIT.
61794         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
61795         REPLACE_FREXPL into math.h.
61796
61797 2007-04-06  Bruno Haible  <bruno@clisp.org>
61798
61799         * modules/isnanf-nolibm-tests: New file.
61800         * tests/test-isnanf.c: New file.
61801
61802         * modules/isnanf-nolibm: New file.
61803         * lib/isnanf.h: New file.
61804         * lib/isnanf.c: New file.
61805         * lib/isnan.c: Consider the USE_FLOAT macro.
61806         * m4/isnanf.m4: New file.
61807
61808 2007-04-06  Bruno Haible  <bruno@clisp.org>
61809
61810         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
61811         (Link): New section.
61812
61813         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
61814
61815 2007-04-06  Bruno Haible  <bruno@clisp.org>
61816
61817         Assume the 'long double' type.
61818         * m4/longdouble.m4: Remove file.
61819         * config/srclist.txt: Don't mention longdouble.m4.
61820         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
61821         * lib/float+.h: Likewise.
61822         * lib/frexp.c: Likewise.
61823         * lib/printf-args.h: Likewise.
61824         * lib/printf-args.c: Likewise.
61825         * lib/printf-frexp.c: Likewise.
61826         * lib/printf-parse.c: Likewise.
61827         * lib/vasnprintf.c: Likewise.
61828         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
61829         * m4/intl.m4: Likewise.
61830         * m4/isnanl.m4: Likewise.
61831         * m4/printf.m4: Likewise.
61832         * m4/printf-frexpl.m4: Likewise.
61833         * m4/vasnprintf.m4: Likewise.
61834         * modules/allocsa (Files): Remove m4/longdouble.m4.
61835         * modules/gettext (Files): Likewise.
61836         * modules/relocatable-prog-wrapper (Files): Likewise.
61837         * modules/vasnprintf (Files): Likewise.
61838         * modules/isnanl (Files): Likewise.
61839         (Include): Simplify.
61840         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
61841         (Include): Simplify.
61842         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
61843         (Include): Simplify.
61844         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
61845         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61846         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
61847         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61848         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61849         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61850         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
61851         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61852         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61853         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61854         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
61855         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61856         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
61857         * tests/test-isnanl.c: Likewise.
61858         * tests/test-snprintf-posix.h: Likewise.
61859         * tests/test-sprintf-posix.h: Likewise.
61860         * tests/test-vasnprintf-posix.c: Likewise.
61861         * tests/test-vasnprintf-posix2.c: Likewise.
61862         * tests/test-vasprintf-posix.c: Likewise.
61863
61864 2007-04-06  Bruno Haible  <bruno@clisp.org>
61865
61866         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
61867         * lib/math_.h [__DECC]: Include the overridden include file through
61868         #include_next, outside the double-inclusion guard.
61869         * lib/stdio_.h [__DECC]: Likewise.
61870         * lib/stdlib_.h [__DECC]: Likewise.
61871         * lib/string_.h [__DECC]: Likewise.
61872         * lib/time_.h [__DECC]: Likewise.
61873         * lib/wchar_.h [__DECC]: Likewise.
61874         * lib/wctype_.h [__DECC]: Likewise.
61875         * lib/inttypes_.h [__DECC]: Likewise.
61876         Reported by Albert Chin <china@thewrittenword.com> in
61877         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
61878
61879 2007-04-04  Eric Blake  <ebb9@byu.net>
61880
61881         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
61882         1.5.x.
61883
61884 2007-04-04  Bruno Haible  <bruno@clisp.org>
61885
61886         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
61887         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
61888
61889 2007-04-04  Bruno Haible  <bruno@clisp.org>
61890
61891         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
61892         results for "%010a" of Infinity and NaN.
61893         * tests/test-vasprintf-posix.c (test_function): Likewise.
61894         * tests/test-snprintf-posix.h (test_function): Likewise.
61895         * tests/test-sprintf-posix.h (test_function): Likewise.
61896         * tests/test-fprintf-posix.h (test_function): Remove these tests.
61897         * tests/test-printf-posix.h (test_function): Likewise.
61898         * tests/test-fprintf-posix.out: Update.
61899         Needed for FreeBSD 6.1.
61900
61901 2007-04-04  Bruno Haible  <bruno@clisp.org>
61902
61903         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
61904         directly used by the gnulib modules nor by gnulib-tool.
61905
61906 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
61907
61908         * DEPENDENCIES: Give overall description of version dependency
61909         desirability.  Use more-typical names for apps.
61910         Add shell, coreutils, diffutils, grep, tar, gzip.
61911
61912 2007-04-04  Simon Josefsson  <simon@josefsson.org>
61913
61914         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
61915
61916 2007-04-04  Karl Berry  <karl@gnu.org>
61917
61918         * MODULES.html.sh (func_module): missing '.
61919
61920 2007-04-03  Bruno Haible  <bruno@clisp.org>
61921
61922         * modules/argmatch-tests (Makefile.am): New variable
61923         test_argmatch_LDADD.
61924         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
61925         * modules/array-list-tests (Makefile.am): New variable
61926         test_array_list_LDADD.
61927         * modules/array-oset-tests (Makefile.am): New variable
61928         test_array_oset_LDADD.
61929         * modules/avltree-list-tests (Makefile.am): New variable
61930         test_avltree_list_LDADD.
61931         * modules/avltree-oset-tests (Makefile.am): New variable
61932         test_avltree_oset_LDADD.
61933         * modules/avltreehash-list-tests (Makefile.am): New variable
61934         test_avltreehash_list_LDADD.
61935         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
61936         test_canonicalize_lgpl_LDADD.
61937         * modules/carray-list-tests (Makefile.am): New variable
61938         test_carray_list_LDADD.
61939         * modules/dirname-tests (Makefile.am): New variable
61940         test_dirname_LDADD.
61941         * modules/linked-list-tests (Makefile.am): New variable
61942         test_linked_list_LDADD.
61943         * modules/linkedhash-list-tests (Makefile.am): New variable
61944         test_linkedhash_list_LDADD.
61945         * modules/rbtree-list-tests (Makefile.am): New variable
61946         test_rbtree_list_LDADD.
61947         * modules/rbtree-oset-tests (Makefile.am): New variable
61948         test_rbtree_oset_LDADD.
61949         * modules/rbtreehash-list-tests (Makefile.am): New variable
61950         test_rbtreehash_list_LDADD.
61951         * modules/xvasprintf-tests (Makefile.am): New variable
61952         test_xvasprintf_LDADD.
61953         Reported by Eric Blake.
61954
61955 2007-04-03  Eric Blake  <ebb9@byu.net>
61956
61957         * DEPENDENCIES: Weaken m4 requirements.
61958
61959 2007-04-03  Bruno Haible  <bruno@clisp.org>
61960
61961         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
61962         * modules/isnanl-tests (configure.ac): Likewise.
61963
61964 2007-04-03  Ben Pfaff  <blp@gnu.org>
61965
61966         * modules/iconv_open: Add $(srcdir)/ to source directory
61967         references in Makefile fragments that call gperf, to fix VPATH
61968         builds.
61969
61970 2007-04-03  Bruno Haible  <bruno@clisp.org>
61971
61972         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
61973         * lib/ldexpl.c: Undo last change.
61974
61975 2007-04-03  Bruno Haible  <bruno@clisp.org>
61976
61977         * modules/printf-frexpl (Depends-on): Undo last change.
61978         (Files): Add m4/ldexpl.m4.
61979
61980 2007-04-03  Bruno Haible  <bruno@clisp.org>
61981
61982         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
61983         * modules/isnanl (Link): New section.
61984
61985         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
61986         * modules/frexp (Link): New section.
61987
61988         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
61989         * modules/frexpl (Link): New section.
61990
61991         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
61992         * modules/ldexpl (Link): New section.
61993
61994 2007-04-03  Bruno Haible  <bruno@clisp.org>
61995
61996         * modules/TEMPLATE-EXTENDED: New file.
61997         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
61998
61999 2007-04-03  Bruno Haible  <bruno@clisp.org>
62000
62001         * DEPENDENCIES: New file.
62002         Suggested by Simon Josefsson.
62003
62004 2007-04-03  Bruno Haible  <bruno@clisp.org>
62005
62006         * doc/gnulib.texi: Escape @.
62007
62008 2007-04-03  James Youngman  <jay@gnu.org>
62009         and Paul Eggert  <eggert@cs.ucla.edu>
62010
62011         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
62012         birthtime on all systems that have birthtime, not just those which
62013         use st_birthtimensec rather than st_birthtim.  Putting zero in
62014         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
62015         that the birth time is not available for files on an NFS mount.
62016
62017 2007-04-03  Simon Josefsson  <simon@josefsson.org>
62018
62019         * modules/memxor: Move back from crypto/, suggested by Bruno.
62020         * modules/crypto/hmac-sha1: Fix memxor dependency.
62021
62022         * modules/crypto/gc: Moved from ../.
62023
62024 2007-04-02  Eric Blake  <ebb9@byu.net>
62025
62026         * lib/ldexpl.c (includes): Avoid libm.
62027
62028         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
62029
62030 2007-04-02  Bruno Haible  <bruno@clisp.org>
62031
62032         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
62033         on IRIX.
62034
62035 2007-04-02  Bruno Haible  <bruno@clisp.org>
62036
62037         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
62038         x86 or x86_64 platforms running MacOS X.
62039         Reported by Ryan Schmidt <@ryandesign.com>.
62040
62041 2007-04-02  Bruno Haible  <bruno@clisp.org>
62042
62043         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
62044         i386.
62045
62046 2007-04-01  Simon Josefsson  <simon@josefsson.org>
62047
62048         * modules/crypto/arcfour: Moved from ../.
62049         * modules/crypto/arcfour-tests: Moved from ../.
62050         * modules/crypto/arctwo: Moved from ../.
62051         * modules/crypto/arctwo-tests: Moved from ../.
62052         * modules/crypto/des: Moved from ../.
62053         * modules/crypto/des-tests: Moved from ../.
62054         * modules/crypto/gc-arcfour: Moved from ../.
62055         * modules/crypto/gc-arcfour-tests: Moved from ../.
62056         * modules/crypto/gc-arctwo: Moved from ../.
62057         * modules/crypto/gc-arctwo-tests: Moved from ../.
62058         * modules/crypto/gc-des: Moved from ../.
62059         * modules/crypto/gc-des-tests: Moved from ../.
62060         * modules/crypto/gc-hmac-md5: Moved from ../.
62061         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
62062         * modules/crypto/gc-hmac-sha1: Moved from ../.
62063         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
62064         * modules/crypto/gc-md2: Moved from ../.
62065         * modules/crypto/gc-md2-tests: Moved from ../.
62066         * modules/crypto/gc-md4: Moved from ../.
62067         * modules/crypto/gc-md4-tests: Moved from ../.
62068         * modules/crypto/gc-md5: Moved from ../.
62069         * modules/crypto/gc-md5-tests: Moved from ../.
62070         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
62071         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
62072         * modules/crypto/gc-random: Moved from ../.
62073         * modules/crypto/gc-rijndael: Moved from ../.
62074         * modules/crypto/gc-rijndael-tests: Moved from ../.
62075         * modules/crypto/gc-sha1: Moved from ../.
62076         * modules/crypto/gc-sha1-tests: Moved from ../.
62077         * modules/crypto/gc-tests: Moved from ../.
62078         * modules/crypto/hmac-md5: Moved from ../.
62079         * modules/crypto/hmac-md5-tests: Moved from ../.
62080         * modules/crypto/hmac-sha1: Moved from ../.
62081         * modules/crypto/hmac-sha1-tests: Moved from ../.
62082         * modules/crypto/md2: Moved from ../.
62083         * modules/crypto/md2-tests: Moved from ../.
62084         * modules/crypto/md4: Moved from ../.
62085         * modules/crypto/md4-tests: Moved from ../.
62086         * modules/crypto/md5: Moved from ../.
62087         * modules/crypto/md5-tests: Moved from ../.
62088         * modules/crypto/memxor: Moved from ../.
62089         * modules/crypto/rijndael: Moved from ../.
62090         * modules/crypto/rijndael-tests: Moved from ../.
62091         * modules/crypto/sha1: Moved from ../.
62092
62093 2007-03-30  James Youngman  <jay@gnu.org>
62094
62095         * tests/test-stat-time.c (prepare_test): use chmod() rather than
62096         rename() to change the ctime of a file (because ctime is unaffected
62097         by rename on jfs2 on AIX 5.1).
62098         (main): Start by doing cleanup, in case a previous run failed leaving
62099         test files behind.
62100
62101 2007-03-31  Bruno Haible  <bruno@clisp.org>
62102
62103         Support old proprietary implementations of iconv.
62104         * modules/iconv_open: New file.
62105         * lib/iconv_.h: New file.
62106         * m4/iconv_h.m4: New file.
62107         * lib/iconv_open.c: New file.
62108         * lib/iconv_open-aix.gperf: New file.
62109         * lib/iconv_open-hpux.gperf: New file.
62110         * lib/iconv_open-irix.gperf: New file.
62111         * lib/iconv_open-osf.gperf: New file.
62112         * m4/iconv_open.m4: New file.
62113         * modules/linebreak (Depends-on): Add iconv_open.
62114         * modules/striconv (Depends-on): Likewise.
62115         * modules/striconveh (Depends-on): Likewise.
62116         * modules/unicodeio (Depends-on): Likewise.
62117         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
62118         (iconv_t)(-1).
62119         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
62120         conversion if cd is (iconv_t)(-1).
62121         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
62122         is not possible.
62123
62124 2007-03-31  Bruno Haible  <bruno@clisp.org>
62125
62126         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62127         work on Solaris either. Protect also second use of "autodetect_jp".
62128
62129 2007-03-31  Bruno Haible  <bruno@clisp.org>
62130
62131         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
62132         the function is not present.
62133
62134 2007-03-31  Bruno Haible  <bruno@clisp.org>
62135
62136         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
62137         the function is not present.
62138
62139 2007-03-31  Bruno Haible  <bruno@clisp.org>
62140
62141         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
62142         a bug in HP-UX iconv_open().
62143
62144 2007-03-31  Bruno Haible  <bruno@clisp.org>
62145
62146         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
62147         (Mathematics <math.h>): New section, add fpieee.
62148         (Input/output <stdio.h>): Add fseterr.
62149         (Mathematics <math.h>): New section, add printf-frexp.
62150         (Container data structures): Add sublist.
62151         (Core language properties): Add fpucw, inline.
62152         (Functions for greatest-width integer types <inttypes.h>): Add
62153         imaxabs, imaxdiv, inttypes.
62154         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
62155         isnanl-nolibm, ldexp.
62156         (Mathematics <math.h>): New section, add printf-frexpl.
62157         (Support for systems lacking POSIX:2001): Add fprintf-posix,
62158         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
62159         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
62160         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
62161         (Unicode string functions): Add unistr/u*-mbtoucr.
62162         (Java): Add javacomp-script, javaexec-script.
62163         (C#): Add csharpcomp-script, csharpexec-script.
62164         (Support for building libraries and executables): Add havelib,
62165         relocatable-*.
62166         (Support for maintaining and releasing projects): Renamed from
62167         'Support for maintaining and release projects'. Add announce-gen.
62168
62169 2007-03-31  Bruno Haible  <bruno@clisp.org>
62170
62171         * README: Talk primarily about git.
62172         (git and CVS): Renamed from CVS.
62173         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
62174         gnulib is available through git.
62175         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
62176
62177 2007-03-30  Bruno Haible  <bruno@clisp.org>
62178
62179         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
62180         * lib/poll_.h: Likewise.
62181         * lib/stat_.h: Likewise.
62182         * lib/sys_time_.h: Likewise.
62183         * lib/sysexit_.h: Likewise.
62184         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
62185         * lib/stdbool_.h: Likewise.
62186         * lib/byteswap_.h: Add double-inclusion guard.
62187
62188 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
62189
62190         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
62191
62192 2007-03-30  Karl Berry  <karl@gnu.org>
62193
62194         * config/srclist-update: double space after USA in the license
62195         substitution, since that's how it's usually (?) written.
62196
62197 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62198
62199         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
62200         reported by Bruno Haible.
62201
62202 2007-03-29  Bruno Haible  <bruno@clisp.org>
62203
62204         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
62205         a bug in AIX iconv().
62206
62207 2007-03-29  Bruno Haible  <bruno@clisp.org>
62208
62209         * modules/ldexpl-tests: New file.
62210         * tests/test-ldexpl.c: New file.
62211
62212 2007-03-29  Bruno Haible  <bruno@clisp.org>
62213
62214         * lib/ldexpl.c: Include fpucw.h.
62215         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
62216         multiplication.
62217         * modules/ldexpl (Depends-on): Add fpucw.
62218
62219 2007-03-29  Bruno Haible  <bruno@clisp.org>
62220
62221         * modules/ldexpl: New file.
62222         * m4/ldexpl.m4: New file.
62223         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
62224         set.
62225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
62226         REPLACE_LDEXPL.
62227         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
62228         REPLACE_LDEXPL.
62229         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
62230         gl_FUNC_LDEXPL_WORKS.
62231         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
62232         * modules/mathl (Files): Remove lib/ldexpl.c.
62233         (Depends-on): Add ldexpl.
62234
62235 2007-03-29  Bruno Haible  <bruno@clisp.org>
62236
62237         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
62238
62239 2007-03-29  Bruno Haible  <bruno@clisp.org>
62240
62241         * tests/test-striconveh.c (main): Don't assume that a direct conversion
62242         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
62243         and possibly also HP-UX.
62244         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62245         work on AIX, IRIX, HP-UX, OSF/1.
62246         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
62247         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
62248         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
62249         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
62250         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
62251         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
62252
62253 2007-03-29  Bruno Haible  <bruno@clisp.org>
62254
62255         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
62256
62257 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62258
62259         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
62260         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
62261
62262 2007-03-29  Eric Blake  <ebb9@byu.net>
62263
62264         * lib/acl-internal.h: Remove redundant include.
62265         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
62266         Cygwin when a file is locked.
62267
62268 2007-03-29  Bruno Haible  <bruno@clisp.org>
62269
62270         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
62271         file.
62272         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
62273
62274 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62275
62276         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
62277         try to remove a parent directory if the child couldn't be removed
62278         (except for the first rmdir, which could fail because the child
62279         doesn't exist).  Problem reported by Jeff Blaine in
62280         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
62281
62282 2007-03-28  Bruno Haible  <bruno@clisp.org>
62283
62284         * lib/striconveh.c (utf8conv_carefully): New function.
62285         (mem_cd_iconveh_internal): Invoke it.
62286
62287 2007-03-28  Bruno Haible  <bruno@clisp.org>
62288
62289         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
62290         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
62291         input.
62292         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
62293         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
62294         unistr/u8-uctomb.
62295
62296 2007-03-28  Bruno Haible  <bruno@clisp.org>
62297
62298         * modules/unistr/u8-mbtoucr: New file.
62299         * lib/unistr/u8-mbtoucr.c: New file.
62300         * modules/unistr/u16-mbtoucr: New file.
62301         * lib/unistr/u16-mbtoucr.c: New file.
62302         * modules/unistr/u16-mbtoucr: New file.
62303         * lib/unistr/u16-mbtoucr.c: New file.
62304         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
62305
62306 2007-03-27  Simon Josefsson  <simon@josefsson.org>
62307             Bruno Haible  <bruno@clisp.org>
62308
62309         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
62310         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
62311         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
62312
62313         * m4/stdio_h.m4: Add stubs for vasprintf too.
62314
62315         * modules/stdio: Support vasprintf in sed command.
62316
62317         * modules/vasprintf: Depend on stdio for prototypes.  Remove
62318         vasprintf.h.  Add stdio module indicator.
62319
62320         * lib/stdio_.h: Declare asprintf and vasprintf, based on
62321         vasprintf.h.
62322
62323         * lib/vasprintf.h: File removed.
62324
62325         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
62326         * lib/vasprintf.c: Ditto.
62327         * lib/xvasprintf.c: Ditto.
62328         * tests/test-vasprintf-posix.c: Ditto.
62329         * tests/test-vasprintf.c: Ditto.
62330
62331 2007-03-27  Bruno Haible  <bruno@clisp.org>
62332
62333         Make vasnprintf multithread-safe.
62334         * lib/vasnprintf.c (decimal_point_char): New function.
62335         (VASNPRINTF): Use it.
62336         Suggested by Simon Josefsson.
62337
62338 2007-03-27  Eric Blake  <ebb9@byu.net>
62339
62340         Support sub-second birthtime on cygwin.
62341         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
62342         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
62343         (get_stat_birthtime): Also work with st_birthtim.
62344
62345 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
62346
62347         * lib/stat-time.h (USE_BIRTHTIME): Remove.
62348         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
62349         (get_stat_birthtime_ns): Do not try to use "spare" fields.
62350         (get_stat_birthtime_ns): Simplify compile-time tests.
62351         (get_stat_birthtime): Change the API to look like
62352         get_stat_mtime etc., except return a negative tv_nsec on error.
62353         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
62354         Don't check for "spare" fields.
62355         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
62356         or for struct stat.st_birthtime, as these tests aren't used.
62357         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
62358
62359 2007-03-27  Bruno Haible  <bruno@clisp.org>
62360
62361         * lib/stat-time.h: Include <sys/stat.h>.
62362
62363 2007-03-27  James Youngman  <jay@gnu.org>
62364
62365         * lib/stat-time.h (get_stat_birthtime): New function for
62366           retrieving st_birthtime as provided by UFS2 (hence *BSD).
62367         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
62368           and its variants.
62369         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
62370         * modules/stat-time-test: New file.
62371         * tests/test-stat-time.c: New test, devised by Bruno Haible.
62372
62373 2007-03-26  Bruno Haible  <bruno@clisp.org>
62374
62375         Better support of signalling NaNs.
62376         * lib/atanl.c: Include isnanl.h.
62377         (atanl): Perform test for NaN at the beginning of the function and
62378         through a call to isnanl.
62379         * lib/cosl.c: Include isnanl.h.
62380         (cosl): Perform test for NaN at the beginning of the function and
62381         through a call to isnanl.
62382         * lib/ldexpl.c: Include isnanl.h.
62383         (ldexpl): Perform test for NaN through a call to isnanl.
62384         * lib/logl.c: Include isnanl.h.
62385         (logl): Perform test for NaN at the beginning of the function and
62386         through a call to isnanl.
62387         * lib/sinl.c: Include isnanl.h.
62388         (sinl): Perform test for NaN at the beginning of the function and
62389         through a call to isnanl.
62390         * lib/sqrtl.c: Include isnanl.h.
62391         (sqrtl): Perform test for NaN at the beginning of the function and
62392         through a call to isnanl.
62393         * lib/tanl.c: Include isnanl.h.
62394         (tanl): Perform test for NaN at the beginning of the function and
62395         through a call to isnanl.
62396         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
62397         * modules/mathl (Depends-on): Add isnanl.
62398
62399 2007-03-26  Eric Blake  <ebb9@byu.net>
62400
62401         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
62402         regression in logic sense of previous patch.
62403
62404 2007-03-26  Bruno Haible  <bruno@clisp.org>
62405
62406         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
62407         unportable shell command "if ! ...".
62408         Reported by Ralf Wildenhues.
62409
62410 2007-03-25  Bruno Haible  <bruno@clisp.org>
62411
62412         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
62413         <sysexits.h> file, and only add EX_CONFIG.
62414         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
62415         absolute file name and whether it is sufficient. Substitute also
62416         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
62417         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
62418         ABSOLUTE_SYSEXITS_H into sysexits.h.
62419
62420 2007-03-25  Bruno Haible  <bruno@clisp.org>
62421
62422         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
62423         hints is NULL.
62424
62425 2007-03-25  Bruno Haible  <bruno@clisp.org>
62426
62427         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
62428         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
62429
62430 2007-03-25  Bruno Haible  <bruno@clisp.org>
62431
62432         * lib/vasnprintf.c: Include langinfo.h.
62433         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
62434         multithread-safe.
62435         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
62436         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
62437         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62438         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62439         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62440         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62441         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62442         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
62443         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62444         Reported by Simon Josefsson.
62445
62446 2007-03-25  Bruno Haible  <bruno@clisp.org>
62447
62448         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
62449         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
62450         * modules/vasnprintf (Depends-on): Add stdint.
62451
62452 2007-03-25  Bruno Haible  <bruno@clisp.org>
62453
62454         * modules/fpieee: New file.
62455         * m4/fpieee.m4: New file.
62456         * modules/isnan-nolibm (Depends-on): Add fpieee.
62457         * modules/isnanl-nolibm (Depends-on): Add fpieee.
62458         * modules/isnanl (Depends-on): Add fpieee.
62459
62460 2007-03-25  Bruno Haible  <bruno@clisp.org>
62461
62462         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
62463
62464 2007-03-25  Bruno Haible  <bruno@clisp.org>
62465
62466         Avoid test failures on IRIX 6.5.
62467         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
62468         (main): Use it.
62469         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
62470         macros.
62471         (main): Use them.
62472
62473 2007-03-25  Bruno Haible  <bruno@clisp.org>
62474
62475         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
62476         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
62477         exists but doesn't work.
62478         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
62479         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
62480         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
62481         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
62482         math.h.
62483
62484 2007-03-25  Bruno Haible  <bruno@clisp.org>
62485
62486         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
62487         returns inf. Needed on IRIX 6.5.
62488
62489 2007-03-25  Bruno Haible  <bruno@clisp.org>
62490
62491         * tests/test-frexpl.c: Include isnanl-nolibm.h.
62492         (main): Use isnanl instead of x != x idiom.
62493         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
62494
62495         * tests/test-frexp.c: Include isnan.h.
62496         (main): Use isnan instead of x != x idiom.
62497         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
62498
62499 2007-03-25  Bruno Haible  <bruno@clisp.org>
62500
62501         * tests/test-frexp.c (NaN): New function/macro.
62502         (main): Use it instead of 0.0 / 0.0.
62503         * tests/test-isnan.c (NaN): New function/macro.
62504         (main): Use it instead of 0.0 / 0.0.
62505         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
62506         (test_function): Use it instead of 0.0 / 0.0.
62507         * tests/test-vasprintf-posix.c (NaN): New function/macro.
62508         (test_function): Use it instead of 0.0 / 0.0.
62509         * tests/test-snprintf-posix.h (NaN): New function/macro.
62510         (test_function): Use it instead of 0.0 / 0.0.
62511         * tests/test-sprintf-posix.h (NaN): New function/macro.
62512         (test_function): Use it instead of 0.0 / 0.0.
62513         * tests/test-fprintf-posix.h (NaN): New function/macro.
62514         (test_function): Use it instead of 0.0 / 0.0.
62515         * tests/test-printf-posix.h (NaN): New function/macro.
62516         (test_function): Use it instead of 0.0 / 0.0.
62517
62518         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
62519
62520 2007-03-25  Bruno Haible  <bruno@clisp.org>
62521
62522         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
62523
62524 2007-03-25  Bruno Haible  <bruno@clisp.org>
62525
62526         * lib/regexec.c (merge_state_with_log): Make static.
62527
62528 2007-03-25  Bruno Haible  <bruno@clisp.org>
62529
62530         * lib/trigl.c (kernel_rem_pio2): Make static.
62531
62532 2007-03-25  Bruno Haible  <bruno@clisp.org>
62533
62534         * lib/sincosl.c (sincosl_table): Make static.
62535
62536 2007-03-25  Bruno Haible  <bruno@clisp.org>
62537
62538         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
62539         if the compiler does not support C99.
62540
62541 2007-03-25  Bruno Haible  <bruno@clisp.org>
62542
62543         * modules/time (Makefile.am): Ensure all rule action lines start with a
62544         tab.
62545
62546 2007-03-24  Bruno Haible  <bruno@clisp.org>
62547
62548         * modules/tsearch-tests: New file.
62549         * tests/test-tsearch.sh: New file.
62550         * tests/test-tsearch.c: New file, mostly copied from glibc.
62551
62552         * modules/search-tests: New file.
62553         * tests/test-search.c: New file.
62554
62555         * modules/search: New file.
62556         * lib/search_.h: New file, incorporating lib/tsearch.h.
62557         * m4/search_h.m4: New file.
62558         * lib/tsearch.h: Remove file.
62559         * lib/tsearch.c: Include search.h instead of tsearch.h.
62560         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
62561         HAVE_TSEARCH.
62562         * modules/tsearch (Files): Remove lib/tsearch.h.
62563         (Depends-on): Add search.
62564         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
62565         (Include): Change tsearch.h into search.h.
62566
62567 2007-03-24  Bruno Haible  <bruno@clisp.org>
62568
62569         * modules/fpucw: New file.
62570         * lib/fpucw.h: New file.
62571         * lib/frexp.c: Include fpucw.h.
62572         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62573         (FUNC): Use them.
62574         * lib/printf-frexp.c: Include fpucw.h.
62575         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62576         (FUNC): Use them.
62577         * lib/vasnprintf.c: Include fpucw.h.
62578         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
62579         'long double' calculations.
62580         * tests/test-frexpl.c: Include fpucw.h.
62581         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62582         * tests/test-printf-frexpl.c: Include fpucw.h.
62583         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62584         * modules/frexpl (Depends-on): Add fpucw.
62585         * modules/printf-frexpl (Depends-on): Likewise.
62586         * modules/fprintf-posix (Depends-on): Likewise.
62587         * modules/snprintf-posix (Depends-on): Likewise.
62588         * modules/sprintf-posix (Depends-on): Likewise.
62589         * modules/vasnprintf-posix (Depends-on): Likewise.
62590         * modules/vasprintf-posix (Depends-on): Likewise.
62591         * modules/vfprintf-posix (Depends-on): Likewise.
62592         * modules/vsnprintf-posix (Depends-on): Likewise.
62593         * modules/vsprintf-posix (Depends-on): Likewise.
62594         * modules/frexpl-tests (Depends-on): Likewise.
62595         * modules/printf-frexpl-tests (Depends-on): Likewise.
62596
62597 2007-03-24  Bruno Haible  <bruno@clisp.org>
62598
62599         * lib/float+.h: New file.
62600         * lib/isnan.c: Include float+.h.
62601         (SIZE): New macro.
62602         (FUNC): Compare only SIZE bytes of the value.
62603         * lib/vasnprintf.c: Include float+.h.
62604         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
62605         SIZEOF_LDBL or SIZEOF_DBL bytes.
62606         * modules/isnan-nolibm (Files): Add lib/float+.h.
62607         * modules/isnanl-nolibm (Files): Add lib/float+.h.
62608         * modules/isnanl (Files): Add lib/float+.h.
62609         * modules/vasnprintf (Files): Add lib/float+.h.
62610
62611 2007-03-24  Bruno Haible  <bruno@clisp.org>
62612
62613         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
62614         include isnanl-nolibm.h.
62615
62616 2007-03-24  Bruno Haible  <bruno@clisp.org>
62617
62618         * tests/test-read-file.c (main): Don't produce spurious output for
62619         expected situations. Make the test fail if it encountered unexpected
62620         results.
62621
62622 2007-03-24  Bruno Haible  <bruno@clisp.org>
62623
62624         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
62625         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
62626
62627 2007-03-24  Bruno Haible  <bruno@clisp.org>
62628
62629         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
62630
62631 2007-03-24  Bruno Haible  <bruno@clisp.org>
62632
62633         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
62634         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
62635
62636         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
62637         * modules/utf8-ucs4: Turn into a symbolic link to module
62638         unistr/u8-mbtouc.
62639
62640         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
62641         utf8-ucs4-unsafe.
62642         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
62643         unistr/u8-mbtouc-unsafe.
62644
62645         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
62646         * modules/utf16-ucs4: Turn into a symbolic link to module
62647         unistr/u16-mbtouc.
62648
62649         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
62650         utf16-ucs4-unsafe.
62651         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
62652         unistr/u16-mbtouc-unsafe.
62653
62654         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
62655         * modules/ucs4-utf8: Turn into a symbolic link to module
62656         unistr/u8-ubtomb.
62657
62658         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
62659         * modules/ucs4-utf16: Turn into a symbolic link to module
62660         unistr/u16-ubtomb.
62661
62662 2007-03-24  Bruno Haible  <bruno@clisp.org>
62663
62664         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
62665         Enable the function only if HAVE_INLINE.
62666         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
62667         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62668         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
62669         Enable the function only if HAVE_INLINE.
62670         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
62671         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62672         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
62673         Enable the function only if HAVE_INLINE.
62674         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
62675         Enable the function only if HAVE_INLINE.
62676         * modules/utf8-ucs4: Update.
62677         * modules/utf8-ucs4-unsafe: Update.
62678         * modules/utf16-ucs4: Update.
62679         * modules/utf16-ucs4-unsafe: Update.
62680         * modules/ucs4-utf8: Update.
62681         * modules/ucs4-utf16: Update.
62682
62683 2007-03-24  Bruno Haible  <bruno@clisp.org>
62684
62685         * lib/utf8-ucs4.h: Remove file.
62686         * lib/utf8-ucs4-unsafe.h: Remove file.
62687         * lib/utf16-ucs4.h: Remove file.
62688         * lib/utf16-ucs4-unsafe.h: Remove file.
62689         * lib/ucs4-utf8.h: Remove file.
62690         * lib/ucs4-utf16.h: Remove file.
62691         * lib/unistr.h: Include their previous contents.
62692         * m4/utf-ucs4.m4: Remove file.
62693         * m4/ucs4-utf.m4: Remove file.
62694         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
62695         (Depends-on): Add unistr/base.
62696         (configure.ac): Remove gl_UTF_UCS4.
62697         (Makefile.am): Update.
62698         (Include): Change to unistr.h.
62699         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
62700         (Depends-on): Add unistr/base.
62701         (configure.ac): Remove gl_UTF_UCS4.
62702         (Makefile.am): Update.
62703         (Include): Change to unistr.h.
62704         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
62705         (Depends-on): Add unistr/base.
62706         (configure.ac): Remove gl_UTF_UCS4.
62707         (Makefile.am): Update.
62708         (Include): Change to unistr.h.
62709         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
62710         (Depends-on): Add unistr/base.
62711         (configure.ac): Remove gl_UTF_UCS4.
62712         (Makefile.am): Update.
62713         (Include): Change to unistr.h.
62714         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
62715         (Depends-on): Add unistr/base.
62716         (configure.ac): Remove gl_UCS4_UTF.
62717         (Makefile.am): Update.
62718         (Include): Change to unistr.h.
62719         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
62720         (Depends-on): Add unistr/base.
62721         (configure.ac): Remove gl_UCS4_UTF.
62722         (Makefile.am): Update.
62723         (Include): Change to unistr.h.
62724         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
62725         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
62726         utf8-ucs4-unsafe.h.
62727         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
62728         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
62729         utf16-ucs4-unsafe.h.
62730         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
62731         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
62732         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
62733         * lib/unistr/u8-strchr.c: Likewise.
62734         * lib/unistr/u8-strrchr.c: Likewise.
62735         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
62736         * lib/unistr/u16-strchr.c: Likewise.
62737         * lib/unistr/u16-strrchr.c: Likewise.
62738         * lib/striconveh.c: Update.
62739         * lib/linebreak.c: Update.
62740
62741 2007-03-24  Bruno Haible  <bruno@clisp.org>
62742
62743         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
62744         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
62745
62746 2007-03-22  Bruno Haible  <bruno@clisp.org>
62747
62748         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
62749
62750 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62751
62752         * MODULES.html.sh (File system functions): New module write-any-file.
62753         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
62754         * m4/write-any-file.m4: New files.
62755
62756 2007-03-23  Eric Blake  <ebb9@byu.net>
62757
62758         * gnulib-tool: Rearrange space-tab sequences, since some editors
62759         like to eat them.
62760
62761 2007-03-23  Eric Blake  <ebb9@byu.net>
62762
62763         * lib/version-etc.c (version_etc_va): Update license wording to
62764         be more concise.  Recommended by Richard Stallman.
62765
62766 2007-03-22  Bruno Haible  <bruno@clisp.org>
62767
62768         * lib/poll.c (MSG_PEEK): New fallback definition.
62769
62770 2007-03-22  Bruno Haible  <bruno@clisp.org>
62771
62772         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
62773         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
62774         (main): Update.
62775         Fixes a compilation error on BeOS.
62776
62777 2007-03-22  Bruno Haible  <bruno@clisp.org>
62778
62779         * modules/frexpl-tests: New file.
62780         * tests/test-frexpl.c: New file.
62781
62782         * modules/frexpl: New file.
62783         * m4/frexpl.m4: New file.
62784         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
62785         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
62786         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
62787         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
62788         (Depends-on): Add frexpl. Remove isnanl-nolibm.
62789         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
62790
62791 2007-03-22  Bruno Haible  <bruno@clisp.org>
62792
62793         * lib/frexpl.c: Share code with lib/frexp.c.
62794         * modules/mathl (Files): Add lib/frexp.c.
62795         (Depends-on): Add isnanl-nolibm.
62796
62797 2007-03-22  Bruno Haible  <bruno@clisp.org>
62798
62799         * modules/printf-frexp (Files): Add m4/frexp.m4.
62800         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
62801         only if the found frexp function actually works.
62802
62803 2007-03-22  Bruno Haible  <bruno@clisp.org>
62804
62805         * lib/frexp.c: Remove older implementation that uses divisions.
62806
62807 2007-03-21  Bruno Haible  <bruno@clisp.org>
62808
62809         * modules/frexp-tests: New file.
62810         * tests/test-frexp.c: New file.
62811
62812         * modules/frexp: New file.
62813         * lib/frexp.c: New file.
62814         * m4/frexp.m4: New file.
62815         * lib/math_.h (frexp): New declaration.
62816         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
62817         REPLACE_FREXP.
62818         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
62819
62820 2007-03-21  Bruno Haible  <bruno@clisp.org>
62821
62822         * modules/isnanl-tests: New file.
62823         * tests/test-isnanl.c: New file.
62824
62825         * modules/isnanl: New file.
62826         * lib/isnanl.h: New file.
62827         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
62828         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
62829         gl_FUNC_ISNANL_WORKS.
62830         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
62831         New macros.
62832
62833 2007-03-21  Bruno Haible  <bruno@clisp.org>
62834
62835         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
62836         lib/isnanl.h.
62837         (Include): Update.
62838         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
62839         * lib/vasnprintf.c: Update.
62840         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
62841         tests/test-isnanl.h, remove tests/test-isnanl.c.
62842         (Makefile.am): Update.
62843         * tests/test-isnanl-nolibm.c: New file.
62844         * tests/test-isnanl.h: New file.
62845         * tests/test-isnanl.c: Remove file.
62846
62847 2007-03-21  Jim Meyering  <jim@meyering.net>
62848
62849         When trying to open ".", treat ESTALE like EACCES.
62850         * lib/savewd.c (savewd_save): Resort to forking not just upon
62851         failure with EACCES, but also when errno is ESTALE.
62852
62853 2007-03-20  Bruno Haible  <bruno@clisp.org>
62854
62855         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
62856         Needed on AIX 5.1. Reported by Matthew Woehlke.
62857
62858 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62859
62860         Suggestions by Bruno Haible:
62861         * lib/acl-internal.h: Include "gettext.h" rather than rolling
62862         our own.
62863         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
62864         * modules/acl (Depends-on): Add gettext.
62865
62866 2007-03-19  Bruno Haible  <bruno@clisp.org>
62867
62868         * modules/iconvme: Remove file.
62869         * lib/iconvme.h: Remove file.
62870         * lib/iconvme.c: Remove file.
62871         * m4/iconvme.m4: Remove file.
62872
62873 2007-03-19  Bruno Haible  <bruno@clisp.org>
62874
62875         * doc/relocatable-maint.texi: Break long shell script line.
62876         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62877
62878 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62879
62880         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
62881         handle file_has_acl.
62882         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
62883         * lib/acl.c: Move header inclusions and related macro defns into
62884         lib/acl-internal.h.
62885         (S_ISLNK): Remove defn, since that's now done for us.
62886         (file_has_acl): Move to lib/file-has-acl.c.
62887         Call acl_trivial if available.  This is the crucial part of the fix.
62888         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
62889         shared within the library.  Rewrite a bit, partly to make it compatible
62890         with the GNU coding style.
62891         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
62892         Remove unnecessary double-quotes.
62893         Don't test for acl_to_text; the build will catch that.
62894         Replace acl_entries if it doesn't exist and it is needed.
62895         Check for -lsec and acl_trivial (as used on Solaris 10).
62896         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
62897         lib/file-has-acl.c.
62898         (Depends-on): Add sys_stat, for S_ISLNK.
62899
62900 2007-03-19  Ben Pfaff  <blp@gnu.org>
62901
62902         * doc/gnulib.texi: Fix typos.
62903         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62904
62905 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62906
62907         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
62908         If size is zero here, buf must be zero.
62909
62910 2007-03-19  Simon Josefsson  <simon@josefsson.org>
62911
62912         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
62913         <bruno@clisp.org>.
62914
62915 2007-03-18  Bruno Haible  <bruno@clisp.org>
62916
62917         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
62918         Suggested by Eric Blake.
62919
62920 2007-03-18  Ben Pfaff  <blp@gnu.org>
62921
62922         * doc/relocatable.texi: Recommend using as prefix a directory
62923         that does not exist and will never be created.  Based on
62924         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
62925         and others.
62926
62927 2007-03-17  Bruno Haible  <bruno@clisp.org>
62928
62929         * lib/fchownat.c: Include lchown.h.
62930
62931 2007-03-17  Bruno Haible  <bruno@clisp.org>
62932
62933         Fix endless loop when the given allocated size was > INT_MAX.
62934         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
62935         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
62936         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
62937         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
62938         * lib/sprintf.c (sprintf): Likewise.
62939
62940 2007-03-17  Bruno Haible  <bruno@clisp.org>
62941
62942         * tests/test-argp-2.sh (func_compare): Output a context diff.
62943
62944 2007-03-17  Bruno Haible  <bruno@clisp.org>
62945
62946         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
62947         locale's decimal-point character.
62948
62949 2007-03-17  Bruno Haible  <bruno@clisp.org>
62950
62951         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
62952         before comparing it. Needed because on some platforms (e.g. x86) a
62953         'long double' occupies less bytes than sizeof (long double).
62954
62955 2007-03-17  Bruno Haible  <bruno@clisp.org>
62956
62957         * tests/test-crc.c (main): Make printf statements 64-bit clean.
62958         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
62959         * tests/test-getaddrinfo.c (simple): Likewise.
62960         * tests/test-read-file.c (main): Likewise.
62961
62962 2007-03-17  Bruno Haible  <bruno@clisp.org>
62963
62964         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
62965
62966 2007-03-17  Bruno Haible  <bruno@clisp.org>
62967
62968         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
62969         unused variable.
62970
62971 2007-03-17  Bruno Haible  <bruno@clisp.org>
62972
62973         * tests/test-c-strcasecmp.c: Include c-strcase.h.
62974         * tests/test-c-strncasecmp.c: Likewise.
62975
62976 2007-03-17  Bruno Haible  <bruno@clisp.org>
62977
62978         * modules/stdlib (Depends-on): Add unistd.
62979         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
62980         Needed for MacOS X 10.3.
62981
62982 2007-03-17  Bruno Haible  <bruno@clisp.org>
62983
62984         * lib/unistr/u-strdup.h: Include <stdlib.h>.
62985
62986 2007-03-17  Bruno Haible  <bruno@clisp.org>
62987
62988         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
62989
62990 2007-03-17  Bruno Haible  <bruno@clisp.org>
62991
62992         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
62993         to reflect files copied from gnulib (with or without modifications).
62994         Suggested by Jim Meyering.
62995
62996 2007-03-17  Eric Blake  <ebb9@byu.net>
62997
62998         * NEWS: Document stdlib change from 2007-02-18.
62999
63000 2007-03-17  Jim Meyering  <jim@meyering.net>
63001
63002         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
63003         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
63004         someone uses a name containing shell meta-characters.
63005         Reported by Alfred M. Szmidt.
63006
63007         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
63008
63009 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
63010
63011         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
63012         and copy gettext configuration files only if configure.ac contains
63013         a use of AM_GNU_GETTEXT_VERSION.
63014
63015 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
63016
63017         * build-aux/bootstrap (gnulib_name): New variable.
63018         (gnulib_tool_options): Use it.
63019
63020 2007-03-13  Simon Josefsson  <simon@josefsson.org>
63021
63022         * tests/test-des.c: Use new namespace.
63023
63024 2007-03-15  Bruno Haible  <bruno@clisp.org>
63025
63026         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
63027         Reported by James Youngman <jay@gnu.org>.
63028
63029 2007-03-15  Bruno Haible  <bruno@clisp.org>
63030
63031         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
63032         declared prototype. Needed with cc on OSF/1 5.1.
63033
63034 2007-03-15  Bruno Haible  <bruno@clisp.org>
63035
63036         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
63037         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
63038         (struct gl_list_implementation): Add dispose_fn argument to the
63039         'create_empty', 'create' methods.
63040         (struct gl_list_impl_base): Add field 'dispose_fn'.
63041         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
63042         argument.
63043         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
63044         dispose_fn argument.
63045         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
63046         dispose_fn on the dropped values.
63047         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
63048         dispose_fn argument.
63049         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
63050         dropped values.
63051         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
63052         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63053         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
63054         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63055         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
63056         argument.
63057         (gl_tree_list_free): Call dispose_fn on the dropped values.
63058         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
63059         the dropped values.
63060         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
63061         Add dispose_fn argument.
63062         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
63063         Call dispose_fn on the dropped values.
63064         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
63065         Add dispose_fn argument.
63066         (gl_sublist_create): Initialize the 'dispose_fn' field.
63067         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
63068         * tests/test-array_list.c (main): Update.
63069         * tests/test-carray_list.c (main): Update.
63070         * tests/test-avltree_list.c (main): Update.
63071         * tests/test-rbtree_list.c (main): Update.
63072         * tests/test-avltreehash_list.c (main): Update.
63073         * tests/test-rbtreehash_list.c (main): Update.
63074         * tests/test-linked_list.c (main): Update.
63075         * tests/test-linkedhash_list.c (main): Update.
63076         * tests/test-array_oset.c (main): Update.
63077
63078 2007-03-15  Bruno Haible  <bruno@clisp.org>
63079
63080         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
63081         (gl_oset_create_empty): Add dispose_fn argument.
63082         (struct gl_oset_implementation): Add dispose_fn argument to
63083         'create_empty' method.
63084         (struct gl_oset_impl_base): Add dispose_fn field.
63085         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
63086         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
63087         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
63088         values.
63089         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
63090         (gl_tree_oset_free): Call dispose_fn on the dropped values.
63091         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63092         dropped value.
63093         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63094         dropped value.
63095         * tests/test-array_oset.c (main): Update.
63096         * tests/test-avltree_oset.c (main): Update.
63097         * tests/test-rbtree_oset.c (main): Update.
63098         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
63099
63100 2007-03-13  Bruno Haible  <bruno@clisp.org>
63101
63102         * tests/test-stdbool.c (i): Update after last patch.
63103
63104 2007-03-12  Bruno Haible  <bruno@clisp.org>
63105
63106         * lib/quotearg.c: Include <wctype.h> early, before the definition of
63107         the iswprint macro. Needed on Solaris 2.5.1.
63108
63109 2007-03-12  Bruno Haible  <bruno@clisp.org>
63110
63111         * tests/test-printf-frexp.c (main): Declare x as volatile.
63112
63113 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63114
63115         * doc/gnulib.texi (Build robot for gnulib): New section.
63116
63117 2007-03-12  Jim Meyering  <jim@meyering.net>
63118
63119         * build-aux/bootstrap: New file.
63120         * build-aux/bootstrap.conf: New file, from coreutils.
63121
63122 2007-03-11  Bruno Haible  <bruno@clisp.org>
63123
63124         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
63125
63126 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63127
63128         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
63129         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
63130         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
63131
63132 2007-03-11  Bruno Haible  <bruno@clisp.org>
63133
63134         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
63135         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
63136
63137 2007-03-11  Bruno Haible  <bruno@clisp.org>
63138
63139         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
63140         formula. Needed for SunPRO C 5.0.
63141
63142 2007-03-11  Bruno Haible  <bruno@clisp.org>
63143
63144         * modules/long-options (Depends-on): Add getopt.
63145
63146 2007-03-11  Bruno Haible  <bruno@clisp.org>
63147
63148         * modules/modechange (Depends-on): Add stdbool.
63149
63150 2007-03-11  Bruno Haible  <bruno@clisp.org>
63151
63152         * modules/i-ring (Depends-on): Add stdbool.
63153
63154 2007-03-11  Bruno Haible  <bruno@clisp.org>
63155
63156         * modules/gc-des (Depends-on): Add stdbool.
63157
63158 2007-03-11  Bruno Haible  <bruno@clisp.org>
63159
63160         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
63161
63162 2007-03-11  Bruno Haible  <bruno@clisp.org>
63163
63164         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
63165
63166 2007-03-11  Bruno Haible  <bruno@clisp.org>
63167
63168         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
63169
63170 2007-03-11  Bruno Haible  <bruno@clisp.org>
63171
63172         * lib/vasnprintf.c (sprintf): Undefine.
63173
63174 2007-03-11  Bruno Haible  <bruno@clisp.org>
63175
63176         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
63177         initializers in SunPRO C and Compaq C compilers.
63178
63179 2007-03-11  Bruno Haible  <bruno@clisp.org>
63180
63181         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
63182         decrementing code ANSI C compliant.
63183
63184 2007-03-11  Bruno Haible  <bruno@clisp.org>
63185
63186         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
63187         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
63188
63189 2007-03-11  Bruno Haible  <bruno@clisp.org>
63190
63191         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
63192         <stdbool.h> substitute doesn't pass.
63193
63194 2007-03-11  Bruno Haible  <bruno@clisp.org>
63195
63196         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
63197
63198 2007-03-11  Bruno Haible  <bruno@clisp.org>
63199
63200         * gnulib-tool (func_create_megatestdir): Create also an autobuild
63201         script, for submission to autobuild.josefsson.org.
63202
63203 2007-03-10  Bruno Haible  <bruno@clisp.org>
63204
63205         * modules/canonicalize-lgpl-tests: New file.
63206         * tests/test-canonicalize-lgpl.sh: New file.
63207         * tests/test-canonicalize-lgpl.c: New file.
63208
63209         * modules/c-strcase-tests: New file.
63210         * tests/test-c-strcase.sh: New file.
63211         * tests/test-c-strcasecmp.c: New file.
63212         * tests/test-c-strncasecmp.c: New file.
63213
63214         * modules/atexit-tests: New file.
63215         * tests/test-atexit.sh: New file.
63216         * tests/test-atexit.c: New file.
63217
63218 2007-03-10  Bruno Haible  <bruno@clisp.org>
63219
63220         * tests/test-binary-io.sh: Use temporary filenames that are not so
63221         likely to clash with those of other tests (in a parallel make).
63222         * tests/test-binary-io.c: Likewise.
63223
63224 2007-03-10  Bruno Haible  <bruno@clisp.org>
63225
63226         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
63227         fallback; use #error instead.
63228         Suggested by Simon Josefsson.
63229
63230 2007-03-10  Bruno Haible  <bruno@clisp.org>
63231
63232         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
63233         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
63234         first and the last.
63235
63236 2007-03-10  Bruno Haible  <bruno@clisp.org>
63237
63238         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
63239
63240 2007-03-10  Bruno Haible  <bruno@clisp.org>
63241
63242         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
63243         "make distcheck".
63244         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
63245         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
63246         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
63247
63248 2007-03-10  Bruno Haible  <bruno@clisp.org>
63249
63250         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
63251         variable.
63252         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
63253         variable.
63254
63255 2007-03-09  Eric Blake  <ebb9@byu.net>
63256         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
63257
63258         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
63259         types are not being provided by gnulib.
63260         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
63261         types are supported.
63262
63263 2007-03-10  Bruno Haible  <bruno@clisp.org>
63264
63265         * lib/stdio_.h (__attribute__): New macro.
63266         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
63267         vsprintf): Specify __attribute__ __format__ for GCC.
63268         Suggested by Eric Blake.
63269
63270 2007-03-09  Bruno Haible  <bruno@clisp.org>
63271
63272         * modules/printf-posix-tests: New file.
63273         * tests/test-printf-posix.sh: New file.
63274         * tests/test-printf-posix.c: New file.
63275
63276         * modules/printf-posix: New file.
63277         * lib/printf.c: New file.
63278         * m4/printf-posix-rpl.m4: New file.
63279         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
63280         REPLACE_PRINTF.
63281         * lib/stdio_.h (printf): New declaration.
63282         (format, __format__, ____printf____, ____scanf____, ____strftime____,
63283         ____strfmon____): New macros.
63284         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
63285         REPLACE_PRINTF.
63286
63287 2007-03-09  Bruno Haible  <bruno@clisp.org>
63288
63289         * tests/test-vasnprintf-posix2.sh: New file.
63290         * tests/test-vasnprintf-posix2.c: New file.
63291         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
63292         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
63293         (Makefile.am): Activate test-vasnprintf-posix2.sh.
63294
63295         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
63296         a locale dependent decimal point, rather than always '.'.
63297
63298 2007-03-09  Eric Blake  <ebb9@byu.net>
63299
63300         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
63301         spite of platforms like Tandem/NSK that define it to -1.
63302
63303 2007-03-08  Bruno Haible  <bruno@clisp.org>
63304
63305         * modules/vprintf-posix-tests: New file.
63306         * tests/test-vprintf-posix.sh: New file.
63307         * tests/test-vprintf-posix.c: New file.
63308         * tests/test-printf-posix.h: New file.
63309
63310         * modules/vprintf-posix: New file.
63311         * lib/vprintf.c: New file.
63312         * m4/vprintf-posix.m4: New file.
63313         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
63314         REPLACE_VPRINTF.
63315         * lib/stdio_.h (vprintf): New declaration.
63316         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
63317         REPLACE_VPRINTF.
63318
63319 2007-03-08  Bruno Haible  <bruno@clisp.org>
63320
63321         * modules/fprintf-posix-tests: New file.
63322         * tests/test-fprintf-posix.sh: New file.
63323         * tests/test-fprintf-posix.c: New file.
63324
63325         * modules/fprintf-posix: New file.
63326         * lib/fprintf.c: New file.
63327         * m4/fprintf-posix.m4: New file.
63328         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
63329         REPLACE_FPRINTF.
63330         * lib/stdio_.h (fprintf): New declaration.
63331         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
63332         REPLACE_FPRINTF.
63333
63334 2007-03-08  Bruno Haible  <bruno@clisp.org>
63335
63336         * modules/vfprintf-posix-tests: New file.
63337         * tests/test-vfprintf-posix.sh: New file.
63338         * tests/test-vfprintf-posix.c: New file.
63339         * tests/test-fprintf-posix.h: New file.
63340         * tests/test-fprintf-posix.out: New file.
63341
63342         * modules/vfprintf-posix: New file.
63343         * lib/vfprintf.c: New file.
63344         * m4/vfprintf-posix.m4: New file.
63345         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
63346         REPLACE_VFPRINTF.
63347         * lib/stdio_.h (vfprintf): New declaration.
63348         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
63349         REPLACE_VFPRINTF.
63350
63351 2007-03-08  Bruno Haible  <bruno@clisp.org>
63352
63353         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
63354
63355 2007-03-08  Bruno Haible  <bruno@clisp.org>
63356
63357         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
63358         instead of 'expr' invocations.
63359         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63360         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63361         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63362         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63363         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63364         Suggested by Paul Eggert.
63365
63366 2007-03-08  Bruno Haible  <bruno@clisp.org>
63367
63368         * modules/fseterr-tests: New file.
63369         * tests/test-fseterr.c: New file.
63370
63371         * modules/fseterr: New file.
63372         * lib/fseterr.h: New file.
63373         * lib/fseterr.c: New file.
63374
63375 2007-03-08  Bruno Haible  <bruno@clisp.org>
63376
63377         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
63378         * lib/getopt_.h: Likewise.
63379         * lib/mbswidth.h: Likewise.
63380         * lib/setenv.h: Likewise.
63381         * lib/vasnprintf.h: Likewise.
63382         * lib/vasprintf.h: Likewise.
63383         * lib/verror.h: Likewise.
63384         * lib/xsetenv.h: Likewise.
63385         * lib/xvasprintf.h: Likewise.
63386
63387 2007-03-08  Jim Meyering  <jim@meyering.net>
63388
63389         * users.txt: Add parted.
63390
63391         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
63392
63393 2007-03-07  Bruno Haible  <bruno@clisp.org>
63394
63395         * m4/printf.m4: Make the shell script snippets copy&pastable.
63396
63397 2007-03-02  Bruno Haible  <bruno@clisp.org>
63398
63399         * lib/netinet_in_.h: New file.
63400         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
63401         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
63402         * modules/netinet_in (Files): Add lib/netinet_in_.h.
63403         (Depends-on): Add absolute-header.
63404         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
63405         into netinet/in.h.
63406
63407 2007-03-03  Bruno Haible  <bruno@clisp.org>
63408
63409         * lib/sys_select_.h: New file.
63410         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
63411         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
63412         * modules/sys_select (Files): Add lib/sys_select_.h.
63413         (Depends-on): Add absolute-header.
63414         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
63415         into sys/select.h.
63416
63417 2007-03-02  Bruno Haible  <bruno@clisp.org>
63418
63419         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
63420         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
63421         values.
63422         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
63423         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
63424         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
63425         * modules/sys_socket (Depends-on): Add absolute-header.
63426         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
63427         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
63428         (Include): Remove requirement of inclusion of <sys/types.h>.
63429
63430 2007-03-02  Bruno Haible  <bruno@clisp.org>
63431
63432         * lib/byteswap_.h (bswap_32): Fix formula.
63433
63434 2007-03-06  Bruno Haible  <bruno@clisp.org>
63435
63436         * modules/sprintf-posix-tests: New file.
63437         * tests/test-sprintf-posix.c: New file.
63438
63439         * modules/sprintf-posix: New file.
63440         * lib/sprintf.c: New file.
63441         * m4/sprintf-posix.m4: New file.
63442         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
63443         REPLACE_SPRINTF.
63444         * lib/stdio_.h (sprintf): New declaration.
63445         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
63446         REPLACE_SPRINTF.
63447
63448 2007-03-06  Bruno Haible  <bruno@clisp.org>
63449
63450         * modules/vsprintf-posix-tests: New file.
63451         * tests/test-vsprintf-posix.c: New file.
63452         * tests/test-sprintf-posix.h: New file.
63453
63454         * modules/vsprintf-posix: New file.
63455         * lib/vsprintf.c: New file.
63456         * m4/vsprintf-posix.m4: New file.
63457         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
63458         REPLACE_VSPRINTF.
63459         * lib/stdio_.h (vsprintf): New declaration.
63460         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
63461         REPLACE_VSPRINTF.
63462
63463 2007-03-06  Bruno Haible  <bruno@clisp.org>
63464
63465         * modules/vsnprintf (Depend-on): Remove minmax.
63466
63467 2007-03-06  Bruno Haible  <bruno@clisp.org>
63468
63469         * modules/snprintf-posix-tests: New file.
63470         * tests/test-snprintf-posix.c: New file.
63471
63472         * modules/snprintf-posix: New file.
63473         * m4/snprintf-posix.m4: New file.
63474         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
63475         gl_FUNC_SNPRINTF.
63476         (gl_FUNC_SNPRINTF): Invoke it.
63477         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
63478         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
63479         is set.
63480         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
63481
63482 2007-03-06  Bruno Haible  <bruno@clisp.org>
63483
63484         * modules/vsnprintf-posix-tests: New file.
63485         * tests/test-vsnprintf-posix.c: New file.
63486         * tests/test-snprintf-posix.h: New file.
63487
63488         * modules/vsnprintf-posix: New file.
63489         * m4/vsnprintf-posix.m4: New file.
63490         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
63491         gl_FUNC_VSNPRINTF.
63492         (gl_FUNC_VSNPRINTF): Invoke it.
63493         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
63494         * lib/stdio_.h (vsnprintf): Define as a replacement if
63495         REPLACE_VSNPRINTF is set.
63496         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
63497
63498 2007-03-06  Bruno Haible  <bruno@clisp.org>
63499
63500         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
63501         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
63502
63503 2007-03-06  Bruno Haible  <bruno@clisp.org>
63504
63505         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
63506         (asinl): Declare also if HAVE_DECL_ASINL is set.
63507         (atanl): Declare also if HAVE_DECL_ATANL is set.
63508         (ceill): Declare also if HAVE_DECL_CEILL is set.
63509         (cosl): Declare also if HAVE_DECL_COSL is set.
63510         (expl): Declare also if HAVE_DECL_EXPL is set.
63511         (floorl): Declare also if HAVE_DECL_FLOORL is set.
63512         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
63513         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
63514         (logl): Declare also if HAVE_DECL_LOGL is set.
63515         (sinl): Declare also if HAVE_DECL_SINL is set.
63516         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
63517         (tanl): Declare also if HAVE_DECL_TANL is set.
63518         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
63519         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
63520         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
63521         declaration of frexpl, ldexpl.
63522         * modules/printf-frexpl (Depends-on): Add math.
63523         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
63524
63525 2007-03-05  Bruno Haible  <bruno@clisp.org>
63526
63527         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
63528         frexpl and ldexpl are declared.
63529         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
63530
63531 2007-03-05  Bruno Haible  <bruno@clisp.org>
63532
63533         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
63534         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
63535
63536 2007-03-05  Bruno Haible  <bruno@clisp.org>
63537
63538         * lib/stdio_.h: Include <stddef.h>.
63539
63540 2007-03-05  Bruno Haible  <bruno@clisp.org>
63541
63542         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
63543
63544 2007-03-05  Bruno Haible  <bruno@clisp.org>
63545
63546         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
63547         NetBSD 4, from Ralf Wildenhues.
63548
63549 2007-03-04  Bruno Haible  <bruno@clisp.org>
63550
63551         * lib/vasprintf.h: Update #if logic for the case when the functions
63552         exist but are overridden.
63553
63554 2007-03-04  Bruno Haible  <bruno@clisp.org>
63555
63556         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
63557         implementations: glibc-2.4 and MacOS X 10.3.
63558         * tests/test-vasnprintf-posix.c (test_function): Test also the case
63559         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
63560         * tests/test-vasprintf-posix.c (test_function): Likewise.
63561
63562 2007-03-04  Bruno Haible  <bruno@clisp.org>
63563
63564         * modules/vasprintf-posix-tests: New file.
63565         * tests/test-vasprintf-posix.c: New file.
63566
63567         * modules/vasprintf-posix: New file.
63568         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
63569         defined.
63570         * m4/vasprintf-posix.m4: New file.
63571         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
63572         gl_FUNC_VASPRINTF.
63573         (gl_FUNC_VASPRINTF): Invoke it.
63574         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
63575         here.
63576         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
63577
63578 2007-03-04  Bruno Haible  <bruno@clisp.org>
63579
63580         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
63581         REPLACE_GETTIMEOFDAY.
63582         * modules/sys_time (Makefile.am): Likewise.
63583         * m4/sys_time_h.m4: Likewise.
63584         * m4/gettimeofday.m4: Likewise.
63585
63586 2007-03-04  Bruno Haible  <bruno@clisp.org>
63587
63588         * modules/vasnprintf-posix-tests: New file.
63589         * tests/test-vasnprintf-posix.c: New file.
63590
63591         * modules/vasnprintf-posix: New file.
63592         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
63593         printf-frexpl.h.
63594         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
63595         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
63596         REPLACE_VASNPRINTF is defined.
63597         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
63598         gl_FUNC_VASNPRINTF.
63599         (gl_FUNC_VASNPRINTF): Invoke it.
63600         * m4/vasnprintf-posix.m4: New file.
63601         * m4/printf.m4: New file.
63602
63603 2007-03-04  Bruno Haible  <bruno@clisp.org>
63604
63605         Compile progreloc.c only if --enable-relocatable is specified.
63606         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
63607         if --enable-relocatable was specified.
63608         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
63609         lib_SOURCES.
63610
63611 2007-03-04  Jim Meyering  <jim@meyering.net>
63612
63613         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
63614         Use it consistently, rather than enumerating errno constants.
63615
63616 2007-03-04  Bruno Haible  <bruno@clisp.org>
63617
63618         * modules/xvasprintf-tests: New file.
63619         * tests/test-xvasprintf.c: New file.
63620
63621         * modules/vasprintf-tests: New file.
63622         * tests/test-vasprintf.c: New file.
63623
63624         * modules/vasnprintf-tests: New file.
63625         * tests/test-vasnprintf.c: New file.
63626
63627         * modules/vsnprintf-tests: New file.
63628         * tests/test-vsnprintf.c: New file.
63629
63630         * modules/snprintf-tests: New file.
63631         * tests/test-snprintf.c: New file.
63632
63633 2007-03-04  Bruno Haible  <bruno@clisp.org>
63634
63635         Compile relocatable.c only if --enable-relocatable is specified.
63636         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
63637         gl_RELOCATABLE_LIBRARY.
63638         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
63639         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
63640         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
63641         gl_RELOCATABLE_LIBRARY.
63642         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
63643         (Makefile.am): Remove lib_SOURCES.
63644         * modules/relocatable-lib-lgpl (configure.ac): Invoke
63645         gl_RELOCATABLE_LIBRARY.
63646         (Makefile.am): Remove lib_SOURCES.
63647         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
63648         always.
63649         * modules/relocatable-prog-wrapper (configure.ac): Invoke
63650         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
63651
63652 2007-03-04  Bruno Haible  <bruno@clisp.org>
63653
63654         * modules/argmatch-tests: New file.
63655         * tests/test-argmatch.c: New file.
63656
63657         * tests/test-allocsa.c (main): Halve the number of loop runs.
63658
63659         * modules/alloca-opt-tests: New file.
63660         * tests/test-alloca-opt.c: New file.
63661
63662 2007-03-04  Jim Meyering  <jim@meyering.net>
63663
63664         Work around difference between Linux ACLs and Solaris 10 ZFS.
63665         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
63666         for EINVAL.
63667
63668 2007-03-03  Bruno Haible  <bruno@clisp.org>
63669
63670         * modules/relocatable-prog (Depends-on): Add back progreloc's
63671         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
63672
63673 2007-03-03  Bruno Haible  <bruno@clisp.org>
63674
63675         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
63676         * modules/relocatable-lib: New file.
63677
63678 2007-03-03  Bruno Haible  <bruno@clisp.org>
63679
63680         * modules/relocatable-prog: Renamed from modules/relocatable.
63681         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
63682
63683 2007-03-03  Bruno Haible  <bruno@clisp.org>
63684
63685         * modules/relocatable-script (Files): Add doc/relocatable.texi,
63686         m4/relocatable-lib.m4.
63687         (Depends-on): Remove 'relocatable'.
63688         (configure.ac): Add gl_RELOCATABLE_NOP.
63689
63690 2007-03-03  Bruno Haible  <bruno@clisp.org>
63691
63692         * modules/relocatable-prog-wrapper: New file.
63693         * modules/relocatable (Depends-on): Add it. Remove all other
63694         dependencies except progname.
63695         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
63696
63697         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
63698         (gl_FUNC_STRERROR): Nop.
63699         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
63700
63701         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
63702         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
63703
63704         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
63705         (gl_FUNC_READLINK): Update.
63706
63707         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
63708
63709 2007-03-03  Bruno Haible  <bruno@clisp.org>
63710
63711         * lib/xreadlink.c: Include <unistd.h> unconditionally.
63712         * modules/xreadlink (Depends-on): Add unistd.
63713         * modules/xreadlink-with-size (Depends-on): Likewise.
63714
63715 2007-03-03  Bruno Haible  <bruno@clisp.org>
63716
63717         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
63718         extracted from gt_FUNC_SETENV.
63719         (gt_FUNC_SETENV): Remove macro.
63720         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
63721         remove gt_FUNC_SETENV.
63722
63723 2007-03-03  Bruno Haible  <bruno@clisp.org>
63724
63725         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
63726         ENABLE_RELOCATABLE here.
63727         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
63728
63729 2007-03-03  Bruno Haible  <bruno@clisp.org>
63730
63731         * modules/rbtreehash-list-tests (Depends-on): Add progname.
63732         * tests/test-rbtreehash_list.c: Include progname.h.
63733         (main): Call set_program_name.
63734
63735         * modules/rbtree-oset-tests (Depends-on): Add progname.
63736         * tests/test-rbtree_oset.c: Include progname.h.
63737         (main): Call set_program_name.
63738
63739         * modules/rbtree-list-tests (Depends-on): Add progname.
63740         * tests/test-rbtree_list.c: Include progname.h.
63741         (main): Call set_program_name.
63742
63743         * modules/linked-list-tests (Depends-on): Add progname.
63744         * tests/test-linked_list.c: Include progname.h.
63745         (main): Call set_program_name.
63746
63747 2007-03-03  Bruno Haible  <bruno@clisp.org>
63748
63749         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
63750         All uses of __restrict changed to _Restrict_.
63751         * lib/glob_.h (__restrict): Remove macro.
63752
63753 2007-03-02  Bruno Haible  <bruno@clisp.org>
63754
63755         * modules/gettext (configure.ac): Require gettext infrastructure
63756         from version 0.16.1.
63757
63758 2007-03-02  Bruno Haible  <bruno@clisp.org>
63759
63760         * modules/linkedhash-list-tests (Depends-on): Add progname.
63761         * tests/test-linkedhash_list.c: Include progname.h.
63762         (main): Call set_program_name.
63763
63764         * modules/carray-list-tests (Depends-on): Add progname.
63765         * tests/test-carray_list.c: Include progname.h.
63766         (main): Call set_program_name.
63767
63768         * modules/avltreehash-list-tests (Depends-on): Add progname.
63769         * tests/test-avltreehash_list.c: Include progname.h.
63770         (main): Call set_program_name.
63771
63772         * modules/avltree-oset-tests (Depends-on): Add progname.
63773         * tests/test-avltree_oset.c: Include progname.h.
63774         (main): Call set_program_name.
63775
63776         * modules/avltree-list-tests (Depends-on): Add progname.
63777         * tests/test-avltree_list.c: Include progname.h.
63778         (main): Call set_program_name.
63779
63780         * modules/array-oset-tests (Depends-on): Add progname.
63781         * tests/test-array_oset.c: Include progname.h.
63782         (main): Call set_program_name.
63783
63784         * modules/array-list-tests (Depends-on): Add progname.
63785         * tests/test-array_list.c: Include progname.h.
63786         (main): Call set_program_name.
63787
63788         * modules/argp-tests (Depends-on): Add progname.
63789         * tests/test-argp.c: Include argp.h first. Include progname.h.
63790         (main): Call set_program_name.
63791
63792 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
63793
63794         * doc/gnulib-tool.texi (Initial import): Reword description of
63795         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
63796         limited effect even if defined after the first system include.
63797
63798 2007-03-01  Bruno Haible  <bruno@clisp.org>
63799
63800         * build-aux/config.libpath: Update to libtool-1.5.22.
63801         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63802
63803 2007-03-01  Bruno Haible  <bruno@clisp.org>
63804
63805         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
63806         foo_CFLAGS.
63807         Reported by Ralf Wildenhues.
63808
63809 2007-03-01  Bruno Haible  <bruno@clisp.org>
63810
63811         * build-aux/install-reloc: Remove object files left over by some
63812         compilers.
63813         Reported by Ralf Wildenhues.
63814
63815 2007-03-01  Bruno Haible  <bruno@clisp.org>
63816
63817         * build-aux/install-reloc: Break long lines.
63818
63819 2007-03-01  Bruno Haible  <bruno@clisp.org>
63820
63821         * doc/relocatable.texi: Document that it may not work on OpenBSD.
63822         Reported by Ralf Wildenhues.
63823
63824 2007-03-01  Bruno Haible  <bruno@clisp.org>
63825
63826         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
63827         include ordering constraints.
63828
63829 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63830
63831         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
63832         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
63833         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
63834         as another example.
63835         * lib/time_.h: Fix misspelling.
63836         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63837         Require gl_HEADER_TIME_H_DEFAULTS.
63838         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
63839         * m4/time_r.m4 (gl_TIME_R): Likewise.
63840         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
63841
63842 2007-03-01  Bruno Haible  <bruno@clisp.org>
63843
63844         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
63845         * m4/utimens.m4 (gl_UTIMENS): Likewise.
63846
63847 2007-03-01  Jim Meyering  <jim@meyering.net>
63848
63849         * modules/xreadlink (Maintainer): Add my name.
63850         * modules/xreadlink-with-size (Depends-on): Alphabetize.
63851
63852 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
63853             Bruno Haible  <bruno@clisp.org>
63854
63855         * build-aux/install-reloc: Compile also c-ctype.c.
63856         * build-aux/relocatable.sh.in: New file.
63857         * doc/relocatable.texi: New file.
63858         * doc/relocatable-maint.texi: New file.
63859         * doc/gnulib.texi: Include relocatable-maint.texi.
63860         * lib/progreloc.c: Include unistd.h unconditionally.
63861         * lib/relocwrapper.c: Include unistd.h unconditionally.
63862         Include c-ctype.h.
63863         (add_dotbin): Use c_tolower.
63864         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
63865         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
63866         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
63867         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
63868         to m4/relocatable-lib.m4.
63869         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
63870         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
63871         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
63872         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
63873         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
63874         * modules/relocatable: New file.
63875         * modules/relocatable-lib: New file.
63876         * modules/relocatable-script: New file.
63877
63878 2007-02-28  Bruno Haible  <bruno@clisp.org>
63879
63880         Import --enable-relocatable infrastructure.
63881         * build-aux/config.libpath: New file, from GNU gettext.
63882         * build-aux/install-reloc: New file, from GNU gettext.
63883         * build-aux/reloc-ldflags: New file, from GNU gettext.
63884         * lib/relocatable.h: New file, from GNU gettext.
63885         * lib/relocatable.c: New file, from GNU gettext.
63886         * lib/relocwrapper.c: New file, from GNU gettext.
63887         * m4/relocatable.m4: New file, from GNU gettext.
63888
63889 2007-02-28  Bruno Haible  <bruno@clisp.org>
63890
63891         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
63892
63893         * modules/xreadlink: New file, from GNU gettext with modifications.
63894         * lib/xreadlink.c: New file, from GNU gettext.
63895         * lib/xreadlink.h: Add comments.
63896         (xreadlink): New declaration.
63897
63898         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
63899         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
63900         lib/xreadlink-with-size.c.
63901         (configure.ac): Remove gl_XREADLINK invocation.
63902         (Makefile.am): Augment lib_SOURCES.
63903         * m4/xreadlink.m4: Remove file.
63904         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
63905         (xreadlink_with_size): Renamed from xreadink.
63906         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
63907         * modules/canonicalize (Depends-on): Replace xreadlink with
63908         xreadlink-with-size.
63909         * lib/canonicalize.c (canonicalize_filename_mode): Update.
63910
63911 2007-02-25  Jim Meyering  <jim@meyering.net>
63912
63913         * build-aux/announce-gen: When complaining about excess arguments,
63914         list them.
63915
63916 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63917
63918         * README: Document signed integer overflow situation more
63919         accurately.
63920
63921 2007-02-25  Bruno Haible  <bruno@clisp.org>
63922
63923         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
63924         'a' or 'A' conversion.
63925
63926 2007-02-25  Bruno Haible  <bruno@clisp.org>
63927
63928         * modules/filename: Renamed from modules/pathname.
63929         (Files): Replace lib/pathname.h with lib/filename.h. Replace
63930         lib/concatpath.c with lib/concat-filename.c.
63931         (Makefile.am): Update.
63932         (Include): Replace pathname.h with filename.h.
63933         * lib/filename.h: Renamed from lib/pathname.h.
63934         (concatenated_filename): Renamed from concatenated_pathname.
63935         * lib/concat-filename.c: Renamed from lib/concatpath.c.
63936         (concatenated_filename): Renamed from concatenated_pathname.
63937         * lib/findprog.c: Include filename.h instead of pathname.h.
63938         (find_in_path): Update.
63939         * lib/javacomp.c: Include filename.h instead of pathname.h.
63940         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
63941         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
63942         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
63943         is_oldgcj_14_13_usable, is_javac_usable): Update.
63944         * lib/javaexec.c: Include filename.h instead of pathname.h.
63945         (execute_java_class): Update.
63946         * modules/findprog: Update.
63947         * modules/javacomp: Update.
63948         * modules/javaexec: Update.
63949         * MODULES.html.sh (File system functions): Add 'filename', remove
63950         'pathname'.
63951
63952 2007-02-25  Bruno Haible  <bruno@clisp.org>
63953
63954         * modules/printf-frexpl-tests: New file.
63955         * tests/test-printf-frexpl.c: New file.
63956
63957         * modules/printf-frexpl: New file.
63958         * lib/printf-frexpl.h: New file.
63959         * lib/printf-frexpl.c: New file.
63960         * m4/printf-frexpl.m4: New file.
63961
63962 2007-02-25  Bruno Haible  <bruno@clisp.org>
63963
63964         * modules/printf-frexp-tests: New file.
63965         * tests/test-printf-frexp.c: New file.
63966
63967         * modules/printf-frexp: New file.
63968         * lib/printf-frexp.h: New file.
63969         * lib/printf-frexp.c: New file.
63970         * m4/printf-frexp.m4: New file.
63971
63972 2007-02-25  Bruno Haible  <bruno@clisp.org>
63973
63974         Assume automake >= 1.10 for the tests.
63975         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
63976         * modules/arctwo-tests: Likewise.
63977         * modules/argp-tests: Likewise.
63978         * modules/avltree-list-tests: Likewise.
63979         * modules/avltree-oset-tests: Likewise.
63980         * modules/avltreehash-list-tests: Likewise.
63981         * modules/carray-list-tests: Likewise.
63982         * modules/crc-tests: Likewise.
63983         * modules/des-tests: Likewise.
63984         * modules/gc-arcfour-tests: Likewise.
63985         * modules/gc-arctwo-tests: Likewise.
63986         * modules/gc-des-tests: Likewise.
63987         * modules/gc-hmac-md5-tests: Likewise.
63988         * modules/gc-hmac-sha1-tests: Likewise.
63989         * modules/gc-md2-tests: Likewise.
63990         * modules/gc-md4-tests: Likewise.
63991         * modules/gc-md5-tests: Likewise.
63992         * modules/gc-pbkdf2-sha1-tests: Likewise.
63993         * modules/gc-rijndael-tests: Likewise.
63994         * modules/gc-sha1-tests: Likewise.
63995         * modules/gc-tests: Likewise.
63996         * modules/getaddrinfo-tests: Likewise.
63997         * modules/hmac-md5-tests: Likewise.
63998         * modules/hmac-sha1-tests: Likewise.
63999         * modules/linked-list-tests: Likewise.
64000         * modules/linkedhash-list-tests: Likewise.
64001         * modules/lock-tests: Likewise.
64002         * modules/md2-tests: Likewise.
64003         * modules/md4-tests: Likewise.
64004         * modules/md5-tests: Likewise.
64005         * modules/rbtree-list-tests: Likewise.
64006         * modules/rbtree-oset-tests: Likewise.
64007         * modules/rbtreehash-list-tests: Likewise.
64008         * modules/read-file-tests: Likewise.
64009         * modules/rijndael-tests: Likewise.
64010         * modules/stdint-tests: Likewise.
64011         * modules/tls-tests: Likewise.
64012
64013 2007-02-24  Bruno Haible  <bruno@clisp.org>
64014
64015         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
64016         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
64017         function; instead check whether isnan with a double argument links.
64018         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
64019         function; instead check whether isnan with a 'long double' argument
64020         links.
64021         Reported by Eric Blake <ebb9@byu.net>.
64022
64023 2007-02-24  Bruno Haible  <bruno@clisp.org>
64024
64025         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
64026         defined.
64027         * lib/isnanl.c: Remove all code. Just include isnan.c.
64028         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
64029
64030 2007-02-25  Jim Meyering  <jim@meyering.net>
64031
64032         Avoid conflicting types for 'unsetenv' on FreeBSD.
64033         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
64034         conflicting with FreeBSD's (5.0 and 6.1) function declaration
64035         in stdlib.h.
64036
64037 2007-02-24  Bruno Haible  <bruno@clisp.org>
64038
64039         * modules/isnanl-nolibm-tests: New file.
64040         * tests/test-isnanl.c: New file.
64041
64042         * modules/isnanl-nolibm: New file.
64043         * lib/isnanl.h: New file.
64044         * lib/isnanl.c: New file.
64045         * m4/isnanl.m4: New file.
64046
64047 2007-02-24  Bruno Haible  <bruno@clisp.org>
64048
64049         * modules/isnan-nolibm-tests: New file.
64050         * tests/test-isnan.c: New file.
64051
64052         * modules/isnan-nolibm: New file.
64053         * lib/isnan.h: New file.
64054         * lib/isnan.c: New file.
64055         * m4/isnan.m4: New file.
64056
64057 2007-02-24  Bruno Haible  <bruno@clisp.org>
64058
64059         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
64060         assume that an exponent fits in 20 bits.
64061
64062 2007-02-24  Jim Meyering  <jim@meyering.net>
64063
64064         * m4/regex.m4: Update the description of the configure-time option,
64065         --without-included-regex, to state accurately what the defaults are,
64066         and perhaps to give people an idea why using this option is risky.
64067
64068 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
64069
64070         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
64071         loops on small arguments.  This attempts to avoid the problem
64072         Bruno Haible reported for AIX 4.3.2 in
64073         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
64074
64075 2007-02-23  Bruno Haible  <bruno@clisp.org>
64076
64077         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
64078         Needed for help2man.
64079
64080 2007-02-23  Karl Berry  <karl@gnu.org>
64081
64082         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
64083         exists, foo.h should be cvs-ignored, not committed.
64084
64085 2007-02-23  Eric Blake  <ebb9@byu.net>
64086
64087         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
64088         * lib/stat-time.h (includes): Likewise.
64089         * lib/utimecmp.c (includes): Likewise.
64090         * lib/utimens.h (includes): Likewise.
64091         * lib/getdate.y (includes): Also include "timespec.h" for use
64092         internal to the module.
64093         * modules/utimens (Depends-on): Revert yesterday's patch.
64094         * modules/nanosleep (Depends-on): Add missing dependency.
64095
64096 2007-02-22  Bruno Haible  <bruno@clisp.org>
64097
64098         * lib/glob.c: Don't include getlogin_r.h.
64099
64100 2007-02-22  Jim Meyering  <jim@meyering.net>
64101
64102         * modules/utimens (Depends-on): Add timespec, required for
64103         utimens.h's inclusion of timespec.h.
64104
64105 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
64106
64107         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
64108         long unreadable paths in GNU/Linux.  Problem reported by Andreas
64109         Schwab in
64110         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
64111         I'll try to think of a better way to fix the Solaris problem.
64112
64113         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
64114         like glibc; on Solaris 10, it fails with errno == EINVAL.
64115         POSIX says the behavior is unspecified if the first argument is NULL,
64116         so play it safe and never pass NULL to the system getcwd.
64117
64118 2007-02-21  Jim Meyering  <jim@meyering.net>
64119
64120         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
64121         of gettimeofday.  It would conflict with the one now always
64122         provided via sys_time_.h.  Reported by Matthew Woehlke, as
64123         an IRIX 6.5 build failure.
64124
64125 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
64126
64127         Minor fixups to port to Solaris 10 with Sun C 5.8.
64128         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
64129         * modules/getcwd (Depends-on): Add dirfd.
64130         * lib/putenv.c (putenv): #undef it.
64131         (rpl_putenv): New decl.
64132         (malloc, free): Include <stdlib.h> rather than prototyping separately.
64133
64134 2007-02-20  Bruno Haible  <bruno@clisp.org>
64135
64136         * modules/stdio-tests: New file.
64137         * tests/test-stdio.c: New file.
64138
64139         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
64140         (Depends-on): Add stdio.
64141         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64142         (Include): Use <stdio.h> instead of vsnprintf.h.
64143         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64144         HAVE_DECL_VSNPRINTF.
64145         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
64146
64147         * modules/snprintf (Files): Remove lib/snprintf.h.
64148         (Depends-on): Add stdio.
64149         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64150         (Include): Use <stdio.h> instead of snprintf.h.
64151         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64152         HAVE_DECL_SNPRINTF.
64153         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
64154         * lib/getaddrinfo.c: Likewise.
64155
64156         * modules/stdio: New file.
64157         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
64158         * lib/snprintf.h: Remove file.
64159         * lib/vsnprintf.h: Remove file.
64160         * lib/.cppi-disable: Remove snprintf.h.
64161         * m4/stdio_h.m4: New file.
64162         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
64163
64164 2007-02-20  Jim Meyering  <jim@meyering.net>
64165
64166         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
64167         used by e.g., mingw.  From Bruno Haible.
64168
64169 2007-02-19  Bruno Haible  <bruno@clisp.org>
64170
64171         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
64172         warnings.
64173         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64174
64175 2007-02-19  Bruno Haible  <bruno@clisp.org>
64176
64177         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
64178         from mingw users.
64179
64180 2007-02-19  Bruno Haible  <bruno@clisp.org>
64181
64182         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
64183         warnings.
64184         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
64185
64186 2007-02-19  Jim Meyering  <jim@meyering.net>
64187
64188         Don't use FD after a successful "fdopendir (fd)".
64189         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
64190         Reset it by calling dirfd on the just-obtained DIR*.
64191
64192         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
64193         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
64194
64195 2007-02-18  Bruno Haible  <bruno@clisp.org>
64196
64197         * lib/readlink.c: Include <unistd.h>.
64198         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
64199         HAVE_READLINK.
64200         * modules/readlink (Depends-on): Add unistd.
64201         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64202         (Include): Add <unistd.h>.
64203
64204         * lib/getlogin_r.h: Remove file.
64205         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
64206         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
64207         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
64208         HAVE_DECL_GETLOGIN_R.
64209         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
64210         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64211         (Include): Use <unistd.h> instead of getlogin_r.h.
64212
64213         * lib/getcwd.h: Remove file.
64214         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
64215         * lib/xgetcwd.c: Likewise.
64216         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
64217         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
64218         * modules/getcwd (Files): Remove lib/getcwd.h.
64219         (Depends-on): Add unistd.
64220         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64221         (Include): Use <unistd.h> instad of getcwd.h.
64222
64223         * lib/ftruncate.c: Include <unistd.h> first.
64224         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
64225         Set HAVE_FTRUNCATE.
64226         * modules/ftruncate (Depends-on): Add unistd.
64227         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64228
64229         * lib/fchdir.c: Include <unistd.h> first.
64230         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
64231         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
64232         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
64233         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64234         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
64235
64236         * lib/dup2.c: Include <unistd.h> first.
64237         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
64238         HAVE_DUP2.
64239         * modules/dup2 (Depends-on): Add unistd.
64240         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64241
64242         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
64243         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
64244         REPLACE_CHOWN. Don't define chown as a macro here.
64245         * modules/chown (Depends-on): Add unistd.
64246         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64247
64248         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
64249         Add definition for GL_LINK_WARNING.
64250         (chown, dup2): New declarations.
64251         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
64252         link warning.
64253         (ftruncate): New declaration.
64254         (getcwd): New declaration, taken from old getcwd.h.
64255         (getlogin_r): New declaration, taken from old getlogin_r.h.
64256         (readlink): New declaration.
64257         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
64258         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
64259         (gl_PREREQ_UNISTD): Remove macro.
64260         (gl_UNISTD_MODULE_INDICATOR): New macro.
64261         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
64262         many new variables. Don't set UNISTD_H.
64263         * modules/unistd (Description): Change.
64264         (Depends-on): Add link-warning.
64265         (configure.ac): Update.
64266         (Makefile.am): Create unistd.h always. Substitute many new variables
64267         into it.
64268
64269 2007-02-18  Bruno Haible  <bruno@clisp.org>
64270
64271         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
64272         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
64273         HAVE_GETSUBOPT.
64274         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
64275         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
64276         * lib/getsubopt.h: Remove file.
64277         * modules/getsubopt (Files): Remove lib/getsubopt.h.
64278         (Depends-on): Add stdlib.
64279         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64280         (Includes): Use <stdlib.h> instead of getsubopt.h.
64281         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
64282         Set HAVE_GETSUBOPT.
64283         * lib/getsubopt.c: Don't include getsubopt.h.
64284
64285 2007-02-18  Bruno Haible  <bruno@clisp.org>
64286
64287         * modules/fchdir (Depends-on): Add dup2.
64288
64289 2007-02-18  Bruno Haible  <bruno@clisp.org>
64290
64291         * lib/stdlib_.h: Handle glibc's special invocation convention
64292         specially.
64293
64294 2007-02-18  Bruno Haible  <bruno@clisp.org>
64295
64296         * modules/stdlib-tests: New file.
64297         * tests/test-stdlib.c: New file.
64298
64299         * modules/mkstemp (Files): Remove lib/mkstemp.h.
64300         (Depends-on): Add stdlib.
64301         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64302         (Includes): Use <stdlib.h> instead of mkstemp.h.
64303         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64304         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
64305         * lib/mkstemp.c: Don't include mkstemp.h.
64306         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
64307         * lib/stdlib--.h: Don't include mkstemp.h.
64308
64309         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
64310         (Depends-on): Add stdlib.
64311         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64312         (Includes): Use <stdlib.h> instead of mkdtemp.h.
64313         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64314         HAVE_MKDTEMP.
64315         * lib/mkdtemp.c: Don't include mkdtemp.h.
64316         * lib/clean-temp.c: Don't include mkdtemp.h.
64317
64318         * modules/exit (Files): Remove lib/exit.h.
64319         (Depends-on): Add stdlib.
64320         (Makefile.am): Remove lib_SOURCES.
64321         (Include): Use <stdlib.h> instead of exit.h.
64322         * lib/argmatch.c: Don't include exit.h.
64323         * lib/execute.c: Likewise.
64324         * lib/pagealign_alloc.c: Likewise.
64325         * lib/pipe.c: Likewise.
64326         * lib/wait-process.c: Likewise.
64327         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
64328         * lib/exitfail.c: Likewise.
64329         * lib/savewd.c: Likewise.
64330         * lib/xsetenv.c: Likewise.
64331
64332         * modules/stdlib: New file.
64333         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
64334         and extra comments about mkstemp().
64335         * lib/exit.h: Remove file.
64336         * lib/mkdtemp.h: Remove file.
64337         * lib/mkstemp.h: Remove file.
64338         * m4/stdlib_h.m4: New file.
64339         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
64340
64341 2007-02-18  Bruno Haible  <bruno@clisp.org>
64342
64343         * modules/math-tests: New file.
64344         * tests/test-math.c: New file.
64345
64346         * modules/math: New file.
64347         * modules/mathl (Files): Remove lib/mathl.h.
64348         (Depends-on): Add math.
64349         (Makefile.am): Don't mention mathl.h.
64350         (Include): Use <math.h> instead of mathl.h.
64351         * lib/math_.h: New file.
64352         * lib/mathl.h: Remove file.
64353         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
64354         mathl.h.
64355         * lib/asinl.c: Likewise.
64356         * lib/atanl.c: Likewise.
64357         * lib/ceill.c: Likewise.
64358         * lib/cosl.c: Likewise.
64359         * lib/expl.c: Likewise.
64360         * lib/floorl.c: Likewise.
64361         * lib/frexpl.c: Likewise.
64362         * lib/ldexpl.c: Likewise.
64363         * lib/logl.c: Likewise.
64364         * lib/sincosl.c: Likewise.
64365         * lib/sinl.c: Likewise.
64366         * lib/sqrtl.c: Likewise.
64367         * lib/tanl.c: Likewise.
64368         * lib/trigl.c: Likewise.
64369         * m4/math_h.m4: New file.
64370         * MODULES.html.sh (Mathematics): Add math.
64371
64372 2007-02-17  Bruno Haible  <bruno@clisp.org>
64373
64374         * modules/wctype-tests: New file.
64375         * tests/test-wctype.c: New file.
64376
64377         * modules/wchar-tests: New file.
64378         * tests/test-wchar.c: New file.
64379
64380         * modules/unistd-tests: New file.
64381         * tests/test-unistd.c: New file.
64382
64383         * modules/time-tests: New file.
64384         * tests/test-time.c: New file.
64385
64386         * modules/sysexits-tests: New file.
64387         * tests/test-sysexits.c: New file.
64388
64389         * modules/sys_time-tests: New file.
64390         * tests/test-sys_time.c: New file.
64391
64392         * modules/sys_stat-tests: New file.
64393         * tests/test-sys_stat.c: New file.
64394
64395         * modules/sys_socket-tests: New file.
64396         * tests/test-sys_socket.c: New file.
64397
64398         * modules/sys_select-tests: New file.
64399         * tests/test-sys_select.c: New file.
64400
64401         * modules/string-tests: New file.
64402         * tests/test-string.c: New file.
64403
64404         * modules/stdbool-tests: New file.
64405         * tests/test-stdbool.c: New file.
64406
64407         * modules/netinet_in-tests: New file.
64408         * tests/test-netinet_in.c: New file.
64409
64410         * modules/inttypes-tests: New file.
64411         * tests/test-inttypes.c: New file.
64412
64413         * modules/fcntl-tests: New file.
64414         * tests/test-fcntl.c: New file.
64415
64416         * modules/byteswap-tests: New file.
64417         * tests/test-byteswap.c: New file.
64418
64419         * modules/arpa_inet-tests: New file.
64420         * tests/test-arpa_inet.c: New file.
64421
64422 2007-02-17  Bruno Haible  <bruno@clisp.org>
64423
64424         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
64425         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
64426         if the corresponding module is not enabled. Emit link warnings if
64427         the function is used nevertheless.
64428         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
64429         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
64430         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
64431         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
64432         * modules/inttypes (Depends-on): Add link-warning.
64433         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64434         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
64435         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
64436         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
64437         * modules/imaxdiv (configure.ac): Likewise.
64438         * modules/strtoimax (configure.ac): Likewise.
64439         * modules/strtoumax (configure.ac): Likewise.
64440
64441 2007-02-17  Bruno Haible  <bruno@clisp.org>
64442
64443         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
64444         gl_STRING_MODULE_INDICATOR_DEFAULTS.
64445         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
64446         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
64447
64448 2007-02-17  Bruno Haible  <bruno@clisp.org>
64449
64450         * modules/link-warning: New file.
64451         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
64452         * lib/string_.h (GL_LINK_WARNING): Remove definition.
64453         * modules/string (Depends-on): Add link-warning.
64454         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64455         string.h.
64456         * MODULES.html.sh (Support for building libraries and executables): Add
64457         link-warning.
64458
64459 2007-02-17  Bruno Haible  <bruno@clisp.org>
64460
64461         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
64462         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
64463         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
64464         long lines.
64465
64466 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
64467             Bruno Haible  <bruno@clisp.org>
64468
64469         * modules/tmpfile: New file.
64470         * lib/tmpfile.c: New file.
64471         * m4/tmpfile.m4: New file.
64472         * MODULES.html.sh (func_all_modules): New section "Input/output".
64473
64474 2007-02-15  Bruno Haible  <bruno@clisp.org>
64475
64476         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
64477         (supports_delete_on_close): New function.
64478         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
64479
64480 2007-02-14  Bruno Haible  <bruno@clisp.org>
64481
64482         * modules/mbspcasecmp-tests: New file.
64483         * tests/test-mbspcasecmp.sh: New file.
64484         * tests/test-mbspcasecmp.c: New file.
64485
64486         New module mbspcasecmp.
64487         * modules/mbspcasecmp: New file.
64488         * lib/mbspcasecmp.c: New file.
64489         * lib/string_.h (strncasecmp): Change warning message.
64490         (mbspcasecmp): New declaration.
64491         * m4/mbspcasecmp.m4: New file.
64492         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64493         GNULIB_MBSPCASECMP.
64494         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
64495         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
64496
64497 2007-02-14  Bruno Haible  <bruno@clisp.org>
64498
64499         * modules/mbsncasecmp-tests: New file.
64500         * tests/test-mbsncasecmp.sh: New file.
64501         * tests/test-mbsncasecmp.c: New file.
64502
64503         New module mbsncasecmp.
64504         * modules/mbsncasecmp: New file.
64505         * lib/mbsncasecmp.c: New file.
64506         * lib/string_.h (mbsncasecmp): New declaration.
64507         * m4/mbsncasecmp.m4: New file.
64508         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64509         GNULIB_MBSNCASECMP.
64510         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
64511         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
64512
64513 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64514
64515         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
64516         Verify that it doesn't overlap with our flags.
64517         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
64518         do not have the desired effect in multibyte locales; instead, use
64519         mbscasecmp.
64520         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
64521         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
64522         we don't require GNU fnmatch ourselves (if our users require it, they
64523         should do so explicitly).
64524
64525         Fix regex code so it doesn't rely on strcasecmp.
64526         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
64527         Otherwise, include gnulib's langinfo.h.
64528         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
64529         undesirable behavior in non-C locales.  Instead, rely on localecharset.
64530         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
64531         * modules/regex (FILES): Remove m4/codeset.m4.
64532         (Depends-on): Add localcharset.  Remove strcase.
64533
64534 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64535
64536         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
64537         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
64538
64539 2007-02-13  Bruno Haible  <bruno@clisp.org>
64540
64541         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
64542         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64543
64544 2007-02-12  Bruno Haible  <bruno@clisp.org>
64545
64546         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64547         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
64548         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
64549         time warning rather than a link error.
64550
64551 2007-02-12  Bruno Haible  <bruno@clisp.org>
64552
64553         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
64554         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64555         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64556
64557 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64558
64559         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
64560         args, not 2.
64561
64562 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64563
64564         New module 'time', so that apps can include <time.h> as per
64565         POSIX and GNU instead of separate include files like time_r.h
64566         and timegm.h.  This implementation tries out a simpler approach
64567         for replacing decls in standard include files (as compared to
64568         the string module), somewhat as an experiment.
64569
64570         * config/srclist.txt: Comment out mktime.c for now.
64571         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
64572         since it doesn't apply any more.  Use generic wording instead.
64573         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
64574         'time'.
64575         * lib/time_.h, m4/time_h.m4, modules/time: New files.
64576         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
64577         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
64578         Don't include <sys/types.h>; no longer needed since we assume C89.
64579         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
64580         * lib/strftime.c: Likewise.
64581         * lib/time_r.c: Likewise.
64582         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
64583         * lib/nanosleep.c: Include <time.h> first, to check interface.
64584         * lib/strptime.c: Likewise.
64585         * lib/time_r.c: Likewise.
64586         * lib/timegm.c: Likewise.
64587         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
64588         needed.
64589         * lib/timegm.c: Don't include timegm.h; no longer needed.
64590         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
64591         time.h now handles any problems in that area.
64592         (struct timespec, nanosleep): Remove; time.h now arranges for these.
64593         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
64594         that time.h defines struct timespec.
64595         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
64596         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
64597         handles that.
64598         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
64599         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
64600         needed.  Set REPLACE_LOCALTIME.
64601         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
64602         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
64603         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
64604         nanosleep; time_h.m4 now does that.  Don't require
64605         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
64606         module handles this now.
64607         * modules/getdate (Depends-on): Remove timespec.  Add time.
64608         * modules/nanosleep (Depends-on): Likewise.
64609         * modules/stat-time (Depends-on): Likewise.
64610         * modules/nanosleep (Include): Include time.h, not timespec.h.
64611         * modules/strptime (Files): Remove lib/strptime.h.
64612         (Depends-on): Add extensions, time.
64613         (Include): Include time.h, not strptime.h.
64614         * modules/time_r (Files): Remove lib/time_r.h.
64615         (Depends-on): Add time.
64616         (Include): Include time.h, not time_r.h.
64617         * modules/timegm: Likewise.
64618         * modules/timespec (Description): Now does timespec-related decls
64619         of our own, instead of struct timespec itself.
64620         (Depends-on): Add time; remove extensions.
64621         (Maintainer): Add self.
64622         * modules/utimecmp (Depends-on): Add time; remove timespec.
64623         * modules/utimens (Depends-on): Likewise.
64624         * modules/xnanosleep (Depends-on): Likewise.
64625
64626 2007-02-11  Bruno Haible  <bruno@clisp.org>
64627
64628         * lib/c-strstr.c: Include allocsa.h.
64629         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64630         * lib/c-strcasestr.c: Include allocsa.h.
64631         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64632         * lib/strcasestr.c: Include allocsa.h.
64633         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64634         * lib/mbsstr.c: Include allocsa.h.
64635         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64636         allocsa/freesa instead of malloc/free.
64637         * lib/mbscasestr.c: Include allocsa.h.
64638         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64639         allocsa/freesa instead of malloc/free.
64640         * modules/c-strstr (Depends-on): Add allocsa.
64641         * modules/c-strcasestr (Depends-on): Likewise.
64642         * modules/strcasestr (Depends-on): Likewise.
64643         * modules/mbsstr (Depends-on): Likewise.
64644         * modules/mbscasestr (Depends-on): Likewise.
64645
64646 2007-02-11  Bruno Haible  <bruno@clisp.org>
64647
64648         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
64649
64650         * modules/mbsspn-tests: New file.
64651         * tests/test-mbsspn.sh: New file.
64652         * tests/test-mbsspn.c: New file.
64653
64654 2007-02-11  Bruno Haible  <bruno@clisp.org>
64655
64656         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
64657
64658         * modules/mbspbrk-tests: New file.
64659         * tests/test-mbspbrk.sh: New file.
64660         * tests/test-mbspbrk.c: New file.
64661
64662 2007-02-11  Bruno Haible  <bruno@clisp.org>
64663
64664         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
64665         unneeded cast.
64666
64667         * modules/mbscspn-tests: New file.
64668         * tests/test-mbscspn.sh: New file.
64669         * tests/test-mbscspn.c: New file.
64670
64671 2007-02-11  Bruno Haible  <bruno@clisp.org>
64672
64673         * modules/mbscasecmp-tests: New file.
64674         * tests/test-mbscasecmp.sh: New file.
64675         * tests/test-mbscasecmp.c: New file.
64676
64677 2007-02-11  Bruno Haible  <bruno@clisp.org>
64678
64679         Ensure O(n) worst-case complexity of mbscasestr.
64680         * lib/mbscasestr.c: Include stdbool.h.
64681         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64682         functions.
64683         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
64684         the bookkeeping indicates that it's worth it.
64685         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
64686
64687         * modules/mbscasestr-tests: New file.
64688         * tests/test-mbscasestr1.c: New file.
64689         * tests/test-mbscasestr2.sh: New file.
64690         * tests/test-mbscasestr2.c: New file.
64691         * tests/test-mbscasestr3.sh: New file.
64692         * tests/test-mbscasestr3.c: New file.
64693         * tests/test-mbscasestr4.sh: New file.
64694         * tests/test-mbscasestr4.c: New file.
64695         * m4/locale-tr.m4: New file.
64696
64697 2007-02-11  Bruno Haible  <bruno@clisp.org>
64698
64699         Ensure O(n) worst-case complexity of mbsstr.
64700         * lib/mbsstr.c: Include stdbool.h.
64701         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64702         functions.
64703         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
64704         bookkeeping indicates that it's worth it.
64705         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
64706
64707         * modules/mbsstr-tests: New file.
64708         * tests/test-mbsstr1.c: New file.
64709         * tests/test-mbsstr2.sh: New file.
64710         * tests/test-mbsstr2.c: New file.
64711         * tests/test-mbsstr3.sh: New file.
64712         * tests/test-mbsstr3.c: New file.
64713         * m4/locale-fr.m4: New file.
64714
64715 2007-02-11  Bruno Haible  <bruno@clisp.org>
64716
64717         * lib/mbsrchr.c (mbsrchr): Fix bug.
64718
64719         * modules/mbsrchr-tests: New file.
64720         * tests/test-mbsrchr.sh: New file.
64721         * tests/test-mbsrchr.c: New file.
64722
64723 2007-02-11  Bruno Haible  <bruno@clisp.org>
64724
64725         * lib/mbschr.c (mbschr): Fix bug.
64726
64727         * modules/mbschr-tests: New file.
64728         * tests/test-mbschr.sh: New file.
64729         * tests/test-mbschr.c: New file.
64730         * m4/locale-zh.m4: New file.
64731
64732 2007-02-11  Bruno Haible  <bruno@clisp.org>
64733
64734         Support for copying multibyte string iterators.
64735         * lib/mbiter.h: Include <string.h>.
64736         (mbiter_multi_copy): New function.
64737         (mbi_copy): New macro.
64738         * lib/mbuiter.h: Include <string.h>.
64739         (mbuiter_multi_copy): New function.
64740         (mbui_copy): New macro.
64741
64742 2007-02-11  Bruno Haible  <bruno@clisp.org>
64743
64744         New module mbslen.
64745         * modules/mbslen: New file.
64746         * lib/mbslen.c: New file.
64747         * lib/string_.h (mbslen): New declaration.
64748         * m4/mbslen.m4: New file.
64749         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64750         GNULIB_MBSLEN.
64751         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
64752         * MODULES.html.sh (Internationalization functions): Add mbslen.
64753
64754 2007-02-11  Bruno Haible  <bruno@clisp.org>
64755
64756         Ensure O(n) worst-case complexity of strcasestr substitute.
64757         * lib/strcasestr.c: Include stdbool.h.
64758         (knuth_morris_pratt): New function.
64759         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64760         bookkeeping indicates that it's worth it.
64761         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
64762
64763         * modules/strcasestr-tests: New file.
64764         * tests/test-strcasestr.c: New file.
64765
64766 2007-02-11  Bruno Haible  <bruno@clisp.org>
64767
64768         Ensure O(n) worst-case complexity of c_strcasestr.
64769         * lib/c-strcasestr.c: Include stdbool.h, string.h.
64770         (knuth_morris_pratt): New function.
64771         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
64772         the bookkeeping indicates that it's worth it.
64773         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
64774
64775         * modules/c-strcasestr-tests: New file.
64776         * tests/test-c-strcasestr.c: New file.
64777
64778 2007-02-11  Bruno Haible  <bruno@clisp.org>
64779
64780         Ensure O(n) worst-case complexity of c_strstr.
64781         * lib/c-strstr.c: Include stdbool.h, string.h.
64782         (knuth_morris_pratt): New function.
64783         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64784         bookkeeping indicates that it's worth it.
64785         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
64786
64787         * lib/c-strstr.c: Complete rewrite for maintainability.
64788
64789         * modules/c-strstr-tests: New file.
64790         * tests/test-c-strstr.c: New file.
64791
64792 2007-02-11  Bruno Haible  <bruno@clisp.org>
64793
64794         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
64795         5.2.1 and earlier, whereby \055 was treated just like the range
64796         delimiter '-'.
64797         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64798
64799 2007-02-08  Bruno Haible  <bruno@clisp.org>
64800
64801         * modules/regex (Depends-on): Add stdbool.
64802         Reported by Dalibor Topic <robilad@kaffe.org>.
64803
64804 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64805
64806         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
64807         Prefer returning from main to exiting from it.
64808         Remove unnecessary parens after sizeof.
64809
64810 2007-02-05  Bruno Haible  <bruno@clisp.org>
64811
64812         New module mbssep.
64813         * modules/mbssep: New file.
64814         * lib/mbssep.c: New file.
64815         * lib/string_.h (strsep): Add a conditional link warning.
64816         (mbssep): New declaration.
64817         * m4/mbssep.m4: New file.
64818         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64819         GNULIB_MBSSEP.
64820         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
64821         * MODULES.html.sh (Internationalization functions): Add mbssep.
64822
64823 2007-02-05  Bruno Haible  <bruno@clisp.org>
64824
64825         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
64826         Optimize search in case of 1 delimiter.
64827
64828 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64829
64830         * lib/acl.h: Include sys/types.h before sys/acl.h.
64831
64832 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64833
64834         Merge upstream fix for glibc bugzilla #3957:
64835
64836         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
64837
64838         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
64839         bit for RE_HAT_LISTS_NOT_NEWLINE.
64840         (build_charclass_op): Remove bogus comment.
64841
64842 2007-02-05  Simon Josefsson  <simon@josefsson.org>
64843
64844         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
64845
64846 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64847
64848         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
64849         * lib/memmem.c [!defined _LIBC]: Include config.h.
64850
64851 2007-02-04  Bruno Haible  <bruno@clisp.org>
64852
64853         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
64854         warning message.
64855
64856 2007-02-04  Bruno Haible  <bruno@clisp.org>
64857
64858         New module mbstok_r.
64859         * modules/mbstok_r: New file.
64860         * lib/mbstok_r.c: New file.
64861         * lib/string_.h (strtok_r): Change argument names to match the
64862         comments. Add a conditional link warning.
64863         (mbstok_r): New declaration.
64864         * m4/mbstok_r.m4: New file.
64865         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64866         GNULIB_MBSTOK_R.
64867         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
64868         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
64869
64870 2007-02-04  Bruno Haible  <bruno@clisp.org>
64871
64872         New module mbsspn.
64873         * modules/mbsspn: New file.
64874         * lib/mbsspn.c: New file.
64875         * lib/string_.h (strspn): Add a conditional link warning.
64876         (mbsspn): New declaration.
64877         * m4/mbsspn.m4: New file.
64878         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64879         GNULIB_MBSSPN.
64880         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
64881         * MODULES.html.sh (Internationalization functions): Add mbsspn.
64882
64883 2007-02-04  Bruno Haible  <bruno@clisp.org>
64884
64885         New module mbspbrk.
64886         * modules/mbspbrk: New file.
64887         * lib/mbspbrk.c: New file.
64888         * lib/string_.h (strpbrk): Add a conditional link warning.
64889         (mbspbrk): New declaration.
64890         * m4/mbspbrk.m4: New file.
64891         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64892         GNULIB_MBSPBRK.
64893         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
64894         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
64895
64896 2007-02-04  Bruno Haible  <bruno@clisp.org>
64897
64898         New module mbscspn.
64899         * modules/mbscspn: New file.
64900         * lib/mbscspn.c: New file.
64901         * lib/string_.h (strcspn): Add a conditional link warning.
64902         (mbscspn): New declaration.
64903         * m4/mbscspn.m4: New file.
64904         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64905         GNULIB_MBSCSPN.
64906         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
64907         * MODULES.html.sh (Internationalization functions): Add mbscspn.
64908
64909 2007-02-04  Bruno Haible  <bruno@clisp.org>
64910
64911         New module mbscasestr, reduced goal of strcasestr.
64912         * modules/mbscasestr: New file.
64913         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
64914         (mbscasestr): Renamed from strcasestr.
64915         * lib/strcasestr.c: Don't include mbuiter.h.
64916         (strcasestr): Remove support for multibyte locales.
64917         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
64918         Change the conditional link warning.
64919         (mbscasestr): New declaration.
64920         * m4/mbscasestr.m4: New file.
64921         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
64922         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
64923         REPLACE_STRCASESTR.
64924         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
64925         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64926         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64927         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
64928         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
64929         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64930         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
64931         (Depends-on): Remove mbuiter.
64932         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
64933
64934 2007-02-04  Bruno Haible  <bruno@clisp.org>
64935
64936         Simplify handling of strncasecmp.
64937         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
64938         the conditional link warning.
64939         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64940         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
64941         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
64942         * modules/strcase (configure.ac): Don't invoke
64943         gl_STRING_MODULE_INDICATOR.
64944         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
64945
64946 2007-02-04  Bruno Haible  <bruno@clisp.org>
64947
64948         New module mbscasecmp, reduced goal of strcasecmp.
64949         * modules/mbscasecmp: New file.
64950         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
64951         (mbscasecmp): Renamed from strcasecmp.
64952         * lib/strcasecmp.c: Don't include mbuiter.h.
64953         (strcasecmp): Remove support for multibyte locales.
64954         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
64955         Change the conditional link warning.
64956         (mbscasecmp): New declaration.
64957         * m4/mbscasecmp.m4: New file.
64958         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
64959         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
64960         REPLACE_STRCASECMP.
64961         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
64962         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64963         GNULIB_MBSCASECMP.
64964         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
64965         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
64966         * modules/strcase (Files): Remove m4/mbrtowc.m4.
64967         (Depends-on): Remove mbuiter.
64968         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
64969
64970 2007-02-04  Bruno Haible  <bruno@clisp.org>
64971
64972         New module mbsstr. Remove module strstr.
64973         * modules/mbsstr: New file.
64974         * modules/strstr: Remove file.
64975         * lib/mbsstr.c: Renamed from lib/strstr.c.
64976         (mbsstr): Renamed from strstr.
64977         * lib/string_.h (strstr): Remove declaration. Change the conditional
64978         link warning.
64979         (mbsstr): New declaration.
64980         * m4/mbsstr.m4: New file.
64981         * m4/strstr.m4: Remove file.
64982         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
64983         REPLACE_STRSTR.
64984         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
64985         Don't initialize GNULIB_STRSTR.
64986         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
64987         substitute GNULIB_STRSTR and REPLACE_STRSTR.
64988         * MODULES.html.sh (Internationalization functions): Add mbsstr.
64989         (Support for systems lacking ANSI C 89): Remove strstr.
64990
64991 2007-02-04  Bruno Haible  <bruno@clisp.org>
64992
64993         New module mbsrchr.
64994         * modules/mbsrchr: New file.
64995         * lib/mbsrchr.c: New file.
64996         * lib/string_.h (strrchr): Add a conditional link warning.
64997         (mbsrchr): New declaration.
64998         * m4/mbsrchr.m4: New file.
64999         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65000         GNULIB_MBSRCHR.
65001         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
65002         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
65003
65004 2007-02-04  Bruno Haible  <bruno@clisp.org>
65005
65006         New module mbschr.
65007         * modules/mbschr: New file.
65008         * lib/mbschr.c: New file.
65009         * lib/string_.h (strchr): Add a conditional link warning.
65010         (mbschr): New declaration.
65011         * m4/mbschr.m4: New file.
65012         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65013         GNULIB_MBSCHR.
65014         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
65015         * MODULES.html.sh (Internationalization functions): Add mbschr.
65016
65017 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
65018
65019         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
65020
65021         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
65022
65023 2007-02-04  Bruno Haible  <bruno@clisp.org>
65024
65025         New module description section 'configure.ac-early'.
65026         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
65027         (func_get_autoconf_early_snippet): New function.
65028         (func_import, func_create_testdir): Use it. Remove special cases for
65029         modules 'extensions' and 'lock'.
65030         * modules/extensions (configure.ac-early): Require
65031         gl_USE_SYSTEM_EXTENSIONS.
65032         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
65033
65034 2007-02-04  Bruno Haible  <bruno@clisp.org>
65035
65036         Make use of gcj-4.3's -fsource and -ftarget option.
65037         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
65038         and if so try the options -fsource and -ftarget.
65039         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
65040         source_version, ftarget_option, target_version arguments.
65041         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
65042         (is_envjavac_oldgcj_14_14_usable): Renamed from
65043         is_envjavac_gcj_14_14_usable.
65044         (is_envjavac_oldgcj_14_13_usable): Renamed from
65045         is_envjavac_gcj_14_13_usable.
65046         (is_gcj_present): Update.
65047         (is_gcj_43, is_gcj43_usable): New functions.
65048         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
65049         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
65050         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
65051         try the options -fsource and -ftarget.
65052
65053 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65054
65055         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
65056         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
65057         larger value.
65058
65059 2007-02-03  Jim Meyering  <jim@meyering.net>
65060
65061         Give tools a better chance to allocate space for very large buffers.
65062         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
65063
65064         Make pwd and readlink work also when run with an unreadable parent dir
65065         on systems with openat support.
65066         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
65067         provided getcwd function, even when we have openat support.
65068         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
65069
65070 2007-02-02  Bruno Haible  <bruno@clisp.org>
65071
65072         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
65073         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
65074         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
65075         portability problems if one of these functions is only used on specific
65076         platforms.
65077         Reported by Paul Eggert.
65078
65079 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
65080
65081         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
65082         is causing more trouble than it's curing.
65083         * lib/regex_internal.h (__mempcpy): Remove.
65084         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
65085         (and make the code a tad smaller to boot).
65086         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
65087
65088 2007-02-02  Jim Meyering  <jim@meyering.net>
65089
65090         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
65091         section, not in the Makefile.am: one.
65092
65093 2007-02-02  Eric Blake  <ebb9@byu.net>
65094
65095         * lib/strchrnul.c: Always include config.h first.
65096
65097         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
65098         gnulib strstr is not necessary here.
65099
65100 2007-02-02  Simon Josefsson  <simon@josefsson.org>
65101
65102         * m4/socklen.m4: Fix typo.
65103
65104 2007-02-02  Eric Blake  <ebb9@byu.net>
65105
65106         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
65107         * modules/netinet_in (Makefile.am): Likewise.
65108
65109 2007-02-01  Bruno Haible  <bruno@clisp.org>
65110
65111         * lib/string_.h (GL_LINK_WARNING): New macro.
65112         (strcasecmp, strstr, strcasestr): If provided by the system,
65113         conditionally define as a macro that leads to a warning instead of to
65114         an error.
65115         (strncasecmp): Conditionally define as a macro that leads to a warning.
65116
65117 2007-02-01  Karl Berry  <karl@gnu.org>
65118
65119         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
65120
65121 2007-02-01  Bruno Haible  <bruno@clisp.org>
65122
65123         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
65124         renamings.
65125
65126 2007-02-01  Eric Blake  <ebb9@byu.net>
65127
65128         * modules/regex (Depends-on): Revert dependence on mempcpy.
65129         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
65130         module's definition of mempcpy.
65131         Reported by Paul Eggert.
65132
65133 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
65134
65135         * lib/string_.h: If the gnulib module XYZ is not present, undefine
65136         the symbol XYZ before redefining it.  This fixes a problem with
65137         programs that don't use XYZ, when compiled on systems that define
65138         XYZ to something else.
65139
65140 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
65141
65142         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
65143         occurs when "mkdir -m foo" creates a setgid directory that is (1)
65144         writeable to group or other and (2) is intended to have a special
65145         mode bit that is set or cleared.  In such a case, the directory
65146         should be neither group- nor other-writeable until the special
65147         mode bits are right.
65148
65149 2007-01-31  Eric Blake  <ebb9@byu.net>
65150
65151         * modules/mountlist (Depends-on): Add strstr.
65152
65153         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
65154         bug.
65155         * modules/string (Makefile.am): Remove redundant replacement.
65156         * modules/regex (Depends-on): Add mempcpy.
65157
65158 2007-01-31  Bruno Haible  <bruno@clisp.org>
65159
65160         New module description field 'Link'.
65161         * gnulib-tool (func_usage): Document --extract-link-directive.
65162         (sed_extract_prog): Recognize 'Link' directive.
65163         (func_get_link_directive): New function.
65164         (func_import): Show summary of link directives.
65165         Handle --extract-link-directive option.
65166         * modules/acl (Link): New section.
65167         * modules/clock-time (Link): New section.
65168         * modules/euidaccess (Link): New section.
65169         * modules/gettext (Link): New section.
65170         * modules/iconv (Link): New section.
65171         * modules/lock (Link): New section.
65172         * modules/nanosleep (Link): New section.
65173         * modules/readline (Link): New section.
65174
65175 2007-01-27  Bruno Haible  <bruno@clisp.org>
65176
65177         Enforce the use of gnulib modules for unportable <string.h> functions.
65178         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
65179         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
65180         (gl_HEADER_STRING_H_BODY): Require it.
65181         * lib/string_.h: If the gnulib module XYZ is not present, redefine
65182         the symbol XYZ to one that gives a link error.
65183         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
65184         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
65185         * modules/mempcpy (configure.ac): Likewise.
65186         * modules/memrchr (configure.ac): Likewise.
65187         * modules/stpcpy (configure.ac): Likewise.
65188         * modules/stpncpy (configure.ac): Likewise.
65189         * modules/strcase (configure.ac): Likewise.
65190         * modules/strcasestr (configure.ac): Likewise.
65191         * modules/strchrnul (configure.ac): Likewise.
65192         * modules/strdup (configure.ac): Likewise.
65193         * modules/strndup (configure.ac): Likewise.
65194         * modules/strnlen (configure.ac): Likewise.
65195         * modules/strpbrk (configure.ac): Likewise.
65196         * modules/strsep (configure.ac): Likewise.
65197         * modules/strstr (configure.ac): Likewise.
65198         * modules/strtok_r (configure.ac): Likewise.
65199
65200 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
65201
65202         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
65203
65204 2007-01-30  Jim Meyering  <jim@meyering.net>
65205
65206         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
65207
65208 2007-01-29  Bruno Haible  <bruno@clisp.org>
65209
65210         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
65211         * lib/execute.c: Likewise.
65212         * lib/pipe.c: Likewise.
65213         * lib/printf-args.h: Likewise.
65214         * lib/printf-args.c: Likewise.
65215         * lib/printf-parse.c: Likewise.
65216         * lib/vasnprintf.c: Likewise.
65217
65218 2007-01-29  Eric Blake  <ebb9@byu.net>
65219
65220         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
65221         declaration.
65222
65223 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
65224
65225         * lib/strptime.h (strptime): Use 'restrict' for args where
65226         POSIX requires this.
65227         * lib/strptime.c (strptime): Likewise.
65228         Change license notice from LGPL to GPL, since gnulib-tool will
65229         change this as needed.
65230         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
65231         defined.
65232         Include "strptime.h" first, to check interface.
65233         Do not #undef _LIBC and _NL_CURRENT.
65234         Do not include <stdlib.h>; no longer needed.
65235         Include "time_r.h" and declare ptime_locale_status
65236         only if _LIBC is not defined.
65237         (__P): Remove unused macro.
65238         (match_string): Bring back glibc version, but use it only if _LIBC
65239         is defined.
65240         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
65241         Remove unnecessary assertion and abort() call.
65242         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
65243         * m4/strptime.m4: Fix serial number comment.
65244         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
65245         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
65246         (Depends-on): Add time_r.
65247
65248 2007-01-29  Bruno Haible  <bruno@clisp.org>
65249
65250         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65251         strptime.
65252         * modules/strptime (Depends-on): Add stdbool.
65253         * lib/strptime.h: Include <time.h> always. Add comments.
65254
65255 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65256
65257         * modules/strptime: New file.
65258         * lib/strptime.h: New file.
65259         * lib/strptime.c: New file.
65260         * m4/strptime.m4: New file.
65261
65262 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65263
65264         * MODULES.html.sh: New module mpsort.
65265         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
65266
65267         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
65268         a circularity problem with HP-UX ia64 reported by Bob Proulx in
65269         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
65270         All uses changed.
65271         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
65272         All uses changed.
65273         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
65274         to _Restrict_.
65275         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
65276         the parameter matches the prototype.
65277
65278 2007-01-28  Jim Meyering  <jim@meyering.net>
65279
65280         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
65281         sys/time.h here, reverting that part of the previous patch:
65282         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
65283
65284 2007-01-28  Bruno Haible  <bruno@clisp.org>
65285
65286         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
65287         value of $(SYS_TIME_H).
65288         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
65289         remove it conditionally, too. [added by Jim Meyering]
65290         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
65291         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65292         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
65293         GETTIMEOFDAY_REPLACEMENT to 1.
65294
65295 2007-01-28  Bruno Haible  <bruno@clisp.org>
65296
65297         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
65298         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
65299         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
65300         Set UNISTD_H instead of UNISTD_H2.
65301         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
65302
65303 2007-01-28  Bruno Haible  <bruno@clisp.org>
65304
65305         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
65306         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
65307
65308 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65309
65310         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
65311         (func_create_testdir): Ensure C locale for `grep' and `tr'
65312         character ranges.
65313         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
65314         ACLOCAL_AMFLAGS parsing state machine.
65315
65316 2007-01-27  Bruno Haible  <bruno@clisp.org>
65317
65318         * modules/unistr/base: Update.
65319
65320 2007-01-27  Bruno Haible  <bruno@clisp.org>
65321
65322         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
65323         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
65324         * modules/unistr/u32-mbtouc-unsafe: Renamed from
65325         modules/unistr/u32-mbtouc.
65326         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
65327         * lib/unistr.h: Update.
65328         * lib/linebreak.c: Update.
65329         * modules/unistr/u32-mbtouc: Renamed from
65330         modules/unistr/u32-mbtouc-safe.
65331         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
65332         * lib/unistr.h: Update.
65333         * lib/unistr/u32-to-u8.c: Update.
65334         * lib/unistr/u32-to-u16.c: Update.
65335
65336 2007-01-27  Bruno Haible  <bruno@clisp.org>
65337
65338         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
65339         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
65340         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
65341         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
65342         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
65343         * modules/unistr/u16-mbtouc-unsafe: Renamed from
65344         modules/unistr/u16-mbtouc.
65345         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
65346         * lib/unistr.h: Update.
65347         * lib/linebreak.c: Update.
65348         * modules/linebreak: Update.
65349         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
65350         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
65351         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
65352         * modules/unistr/u16-mbtouc: Renamed from
65353         modules/unistr/u16-mbtouc-safe.
65354         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
65355         * lib/unistr.h: Update.
65356         * lib/unistr/u16-to-u8.c: Update.
65357         * modules/unistr/u16-to-u8: Update.
65358         * lib/unistr/u16-to-u32.c: Update.
65359         * modules/unistr/u16-to-u32: Update.
65360
65361 2007-01-27  Bruno Haible  <bruno@clisp.org>
65362
65363         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
65364         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
65365         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
65366         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
65367         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
65368         * modules/unistr/u8-mbtouc-unsafe: Renamed from
65369         modules/unistr/u8-mbtouc.
65370         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
65371         * lib/unistr.h: Update.
65372         * lib/striconveh.c: Update.
65373         * modules/striconveh: Update.
65374         * lib/linebreak.c: Update.
65375         * modules/linebreak: Update.
65376         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
65377         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
65378         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
65379         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
65380         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
65381         * lib/unistr.h: Update.
65382         * lib/striconveh.c: Update.
65383         * modules/striconveh: Update.
65384         * lib/unistr/u8-to-u16.c: Update.
65385         * modules/unistr/u8-to-u16: Update.
65386         * lib/unistr/u8-to-u32.c: Update.
65387         * modules/unistr/u8-to-u32: Update.
65388
65389 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65390
65391         Sync from Libtool.
65392         * lib/argz.c: Do not include strings.h nor memory.h, include
65393         string.h unconditionally.  Patch by Simon Josefsson.
65394
65395 2007-01-27  Bruno Haible  <bruno@clisp.org>
65396
65397         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
65398         from gl_HEADER_STRING_H_BODY.
65399         (gl_HEADER_STRING_H_BODY): Require it.
65400         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
65401         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65402         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65403         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65404         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65405         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
65406         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
65407         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65408         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
65409         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65410         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65411         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
65412         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65413         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
65414         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65415
65416 2007-01-27  Bruno Haible  <bruno@clisp.org>
65417
65418         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
65419         check_PROGRAMS into noinst_PROGRAMS.
65420         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
65421         check_PROGRAMS in this case.
65422         (func_import): Set for_test to false.
65423         (func_create_testdir): Set for_test to true.
65424
65425 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65426             Bruno Haible  <bruno@clisp.org>
65427
65428         * modules/strcasestr (Files): Remove lib/strcasestr.h.
65429         (Depends-on): Add string.
65430         (Includes): Use <string.h> instead of strcasestr.h.
65431         * modules/string (Makefile.am): Also substitute the value of
65432         REPLACE_STRCASESTR.
65433         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
65434         assume strcasestr is declared in <string.h> not <strings.h>. Also
65435         set REPLACE_STRCASESTR.
65436         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
65437         REPLACE_STRCASESTR.
65438         * lib/strcasestr.h: Remove file.
65439         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
65440         * lib/string_.h (strcasestr): New declaration.
65441
65442 2007-01-27  Bruno Haible  <bruno@clisp.org>
65443
65444         * lib/string_.h: Use 'extern'.
65445
65446 2007-01-27  Jim Meyering  <jim@meyering.net>
65447
65448         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
65449         of set-but-not-used local, "q".
65450
65451         * lib/mempcpy.c: Include <config.h> before <string.h>.
65452         This fixes a compilation error on HP-UX, due to the system's
65453         "restrict"-using mempcpy prototype.
65454
65455 2007-01-26  Bruno Haible  <bruno@clisp.org>
65456
65457         Small optimization.
65458         * lib/javacomp.c: Include c-strstr.h.
65459          (is_envjavac_gcj): Use c_strstr instead of strstr.
65460         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
65461
65462 2007-01-26  Bruno Haible  <bruno@clisp.org>
65463
65464         * MODULES.html.sh (Unicode string functions): Add the new modules.
65465
65466         * modules/uniconv/u32-strconv-to-locale: New file.
65467         * lib/uniconv/u32-strconv-to-locale.c: New file.
65468
65469         * modules/uniconv/u16-strconv-to-locale: New file.
65470         * lib/uniconv/u16-strconv-to-locale.c: New file.
65471
65472         * modules/uniconv/u8-strconv-to-locale: New file.
65473         * lib/uniconv/u8-strconv-to-locale.c: New file.
65474
65475         * modules/uniconv/u32-strconv-from-locale: New file.
65476         * lib/uniconv/u32-strconv-from-locale.c: New file.
65477
65478         * modules/uniconv/u16-strconv-from-locale: New file.
65479         * lib/uniconv/u16-strconv-from-locale.c: New file.
65480
65481         * modules/uniconv/u8-strconv-from-locale: New file.
65482         * lib/uniconv/u8-strconv-from-locale.c: New file.
65483
65484         * modules/uniconv/u32-strconv-to-enc: New file.
65485         * lib/uniconv/u32-strconv-to-enc.c: New file.
65486         * modules/uniconv/u32-strconv-to-enc-tests: New file.
65487         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
65488
65489         * modules/uniconv/u16-strconv-to-enc: New file.
65490         * lib/uniconv/u16-strconv-to-enc.c: New file.
65491         * lib/uniconv/u-strconv-to-enc.h: New file.
65492         * modules/uniconv/u16-strconv-to-enc-tests: New file.
65493         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
65494
65495         * modules/uniconv/u8-strconv-to-enc: New file.
65496         * lib/uniconv/u8-strconv-to-enc.c: New file.
65497         * modules/uniconv/u8-strconv-to-enc-tests: New file.
65498         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
65499
65500         * modules/uniconv/u32-strconv-from-enc: New file.
65501         * lib/uniconv/u32-strconv-from-enc.c: New file.
65502         * modules/uniconv/u32-strconv-from-enc-tests: New file.
65503         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
65504
65505         * modules/uniconv/u16-strconv-from-enc: New file.
65506         * lib/uniconv/u16-strconv-from-enc.c: New file.
65507         * modules/uniconv/u16-strconv-from-enc-tests: New file.
65508         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
65509
65510         * modules/uniconv/u8-strconv-from-enc: New file.
65511         * lib/uniconv/u8-strconv-from-enc.c: New file.
65512         * lib/uniconv/u-strconv-from-enc.h: New file.
65513         * modules/uniconv/u8-strconv-from-enc-tests: New file.
65514         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
65515
65516         * modules/uniconv/u32-conv-from-enc: New file.
65517         * lib/uniconv/u32-conv-from-enc.c: New file.
65518         * modules/uniconv/u32-conv-from-enc-tests: New file.
65519         * tests/uniconv/test-u32-conv-from-enc.c: New file.
65520
65521         * modules/uniconv/u16-conv-from-enc: New file.
65522         * lib/uniconv/u16-conv-from-enc.c: New file.
65523         * lib/uniconv/u-conv-from-enc.h: New file.
65524         * modules/uniconv/u16-conv-from-enc-tests: New file.
65525         * tests/uniconv/test-u16-conv-from-enc.c: New file.
65526
65527         * modules/uniconv/u8-conv-from-enc: New file.
65528         * lib/uniconv/u8-conv-from-enc.c: New file.
65529         * modules/uniconv/u8-conv-from-enc-tests: New file.
65530         * tests/uniconv/test-u8-conv-from-enc.c: New file.
65531
65532         * modules/uniconv/base: New file.
65533         * lib/uniconv.h: New file.
65534
65535 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65536
65537         * doc/gnulib-tool.texi (Initial import): Update to match current
65538         behavior with strdup module.
65539         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
65540         * lib/memmem.h: Remove; all uses removed.  This is now done
65541         by <string.h>.
65542         * lib/mempcpy.h: Likewise.
65543         * lib/memrchr.h: Likewise.
65544         * lib/stpcpy.h: Likewise.
65545         * lib/stpncpy.h: Likewise.
65546         * lib/strcase.h: Likewise.
65547         * lib/strchrnul.h: Likewise.
65548         * lib/strdup.h: Likewise.
65549         * lib/strndup.h: Likewise.
65550         * lib/strnlen.h: Likewise.
65551         * lib/strpbrk.h: Likewise.
65552         * lib/strsep.h: Likewise.
65553         * lib/strstr.h: Likewise.
65554         * lib/strtok_r.h: Likewise.
65555         * lib/string_.h: New file.
65556         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
65557         Rely on <string.h> instead.
65558         * lib/canon-host.c: Likewise.
65559         * lib/chdir-long.c: Likewise.
65560         * lib/concatpath.c: Likewise.
65561         * lib/exclude.c: Likewise.
65562         * lib/fchdir.c: Likewise.
65563         * lib/getaddrinfo.c: Likewise.
65564         * lib/getcwd.c: Likewise.
65565         * lib/getsubopt.c: Likewise.
65566         * lib/glob.c: Likewise.
65567         * lib/hard-locale.c: Likewise.
65568         * lib/iconvme.c: Likewise.
65569         * lib/javacomp.c: Likewise.
65570         * lib/mempcpy.c: Likewise.
65571         * lib/memrchr.c: Likewise.
65572         * lib/regex_internal.h: Likewise.
65573         * lib/stpncpy.c: Likewise.
65574         * lib/strcasecmp.c: Likewise.
65575         * lib/strchrnul.c: Likewise.
65576         * lib/strdup.c: Likewise.
65577         * lib/striconv.c: Likewise.
65578         * lib/striconveh.c: Likewise.
65579         * lib/striconveha.c: Likewise.
65580         * lib/strncasecmp.c: Likewise.
65581         * lib/strndup.c: Likewise.
65582         * lib/strnlen.c: Likewise.
65583         * lib/strsep.c: Likewise.
65584         * lib/strstr.c: Likewise.
65585         * lib/strtok_r.c: Likewise.
65586         * lib/userspec.c: Likewise.
65587         * lib/w32spawn.h: Likewise.
65588         * lib/xstrndup.c: Likewise.
65589         * lib/mountlist.c (strstr): Remove decl.
65590         * m4/string_h.m4: New file.
65591         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
65592         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
65593         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
65594         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
65595         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
65596         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
65597         Set REPLACE_STRCASECMP if necessary.
65598         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
65599         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
65600         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
65601         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
65602         HAVE_DECL_STRDUP if necessary.
65603         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
65604         since gl_FUNC_STRNDUP does that now.
65605         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
65606         Check for decl here...
65607         (gl_PREREQ_STRNLEN): ... not here.
65608         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
65609         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
65610         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
65611         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
65612         necessary.
65613         * modules/string: New file.
65614         * modules/memmem (Files): Remove special-purpose include file.
65615         (Depends-on): Add string.
65616         (Include): Include <string.h>, not the removed file.
65617         * modules/mempcpy: Likewise.
65618         * modules/memrchr: Likewise.
65619         * modules/stpcpy: Likewise.
65620         * modules/stpncpy: Likewise.
65621         * modules/strcase: Likewise.
65622         * modules/strchrnul: Likewise.
65623         * modules/strdup: Likewise.
65624         * modules/strndup: Likewise.
65625         * modules/strnlen: Likewise.
65626         * modules/strpbrk: Likewise.
65627         * modules/strsep: Likewise.
65628         * modules/strstr: Likewise.
65629         * modules/strtok_r: Likewise.
65630         * tests/test-dirname.c: Don't include "strdup.h", since
65631         <string.h> now suffices.
65632         * tests/test-memmem.c: Don't include "memmem.h", since
65633         <string.h> now suffices.
65634
65635 2007-01-25  Bruno Haible  <bruno@clisp.org>
65636
65637         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
65638         *resultp is 0.
65639
65640         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
65641         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
65642         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
65643         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
65644
65645         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
65646         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
65647         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
65648         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
65649         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
65650         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
65651
65652 2007-01-24  Bruno Haible  <bruno@clisp.org>
65653
65654         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
65655         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
65656         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
65657         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
65658         gl_FUNC_FTS_CORE.
65659         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
65660         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
65661         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65662         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
65663         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
65664         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
65665         gl_FUNC_FCHOWNAT.
65666         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
65667         gl_FUNC_STRFTIME.
65668         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
65669         Reported by Ralf Wildenhues.
65670
65671 2007-01-24  Bruno Haible  <bruno@clisp.org>
65672
65673         Drop AC_REQUIRE calls that are redundant with the module dependencies.
65674         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
65675         gl_GETADDRINFO.
65676         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
65677         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
65678         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
65679
65680 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
65681
65682         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
65683         Don't use 'exit'; just return from 'main'.
65684         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
65685
65686         * lib/fnmatch_.h: Readjust white space and comments to match
65687         glibc, to avoid spurious diffs.
65688
65689 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65690
65691         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
65692         2004-12-01 change by Jakub Jelinek, since this code won't compile
65693         if !LIBC.  Problem reported by Bob Proulx.
65694
65695 2007-01-23  Bruno Haible  <bruno@clisp.org>
65696
65697         * lib/striconveh.c: Include c-strcaseeq.h.
65698         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
65699         * modules/striconveh (Depends-on): Add c-strcaseeq.
65700
65701 2007-01-23  Bruno Haible  <bruno@clisp.org>
65702
65703         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
65704
65705         * modules/c-strcaseeq: New file.
65706         * lib/c-strcaseeq.h: New file.
65707
65708         * modules/streq: New file.
65709         * lib/streq.h: New file.
65710
65711 2007-01-23  Bruno Haible  <bruno@clisp.org>
65712
65713         * modules/striconveha-tests: New file.
65714         * tests/test-striconveha.c: New file.
65715
65716         * lib/striconveha.h: Include <stdbool.h>.
65717         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
65718         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
65719         (mem_iconveha_notranslit): Renamed from mem_iconveha.
65720         (mem_iconveha): New function.
65721         (str_iconveha_notranslit): Renamed from str_iconveha.
65722         (str_iconveha): New function.
65723         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
65724         c-strcase.
65725
65726 2007-01-23  Bruno Haible  <bruno@clisp.org>
65727
65728         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
65729         encodings without forgiving before trying any encoding with handler.
65730         (str_iconveha): Try all encodings without forgiving before trying any
65731         encoding with handler.
65732
65733 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65734
65735         Import the following changes from libc.
65736
65737         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65738
65739         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
65740
65741         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
65742
65743         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
65744         normal_bracket label.
65745
65746         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
65747
65748         [BZ #361]
65749         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
65750         to normal_bracket after fetching the next character.
65751
65752 2007-01-22  Bruno Haible  <bruno@clisp.org>
65753
65754         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
65755         argument.
65756         * lib/striconveh.c (iconv_carefully_1): New function.
65757         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
65758         argument.
65759         (str_cd_iconveh): Update.
65760         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
65761         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
65762         * tests/test-striconveh.c (MAGIC): New macro.
65763         (new_offsets): New function.
65764         (main): Test call with and without offsets.
65765
65766 2007-01-22  Bruno Haible  <bruno@clisp.org>
65767
65768         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
65769         * modules/sys_select (Makefile.am): Likewise.
65770         * modules/sys_socket (Makefile.am): Likewise.
65771         * modules/sys_time (Makefile.am): Likewise.
65772
65773 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65774
65775         * modules/gettimeofday (License): Change from GPL to LGPL, since
65776         gettimeofday is a library function.
65777
65778 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65779
65780         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
65781
65782 2007-01-21  Bruno Haible  <bruno@clisp.org>
65783
65784         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
65785
65786 2007-01-21  Bruno Haible  <bruno@clisp.org>
65787
65788         * modules/striconveha: New file.
65789         * lib/striconveha.h: New file.
65790         * lib/striconveha.c: New file.
65791         * MODULES.html.sh (Internationalization functions): Add striconveha.
65792         * lib/striconv.c (str_iconv): Optimize the case of an empty input
65793         string.
65794         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
65795
65796 2007-01-21  Bruno Haible  <bruno@clisp.org>
65797
65798         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
65799         * lib/striconveh.c (str_iconveh): Likewise.
65800
65801 2007-01-21  Bruno Haible  <bruno@clisp.org>
65802
65803         * lib/striconveh.h (mem_iconveh): New declaration.
65804         * lib/striconveh.c (mem_iconveh): New function.
65805         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
65806
65807 2007-01-21  Bruno Haible  <bruno@clisp.org>
65808
65809         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
65810
65811         * lib/striconveh.h (mem_cd_iconveh): Change specification.
65812         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
65813         original result buffer.
65814         (str_cd_iconveh): Update.
65815         * tests/test-striconveh.c (main): Update.
65816
65817         * lib/striconv.h (mem_cd_iconv): Change specification.
65818         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
65819         result buffer.
65820         (str_cd_iconv): Update.
65821         * tests/test-striconv.c (main): Update.
65822
65823 2007-01-21  Bruno Haible  <bruno@clisp.org>
65824
65825         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
65826
65827 2007-01-20  Jim Meyering  <jim@meyering.net>
65828
65829         * lib/userspec.c (parse_with_separator): If a user or group string
65830         starts with "+", skip the corresponding name-to-ID look-up, since
65831         such a look-up must fail: user and group names may not include "+".
65832
65833 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65834
65835         * lib/poll.c: Include sys/time.h and time.h unconditionally,
65836         since we now assume the sys_time module.
65837         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
65838         check for sys/time.h; no longer needed.
65839         * modules/poll (Depends-on): Depend on sys_time.
65840
65841 2007-01-18  Bruno Haible  <bruno@clisp.org>
65842
65843         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
65844         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65845
65846         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
65847         gettimeofday.
65848
65849         * tests/test-gettimeofday.c: Include <time.h>.
65850         (dummy): Remove variable.
65851
65852         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
65853         gl_HEADER_SYS_TIME_H.
65854         (gl_HEADER_SYS_TIME_H): New macro.
65855
65856         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
65857         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65858         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
65859         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
65860         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65861         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
65862         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
65863         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65864         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
65865         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
65866         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65867
65868         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
65869         last change; it caused a compilation error when cross-compiling to
65870         Cygwin.
65871
65872 2007-01-18  Jim Meyering  <jim@meyering.net>
65873
65874         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
65875         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
65876         than the race-prone "test -d sys || mkdir sys".
65877         (configure.ac): Use AC_PROG_MKDIR_P.
65878         * modules/sys_select: Likewise.
65879         * modules/sys_socket: Likewise.
65880         * modules/sys_time: Likewise.
65881
65882 2007-01-18  Eric Blake  <ebb9@byu.net>
65883
65884         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
65885         replace gettimeofday.
65886         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
65887         name, to avoid infinite recursion.
65888
65889 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
65890
65891         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
65892         module sys_time.
65893         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
65894         assume timespec.h defines struct timeval.
65895         * lib/settime.c: Likewise.
65896         * lib/utimens.c: Likewise.
65897         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
65898         since we now assume the gettimeofday module.
65899         * lib/tempname.c (__gen_tempname): Likewise.
65900         * lib/gettimeofday.h: Remove.
65901         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
65902         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
65903         Include <time.h>, for 'time()'.
65904         (localtime_buffer_addr): Also use this workaround if
65905         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
65906         to simplify the uses.  All uses changed.
65907         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
65908         that #undef is inside {}, and 'const' follows type name consistently.
65909         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
65910         (gettimeofday): Do not use the maximum possible value for
65911         tv->tv_usec, since that might break usages other than ls.c.
65912         Instead, we'll leave ls.c alone.  This undoes today's patch
65913         by Bruno.  Add a compile-time warning for 1s-clock resolution;
65914         we've never observed the problem but might as well keep the
65915         canary.
65916         * lib/nanosleep.c: Include timespec.h first, for interface check.
65917         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
65918         now assume the sys_time module.
65919         * lib/tempname.c: Likewise.
65920         * lib/timespec.h: Likewise.
65921         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
65922         needed.
65923         * lib/strftime.c: Likewise.
65924         * lib/timespec.h: Likewise.
65925         * lib/posixtm.c: Include posixtm.h first, for interface check.
65926         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
65927         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
65928         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
65929         * lib/sys_time_.h: New file.
65930         * lib/timespec.h (struct timespec): Use long int, not long.
65931         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65932         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
65933         Remove obsolescent call to AC_HEADER_TIME.
65934         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
65935         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65936         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65937         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
65938         Likewise.
65939         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
65940         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
65941         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
65942         into the sys_time module.  Check for gettimeofday just once.
65943         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
65944         for gettimeofday signature to just check the signature.  Merely
65945         compile it, since linking doesn't test signature.  Improve test for
65946         whether gettimeofday.o is actually needed.
65947         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
65948         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
65949         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
65950         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65951         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
65952         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
65953         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
65954         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
65955         than worrying about sys/time.h.
65956         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65957         Don't bother worrying about TIME_WITH_SYS_TIME.
65958         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
65959         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
65960         * m4/sys_time_h.m4: New file.
65961         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
65962         Don't include sys/time.h.  Return from main rather than exiting.
65963         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
65964         all uses changed.
65965         * modules/gethrxtime (Depends-on): Add sys_time.
65966         * modules/gettime (Depends-on): Likewise.
65967         * modules/gettimeofday (Depends-on): Likewise.
65968         * modules/nanosleep (Depends-on): Likewise.
65969         * modules/settime (Depends-on): Likewise.
65970         * modules/tempname (Depends-on): Likewise.
65971         * modules/utimens (Depends-on): Likewise.
65972         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
65973         (Include): Change back to <sys/time.h>.
65974         (Maintainer): Add self.
65975         * modules/sys_time: New file.
65976         * modules/tempname (Depends-on): Add gettimeofday.
65977         * tests/test-gettimeofday.c: Include <sys/time.h>
65978         rather than gettimeofday.h.
65979
65980 2007-01-17  Bruno Haible  <bruno@clisp.org>
65981
65982         * gnulib-tool (func_get_license): Revert last patch. Instead, let
65983         the license default to GPL.
65984         (func_create_testdir): Don't complain if a module is LGPL and its
65985         tests module depends on GPLed modules.
65986
65987 2007-01-17  Bruno Haible  <bruno@clisp.org>
65988
65989         * lib/gettimeofday.c (gettimeofday): Add code for the case
65990         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
65991         maximum possible value for tv->tv_usec, rather than the minimum one.
65992
65993 2005-10-08  Martin Lambers  <marlam@marlam.de>
65994 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65995 2007-01-16  Bruno Haible  <bruno@clisp.org>
65996
65997         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
65998         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
65999         gl_FUNC_GETTIMEOFDAY.
66000         (Include): Add gettimeofday.h.
66001         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
66002         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
66003         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
66004         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
66005         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
66006         * lib/gettimeofday.h: New file.
66007         * lib/gettimeofday.c: Include <sys/timeb.h>.
66008         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
66009         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66010         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
66011         fall back on time().
66012
66013         * tests/test-gettimeofday.c: New file.
66014         * modules/gettimeofday-tests: New file.
66015
66016 2007-01-16  Eric Blake  <ebb9@byu.net>
66017
66018         * modules/fnmatch (Depends-on): Depend on wchar.
66019         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
66020         * m4/fnmatch.m4: Likewise.
66021         * modules/mbchar (Makefile.am): Assume <wchar.h>.
66022         * m4/mbchar.m4: Likewise.
66023         * modules/mbswidth (Depends-on): Depend on wchar.
66024         * lib/mbswidth.c: Assume <wchar.h>.
66025         * m4/mbswidth.m4: Likewise.
66026         * modules/quotearg (Depends-on): Depend on wchar.
66027         * lib/quotearg.c: Assume <wchar.h>.
66028         * m4/quotearg.m4: Likewise.
66029         * modules/regex (Depends-on): Depend on wchar.
66030         * lib/regex_internal.h: Assume <wchar.h>.
66031         * m4/regex.m4: Likewise.
66032         * modules/stdint (Depends-on): Depend on wchar.
66033         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
66034         * m4/stdint.m4: Likewise.
66035         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
66036         * modules/strftime (Depends-on): Depend on wchar.
66037         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
66038         * modules/strtol (Depends-on): Depend on wchar.
66039         * lib/strtol.c: Assume <wchar.h>.
66040         * modules/wcwidth (Depends-on): Depend on wchar.
66041         * lib/wcwidth.h: Assume <wchar.h>.
66042         * m4/wcwidth.m4: Likewise.
66043
66044 2007-01-16  Bruno Haible  <bruno@clisp.org>
66045
66046         * modules/csharpexec-script: New, created from...
66047         * modules/csharpexec: ... this.
66048
66049 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
66050
66051         * modules/javaexec-script: New, created from...
66052         * modules/javaexec: ... this.
66053
66054 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66055
66056         * modules/poll (Dependencies): Add sys_select.
66057
66058 2007-01-15  Jim Meyering  <jim@meyering.net>
66059
66060         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
66061         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
66062         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
66063         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
66064
66065 2007-01-15  Bruno Haible  <bruno@clisp.org>
66066
66067         * modules/striconveh: New file.
66068         * lib/striconveh.h: New file.
66069         * lib/striconveh.c: New file.
66070         * MODULES.html.sh (Internationalization functions): Add striconveh.
66071
66072         * modules/striconveh-tests: New file.
66073         * tests/test-striconveh.c: New file.
66074
66075 2007-01-15  Bruno Haible  <bruno@clisp.org>
66076
66077         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
66078         not from GNU libiconv or GNU libc.
66079
66080 2007-01-15  Bruno Haible  <bruno@clisp.org>
66081
66082         * doc/gnulib-intro.texi (Copyright): Explain the different license
66083         terms for module descriptions, autoconf macros, tests, documentation.
66084
66085 2007-01-14  Bruno Haible  <bruno@clisp.org>
66086
66087         * modules/striconv-tests: New file.
66088         * tests/test-striconv.c: New file.
66089
66090 2007-01-14  Bruno Haible  <bruno@clisp.org>
66091
66092         * modules/iconv-tests: New file.
66093         * tests/test-iconv.c: New file.
66094
66095 2007-01-14  Bruno Haible  <bruno@clisp.org>
66096
66097         * gnulib-tool (func_get_license): For test modules, use the license of
66098         the main module.
66099
66100 2007-01-14  Bruno Haible  <bruno@clisp.org>
66101
66102         * modules/iconv (Include): Clarify that <iconv.h> can only be included
66103         if iconv is found to exist.
66104
66105 2007-01-14  Bruno Haible  <bruno@clisp.org>
66106
66107         * modules/c-ctype-tests: New file.
66108         * tests/test-c-ctype.c: New file.
66109
66110 2007-01-14  Bruno Haible  <bruno@clisp.org>
66111
66112         * modules/binary-io-tests: New file.
66113         * tests/test-binary-io.sh: New file.
66114         * tests/test-binary-io.c: New file.
66115
66116 2007-01-14  Bruno Haible  <bruno@clisp.org>
66117
66118         * modules/array-oset-tests: New file.
66119         * tests/test-array_oset.c: New file.
66120
66121 2007-01-14  Bruno Haible  <bruno@clisp.org>
66122
66123         * modules/array-list-tests: New file.
66124         * tests/test-array_list.c: New file.
66125
66126 2007-01-14  Bruno Haible  <bruno@clisp.org>
66127
66128         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
66129         and make.
66130         Reported by Simon Josefsson in
66131         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
66132
66133 2007-01-14  Bruno Haible  <bruno@clisp.org>
66134
66135         * modules/allocsa-tests: New file.
66136         * tests/test-allocsa.c: New file.
66137
66138 2007-01-14  Bruno Haible  <bruno@clisp.org>
66139
66140         * modules/fchdir (Depends-on): Add absolute-header.
66141         * modules/unistd (Depends-on): Likewise.
66142
66143 2006-12-30  Bruno Haible  <bruno@clisp.org>
66144
66145         * modules/fchdir: New file.
66146         * modules/unistd (Files): Add lib/unistd_.h.
66147         (Makefile.am): Generate unistd.h from unistd_.h.
66148         * lib/fchdir.c: New file.
66149         * lib/dirent_.h: New file.
66150         * lib/unistd_.h: New file.
66151         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
66152         * m4/fchdir.m4: New file.
66153         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
66154         (gl_HEADER_UNISTD): Invoke it.
66155         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
66156         function.
66157         * lib/backupfile.c (opendir, closedir): Undefine.
66158         * lib/chown.c (open, close): Undefine.
66159         * lib/clean-temp.c (open, close): Undefine.
66160         * lib/copy-file.c (open, close): Undefine.
66161         * lib/execute.c (open, close): Undefine.
66162         * lib/fsusage.c (open, close): Undefine.
66163         * lib/gc-gnulib.c (open, close): Undefine.
66164         * lib/getcwd.c (opendir, closedir): Undefine.
66165         * lib/glob.c (opendir, closedir): Undefine.
66166         * lib/javacomp.c (open, close): Undefine.
66167         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
66168         * lib/openat-proc.c (open, close): Undefine.
66169         * lib/pagealign_alloc.c (open, close): Undefine.
66170         * lib/pipe.c (open, close): Undefine.
66171         * lib/progreloc.c (open, close): Undefine.
66172         * lib/savedir.c (opendir, closedir): Undefine.
66173         * lib/utime.c (open, close): Undefine.
66174         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
66175
66176 2007-01-10  Bruno Haible  <bruno@clisp.org>
66177
66178         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
66179
66180 2007-01-12  Eric Blake  <ebb9@byu.net>
66181
66182         Provide a robust <wchar.h>.  Further simplifications are now
66183         possible in other modules, but not included here.
66184         * modules/wchar: New module.
66185         * m4/wchar.m4: New file.
66186         * lib/wchar_.h: Likewise.
66187         * modules/mbchar (Depends-on): Depend on wchar, as the first use
66188         of the new module.
66189         * MODULES.html.sh (Extended multibyte and wide character utilities):
66190         New section.
66191
66192 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
66193
66194         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
66195         to a reasonable default for memory allocation.
66196         (xreadlink): Don't allocate a huge buffer, to work around a buggy
66197         file system that reports garbage st_size values for symlinks.
66198         Problem reported by Liyang Hu.
66199
66200 2007-01-11  Simon Josefsson  <simon@josefsson.org>
66201
66202         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
66203         Emacs .#* auto-save files).
66204
66205 2007-01-11  Bruno Haible  <bruno@clisp.org>
66206
66207         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
66208         directory.
66209
66210 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66211
66212         Use @...@ consistently in lib/wctype_.h.
66213         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
66214         on it being set to 1 or 0.
66215         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
66216         go back to AC_SUBSTing it.
66217         * modules/wctype (Makefile.am): Undo previous change.
66218
66219 2007-01-10  Eric Blake  <ebb9@byu.net>
66220
66221         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
66222         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
66223         * modules/wctype (Makefile.am): Likewise.
66224         Reported by Chris McGuire.
66225
66226 2007-01-10  Jim Meyering  <jim@meyering.net>
66227
66228         fts.c: a small readability/maintainability improvement
66229         * lib/fts.c (fts_read): Make this code slightly more readable and
66230         maintainable by hoisting the "sp->fts_cur = p" assignments to
66231         immediately follow the statements that set P.  Derived from
66232         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
66233
66234 2007-01-10  Eric Blake  <ebb9@byu.net>
66235
66236         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
66237         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
66238         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66239         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
66240         Reported by Chris McGuire.
66241
66242 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66243
66244         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
66245         in sed script.
66246
66247 2007-01-09  Bruno Haible  <bruno@clisp.org>
66248
66249         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
66250         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
66251         variables.
66252         (func_module): Use them.
66253
66254 2007-01-09  Bruno Haible  <bruno@clisp.org>
66255
66256         * modules/unistr/base: New file.
66257         * lib/unistr.h: New file.
66258
66259         * modules/unistr/u8-to-u16: New file.
66260         * lib/unistr/u8-to-u16.c: New file.
66261
66262         * modules/unistr/u8-to-u32: New file.
66263         * lib/unistr/u8-to-u32.c: New file.
66264
66265         * modules/unistr/u16-to-u8: New file.
66266         * lib/unistr/u16-to-u8.c: New file.
66267
66268         * modules/unistr/u16-to-u32: New file.
66269         * lib/unistr/u16-to-u32.c: New file.
66270
66271         * modules/unistr/u32-to-u8: New file.
66272         * lib/unistr/u32-to-u8.c: New file.
66273
66274         * modules/unistr/u32-to-u16: New file.
66275         * lib/unistr/u32-to-u16.c: New file.
66276
66277         * modules/unistr/u8-check: New file.
66278         * modules/unistr/u16-check: New file.
66279         * modules/unistr/u32-check: New file.
66280         * lib/unistr/u8-check.c: New file.
66281         * lib/unistr/u16-check.c: New file.
66282         * lib/unistr/u32-check.c: New file.
66283
66284         * modules/unistr/u8-chr: New file.
66285         * modules/unistr/u16-chr: New file.
66286         * modules/unistr/u32-chr: New file.
66287         * lib/unistr/u8-chr.c: New file.
66288         * lib/unistr/u16-chr.c: New file.
66289         * lib/unistr/u32-chr.c: New file.
66290
66291         * modules/unistr/u8-cmp: New file.
66292         * modules/unistr/u16-cmp: New file.
66293         * modules/unistr/u32-cmp: New file.
66294         * lib/unistr/u8-cmp.c: New file.
66295         * lib/unistr/u16-cmp.c: New file.
66296         * lib/unistr/u32-cmp.c: New file.
66297
66298         * modules/unistr/u8-cpy: New file.
66299         * modules/unistr/u16-cpy: New file.
66300         * modules/unistr/u32-cpy: New file.
66301         * lib/unistr/u8-cpy.c: New file.
66302         * lib/unistr/u16-cpy.c: New file.
66303         * lib/unistr/u32-cpy.c: New file.
66304         * lib/unistr/u-cpy.h: New file.
66305
66306         * modules/unistr/u8-cpy-alloc: New file.
66307         * modules/unistr/u16-cpy-alloc: New file.
66308         * modules/unistr/u32-cpy-alloc: New file.
66309         * lib/unistr/u8-cpy-alloc.c: New file.
66310         * lib/unistr/u16-cpy-alloc.c: New file.
66311         * lib/unistr/u32-cpy-alloc.c: New file.
66312         * lib/unistr/u-cpy-alloc.h: New file.
66313
66314         * modules/unistr/u8-endswith: New file.
66315         * modules/unistr/u16-endswith: New file.
66316         * modules/unistr/u32-endswith: New file.
66317         * lib/unistr/u8-endswith.c: New file.
66318         * lib/unistr/u16-endswith.c: New file.
66319         * lib/unistr/u32-endswith.c: New file.
66320         * lib/unistr/u-endswith.h: New file.
66321
66322         * modules/unistr/u8-mblen: New file.
66323         * modules/unistr/u16-mblen: New file.
66324         * modules/unistr/u32-mblen: New file.
66325         * lib/unistr/u8-mblen.c: New file.
66326         * lib/unistr/u16-mblen.c: New file.
66327         * lib/unistr/u32-mblen.c: New file.
66328
66329         * modules/unistr/u8-mbtouc: New file.
66330         * modules/unistr/u16-mbtouc: New file.
66331         * modules/unistr/u32-mbtouc: New file.
66332         * lib/unistr/u8-mbtouc.c: New file.
66333         * lib/unistr/u16-mbtouc.c: New file.
66334         * lib/unistr/u32-mbtouc.c: New file.
66335
66336         * modules/unistr/u8-mbtouc-safe: New file.
66337         * modules/unistr/u16-mbtouc-safe: New file.
66338         * modules/unistr/u32-mbtouc-safe: New file.
66339         * lib/unistr/u8-mbtouc-safe.c: New file.
66340         * lib/unistr/u16-mbtouc-safe.c: New file.
66341         * lib/unistr/u32-mbtouc-safe.c: New file.
66342
66343         * modules/unistr/u8-move: New file.
66344         * modules/unistr/u16-move: New file.
66345         * modules/unistr/u32-move: New file.
66346         * lib/unistr/u8-move.c: New file.
66347         * lib/unistr/u16-move.c: New file.
66348         * lib/unistr/u32-move.c: New file.
66349         * lib/unistr/u-move.h: New file.
66350
66351         * modules/unistr/u8-next: New file.
66352         * modules/unistr/u16-next: New file.
66353         * modules/unistr/u32-next: New file.
66354         * lib/unistr/u8-next.c: New file.
66355         * lib/unistr/u16-next.c: New file.
66356         * lib/unistr/u32-next.c: New file.
66357
66358         * modules/unistr/u8-prev: New file.
66359         * modules/unistr/u16-prev: New file.
66360         * modules/unistr/u32-prev: New file.
66361         * lib/unistr/u8-prev.c: New file.
66362         * lib/unistr/u16-prev.c: New file.
66363         * lib/unistr/u32-prev.c: New file.
66364
66365         * modules/unistr/u8-set: New file.
66366         * modules/unistr/u16-set: New file.
66367         * modules/unistr/u32-set: New file.
66368         * lib/unistr/u8-set.c: New file.
66369         * lib/unistr/u16-set.c: New file.
66370         * lib/unistr/u32-set.c: New file.
66371         * lib/unistr/u-set.h: New file.
66372
66373         * modules/unistr/u8-startswith: New file.
66374         * modules/unistr/u16-startswith: New file.
66375         * modules/unistr/u32-startswith: New file.
66376         * lib/unistr/u8-startswith.c: New file.
66377         * lib/unistr/u16-startswith.c: New file.
66378         * lib/unistr/u32-startswith.c: New file.
66379         * lib/unistr/u-startswith.h: New file.
66380
66381         * modules/unistr/u8-stpcpy: New file.
66382         * modules/unistr/u16-stpcpy: New file.
66383         * modules/unistr/u32-stpcpy: New file.
66384         * lib/unistr/u8-stpcpy.c: New file.
66385         * lib/unistr/u16-stpcpy.c: New file.
66386         * lib/unistr/u32-stpcpy.c: New file.
66387         * lib/unistr/u-stpcpy.h: New file.
66388
66389         * modules/unistr/u8-stpncpy: New file.
66390         * modules/unistr/u16-stpncpy: New file.
66391         * modules/unistr/u32-stpncpy: New file.
66392         * lib/unistr/u8-stpncpy.c: New file.
66393         * lib/unistr/u16-stpncpy.c: New file.
66394         * lib/unistr/u32-stpncpy.c: New file.
66395         * lib/unistr/u-stpncpy.h: New file.
66396
66397         * modules/unistr/u8-strcat: New file.
66398         * modules/unistr/u16-strcat: New file.
66399         * modules/unistr/u32-strcat: New file.
66400         * lib/unistr/u8-strcat.c: New file.
66401         * lib/unistr/u16-strcat.c: New file.
66402         * lib/unistr/u32-strcat.c: New file.
66403         * lib/unistr/u-strcat.h: New file.
66404
66405         * modules/unistr/u8-strchr: New file.
66406         * modules/unistr/u16-strchr: New file.
66407         * modules/unistr/u32-strchr: New file.
66408         * lib/unistr/u8-strchr.c: New file.
66409         * lib/unistr/u16-strchr.c: New file.
66410         * lib/unistr/u32-strchr.c: New file.
66411
66412         * modules/unistr/u8-strcmp: New file.
66413         * modules/unistr/u16-strcmp: New file.
66414         * modules/unistr/u32-strcmp: New file.
66415         * lib/unistr/u8-strcmp.c: New file.
66416         * lib/unistr/u16-strcmp.c: New file.
66417         * lib/unistr/u32-strcmp.c: New file.
66418
66419         * modules/unistr/u8-strcpy: New file.
66420         * modules/unistr/u16-strcpy: New file.
66421         * modules/unistr/u32-strcpy: New file.
66422         * lib/unistr/u8-strcpy.c: New file.
66423         * lib/unistr/u16-strcpy.c: New file.
66424         * lib/unistr/u32-strcpy.c: New file.
66425         * lib/unistr/u-strcpy.h: New file.
66426
66427         * modules/unistr/u8-strcspn: New file.
66428         * modules/unistr/u16-strcspn: New file.
66429         * modules/unistr/u32-strcspn: New file.
66430         * lib/unistr/u8-strcspn.c: New file.
66431         * lib/unistr/u16-strcspn.c: New file.
66432         * lib/unistr/u32-strcspn.c: New file.
66433         * lib/unistr/u-strcspn.h: New file.
66434
66435         * modules/unistr/u8-strdup: New file.
66436         * modules/unistr/u16-strdup: New file.
66437         * modules/unistr/u32-strdup: New file.
66438         * lib/unistr/u8-strdup.c: New file.
66439         * lib/unistr/u16-strdup.c: New file.
66440         * lib/unistr/u32-strdup.c: New file.
66441         * lib/unistr/u-strdup.h: New file.
66442
66443         * modules/unistr/u8-strlen: New file.
66444         * modules/unistr/u16-strlen: New file.
66445         * modules/unistr/u32-strlen: New file.
66446         * lib/unistr/u8-strlen.c: New file.
66447         * lib/unistr/u16-strlen.c: New file.
66448         * lib/unistr/u32-strlen.c: New file.
66449         * lib/unistr/u-strlen.h: New file.
66450
66451         * modules/unistr/u8-strmblen: New file.
66452         * modules/unistr/u16-strmblen: New file.
66453         * modules/unistr/u32-strmblen: New file.
66454         * lib/unistr/u8-strmblen.c: New file.
66455         * lib/unistr/u16-strmblen.c: New file.
66456         * lib/unistr/u32-strmblen.c: New file.
66457
66458         * modules/unistr/u8-strmbtouc: New file.
66459         * modules/unistr/u16-strmbtouc: New file.
66460         * modules/unistr/u32-strmbtouc: New file.
66461         * lib/unistr/u8-strmbtouc.c: New file.
66462         * lib/unistr/u16-strmbtouc.c: New file.
66463         * lib/unistr/u32-strmbtouc.c: New file.
66464
66465         * modules/unistr/u8-strncat: New file.
66466         * modules/unistr/u16-strncat: New file.
66467         * modules/unistr/u32-strncat: New file.
66468         * lib/unistr/u8-strncat.c: New file.
66469         * lib/unistr/u16-strncat.c: New file.
66470         * lib/unistr/u32-strncat.c: New file.
66471         * lib/unistr/u-strncat.h: New file.
66472
66473         * modules/unistr/u8-strncmp: New file.
66474         * modules/unistr/u16-strncmp: New file.
66475         * modules/unistr/u32-strncmp: New file.
66476         * lib/unistr/u8-strncmp.c: New file.
66477         * lib/unistr/u16-strncmp.c: New file.
66478         * lib/unistr/u32-strncmp.c: New file.
66479
66480         * modules/unistr/u8-strncpy: New file.
66481         * modules/unistr/u16-strncpy: New file.
66482         * modules/unistr/u32-strncpy: New file.
66483         * lib/unistr/u8-strncpy.c: New file.
66484         * lib/unistr/u16-strncpy.c: New file.
66485         * lib/unistr/u32-strncpy.c: New file.
66486         * lib/unistr/u-strncpy.h: New file.
66487
66488         * modules/unistr/u8-strnlen: New file.
66489         * modules/unistr/u16-strnlen: New file.
66490         * modules/unistr/u32-strnlen: New file.
66491         * lib/unistr/u8-strnlen.c: New file.
66492         * lib/unistr/u16-strnlen.c: New file.
66493         * lib/unistr/u32-strnlen.c: New file.
66494         * lib/unistr/u-strnlen.h: New file.
66495
66496         * modules/unistr/u8-strpbrk: New file.
66497         * modules/unistr/u16-strpbrk: New file.
66498         * modules/unistr/u32-strpbrk: New file.
66499         * lib/unistr/u8-strpbrk.c: New file.
66500         * lib/unistr/u16-strpbrk.c: New file.
66501         * lib/unistr/u32-strpbrk.c: New file.
66502         * lib/unistr/u-strpbrk.h: New file.
66503
66504         * modules/unistr/u8-strrchr: New file.
66505         * modules/unistr/u16-strrchr: New file.
66506         * modules/unistr/u32-strrchr: New file.
66507         * lib/unistr/u8-strrchr.c: New file.
66508         * lib/unistr/u16-strrchr.c: New file.
66509         * lib/unistr/u32-strrchr.c: New file.
66510
66511         * modules/unistr/u8-strspn: New file.
66512         * modules/unistr/u16-strspn: New file.
66513         * modules/unistr/u32-strspn: New file.
66514         * lib/unistr/u8-strspn.c: New file.
66515         * lib/unistr/u16-strspn.c: New file.
66516         * lib/unistr/u32-strspn.c: New file.
66517         * lib/unistr/u-strspn.h: New file.
66518
66519         * modules/unistr/u8-strstr: New file.
66520         * modules/unistr/u16-strstr: New file.
66521         * modules/unistr/u32-strstr: New file.
66522         * lib/unistr/u8-strstr.c: New file.
66523         * lib/unistr/u16-strstr.c: New file.
66524         * lib/unistr/u32-strstr.c: New file.
66525         * lib/unistr/u-strstr.h: New file.
66526
66527         * modules/unistr/u8-strtok: New file.
66528         * modules/unistr/u16-strtok: New file.
66529         * modules/unistr/u32-strtok: New file.
66530         * lib/unistr/u8-strtok.c: New file.
66531         * lib/unistr/u16-strtok.c: New file.
66532         * lib/unistr/u32-strtok.c: New file.
66533         * lib/unistr/u-strtok.h: New file.
66534
66535         * modules/unistr/u8-uctomb: New file.
66536         * modules/unistr/u16-uctomb: New file.
66537         * modules/unistr/u32-uctomb: New file.
66538         * lib/unistr/u8-uctomb.c: New file.
66539         * lib/unistr/u16-uctomb.c: New file.
66540         * lib/unistr/u32-uctomb.c: New file.
66541
66542         * MODULES.html.sh (Unicode string functions): Add the new modules.
66543
66544 2007-01-08  Bruno Haible  <bruno@clisp.org>
66545
66546         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
66547         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
66548         subdirectories.
66549
66550 2007-01-08  Karl Berry  <karl@gnu.org>
66551
66552         * doc/error.texi: mention that main() fns must set program_name
66553         when progname is used.
66554
66555 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
66556
66557         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
66558         WCTYPE_H is empty, for the benefit of builds from non-distclean
66559         directories.  Problem reported by Eric Blake in
66560         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
66561
66562 2007-01-08  Bruno Haible  <bruno@clisp.org>
66563
66564         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
66565         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
66566         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
66567         PROVIDE_CANONICALIZE_FILENAME_MODE.
66568         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
66569
66570 2007-01-08  Bruno Haible  <bruno@clisp.org>
66571
66572         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
66573         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
66574         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
66575         * lib/fts.c: Likewise.
66576         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
66577
66578 2006-12-25  Bruno Haible  <bruno@clisp.org>
66579
66580         * modules/utf8-ucs4-safe: New file.
66581         * lib/utf8-ucs4-safe.h: New file.
66582         * lib/unistr/utf8-ucs4-safe.c: New file.
66583
66584         * modules/utf16-ucs4-safe: New file.
66585         * lib/utf16-ucs4-safe.h: New file.
66586         * lib/unistr/utf16-ucs4-safe.c: New file.
66587
66588         * MODULES.html.sh (Unicode string functions): Add the new modules.
66589
66590 2007-01-08  Bruno Haible  <bruno@clisp.org>
66591
66592         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
66593         (Depends-on): Add unitypes.
66594         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66595         (u8_mbtouc_aux): Move out to separate file.
66596         (u8_mbtouc): Use ucs4_t, uint8_t types.
66597         * lib/unistr/utf8-ucs4.c: New file.
66598
66599         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
66600         (Depends-on): Add unitypes.
66601         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66602         (u16_mbtouc_aux): Move out to separate file.
66603         (u16_mbtouc): Use ucs4_t, uint16_t types.
66604         * lib/unistr/utf16-ucs4.c: New file.
66605
66606         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
66607         (Depends-on): Add unitypes.
66608         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
66609         (u8_uctomb_aux): Move out to separate file.
66610         (u8_uctomb): Use ucs4_t, uint8_t types.
66611         * lib/unistr/ucs4-utf8.c: New file.
66612
66613         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
66614         (Depends-on): Add unitypes.
66615         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
66616         (u16_uctomb_aux): Move out to separate file.
66617         (u16_uctomb): Use ucs4_t, uint16_t types.
66618         * lib/unistr/ucs4-utf16.c: New file.
66619
66620 2006-12-25  Bruno Haible  <bruno@clisp.org>
66621
66622         * modules/unitypes: New file.
66623         * lib/unitypes.h: New file.
66624         * MODULES.html.sh (func_all_modules): New section "Unicode string
66625         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
66626         this section. Add unitypes.
66627
66628 2007-01-08  Bruno Haible  <bruno@clisp.org>
66629
66630         Avoid variable names that conflict with those from libtool.
66631         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
66632         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
66633         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
66634         library_names_spec to acl_library_names_spec, hardcode_* to
66635         acl_hardcode_*.
66636         Reported by Ralf Wildenhues.
66637
66638 2007-01-08  Bruno Haible  <bruno@clisp.org>
66639
66640         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
66641         definition.
66642         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
66643         definition.
66644         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
66645         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
66646         definition.
66647         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
66648         definition.
66649         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
66650         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
66651         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
66652         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
66653         definition.
66654         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
66655         definition.
66656         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
66657         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
66658         GC_USE_<algorithm>.
66659         * lib/gc-libgcrypt.c: Likewise.
66660         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
66661         * modules/gc-arctwo (configure.ac): Likewise.
66662         * modules/gc-des (configure.ac): Likewise.
66663         * modules/gc-hmac-md5 (configure.ac): Likewise.
66664         * modules/gc-hmac-sha1 (configure.ac): Likewise.
66665         * modules/gc-md2 (configure.ac): Likewise.
66666         * modules/gc-md4 (configure.ac): Likewise.
66667         * modules/gc-md5 (configure.ac): Likewise.
66668         * modules/gc-random (configure.ac): Likewise.
66669         * modules/gc-rijndael (configure.ac): Likewise.
66670         * modules/gc-sha1 (configure.ac): Likewise.
66671
66672 2007-01-08  Bruno Haible  <bruno@clisp.org>
66673
66674         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
66675         macro definition.
66676         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
66677         definition.
66678         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
66679         definition.
66680         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
66681         * modules/fcntl-safer (configure.ac): Likewise.
66682         * modules/fopen-safer (configure.ac): Likewise.
66683         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
66684         GNULIB_FWRITEERROR macro definition.
66685
66686 2007-01-08  Bruno Haible  <bruno@clisp.org>
66687
66688         * m4/gnulib-common.m4: New file.
66689         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
66690         (func_get_filelist): Add m4/gnulib-common.m4.
66691
66692 2007-01-08  Bruno Haible  <bruno@clisp.org>
66693
66694         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
66695         command.
66696
66697 2007-01-08  Jim Meyering  <jim@meyering.net>
66698
66699         Use a more robust test for a "can't happen" condition.
66700         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
66701         narrowed the st_size value.  Presuming the "can't happen" condition
66702         is true, that narrowing could conceivably convert an invalid st_size
66703         value into a valid one.  Instead, use a change based on Matthew
66704         Woehlke's original patch.
66705
66706         Slight readability improvement: use an assert-like macro
66707         in place of literal "abort ()" uses.
66708         * lib/fts.c (fts_assert): Define.
66709         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
66710         Use this macro instead of a bare 'abort'.
66711
66712 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
66713
66714         Don't worry about using IRIX 5.3's wctype.h broken definitions;
66715         simply work around them.
66716         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
66717         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
66718         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
66719         declaring.
66720         Don't bother to define as macros, since the standard doesn't require it.
66721         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
66722         longer worry about IRIX 5.3.
66723         (HAVE_WCTYPE_CTMP_BUG): Remove.
66724
66725 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66726
66727         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
66728         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
66729         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66730         Problems reported by Georg Schwarz for IRIX 5.3.
66731
66732         * gnulib-tool (autoconf_minversion): Take the maximum version number
66733         found, not the minimum.  Problem reported by James Youngman.
66734
66735 2007-01-03  Karl Berry  <karl@gnu.org>
66736
66737         * doc/error.texi: new file, explaining interaction with progname.
66738         * doc/gnulib.texi: include it.  Update copyright.
66739
66740 2007-01-03  Simon Josefsson  <simon@josefsson.org>
66741
66742         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
66743         AC_CANONICAL_HOST, to improve autobuild outputs.
66744
66745 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
66746             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66747
66748         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
66749         sockets, server sockets, and other file descriptors.  Count errors
66750         to compute the return value.  Reorder the code a bit to be easier
66751         to follow.  Don't set event bits that were not requested (except
66752         POLLERR and POLLHUP).
66753
66754 2007-01-01  Bruno Haible  <bruno@clisp.org>
66755
66756         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
66757
66758 2007-01-03  Jim Meyering  <jim@meyering.net>
66759
66760         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
66761
66762 2007-01-02  Bruno Haible  <bruno@clisp.org>
66763
66764         * modules/settime (Include): Require timespec.h.
66765         * modules/nanosleep (Include): Likewise.
66766
66767 2007-01-01  Bruno Haible  <bruno@clisp.org>
66768
66769         * gnulib-tool (func_emit_copyright_notice): Bump year.
66770         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
66771
66772 2007-01-01  Bruno Haible  <bruno@clisp.org>
66773
66774         Improve support for OpenBSD.
66775         * build-aux/config.rpath (libname_spec): Export.
66776         (library_names_spec): New variable. Export.
66777         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
66778         library_names_spec from the config.rpath output. Locate shared library
66779         through the name pattern in library_names_spec.
66780
66781 2007-01-01  Eric Blake  <ebb9@byu.net>
66782
66783         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
66784
66785 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
66786
66787         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
66788         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
66789         assume the C locale, and avoid an "eval" that could cause trouble.
66790         Problem with SORT reported by Bob Proulx.
66791
66792         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
66793         Define.  Trivial patch from Henning Nielsen Lund, originally
66794         sent to bug-grep@gnu.org today.
66795
66796 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
66797
66798         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
66799         struct stat.  Problem reported by Henning Nielsen Lund.
66800         * lib/acl.c: Include acl.h first, to check interface.  Don't
66801         bother to include sys/types.h and sys/stat.h again.
66802
66803 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66804
66805         Import the following change from libc; problem reported by
66806         Sven Verdoolaege.
66807
66808         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
66809
66810         [BZ #1373]
66811         * lib/argp.h: Remove __NTH for __argp_usage inline function.
66812
66813 2006-12-28  Jim Meyering  <jim@meyering.net>
66814
66815         * build-aux/announce-gen: Do not assume that the package
66816         builds any of tar.gz, tar.bz2, and .xdelta files.
66817         Suggestion from Simon Josefsson.
66818
66819 2006-12-28  Simon Josefsson  <simon@josefsson.org>
66820
66821         * modules/announce-gen: New file.
66822
66823 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
66824
66825         * lib/mbchar.h: Just include <wctype.h>; the wctype module
66826         handles its gotchas now.
66827         * lib/mbswidth.c: Likewise.
66828         * lib/wcwidth.h: Likewise.
66829         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
66830         and iswcntrl; the wctype module does this stuff now.
66831         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66832         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66833         * modules/mbchar (Depends-on): Add wctype.
66834         * modules/mbswidth (Depends-on): Likewise.
66835         * modules/wcwidth (Depends-on): Likewise.
66836
66837 2006-12-27  Eric Blake  <ebb9@byu.net>
66838
66839         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
66840         module uses more than what <wctype.h> is required to provide.
66841
66842 2006-12-26  Eric Blake  <ebb9@byu.net>
66843
66844         * gnulib-tool (sed_extract_prog): Avoid space-tab.
66845
66846 2006-12-26  Eric Blake  <ebb9@byu.net>
66847
66848         * modules/absolute-header: New module.
66849         * modules/fcntl (Depends-on): Depend on it.
66850         * modules/inttypes (Depends-on): Likewise.
66851         * modules/stdint (Depends-on): Likewise.
66852         * modules/sys_stat (Depends-on): Likewise.
66853         * modules/wctype (Depends-on): Likewise.
66854         * MODULES.html.sh (Support for building libraries and
66855         executables): Document it.
66856
66857 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
66858
66859         * gnulib-tool (SED): Remove, undoing previous change.
66860         The problem was that it broke coreutils on Solaris, because
66861         "sed --posix" leaked into a makefile.
66862         (sed): New alias, if 'alias' and GNU sed.
66863
66864 2006-12-24  Jim Meyering  <jim@meyering.net>
66865
66866         Work around an fchownat bug in glibc-2.4:
66867         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
66868         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
66869         in spite of the -P option.
66870         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
66871         New macros.
66872         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
66873         * modules/openat (Files): Add lib/fchownat.c.
66874         * lib/openat.c (fchownat): Don't define here.  Move to...
66875         * lib/fchownat.c: ...this new file.
66876
66877 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66878
66879         Fix bug reported by Bruno Haible in
66880         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
66881         where quotearg.c didn't compile on Mac OS X 10.2 because it
66882         lacks <wchar.h> and wint_t.
66883         * lib/wctype_.h (__wctype_wint_t): New type.
66884         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
66885         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
66886         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
66887         Arg is now of type __wctype_wint_t, not wint_t.
66888         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
66889         substitute HAVE_WINT_T.
66890         * modules/wctype (Files): Add m4/wint_t.m4.
66891         (wctype.h): Substitute HAVE_WINT_T.
66892
66893 2006-12-23  Bruno Haible  <bruno@clisp.org>
66894
66895         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
66896
66897 2006-12-23  Bruno Haible  <bruno@clisp.org>
66898
66899         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
66900         S_ISLNK.
66901         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
66902         mingw.
66903
66904 2006-12-22  Bruno Haible  <bruno@clisp.org>
66905
66906         * lib/copy-file.c: Include acl.h.
66907         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
66908         Close the file descriptors only after being done with copy_acl.
66909         * modules/copy-file (Depends-on): Add acl.
66910
66911 2006-12-22  Bruno Haible  <bruno@clisp.org>
66912
66913         * gnulib-tool (SED): New variable.
66914         Use $SED instead of sed everywhere.
66915
66916 2006-12-22  Bruno Haible  <bruno@clisp.org>
66917
66918         * modules/no-c++: New file.
66919         * m4/no-c++.m4: New file.
66920         * MODULES.html.sh (Support for building libraries and executables):
66921         Add no-c++.
66922
66923 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
66924
66925         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
66926         Include <limits.h>, and use its INT_MAX to rewrite the
66927         j loop so that it does not overflow 'int'.  Problem reported by
66928         Ralf Wildenhues in
66929         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
66930         Play it safe by shifting left by 1 rather than multiplying by 2,
66931         as GCC is less likely to optimize this away when the value
66932         is signed (when it assumes overflow leads to undefined behavior).
66933         Also, don't assume time_t uses two's complement.
66934
66935 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
66936
66937         * MODULES.html.sh: New module wctype.
66938         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
66939         * lib/fnmatch.c: Don't bother to include <wchar.h> before
66940         <wctype.h>, since the new wctype module should fix this.
66941         * lib/quotearg.c: Include <wctype.h> unconditionally, since
66942         the wctype module should arrange for it.
66943         * lib/regex_internal.h: Likewise.
66944         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
66945         since the wctype module should handle this now.
66946         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
66947         * modules/fnmatch (Depends-on): Add wctype.
66948         * modules/quotearg (Depends-on): Likewise.
66949         * modules/regex (Depends-on): Likewise.
66950
66951 2006-12-19  Bruno Haible  <bruno@clisp.org>
66952
66953         * lib/strdup.h [C++]: Wrap definitions in extern "C".
66954         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
66955
66956 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66957
66958         * modules/savewd (Depends-on): Fix dependency on fcntl.
66959
66960 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66961
66962         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
66963         conforms to C99, rather than relying on the user's environment
66964         setting of STDINT_H.
66965
66966 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66967         and Eric Blake  <ebb9@byu.net>
66968
66969         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
66970         This is more consistent with the other defines here.
66971         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
66972         Port to z/OS.  Problem reported by Paul Gilmartin.
66973         Change local vars to use gl_ prefix rather than ac_.
66974         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
66975         with other defines.
66976         * modules/double-slash-root: New module.
66977         * modules/dirname (Files): Remove m4/double-slash-root.m4.
66978         (Depends-on): Add double-slash-root.
66979         * MODULES.html.sh (File system functions): Mention new module.
66980
66981 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
66982
66983         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
66984         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
66985         This is for the benefit of gzip, which doesn't do i18n.
66986
66987 2006-12-12  Jim Meyering  <jim@meyering.net>
66988
66989         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
66990         Reported by Andreas Schwab <schwab@suse.de>.
66991
66992 2006-12-12  Bruno Haible  <bruno@clisp.org>
66993
66994         Merge these changes.
66995         2006-09-05  Bruno Haible  <bruno@clisp.org>
66996         * lib/iconvme.c (iconv_string): No need to save and restore errno when
66997         iconv_alloc succeeded.
66998         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
66999         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
67000         test for " && dest " at the end - dest is always != NULL there. Call
67001         iconv with 4xNULL arguments initially, to reset the state. Call iconv
67002         with 2xNULL arguments, also to flush the state storage. Handle the
67003         IRIX iconv behaviour. Realloc the final result, to throw away unused
67004         memory.
67005
67006 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
67007
67008         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
67009         and fchmodat unconditionally, since glibc 2.4 has them.
67010         Problem reported by Arkadiusz Miskiewicz.
67011
67012 2006-12-10  Bruno Haible  <bruno@clisp.org>
67013
67014         * gnulib-tool (func_import): Show the include files only for those
67015         modules that are copied and specified.
67016         Reported by Karl Berry.
67017
67018 2006-12-08  Jim Meyering  <jim@meyering.net>
67019
67020         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
67021         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
67022
67023         * build-aux/announce-gen: Add two new options, both optional:
67024         --bootstrap-tools=TOOL_LIST
67025               a comma-separated list of tools, e.g.,
67026               autoconf,automake,bison,gnulib
67027         --gnulib-snapshot-date=DATE
67028               if gnulib is in the bootstrap tool list,
67029               then report this as the snapshot date.
67030               If not specified, use the current date/time.
67031               If you specify a date here, be sure it's UTC.
67032
67033 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67034
67035         * tests/test-argp-2.sh: Fix test to match actual output.
67036         (func_compare): Fix sed script to be portable.
67037
67038 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
67039
67040         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
67041         workaround for this case.  It is not autoconfigured now; offhand
67042         it's hard to see how to autoconfigure it.
67043
67044 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
67045
67046         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
67047         a directory that is about to be chowned.  Such a directory's
67048         initial file permissions should permit the owner only and this
67049         should not be changed until after the chown, since the group and
67050         other bits would be incorrect if they granted permission before
67051         the chown.
67052
67053         Fix porting problem for iswctype reported by Georg Schwarz in:
67054         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
67055         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
67056         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
67057         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
67058         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67059
67060 2006-12-03  Jim Meyering  <jim@meyering.net>
67061
67062         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
67063         p->fts_statp may not yet be defined.
67064         (fts_read): Instead, set it in the caller, once p->fts_statp is
67065         sure to be defined, and corresponds to a top-level directory.
67066         This bug made du -x fail.  Here's the coreutils test case:
67067         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
67068         Reported by Mike Frysinger.
67069
67070 2006-12-01  Jim Meyering  <jim@meyering.net>
67071
67072         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
67073         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
67074         Reported by Simon Josefsson.
67075
67076 2006-11-30  Jim Meyering  <jim@meyering.net>
67077
67078         * m4/warning.m4: Use the all-permissive copyright notice
67079         recommended by RMS (rather than LGPL).
67080         * m4/vararrays.m4: Likewise.
67081         * m4/flexmember.m4: Likewise.
67082
67083 2006-11-29  Bruno Haible  <bruno@clisp.org>
67084
67085         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67086         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
67087         using +=.
67088         Reported by Simon Josefsson <simon@josefsson.org>.
67089
67090 2006-11-28  James Youngman <jay@gnu.org>
67091
67092         * README: Advise users that they might find the bug-gnulib@gnu.org
67093         and autotools-announce@gnu.org mailing lists useful.
67094
67095 2006-11-28  Bruno Haible  <bruno@clisp.org>
67096
67097         * m4/ptrdiff_max.m4: Remove file.
67098
67099 2006-11-21  Bruno Haible  <bruno@clisp.org>
67100
67101         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
67102         _AC_COMPUTE_INT.
67103         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67104         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
67105         _AC_COMPUTE_INT.
67106         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67107         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
67108         _AC_COMPUTE_INT.
67109         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67110
67111 2006-11-28  Jim Meyering  <jim@meyering.net>
67112
67113         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
67114         warning from "gcc -Wshadow" about shadowing the builtin.
67115
67116 2006-11-27  Bruno Haible  <bruno@clisp.org>
67117
67118         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
67119         _AC_COMPUTE_INT.
67120         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67121
67122 2006-11-27  Bruno Haible  <bruno@clisp.org>
67123             Paul Eggert  <eggert@cs.ucla.edu>
67124
67125         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
67126
67127 2006-11-26  Bruno Haible  <bruno@clisp.org>
67128
67129         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67130         noinst_LTLIBRARIES.
67131
67132 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67133             Bruno Haible  <bruno@clisp.org>
67134
67135         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
67136         if compiling with "gcc -ansi".
67137
67138 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67139
67140         Fix some incompatibilities with gcc -ansi -pedantic.
67141         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
67142         if compiling pedantically with GCC, unless it's C99 or later.
67143         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
67144         it mishandles gcc -ansi -pedantic as well.
67145         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
67146         if gcc -pedantic.
67147         * lib/regexec.c (check_node_accept_bytes): Don't use auto
67148         initializers for struct if -pedantic, unless it's C99 or later.
67149
67150 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
67151
67152         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
67153         Don't close an fd more than once. Identical atimes indicate
67154         success, not failure.
67155
67156 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
67157
67158         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
67159
67160 2006-11-23  Jim Meyering  <jim@meyering.net>
67161
67162         * build-aux/announce-gen: New file.  From coreutils.
67163
67164 2006-11-22  Jim Meyering  <jim@meyering.net>
67165
67166         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
67167         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
67168         (fts_read): Use a temporary to narrow the overused st_size member
67169         before using it in a switch statement.  Reported by Matthew Woehlke.
67170
67171         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
67172         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
67173
67174 2006-11-20  Bruno Haible  <bruno@clisp.org>
67175
67176         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
67177         changequote instead of pairs of brackets.
67178         Reported by Andreas Schwab <schwab@suse.de>.
67179
67180 2006-11-21  Jim Meyering  <jim@meyering.net>
67181
67182         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
67183         so as to remain compatible with older compilers.
67184         Patch from Michael Deutschmann.
67185
67186 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67187
67188         * MODULES.html.sh (File system functions): Add openat.
67189
67190         * lib/openat.h (rpl_fstatat): New macro, if
67191         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
67192         (fstatat): Define to rpl_fstatat under the same conditions,
67193         unless COMPILING_FSTATAT.
67194         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
67195         seems to have the bug.
67196         * lib/fstatat.c: New file.
67197         * modules/openat (Files): Add it.
67198
67199 2006-11-20  Bruno Haible  <bruno@clisp.org>
67200
67201         * Makefile: New file.
67202
67203 2006-11-20  Jim Meyering  <jim@meyering.net>
67204
67205         The beginnings of syntax-related checks for gnulib.
67206         * lib/Makefile: New file.
67207         * lib/t-idcache: New script.  Ensure that the two halves of
67208         idcache.c stay in sync.
67209
67210         * lib/idcache.c: Adjust comments in user- and group- portions to
67211         be more accurate, and to be consistent with one another.
67212
67213 2006-11-20  Jim Meyering  <jim@meyering.net>
67214
67215         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
67216         continue using the flexible array member (thus, this module performs
67217         half as many malloc calls), with the addition that...
67218         (getgroup, getuser): Consistently record a non-match via an empty
67219         "name" string, and map an empty string match to a NULL return value.
67220         * modules/idcache (Depends-on): Re-add flexmember.
67221
67222         * lib/idcache.c (getuser): Remove all uses of the register keyword.
67223         (getuidbyname, getgroup, getgidbyname): Likewise.
67224
67225         Use cleaner syntax: NULL rather than 0.
67226         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
67227
67228 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67229
67230         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
67231         It mishandled the case where the group was missing.
67232         Problem reported by Greg Schafer.
67233         * modules/idcache: Likewise.
67234
67235 2006-11-18  Jim Meyering  <jim@meyering.net>
67236
67237         * check-module (%exempt_header): Add exception for some
67238         conditionally-included headers.
67239
67240         * modules/i-ring (Depends-on): Add verify.
67241         (License): Change to LGPL.
67242
67243 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67244
67245         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
67246         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
67247         and inttostr.h.  Use snprintf rather than uinttostr, so that
67248         LGPLed code doesn't depend on GPLed.
67249
67250 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67251
67252         * modules/inline (License): Change from GPL to LGPL.
67253
67254 2006-11-17  Jim Meyering  <jim@meyering.net>
67255
67256         * modules/d-type (License): Switch to LGPL.
67257
67258 2006-11-15  Bruno Haible  <bruno@clisp.org>
67259
67260         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
67261
67262 2006-11-15  Eric Blake  <ebb9@byu.net>
67263
67264         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
67265         the module dependency.
67266
67267 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67268             Bruno Haible  <bruno@clisp.org>
67269
67270         * gnulib-tool (func_create_testdir): Add license consistency check.
67271
67272 2006-11-15  Eric Blake  <ebb9@byu.net>
67273
67274         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
67275         random "(cached)" in configure output.
67276
67277 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67278
67279         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
67280         test for conforming inttypes.h is both announced and cached.
67281
67282         * MODULES.html.sh (seen_modules, seen_files): New variables.
67283         (func_module): Rewrite to use a few less gnulib-tool and sed
67284         invocations.  Avoid a couple of quadratic algorithms for ...
67285         (missed_modules, missed_files): ... these, with ...
67286         (func_append, func_tmpdir): ... these new functions, from
67287         gnulib-tool.  Analogously, install traps for cleanup.
67288
67289         * tests/test-gc.c (main): Remove unused variables.
67290         * tests/test-read-file.c: Include stdlib.h, for 'free'.
67291
67292 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
67293
67294         * modules/inttostr (License): Change to LGPL.
67295
67296 2006-11-14  Eric Blake  <ebb9@byu.net>
67297
67298         * modules/tempname (License): Change to LGPL.
67299
67300 2006-11-14  Eric Blake  <ebb9@byu.net>
67301
67302         * doc/functions.texi (Function Portability): *printf functions on
67303         Cygwin now understand all POSIX size specifiers.
67304
67305 2006-11-14  Bruno Haible  <bruno@clisp.org>
67306
67307         * modules/c-ctype (License): Change to LGPL.
67308
67309 2006-11-12  Bruno Haible  <bruno@clisp.org>
67310
67311         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
67312         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
67313         for GNOME libraries, for which the include files are installed in
67314         subdirectories of $prefix/include.
67315
67316 2006-11-12  Bruno Haible  <bruno@clisp.org>
67317
67318         * m4/lib-link.m4: Require at least autoconf-2.54.
67319         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
67320         name to underscores for the --with option.
67321
67322 2006-11-13  Bruno Haible  <bruno@clisp.org>
67323
67324         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
67325         the tests directory.
67326         Reported by Ralf Wildenhues.
67327
67328 2006-11-13  Bruno Haible  <bruno@clisp.org>
67329
67330         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
67331         (func_emit_initmacro_end): Undo the override here.
67332         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
67333         Works around the famous automake error in coreutils.
67334
67335 2006-11-13  Eric Blake  <ebb9@byu.net>
67336
67337         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
67338         element, not its node.
67339
67340 2006-11-12  Bruno Haible  <bruno@clisp.org>
67341
67342         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
67343         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
67344
67345 2006-11-12  Bruno Haible  <bruno@clisp.org>
67346
67347         * gnulib-tool: New option --local-symlink.
67348         (func_usage): Document it.
67349         (lsymbolic): New variable.
67350         (func_import, func_create_testdir): If --symlink was not specified,
67351         test whether --local-symlink was specified and the file comes from
67352         the local_gnulib_dir.
67353
67354 2006-11-12  Bruno Haible  <bruno@clisp.org>
67355
67356         * gnulib-tool (func_ln): New function.
67357         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
67358
67359 2006-11-12  Bruno Haible  <bruno@clisp.org>
67360
67361         Finish support for source files in subdirectories.
67362         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
67363         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
67364         AUTOMAKE_OPTIONS.
67365         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
67366
67367 2006-11-12  Bruno Haible  <bruno@clisp.org>
67368
67369         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67370         EXTRA_lib_SOURCES augmentation.
67371         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
67372
67373 2006-11-12  Jim Meyering  <jim@meyering.net>
67374
67375         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
67376         file descriptors.  This also averts a failure on systems with
67377         native openat support when a traversed directory lacks "x" access.
67378         * lib/fts_.h: Include "i-ring.h"
67379         (struct FTS) [fts_fd_ring]: New member.
67380         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
67381         (FCHDIR): Add parentheses.
67382         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
67383         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
67384         When descending, rather than simply closing the previous
67385         fts_cwd_fd value, push that file descriptor onto the ring.
67386         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
67387         (fts_open): Initialize the new fd_ring member.
67388         (fts_close): Clear the ring.
67389         (fts_safe_changedir): When possible, use our new fd_ring to skip
67390         the diropen and fstat and dev/ino comparison that would normally
67391         accompany a virtual `chdir ("..")'.
67392
67393         * modules/fts (Depends-on): Add i-ring.
67394         * modules/i-ring: New module.
67395         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
67396         * m4/i-ring.m4: New file.
67397
67398 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67399
67400         * gnulib-tool (func_create_testdir): Fix replacement of
67401         `build-aux' in configure.ac.  Run autotools in gltests
67402         subdirectory.
67403         (func_create_testdir, func_create_megatestdir, test): There is
67404         no need for '--force' in most autotool invocations in a new
67405         tree.  Actually fail the whole test if any of the tools, or the
67406         configure or make stages fail.
67407
67408         Sync from Automake.
67409         * build-aux/gnupload: Revert last change.  Add pointer to upload
67410         instructions of the GNU Maintenance Instructions.
67411         Suggestion by Karl Berry.
67412
67413 2006-11-10  Jim Meyering  <jim@meyering.net>
67414
67415         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
67416
67417 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67418
67419         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
67420         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
67421         (bind_textdomain_codeset) [! ENABLE_NLS]:
67422         Evaluate all the arguments.  That way, callers get compatible behavior
67423         if the arguments have side effects.  Also, it avoids some GCC
67424         diagnostics in some cases; Joel E. Denny reported problems when Bison
67425         was configured with --enable-gcc-warnigs.
67426
67427 2006-11-10  Jim Meyering  <jim@meyering.net>
67428
67429         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
67430         relevant options in CFLAGS (like -O, -fno-inline) are taken into
67431         account.
67432
67433 2006-11-10  Jim Meyering  <jim@meyering.net>
67434
67435         * modules/inline: New file/module.
67436         * modules/xalloc (Files): Remove m4/inline.m4.
67437         (Depends-on): Add inline, instead.
67438         * modules/oset: Likewise.
67439         * modules/list: Likewise.
67440
67441 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67442
67443         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
67444         Problem reported by Matthew Woehlke.
67445
67446 2006-11-09  Bruno Haible  <bruno@clisp.org>
67447
67448         * lib/tempname.c (gen_tempname): Remove variant that invokes
67449         __gen_tempname.
67450         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
67451         __gen_tempname.
67452
67453 2006-11-08  Bruno Haible  <bruno@clisp.org>
67454
67455         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
67456         to 'yes' instead of 'cross-compiling'.
67457
67458 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
67459
67460         * lib/quotearg.h (quotearg_free): New decl.
67461         * lib/quotearg.c (quotearg_free): New function.
67462         (slot0, nslots, slotvec0, slotvec):
67463         Now file-scope so that quotearg_free can get at them.
67464
67465 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67466
67467         Sync from Automake.
67468         * build-aux/gnupload: Add missing 'gnu' to example URL.
67469         Report by Karl Berry.
67470
67471 2006-11-08  Bruno Haible  <bruno@clisp.org>
67472
67473         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
67474         Suggested by Paul Eggert.
67475
67476 2006-11-08  Jim Meyering  <jim@meyering.net>
67477
67478         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
67479         It's already included if !_LIBC.
67480         (fts_safe_changedir): Add a comment.
67481
67482 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67483
67484         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
67485         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
67486         Matthew Woehlke.
67487
67488         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
67489         definitions up, to avoid colliding with change below.
67490         (static_inline) [HAVE_INLINE]: New macro.
67491         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
67492         Provide extern decls when !HAVE_INLINE.  Do not define unless
67493         static_inline is defined, either by us or by xmalloc.c.  Use
67494         static_inline rather than static inline.
67495         (XCALLOC): Optimize sizeof(T) = 1 case.
67496         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
67497
67498 2006-11-07  Bruno Haible  <bruno@clisp.org>
67499
67500         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
67501         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
67502         AC_C_INLINE.
67503         * modules/xalloc (Files): Add m4/inline.m4.
67504
67505 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67506
67507         * README: Fix typo.
67508         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
67509         (Miscellanous Notes): ...from this.
67510
67511 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67512
67513         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
67514         Mention that offsetof should be used instead of sizeof.
67515         From Bruno Haible.
67516
67517 2006-11-07  Bruno Haible  <bruno@clisp.org>
67518
67519         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
67520
67521 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67522
67523         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67524         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
67525         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67526         (gl_tree_add_before, gl_tree_add_after):
67527         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
67528         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
67529         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67530         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
67531         (gl_linked_add_after, gl_linked_add_at): Likewise.
67532         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
67533         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67534         (gl_tree_add_before, gl_tree_add_after): Likewise.
67535         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
67536         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
67537         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
67538
67539 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67540
67541         * lib/gl_oset.h: Use C comment style, not C++ comment style.
67542
67543 2006-11-06  Bruno Haible  <bruno@clisp.org>
67544
67545         * m4/inline.m4: New file.
67546         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
67547         * modules/list (Files): Add m4/inline.m4.
67548         * modules/oset (Files): Likewise.
67549
67550 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67551
67552         * lib/idcache.c: Include <stddef.h>, for offsetof.
67553         (struct userid.name): Change from char * to a flexible array member.
67554         All uses changed.
67555         * modules/idcache (Depends-on): Add flexmember.
67556
67557         * MODULES.html.sh (Core language properties): New module flexmember.
67558         * modules/flexmember, m4/flexmember.m4: New files.
67559
67560         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
67561         inline functions that are identical with the old xnmalloc_inline,
67562         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
67563         that we can avoid some unnecessary integer multiplications and
67564         divisions in the common case where the element size is known at
67565         compile time.
67566         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
67567         needed.
67568         (xnboundedmalloc): Remove.
67569         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
67570         arguments, for consistency with rest of this header.
67571         (xcharalloc): Rewrite using XNMALLOC.
67572         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
67573         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
67574         versions have been moved to lib/xalloc.h and renamed to be the
67575         non-*_inline versions.
67576         (xmalloc, xrealloc): Implement without reference to the xnmalloc
67577         and xnrealloc functions, since those functions are now inline and
67578         now call us.
67579         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
67580         renaming described above.
67581         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
67582         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
67583         captures the dependency in AC_C_INLINE.
67584
67585         New module canonicalize-lgpl, proposed by Charles Wilson in
67586         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
67587         with a few small changes afterwards.
67588         * MODULES.html.sh (File system functions): New module
67589         canonicalize-lgpl.
67590         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
67591         and canonicalize_file_name.
67592         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
67593         * modules/canonicalize-lgpl: New files.
67594
67595 2006-11-05  Bruno Haible  <bruno@clisp.org>
67596
67597         * gnulib-tool (func_import, func_create_testdir): Create directories
67598         also for files in subdirectories of lib/.
67599
67600 2006-11-05  Bruno Haible  <bruno@clisp.org>
67601
67602         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
67603         ANSI C compliant.
67604
67605 2006-11-03  Bruno Haible  <bruno@clisp.org>
67606
67607         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67608         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
67609         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
67610         (xnboundedmalloc): New inline function.
67611         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
67612         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
67613         xmalloc.
67614         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
67615         xmalloc.
67616         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
67617         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
67618         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
67619         xmalloc.
67620         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67621         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
67622         xmalloc.
67623         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
67624         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67625         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
67626         xmalloc.
67627         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67628         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
67629         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67630         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
67631         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
67632         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
67633         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
67634
67635 2006-11-03  Bruno Haible  <bruno@clisp.org>
67636
67637         * lib/c-ctype.h [C++]: Define functions without name mangling.
67638         * lib/fwriteerror.h [C++]: Likewise.
67639         * lib/gcd.h [C++]: Likewise.
67640         * lib/linebreak.h [C++]: Likewise.
67641
67642 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67643
67644         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
67645         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
67646         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
67647         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67648         Check for functions and headers just once.
67649         Check for declaration of canonicalize_file_name.
67650         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
67651
67652 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67653
67654         * gnulib-tool (func_import): Fix typo in actioncmd.
67655
67656 2006-11-02  Bruno Haible  <bruno@clisp.org>
67657
67658         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
67659         newline sequence in the Makefile.am snippet as a space, like "make"
67660         does.
67661         Reported by Roger Persson <perrog@gmail.com>.
67662
67663 2006-11-01  Bruno Haible  <bruno@clisp.org>
67664
67665         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
67666         already declared in <string.h>.
67667         * lib/strcase.h (strncasecmp): Don't declare it if yes.
67668
67669 2006-11-01  Bruno Haible  <bruno@clisp.org>
67670
67671         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
67672         * lib/strcase.h: Include <string.h>.
67673         (strcasecmp): Define to rpl_strcasecmp here.
67674
67675 2006-11-01  Bruno Haible  <bruno@clisp.org>
67676
67677         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
67678
67679 2006-11-01  Eric Blake  <ebb9@byu.net>
67680
67681         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
67682
67683         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
67684
67685 2006-10-29  Bruno Haible  <bruno@clisp.org>
67686
67687         Make it compile in C++ mode.
67688         * lib/full-write.c (full_rw): Add a cast.
67689
67690 2006-11-01  Bruno Haible  <bruno@clisp.org>
67691
67692         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
67693         be POSIX compliant.
67694         Reported by Roger Persson <perrog@gmail.com>.
67695
67696 2006-11-01  Eric Blake  <ebb9@byu.net>
67697
67698         * lib/getopt_.h: Fix comments.
67699
67700 2006-10-31  Eric Blake  <ebb9@byu.net>
67701
67702         * modules/tmpdir (Depends-on): Add sys_stat.
67703         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
67704         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
67705         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
67706         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
67707         tempname.
67708
67709 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
67710
67711         Avoid some C++ diagnostics reported by Bruno Haible.
67712         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
67713         xmalloc.
67714         (quotearg_alloc): Use xcharalloc rather than xmalloc.
67715         (struct slotvec): Move to top level.
67716         (quotearg_n_options): Rewrite to avoid xmalloc.
67717         * lib/xalloc.h (xcharalloc): New function.
67718         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
67719         [defined __cplusplus]: Add function template that provides result
67720         type propagation.  This part of the change is from Bruno Haible.
67721
67722 2006-10-29  Bruno Haible  <bruno@clisp.org>
67723
67724         Make it compile in C++ mode.
67725         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
67726         * lib/strnlen1.c (strnlen1): Cast memchr result.
67727         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
67728         * lib/clean-temp.c (string_equals, string_hash): Add casts.
67729         (create_temp_dir): Rename local variable 'template'.
67730         (compile_csharp_using_sscli): Add cast.
67731         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
67732         * lib/findprog.c (find_in_path): Likewise.
67733         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
67734         * lib/wait-process.c (register_slave_subprocess): Likewise.
67735
67736 2006-10-22  Bruno Haible  <bruno@clisp.org>
67737
67738         * modules/tsearch: New file.
67739         * lib/tsearch.h: New file.
67740         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
67741         * m4/tsearch.m4: New file.
67742         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
67743
67744 2006-10-29  Eric Blake  <ebb9@byu.net>
67745
67746         * lib/arcfour.c: Assume config.h.
67747         * lib/arctwo.c: Likewise.
67748         * lib/base64.c: Likewise.
67749         * lib/check-version.c: Likewise.
67750         * lib/crc.c: Likewise.
67751         * lib/des.c: Likewise.
67752         * lib/gc-gnulib.c: Likewise.
67753         * lib/gc-libgcrypt.c: Likewise.
67754         * lib/gc-pbkdf2-sha1.c: Likewise.
67755         * lib/getaddrinfo.c: Likewise.
67756         * lib/getdelim.c: Likewise.
67757         * lib/getline.c: Likewise.
67758         * lib/hmac-md5.c: Likewise.
67759         * lib/hmac-sha1.c: Likewise.
67760         * lib/iconvme.c: Likewise.
67761         * lib/md2.c: Likewise.
67762         * lib/md4.c: Likewise.
67763         * lib/memxor.c: Likewise.
67764         * lib/read-file.c: Likewise.
67765         * lib/readline.c: Likewise.
67766         * lib/rijndael-alg-fst.c: Likewise.
67767         * lib/rijndael-api-fst.c: Likewise.
67768         * lib/xgetdomainname.c: Likewise.
67769
67770 2006-10-28  Eric Blake  <ebb9@byu.net>
67771
67772         * lib/xstrndup.c: Assume config.h.
67773
67774 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67775
67776         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
67777         stat-macros.h is now for our own macros, whereas stat_h is for
67778         macros in the <sys/stat.h> name space.
67779         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
67780         (STAT_MACROS_H): Remove.
67781         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
67782         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
67783         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
67784         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
67785         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
67786         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
67787         Move these macros to ...
67788         * lib/stat_.h: here.  Don't include stat-macros.h.
67789         * lib/canonicalize.c: Don't include stat-macros.h.
67790         * lib/chown.c: Likewise.
67791         * lib/euidaccess.c: Likewise.
67792         * lib/file-type.c: Likewise.
67793         * lib/filemode.c: Likewise.
67794         * lib/glob.c: Likewise.
67795         * lib/isapipe.c: Likewise.
67796         * lib/lchown.c: Likewise.
67797         * lib/lstat.c: Likewise.
67798         * lib/mkdir-p.c: Likewise.
67799         * lib/rmdir.c: Likewise.
67800         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
67801         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
67802         unless mkdir isn't declared, to speed up 'configure'.
67803         Always create sys/stat.h, since it's unlikely any real sys/stat.h
67804         would define all the S_* symbols.
67805         * modules/canonicalize (Depends-on):
67806         Depend on sys_stat, not stat-macros.
67807         * modules/chown: Likewise.
67808         * modules/euidaccess: Likewise.
67809         * modules/filemode: Likewise.
67810         * modules/file-type: Likewise.
67811         * modules/glob: Likewise.
67812         * modules/isapipe: Likewise.
67813         * modules/lchown: Likewise.
67814         * modules/lstat: Likewise.
67815         * modules/mkancesdirs: Likewise.
67816         * modules/rmdir: Likewise.
67817         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
67818         * modules/modechange: Likewise.
67819         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
67820         (configure.ac): Remove gl_STAT_MACROS.
67821         * modules/sys_stat (Depends-on): Remove stat-macros.
67822
67823 2006-10-27  Bruno Haible  <bruno@clisp.org>
67824
67825         * m4/signed.m4: Remove file.
67826         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
67827         invocation.
67828         * modules/vasnprintf (Files): Remove m4/signed.m4.
67829
67830 2006-10-27  Bruno Haible  <bruno@clisp.org>
67831
67832         Update to GNU gettext 0.16.
67833         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
67834         m4/inttypes-h.m4, m4/signed.m4.
67835         * m4/gettext.m4: Update to GNU gettext 0.16.
67836         * m4/intl.m4: New file, from GNU gettext.
67837         * m4/intldir.m4: New file, from GNU gettext.
67838         * config/srclist.txt: Update
67839
67840 2006-10-27  Eric Blake  <ebb9@byu.net>
67841
67842         * MODULES.html.sh: Document tempname.
67843         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
67844         dependencies.
67845         (Files): Move lib/tempname.c...
67846         * modules/tempname: ...to this new module.
67847         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
67848         (gl_PREREQ_TEMPNAME): Move...
67849         * m4/tempname.m4: ...to this new file.
67850         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
67851         * modules/sys_stat (Depends-on): Add stat-macros.
67852         * lib/stat_.h (includes): Pick up stat macros.
67853         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
67854         if stat macros are broken.
67855         * lib/tempname.c (includes): No need to include "stat-macros.h".
67856         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
67857         (direxists, __path_search) [!_LIBC]: Don't compile these in
67858         gnulib; the tmpdir module covers that.
67859         * lib/tempname.h: New file.
67860
67861 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
67862
67863         * COPYING: Explain how gnulib-tool converts licence headers.
67864         Almost all wording by Eric Blake.
67865
67866 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
67867
67868         * lib/mbchar.h (is_basic_table): Make read-only.
67869         * lib/mbchar.c (is_basic_table): Likewise.
67870         Reported by John Darrington.
67871
67872 2006-10-25  Bruno Haible  <bruno@clisp.org>
67873
67874         * lib/progname.h (set_program_name): Undefine before defining.
67875
67876 2006-10-25  Bruno Haible  <bruno@clisp.org>
67877
67878         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
67879         false for non-gcc C++ compilers.
67880         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
67881
67882 2006-10-24  Bruno Haible  <bruno@clisp.org>
67883
67884         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
67885         iconv implementations like Irix iconv.
67886
67887 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67888
67889         * modules/vararrays: New file.
67890         * m4/vararrays.m4: New file, taken from diffutils.
67891         * MODULES.html.sh: New module vararrays.
67892
67893 2006-10-24  Karl Berry  <karl@gnu.org>
67894
67895         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
67896         Don't call GNU Unix.
67897
67898 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67899
67900         * users.txt: Add Libtool.
67901
67902         Sync from Libtool:
67903
67904         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67905
67906         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
67907         to gnulib's policy of including config.h unconditionally.
67908
67909 2006-10-24  Bruno Haible  <bruno@clisp.org>
67910
67911         * modules/wcwidth (Files): Add m4/wint_t.m4.
67912         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
67913         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
67914
67915 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67916
67917         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
67918         to pacify GCC with some -W flags enabled.  Problem reported by
67919         Bruno Haible.
67920
67921 2006-10-24  Jim Meyering  <jim@meyering.net>
67922
67923         * MODULES.html.sh: Remove uinttostr.  It's not a module.
67924         Reported by Karl Berry.
67925
67926 2006-10-23  Bruno Haible  <bruno@clisp.org>
67927
67928         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
67929
67930 2006-10-24  Bruno Haible  <bruno@clisp.org>
67931
67932         * lib/gl_list.h: Use C comment style, not C++ comment style.
67933
67934 2006-10-23  Eric Blake  <ebb9@byu.net>
67935
67936         * lib/getaddrinfo.c (includes): Add missing include.
67937
67938 2006-10-23  Bruno Haible  <bruno@clisp.org>
67939             Paul Eggert  <eggert@cs.ucla.edu>
67940
67941         Ability to rename obstack_free.
67942         * lib/obstack.h (__obstack_free): New macro. Declare instead of
67943         obstack_free.
67944         (obstack_free): Invoke the __obstack_free macro.
67945         * lib/obstack.c (obstack_free): Use __obstack_free macro.
67946
67947 2006-10-23  Bruno Haible  <bruno@clisp.org>
67948             Paul Eggert  <eggert@cs.ucla.edu>
67949
67950         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
67951         __argc, __argv from the declaration. (They are defined as macros on
67952         mingw.)
67953
67954 2006-10-22  Bruno Haible  <bruno@clisp.org>
67955
67956         * doc/gnulib-intro.texi: New file.
67957         * doc/gnulib.texi: Include it.
67958
67959 2006-10-21  Bruno Haible  <bruno@clisp.org>
67960
67961         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
67962         "Introduction", "Miscellanous Notes", "Particular Modules".
67963
67964 2006-10-21  Bruno Haible  <bruno@clisp.org>
67965
67966         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67967         Change mostlyclean-local rule to avoid sh syntax error from bash
67968         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
67969
67970 2006-10-23  Jim Meyering  <jim@meyering.net>
67971
67972         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
67973         in place of snprintf.
67974
67975         * modules/inttostr (Files): Add lib/uinttostr.c.
67976         * lib/uinttostr.c (inttostr): New file/function.
67977         * lib/inttostr.h (uinttostr): Declare.
67978         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
67979         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67980         Add uinttostr.
67981         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
67982
67983 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67984
67985         * lib/canonicalize.c (ELOOP): Define if not already defined.
67986         Problem reported by Bruno Haible in
67987         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
67988
67989 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67990
67991         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
67992         Problem reported by Perry Smith and Ville Laurikari.
67993
67994         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
67995         uses.
67996
67997 2006-10-19  Bruno Haible  <bruno@clisp.org>
67998
67999         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
68000         for mingw.
68001
68002 2006-10-19  Bruno Haible  <bruno@clisp.org>
68003
68004         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
68005         Needed for mingw.
68006
68007 2006-10-19  Bruno Haible  <bruno@clisp.org>
68008
68009         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
68010
68011 2006-10-19  Bruno Haible  <bruno@clisp.org>
68012
68013         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
68014         it.
68015
68016 2006-10-19  Bruno Haible  <bruno@clisp.org>
68017
68018         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
68019         invocation.
68020
68021 2006-10-19  Bruno Haible  <bruno@clisp.org>
68022
68023         * gnulib-tool (func_create_testdir): Don't include ftruncate and
68024         mountlist by default.
68025
68026 2006-10-16  Bruno Haible  <bruno@clisp.org>
68027
68028         * lib/c-strstr.c: Include c-strstr.h.
68029
68030 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68031
68032         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
68033         in a slash.
68034
68035 2006-10-18  Bruno Haible  <bruno@clisp.org>
68036
68037         * lib/lock.h [C++]: Wrap definitions in extern "C".
68038
68039 2006-10-18  Bruno Haible  <bruno@clisp.org>
68040
68041         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
68042         gl_LIBOBJS list.
68043
68044 2006-10-18  Bruno Haible  <bruno@clisp.org>
68045
68046         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
68047
68048 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
68049
68050         * lib/xstrtol.h: Include gettext.h.
68051         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
68052         Problem reported by Eric Blake.
68053         * modules/xstrtol (Depends-on): Add gettext-h.
68054
68055 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
68056
68057         * lib/strftime.c (advance): New macro.
68058         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
68059         incomplete type, so you can't add 0 to it.  Problem and patch
68060         reported by Eelco Dolstra for dietlibc.
68061
68062 2006-10-18  Jim Meyering  <jim@meyering.net>
68063
68064         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
68065         type for a local, and rename it: s/up/user_proc/.
68066
68067 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
68068
68069         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
68070         READ_UTMP_USER_PROCESS.
68071         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
68072
68073 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
68074
68075         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
68076         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
68077
68078 2006-10-17  Eric Blake  <ebb9@byu.net>
68079
68080         * lib/sigprocmask.c (sigprocmask): Fix typo.
68081
68082         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
68083
68084         * modules/clean-temp (Makefile.am): Don't add to make output...
68085         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
68086         config.h.
68087
68088 2006-10-17  Bruno Haible  <bruno@clisp.org>
68089
68090         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
68091         differently if DEFAULT_TEXT_DOMAIN is set.
68092
68093 2006-10-16  Bruno Haible  <bruno@clisp.org>
68094
68095         * lib/clean-temp.c: Include fwriteerror.h.
68096
68097 2006-10-16  Bruno Haible  <bruno@clisp.org>
68098
68099         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
68100
68101 2006-10-16  Bruno Haible  <bruno@clisp.org>
68102
68103         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
68104         * lib/sigprocmask.h: Include <sys/types.h>.
68105         (sigset_t): Use the system's definition if present.
68106
68107 2006-10-17  Eric Blake  <ebb9@byu.net>
68108
68109         * lib/xvasprintf.c (includes): Assume config.h.
68110         * lib/xasprintf.c (includes): Likewise.
68111
68112 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
68113
68114         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
68115         at least as wide as intmax_t.
68116
68117 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
68118
68119         (Imported from Automake.)
68120         * build-aux/gnupload: Update to version 1.1 of directive file.
68121
68122 2006-10-16  Eric Blake  <ebb9@byu.net>
68123
68124         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
68125         match Automake 1.10a.
68126
68127 2006-10-14  Bruno Haible  <bruno@clisp.org>
68128
68129         * modules/sigprocmask: New file.
68130         * lib/sigprocmask.h: New file.
68131         * lib/sigprocmask.c: New file.
68132         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
68133         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
68134         request sigprocmask.o.
68135         (gl_PREREQ_SIGPROCMASK): New macro.
68136         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
68137         (Depends-on): Add sigprocmask.
68138         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
68139         gt_SIGNALBLOCKING. Test for 'raise' only once.
68140         * lib/fatal-signal.c: Include sigprocmask.h.
68141         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
68142         unblock_fatal_signals): Define always.
68143         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68144         sigprocmask.
68145
68146 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68147
68148         Sync from Automake.
68149         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
68150         which incorrectly sets the mode of an existing destination
68151         directory.  In some cases the unpatched install-sh could do the
68152         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
68153         system.  We hope this is rare in practice, but it's clearly worth
68154         fixing.  Problem reported by Alex Unleashed in
68155         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
68156         Also, don't bother to check for -m bugs unless we're using -m;
68157         suggested by Stepan Kasal.
68158
68159 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68160
68161         Sync from Automake.
68162         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
68163         `-c' flag, so they appear at the same position as in %FASTDEP%
68164         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
68165         which ignores unknown options only after the first non-option.
68166         Bug report against M4 by Nelson H. F. Beebe.
68167
68168 2006-10-13  Jim Meyering  <jim@meyering.net>
68169
68170         Fix a bug in yesterday's change.
68171         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
68172         p->fts_statp->st_dev would be used uninitialized.
68173         Ensures that we always call fts_stat on the very first entry.
68174         Miklos Szeredi reported that find -xdev stopped working.
68175
68176 2006-10-12  Bruno Haible  <bruno@clisp.org>
68177
68178         * gnulib-tool (func_get_automake_snippet): Append an automatically
68179         computed EXTRA_DIST augmentation.
68180         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
68181         * modules/alloca-opt (Makefile.am): Likewise.
68182         * modules/allocsa (Makefile.am): Likewise.
68183         * modules/arcfour (Makefile.am): Likewise.
68184         * modules/arctwo (Makefile.am): Likewise.
68185         * modules/argmatch (Makefile.am): Likewise.
68186         * modules/argz (Makefile.am): Likewise.
68187         * modules/atexit (Makefile.am): Likewise.
68188         * modules/backupfile (Makefile.am): Likewise.
68189         * modules/byteswap (Makefile.am): Likewise.
68190         * modules/c-strtod (Makefile.am): Likewise.
68191         * modules/c-strtold (Makefile.am): Likewise.
68192         * modules/calloc (Makefile.am): Likewise.
68193         * modules/canon-host (Makefile.am): Likewise.
68194         * modules/canonicalize (Makefile.am): Likewise.
68195         * modules/chdir-long (Makefile.am): Likewise.
68196         * modules/chdir-safer (Makefile.am): Likewise.
68197         * modules/check-version (Makefile.am): Likewise.
68198         * modules/chown (Makefile.am): Likewise.
68199         * modules/cloexec (Makefile.am): Likewise.
68200         * modules/close-stream (Makefile.am): Likewise.
68201         * modules/closeout (Makefile.am): Likewise.
68202         * modules/crc (Makefile.am): Likewise.
68203         * modules/csharpexec (Makefile.am): Likewise.
68204         * modules/cycle-check (Makefile.am): Likewise.
68205         * modules/des (Makefile.am): Likewise.
68206         * modules/dev-ino (Makefile.am): Likewise.
68207         * modules/dirfd (Makefile.am): Likewise.
68208         * modules/dirname (Makefile.am): Likewise.
68209         * modules/dup2 (Makefile.am): Likewise.
68210         * modules/eealloc (Makefile.am): Likewise.
68211         * modules/error (Makefile.am): Likewise.
68212         * modules/euidaccess (Makefile.am): Likewise.
68213         * modules/exclude (Makefile.am): Likewise.
68214         * modules/exitfail (Makefile.am): Likewise.
68215         * modules/fcntl-safer (Makefile.am): Likewise.
68216         * modules/fcntl (Makefile.am): Likewise.
68217         * modules/file-type (Makefile.am): Likewise.
68218         * modules/fileblocks (Makefile.am): Likewise.
68219         * modules/filemode (Makefile.am): Likewise.
68220         * modules/filenamecat (Makefile.am): Likewise.
68221         * modules/fnmatch (Makefile.am): Likewise.
68222         * modules/fopen-safer (Makefile.am): Likewise.
68223         * modules/fpending (Makefile.am): Likewise.
68224         * modules/fprintftime (Makefile.am): Likewise.
68225         * modules/free (Makefile.am): Likewise.
68226         * modules/fsusage (Makefile.am): Likewise.
68227         * modules/ftruncate (Makefile.am): Likewise.
68228         * modules/fts (Makefile.am): Likewise.
68229         * modules/gc-arcfour (Makefile.am): Likewise.
68230         * modules/gc-des (Makefile.am): Likewise.
68231         * modules/gc-hmac-md5 (Makefile.am): Likewise.
68232         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
68233         * modules/gc-md4 (Makefile.am): Likewise.
68234         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68235         * modules/gc-sha1 (Makefile.am): Likewise.
68236         * modules/gc (Makefile.am): Likewise.
68237         * modules/getaddrinfo (Makefile.am): Likewise.
68238         * modules/getcwd (Makefile.am): Likewise.
68239         * modules/getdelim (Makefile.am): Likewise.
68240         * modules/getdomainname (Makefile.am): Likewise.
68241         * modules/getgroups (Makefile.am): Likewise.
68242         * modules/gethostname (Makefile.am): Likewise.
68243         * modules/gethrxtime (Makefile.am): Likewise.
68244         * modules/getline (Makefile.am): Likewise.
68245         * modules/getloadavg (Makefile.am): Likewise.
68246         * modules/getlogin_r (Makefile.am): Likewise.
68247         * modules/getndelim2 (Makefile.am): Likewise.
68248         * modules/getopt (Makefile.am): Likewise.
68249         * modules/getpagesize (Makefile.am): Likewise.
68250         * modules/getpass-gnu (Makefile.am): Likewise.
68251         * modules/getpass (Makefile.am): Likewise.
68252         * modules/getsubopt (Makefile.am): Likewise.
68253         * modules/gettime (Makefile.am): Likewise.
68254         * modules/gettimeofday (Makefile.am): Likewise.
68255         * modules/getugroups (Makefile.am): Likewise.
68256         * modules/getusershell (Makefile.am): Likewise.
68257         * modules/glob (Makefile.am): Likewise.
68258         * modules/group-member (Makefile.am): Likewise.
68259         * modules/hard-locale (Makefile.am): Likewise.
68260         * modules/hash (Makefile.am): Likewise.
68261         * modules/hmac-md5 (Makefile.am): Likewise.
68262         * modules/hmac-sha1 (Makefile.am): Likewise.
68263         * modules/human (Makefile.am): Likewise.
68264         * modules/idcache (Makefile.am): Likewise.
68265         * modules/imaxabs (Makefile.am): Likewise.
68266         * modules/imaxdiv (Makefile.am): Likewise.
68267         * modules/inet_ntop (Makefile.am): Likewise.
68268         * modules/inet_pton (Makefile.am): Likewise.
68269         * modules/intprops (Makefile.am): Likewise.
68270         * modules/inttostr (Makefile.am): Likewise.
68271         * modules/inttypes (Makefile.am): Likewise.
68272         * modules/isapipe (Makefile.am): Likewise.
68273         * modules/javaversion (Makefile.am): Likewise.
68274         * modules/lchmod (Makefile.am): Likewise.
68275         * modules/lchown (Makefile.am): Likewise.
68276         * modules/localcharset (Makefile.am): Likewise.
68277         * modules/long-options (Makefile.am): Likewise.
68278         * modules/lstat (Makefile.am): Likewise.
68279         * modules/malloc (Makefile.am): Likewise.
68280         * modules/mathl (Makefile.am): Likewise.
68281         * modules/mbchar (Makefile.am): Likewise.
68282         * modules/md2 (Makefile.am): Likewise.
68283         * modules/md4 (Makefile.am): Likewise.
68284         * modules/md5 (Makefile.am): Likewise.
68285         * modules/memcasecmp (Makefile.am): Likewise.
68286         * modules/memchr (Makefile.am): Likewise.
68287         * modules/memcmp (Makefile.am): Likewise.
68288         * modules/memcoll (Makefile.am): Likewise.
68289         * modules/memcpy (Makefile.am): Likewise.
68290         * modules/memmem (Makefile.am): Likewise.
68291         * modules/memmove (Makefile.am): Likewise.
68292         * modules/mempcpy (Makefile.am): Likewise.
68293         * modules/memrchr (Makefile.am): Likewise.
68294         * modules/memset (Makefile.am): Likewise.
68295         * modules/memxor (Makefile.am): Likewise.
68296         * modules/mkancesdirs (Makefile.am): Likewise.
68297         * modules/mkdir-p (Makefile.am): Likewise.
68298         * modules/mkdir (Makefile.am): Likewise.
68299         * modules/mkdtemp (Makefile.am): Likewise.
68300         * modules/mkstemp (Makefile.am): Likewise.
68301         * modules/mktime (Makefile.am): Likewise.
68302         * modules/modechange (Makefile.am): Likewise.
68303         * modules/mountlist (Makefile.am): Likewise.
68304         * modules/nanosleep (Makefile.am): Likewise.
68305         * modules/obstack (Makefile.am): Likewise.
68306         * modules/openat (Makefile.am): Likewise.
68307         * modules/pagealign_alloc (Makefile.am): Likewise.
68308         * modules/pathmax (Makefile.am): Likewise.
68309         * modules/physmem (Makefile.am): Likewise.
68310         * modules/poll (Makefile.am): Likewise.
68311         * modules/posixtm (Makefile.am): Likewise.
68312         * modules/posixver (Makefile.am): Likewise.
68313         * modules/putenv (Makefile.am): Likewise.
68314         * modules/quote (Makefile.am): Likewise.
68315         * modules/quotearg (Makefile.am): Likewise.
68316         * modules/raise (Makefile.am): Likewise.
68317         * modules/read-file (Makefile.am): Likewise.
68318         * modules/readline (Makefile.am): Likewise.
68319         * modules/readlink (Makefile.am): Likewise.
68320         * modules/readtokens (Makefile.am): Likewise.
68321         * modules/readutmp (Makefile.am): Likewise.
68322         * modules/realloc (Makefile.am): Likewise.
68323         * modules/regex (Makefile.am): Likewise.
68324         * modules/rename-dest-slash (Makefile.am): Likewise.
68325         * modules/rename (Makefile.am): Likewise.
68326         * modules/rijndael (Makefile.am): Likewise.
68327         * modules/rmdir (Makefile.am): Likewise.
68328         * modules/rpmatch (Makefile.am): Likewise.
68329         * modules/safe-read (Makefile.am): Likewise.
68330         * modules/safe-write (Makefile.am): Likewise.
68331         * modules/same-inode (Makefile.am): Likewise.
68332         * modules/same (Makefile.am): Likewise.
68333         * modules/save-cwd (Makefile.am): Likewise.
68334         * modules/savedir (Makefile.am): Likewise.
68335         * modules/setenv (Makefile.am): Likewise.
68336         * modules/settime (Makefile.am): Likewise.
68337         * modules/sha1 (Makefile.am): Likewise.
68338         * modules/sig2str (Makefile.am): Likewise.
68339         * modules/snprintf (Makefile.am): Likewise.
68340         * modules/stat-macros (Makefile.am): Likewise.
68341         * modules/stat-time (Makefile.am): Likewise.
68342         * modules/stdbool (Makefile.am): Likewise.
68343         * modules/stdint (Makefile.am): Likewise.
68344         * modules/stdlib-safer (Makefile.am): Likewise.
68345         * modules/stpcpy (Makefile.am): Likewise.
68346         * modules/stpncpy (Makefile.am): Likewise.
68347         * modules/strcase (Makefile.am): Likewise.
68348         * modules/strcasestr (Makefile.am): Likewise.
68349         * modules/strchrnul (Makefile.am): Likewise.
68350         * modules/strcspn (Makefile.am): Likewise.
68351         * modules/strdup (Makefile.am): Likewise.
68352         * modules/strerror (Makefile.am): Likewise.
68353         * modules/strftime (Makefile.am): Likewise.
68354         * modules/strndup (Makefile.am): Likewise.
68355         * modules/strnlen (Makefile.am): Likewise.
68356         * modules/strpbrk (Makefile.am): Likewise.
68357         * modules/strsep (Makefile.am): Likewise.
68358         * modules/strstr (Makefile.am): Likewise.
68359         * modules/strtod (Makefile.am): Likewise.
68360         * modules/strtoimax (Makefile.am): Likewise.
68361         * modules/strtok_r (Makefile.am): Likewise.
68362         * modules/strtol (Makefile.am): Likewise.
68363         * modules/strtoll (Makefile.am): Likewise.
68364         * modules/strtoul (Makefile.am): Likewise.
68365         * modules/strtoull (Makefile.am): Likewise.
68366         * modules/strtoumax (Makefile.am): Likewise.
68367         * modules/strverscmp (Makefile.am): Likewise.
68368         * modules/sys_socket (Makefile.am): Likewise.
68369         * modules/sys_stat (Makefile.am): Likewise.
68370         * modules/sysexits (Makefile.am): Likewise.
68371         * modules/time_r (Makefile.am): Likewise.
68372         * modules/timegm (Makefile.am): Likewise.
68373         * modules/timespec (Makefile.am): Likewise.
68374         * modules/tmpfile-safer (Makefile.am): Likewise.
68375         * modules/trim (Makefile.am): Likewise.
68376         * modules/unistd-safer (Makefile.am): Likewise.
68377         * modules/unlinkdir (Makefile.am): Likewise.
68378         * modules/unlocked-io (Makefile.am): Likewise.
68379         * modules/userspec (Makefile.am): Likewise.
68380         * modules/utime (Makefile.am): Likewise.
68381         * modules/utimecmp (Makefile.am): Likewise.
68382         * modules/utimens (Makefile.am): Likewise.
68383         * modules/vasnprintf (Makefile.am): Likewise.
68384         * modules/vasprintf (Makefile.am): Likewise.
68385         * modules/vsnprintf (Makefile.am): Likewise.
68386         * modules/xalloc (Makefile.am): Likewise.
68387         * modules/xgetcwd (Makefile.am): Likewise.
68388         * modules/xnanosleep (Makefile.am): Likewise.
68389         * modules/xreadlink (Makefile.am): Likewise.
68390         * modules/xstrtod (Makefile.am): Likewise.
68391         * modules/xstrtol (Makefile.am): Likewise.
68392         * modules/xstrtold (Makefile.am): Likewise.
68393         * modules/yesno (Makefile.am): Likewise.
68394         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
68395
68396 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68397
68398         * modules/error (Makefile.am): Distribute files through
68399         EXTRA_DIST, not lib_SOURCES.
68400
68401 2006-10-12  Eric Blake  <ebb9@byu.net>
68402
68403         * modules/error (Makefile.am): Distribute files in /lib.
68404         * modules/obstack (Makefile.am): Likewise.
68405
68406 2006-10-12  Bruno Haible  <bruno@clisp.org>
68407
68408         * modules/acl (Makefile.am): Distribute all files in lib/ through
68409         EXTRA_DIST.
68410         * modules/arcfour (Makefile.am): Likewise.
68411         * modules/arctwo (Makefile.am): Likewise.
68412         * modules/argmatch (Makefile.am): Likewise.
68413         * modules/argz (Makefile.am): Likewise.
68414         * modules/atexit (Makefile.am): Likewise.
68415         * modules/backupfile (Makefile.am): Likewise.
68416         * modules/c-strtod (Makefile.am): Likewise.
68417         * modules/c-strtold (Makefile.am): Likewise.
68418         * modules/calloc (Makefile.am): Likewise.
68419         * modules/canon-host (Makefile.am): Likewise.
68420         * modules/canonicalize (Makefile.am): Likewise.
68421         * modules/chdir-long (Makefile.am): Likewise.
68422         * modules/chdir-safer (Makefile.am): Likewise.
68423         * modules/check-version (Makefile.am): Likewise.
68424         * modules/chown (Makefile.am): Likewise.
68425         * modules/cloexec (Makefile.am): Likewise.
68426         * modules/close-stream (Makefile.am): Likewise.
68427         * modules/closeout (Makefile.am): Likewise.
68428         * modules/crc (Makefile.am): Likewise.
68429         * modules/cycle-check (Makefile.am): Likewise.
68430         * modules/des (Makefile.am): Likewise.
68431         * modules/dirfd (Makefile.am): Likewise.
68432         * modules/dirname (Makefile.am): Likewise.
68433         * modules/dup2 (Makefile.am): Likewise.
68434         * modules/euidaccess (Makefile.am): Likewise.
68435         * modules/exclude (Makefile.am): Likewise.
68436         * modules/exitfail (Makefile.am): Likewise.
68437         * modules/fcntl-safer (Makefile.am): Likewise.
68438         * modules/file-type (Makefile.am): Likewise.
68439         * modules/fileblocks (Makefile.am): Likewise.
68440         * modules/filemode (Makefile.am): Likewise.
68441         * modules/filenamecat (Makefile.am): Likewise.
68442         * modules/fnmatch (Makefile.am): Likewise.
68443         * modules/fopen-safer (Makefile.am): Likewise.
68444         * modules/fpending (Makefile.am): Likewise.
68445         * modules/fprintftime (Makefile.am): Likewise.
68446         * modules/free (Makefile.am): Likewise.
68447         * modules/fsusage (Makefile.am): Likewise.
68448         * modules/ftruncate (Makefile.am): Likewise.
68449         * modules/fts (Makefile.am): Likewise.
68450         * modules/gc (Makefile.am): Likewise.
68451         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68452         * modules/getaddrinfo (Makefile.am): Likewise.
68453         * modules/getcwd (Makefile.am): Likewise.
68454         * modules/getdelim (Makefile.am): Likewise.
68455         * modules/getdomainname (Makefile.am): Likewise.
68456         * modules/getgroups (Makefile.am): Likewise.
68457         * modules/gethostname (Makefile.am): Likewise.
68458         * modules/gethrxtime (Makefile.am): Likewise.
68459         * modules/getline (Makefile.am): Likewise.
68460         * modules/getloadavg (Makefile.am): Likewise.
68461         * modules/getlogin_r (Makefile.am): Likewise.
68462         * modules/getopt (Makefile.am): Likewise.
68463         * modules/getpass (Makefile.am): Likewise.
68464         * modules/getpass-gnu (Makefile.am): Likewise.
68465         * modules/getsubopt (Makefile.am): Likewise.
68466         * modules/gettime (Makefile.am): Likewise.
68467         * modules/gettimeofday (Makefile.am): Likewise.
68468         * modules/getugroups (Makefile.am): Likewise.
68469         * modules/getusershell (Makefile.am): Likewise.
68470         * modules/glob (Makefile.am): Likewise.
68471         * modules/group-member (Makefile.am): Likewise.
68472         * modules/hard-locale (Makefile.am): Likewise.
68473         * modules/hash (Makefile.am): Likewise.
68474         * modules/hmac-md5 (Makefile.am): Likewise.
68475         * modules/hmac-sha1 (Makefile.am): Likewise.
68476         * modules/human (Makefile.am): Likewise.
68477         * modules/idcache (Makefile.am): Likewise.
68478         * modules/imaxabs (Makefile.am): Likewise.
68479         * modules/imaxdiv (Makefile.am): Likewise.
68480         * modules/inet_ntop (Makefile.am): Likewise.
68481         * modules/inet_pton (Makefile.am): Likewise.
68482         * modules/inttostr (Makefile.am): Likewise.
68483         * modules/isapipe (Makefile.am): Likewise.
68484         * modules/lchown (Makefile.am): Likewise.
68485         * modules/long-options (Makefile.am): Likewise.
68486         * modules/lstat (Makefile.am): Likewise.
68487         * modules/malloc (Makefile.am): Likewise.
68488         * modules/mathl (Makefile.am): Likewise.
68489         * modules/mbchar (Makefile.am): Likewise.
68490         * modules/md2 (Makefile.am): Likewise.
68491         * modules/md4 (Makefile.am): Likewise.
68492         * modules/md5 (Makefile.am): Likewise.
68493         * modules/memcasecmp (Makefile.am): Likewise.
68494         * modules/memchr (Makefile.am): Likewise.
68495         * modules/memcmp (Makefile.am): Likewise.
68496         * modules/memcoll (Makefile.am): Likewise.
68497         * modules/memcpy (Makefile.am): Likewise.
68498         * modules/memmem (Makefile.am): Likewise.
68499         * modules/memmove (Makefile.am): Likewise.
68500         * modules/mempcpy (Makefile.am): Likewise.
68501         * modules/memrchr (Makefile.am): Likewise.
68502         * modules/memset (Makefile.am): Likewise.
68503         * modules/memxor (Makefile.am): Likewise.
68504         * modules/mkancesdirs (Makefile.am): Likewise.
68505         * modules/mkdir (Makefile.am): Likewise.
68506         * modules/mkdir-p (Makefile.am): Likewise.
68507         * modules/mkdtemp (Makefile.am): Likewise.
68508         * modules/mkstemp (Makefile.am): Likewise.
68509         * modules/mktime (Makefile.am): Likewise.
68510         * modules/modechange (Makefile.am): Likewise.
68511         * modules/mountlist (Makefile.am): Likewise.
68512         * modules/nanosleep (Makefile.am): Likewise.
68513         * modules/openat (Makefile.am): Likewise.
68514         * modules/pagealign_alloc (Makefile.am): Likewise.
68515         * modules/physmem (Makefile.am): Likewise.
68516         * modules/poll (Makefile.am): Likewise.
68517         * modules/posixtm (Makefile.am): Likewise.
68518         * modules/posixver (Makefile.am): Likewise.
68519         * modules/putenv (Makefile.am): Likewise.
68520         * modules/quote (Makefile.am): Likewise.
68521         * modules/quotearg (Makefile.am): Likewise.
68522         * modules/raise (Makefile.am): Likewise.
68523         * modules/read-file (Makefile.am): Likewise.
68524         * modules/readline (Makefile.am): Likewise.
68525         * modules/readlink (Makefile.am): Likewise.
68526         * modules/readtokens (Makefile.am): Likewise.
68527         * modules/readutmp (Makefile.am): Likewise.
68528         * modules/realloc (Makefile.am): Likewise.
68529         * modules/regex (Makefile.am): Likewise.
68530         * modules/rename (Makefile.am): Likewise.
68531         * modules/rename-dest-slash (Makefile.am): Likewise.
68532         * modules/rijndael (Makefile.am): Likewise.
68533         * modules/rmdir (Makefile.am): Likewise.
68534         * modules/rpmatch (Makefile.am): Likewise.
68535         * modules/safe-read (Makefile.am): Likewise.
68536         * modules/safe-write (Makefile.am): Likewise.
68537         * modules/same (Makefile.am): Likewise.
68538         * modules/save-cwd (Makefile.am): Likewise.
68539         * modules/savedir (Makefile.am): Likewise.
68540         * modules/setenv (Makefile.am): Likewise.
68541         * modules/settime (Makefile.am): Likewise.
68542         * modules/sha1 (Makefile.am): Likewise.
68543         * modules/sig2str (Makefile.am): Likewise.
68544         * modules/snprintf (Makefile.am): Likewise.
68545         * modules/stdlib-safer (Makefile.am): Likewise.
68546         * modules/stpcpy (Makefile.am): Likewise.
68547         * modules/stpncpy (Makefile.am): Likewise.
68548         * modules/strcase (Makefile.am): Likewise.
68549         * modules/strcasestr (Makefile.am): Likewise.
68550         * modules/strchrnul (Makefile.am): Likewise.
68551         * modules/strcspn (Makefile.am): Likewise.
68552         * modules/strdup (Makefile.am): Likewise.
68553         * modules/strerror (Makefile.am): Likewise.
68554         * modules/strftime (Makefile.am): Likewise.
68555         * modules/strndup (Makefile.am): Likewise.
68556         * modules/strnlen (Makefile.am): Likewise.
68557         * modules/strpbrk (Makefile.am): Likewise.
68558         * modules/strsep (Makefile.am): Likewise.
68559         * modules/strstr (Makefile.am): Likewise.
68560         * modules/strtod (Makefile.am): Likewise.
68561         * modules/strtoimax (Makefile.am): Likewise.
68562         * modules/strtok_r (Makefile.am): Likewise.
68563         * modules/strtol (Makefile.am): Likewise.
68564         * modules/strtoll (Makefile.am): Likewise.
68565         * modules/strtoul (Makefile.am): Likewise.
68566         * modules/strtoull (Makefile.am): Likewise.
68567         * modules/strtoumax (Makefile.am): Likewise.
68568         * modules/strverscmp (Makefile.am): Likewise.
68569         * modules/time_r (Makefile.am): Likewise.
68570         * modules/timegm (Makefile.am): Likewise.
68571         * modules/tmpfile-safer (Makefile.am): Likewise.
68572         * modules/unistd-safer (Makefile.am): Likewise.
68573         * modules/unlinkdir (Makefile.am): Likewise.
68574         * modules/userspec (Makefile.am): Likewise.
68575         * modules/utime (Makefile.am): Likewise.
68576         * modules/utimecmp (Makefile.am): Likewise.
68577         * modules/utimens (Makefile.am): Likewise.
68578         * modules/vasnprintf (Makefile.am): Likewise.
68579         * modules/vasprintf (Makefile.am): Likewise.
68580         * modules/vsnprintf (Makefile.am): Likewise.
68581         * modules/xalloc (Makefile.am): Likewise.
68582         * modules/xgetcwd (Makefile.am): Likewise.
68583         * modules/xnanosleep (Makefile.am): Likewise.
68584         * modules/xreadlink (Makefile.am): Likewise.
68585         * modules/xstrtod (Makefile.am): Likewise.
68586         * modules/xstrtol (Makefile.am): Likewise.
68587         * modules/xstrtold (Makefile.am): Likewise.
68588         * modules/yesno (Makefile.am): Likewise.
68589
68590 2006-10-12  Jim Meyering  <jim@meyering.net>
68591
68592         * m4/getloadavg.m4: Revert the change below.
68593
68594         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
68595         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
68596         fail with a symlink, which is what coreutils' ./bootstrap now
68597         creates by default.
68598
68599 2006-10-12  Bruno Haible  <bruno@clisp.org>
68600
68601         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
68602         mingw.
68603         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
68604         MSVC and mingw explicitly.
68605
68606 2006-10-11  Simon Josefsson  <jas@extundo.com>
68607             Bruno Haible  <bruno@clisp.org>
68608
68609         Add support for multiple gnulib-tool invocations in the scope of a
68610         single configure.ac file.
68611         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
68612         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
68613         with the same contents as the _LIBADD variable.
68614         (func_emit_initmacro_start, func_emit_initmacro_end,
68615         func_emit_initmacro_done): New functions.
68616         (func_import, func_create_testdir): Invoke them. Allow the identifiers
68617         gl_LIBOBJS and gl_LTLIBOBJS.
68618
68619 2006-10-11  Bruno Haible  <bruno@clisp.org>
68620
68621         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
68622         (func_create_testdir): Don't create po/Makefile.am, don't invoke
68623         autoreconf. Instead, invoke autopoint explicitly but move back the
68624         *.m4 files from gnulib.
68625
68626 2006-10-11  Bruno Haible  <bruno@clisp.org>
68627
68628         * gnulib-tool (func_usage): Make module names after --create-testdir
68629         optional.
68630         (func_create_testdir): If no module was specified, use nearly all
68631         modules.
68632
68633 2006-10-12  Jim Meyering  <jim@meyering.net>
68634
68635         Big performance improvement for fts-based tools that use FTS_NOSTAT.
68636         Avoid spurious inode-mismatch problems on non-POSIX file systems.
68637         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
68638         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
68639         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
68640         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
68641         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
68642         (fts_set_stat_required): New function.
68643         (fts_open): Defer the calls to fts_stat, if possible or requested.
68644         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
68645         into fts_stat itself.
68646         (fts_read): Perform any required (deferred) fts_stat call.
68647         (fts_build): Likewise, for the directory we're about to open and read.
68648         In the readdir loop, carefully decide whether each entry will require
68649         an eventual call to fts_stat, using dirent.d_type info if available.
68650         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
68651         a command line argument into this function.  Update all callers.
68652         Map a return value of FTS_DOT to FTS_D for a command line argument.
68653         * modules/fts (Depends-on): Add d-type.  Alphabetize.
68654         Thanks to Miklos Szeredi for his tenacity and for the initial
68655         bug report about "find" failing on a FUSE-based file system.
68656
68657         * lib/fts.c (fts_open): Use consistent indentation.
68658
68659 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68660
68661         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
68662         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
68663         reported by Jim Meyering.  All uses of cache variables renamed
68664         to match Autoconf's.
68665         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
68666         the other one.
68667
68668         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
68669         Fix misspelling in diagnostic.
68670
68671 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68672
68673         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
68674         defined.  Problem reported by Matthew Woehlke.
68675
68676         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
68677         Add support for Tandem NonStop R series.
68678         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
68679         Use new macro.
68680
68681         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
68682         (has_trailing_slash): Omit size arg; all callers changed.
68683         Omit 'inline', since it doesn't help performance and we'd
68684         need to configure it.
68685         Don't count //, ///, etc. as having a trailing slash.
68686         As a side effect, this removes a C99ism reported by Matthew Woehlke.
68687         (rpl_rename_dest_slash): On failure, use rename's errno rather
68688         than (in some cases) an incorrect or junk errno.
68689         Simplify code by removing need to compute length; this does
68690         cause it to make two passes instead of one over the file name,
68691         but it's worth it.
68692
68693         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
68694         change, since Autoconf's version may no longer be appropriate now
68695         that we are using CVS Autoconf's version.  Add support for Tandem.
68696
68697 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68698             Bruno Haible  <bruno@clisp.org>
68699
68700         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
68701         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
68702         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
68703         gl_AC_TYPE_LONG_LONG.
68704
68705         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
68706         instead of HAVE_LONG_LONG.
68707         * lib/printf-args.c (printf_fetchargs): Likewise.
68708         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
68709         * lib/vasnprintf.c (VASNPRINTF): Likewise.
68710         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
68711         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
68712         gl_AC_TYPE_LONG_LONG.
68713
68714 2006-10-11  Bruno Haible  <bruno@clisp.org>
68715
68716         * m4/longlong.m4: Add comments.
68717         * m4/ulonglong.m4: Likewise.
68718
68719 2006-10-10  Bruno Haible  <bruno@clisp.org>
68720
68721         Make it possible to #define stpcpy, strdup to aliases.
68722         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
68723         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
68724
68725 2006-10-10  Bruno Haible  <bruno@clisp.org>
68726
68727         Make it possible to #define gcd to an alias.
68728         * lib/gcd.c: Include config.h.
68729
68730 2006-10-10  Bruno Haible  <bruno@clisp.org>
68731
68732         Make it possible to #define c_isascii to an alias.
68733         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
68734         defined. Undefine the macros before defining them, to avoid gcc
68735         warnings.
68736         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
68737         define NO_C_CTYPE_MACROS early.
68738
68739 2006-10-10  Bruno Haible  <bruno@clisp.org>
68740
68741         Make it possible to #define set_program_name to an alias.
68742         * lib/progname.c: Don't undefine set_program_name; instead, undefine
68743         ENABLE_RELOCATABLE early.
68744
68745 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68746
68747         Port to Tandem NSK OSS, which has 64-bit signed int but at most
68748         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
68749         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
68750         More generally, don't assume that 64-bit signed int is available
68751         if unsigned int is, and vice versa.
68752         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
68753         unsigned symbols, not on their signed counterparts.
68754         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
68755         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
68756         (UINT64_C, UINTMAX_C):
68757         Likewise.
68758         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
68759         unsigned counterparts.
68760         (Have_long_long, Unsigned): New macros.
68761         (Int): Renamed from INT.
68762         (strtoimax): Use the new macros.
68763         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
68764         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
68765         * modules/inttypes (inttypes.h): Substitute
68766         HAVE_UNSIGNED_LONG_LONG_INT.
68767         * modules/stdint (stdint.h): Likewise.
68768         (Files): Add m4/ulonglong.m4.
68769
68770 2006-10-10  Bruno Haible  <bruno@clisp.org>
68771
68772         Fix a gcc -Wshadow warning.
68773         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
68774         to 'bucket'.
68775         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
68776         gl_linked_indexof_from_to): Likewise.
68777         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
68778         Likewise.
68779         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
68780         Likewise.
68781         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
68782         Reported by Eric Blake.
68783
68784 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
68785
68786         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
68787         for NetBSD.  Problem reported by Bruno Haible.
68788
68789 2006-10-09  Jim Meyering  <jim@meyering.net>
68790
68791         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
68792         Patch from Bruno Haible.
68793
68794 2006-10-09  Jim Meyering  <jim@meyering.net>
68795
68796         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
68797         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
68798         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
68799
68800 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
68801
68802         Don't include <config.h> twice; this doesn't work in some cases,
68803         e.g., when config.h has "#define intmax_t long long int" and
68804         we include <config.h>, <inttypes.h>, <config.h> in that order.
68805         Problem reported by Matthew Woehlke in:
68806         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
68807         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
68808         * lib/fts-cycle.c: Don't include config.h.
68809         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
68810         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
68811         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
68812         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
68813         inttypes.h.
68814         * lib/xstrtoumax.c: Likewise.
68815         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
68816         __strtol and the like, so that this module is more like its siblings.
68817         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
68818         Remove; no longer needed now that we assume gnulib inttypes.h.
68819
68820 2006-10-08  Bruno Haible  <bruno@clisp.org>
68821
68822         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
68823         option.
68824
68825 2006-10-07  Jim Meyering  <jim@meyering.net>
68826
68827         * modules/inttypes (inttypes.h): Revert what seems to have been
68828         an inadvertent part of today's change: use "|", not "/" in the
68829         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
68830
68831 2006-10-07  Bruno Haible  <bruno@clisp.org>
68832
68833         * modules/sublist: New file.
68834
68835 2006-10-07  Bruno Haible  <bruno@clisp.org>
68836
68837         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
68838         * modules/argz (argz.h): Likewise.
68839         * modules/arpa_inet (arpa/inet.h): Likewise.
68840         * modules/byteswap (byteswap.h): Likewise.
68841         * modules/configmake (configmake.h): Likewise.
68842         * modules/fcntl (fcntl.h): Likewise.
68843         * modules/fnmatch (fnmatch.h): Likewise.
68844         * modules/getopt (getopt.h): Likewise.
68845         * modules/glob (glob.h): Likewise.
68846         * modules/inttypes (inttypes.h): Likewise.
68847         * modules/netinet_in (netinet/in.h): Likewise.
68848         * modules/poll (poll.h): Likewise.
68849         * modules/stdbool (stdbool.h): Likewise.
68850         * modules/stdint (stdint.h): Likewise.
68851         * modules/sys_select (sys/select.h): Likewise.
68852         * modules/sys_socket (sys/socket.h): Likewise.
68853         * modules/sys_stat (sys/stat.h): Likewise.
68854         * modules/sysexits (sysexits.h): Likewise.
68855         * modules/unistd (unistd.h): Likewise.
68856         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68857         Add a "DO NOT EDIT" comment to the generated file.
68858         (func_import): Likewise for gnulib-comp.m4.
68859
68860 2006-10-07  Bruno Haible  <bruno@clisp.org>
68861
68862         * lib/gl_sublist.h: New file.
68863         * lib/gl_sublist.c: New file.
68864
68865 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68866
68867         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
68868         name (relative to the original working directory) and the file
68869         name component (relative to the temporary working directory).  All
68870         callers changed.
68871         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
68872         * lib/mkdir-p.c (make_dir_parents): Likewise.
68873         * lib/mkdir-p.h (make_dir_parents): Likewise.
68874
68875 2006-10-06  Eric Blake  <ebb9@byu.net>
68876
68877         Define several macros for use by the clean-temp module.
68878         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
68879         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
68880         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
68881
68882         * lib/clean-temp.h (close_stream_temp): New declaration.
68883         * lib/clean-temp.c (includes): Pull in headers according to what
68884         other modules are in use.
68885         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
68886
68887 2006-10-06  Bruno Haible  <bruno@clisp.org>
68888
68889         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
68890         instead of fopen, fwriteerror.
68891
68892 2006-10-06  Bruno Haible  <bruno@clisp.org>
68893
68894         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
68895         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
68896         int.
68897         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
68898         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
68899         Return an error indicator.
68900         Suggested by Eric Blake.
68901
68902 2006-10-06  Bruno Haible  <bruno@clisp.org>
68903
68904         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
68905         Reported by Eric Blake.
68906
68907 2006-10-06  Bruno Haible  <bruno@clisp.org>
68908
68909         * modules/closeout (Description): Mention stderr too.
68910
68911 2006-10-06  Bruno Haible  <bruno@clisp.org>
68912         and Paul Eggert  <eggert@cs.ucla.edu>
68913
68914         * lib/closeout.c (close_stdout): Also close stderr.
68915         * lib/closeout.h: Update comment.
68916
68917 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68918
68919         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
68920         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
68921         * lib/dirchownmod.c: Include lchown.h.
68922         * lib/lchown.c: Don't include files that lchown.h now includes.
68923         Don't declare chown, since lchown.h now does that.
68924         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
68925         (lchown): Define to rpl_chown if lchown is declared but
68926         does not exist.  Declare using a prototype if lchown is not
68927         declared.  Add a copyright notice.
68928         * lib/mkstemp.h: Include <unistd.h>.
68929         * lib/openat.c: Include lchown.h.
68930
68931         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
68932         we now test for that separately.
68933         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
68934         rather than O_NOFOLLOW, when testing whether it's possible to
68935         avoid a race condition reliably.
68936         * lib/savewd.c (savewd_chdir): Likewise.
68937
68938         Remove macros that are no longer needed now that stdint.h is
68939         reliable.
68940         * lib/fsusage.c (UINTMAX_MAX): Remove.
68941         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
68942         * lib/utimecmp.c (SIZE_MAX): Remove.
68943
68944         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
68945
68946         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
68947         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
68948         O_NOATIME works.
68949
68950 2006-10-05  Bruno Haible  <bruno@clisp.org>
68951
68952         * lib/gl_list.h (gl_sortedlist_search_from_to,
68953         gl_sortedlist_indexof_from_to): New declarations.
68954         (gl_list_implementation): New fields sortedlist_search_from_to,
68955         sortedlist_indexof_from_to.
68956         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
68957         inline functions.
68958         * lib/gl_list.c (gl_sortedlist_search_from_to,
68959         gl_sortedlist_indexof_from_to): New functions.
68960         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
68961         function.
68962         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
68963         (gl_array_sortedlist_search_from_to): New function.
68964         (gl_array_list_implementation): Update.
68965         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
68966         function.
68967         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
68968         (gl_carray_sortedlist_search_from_to): New function.
68969         (gl_carray_list_implementation): Update.
68970         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
68971         gl_linked_sortedlist_indexof_from_to): New functions.
68972         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68973         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68974         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
68975         gl_tree_sortedlist_indexof_from_to): New functions.
68976         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68977         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68978         Update.
68979         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68980         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
68981         Update.
68982
68983 2006-10-05  Bruno Haible  <bruno@clisp.org>
68984
68985         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
68986         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
68987         (struct gl_list_implementation): Add fields search_from_to,
68988         indexof_from_to. Remove fields search, indexof.
68989         (gl_list_search): Use the search_from_to method.
68990         (gl_list_search_from, gl_list_search_from_to): New functions.
68991         (gl_list_indexof): Use the indexof_from_to method.
68992         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68993         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
68994         (gl_list_search_from, gl_list_search_from_to): New functions.
68995         (gl_list_indexof): Use the indexof_from_to method.
68996         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68997         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
68998         gl_array_indexof. Add start_index, end_index arguments.
68999         (gl_array_search_from_to): Renamed from gl_array_search. Add
69000         start_index, end_index arguments.
69001         (gl_array_remove, gl_array_list_implementation): Update.
69002         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
69003         gl_carray_indexof. Add start_index, end_index arguments.
69004         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
69005         start_index, end_index arguments.
69006         (gl_carray_remove, gl_carray_list_implementation): Update.
69007         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
69008         gl_linked_search. Add start_index, end_index arguments.
69009         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
69010         start_index, end_index arguments.
69011         (gl_linked_remove): Update.
69012         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
69013         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
69014         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
69015         field to 'size_t'.
69016         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
69017         gl_tree_search. Add start_index, end_index arguments.
69018         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
69019         start_index, end_index arguments.
69020         (gl_tree_remove): Update.
69021         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
69022         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
69023         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
69024         function.
69025         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
69026         gl_tree_search. Add start_index, end_index arguments.
69027         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
69028         start_index, end_index arguments.
69029         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
69030         Update.
69031         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
69032
69033 2006-10-05  Bruno Haible  <bruno@clisp.org>
69034
69035         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
69036
69037         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
69038         fwriteerror_temp): New declarations.
69039         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
69040         (descriptors): New variable.
69041         (cleanup): First, close the descriptors.
69042         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
69043         fclose_temp, fwriteerror_temp): New functions.
69044
69045 2006-10-04  Jim Meyering  <jim@meyering.net>
69046
69047         * lib/fts.c (fts_open): Tiny comment change.
69048
69049 2006-10-04  Bruno Haible  <bruno@clisp.org>
69050
69051         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
69052         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
69053         gl_LOCK_BODY.
69054         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
69055         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
69056         gl_LOCK_EARLY_BODY.
69057         (gl_LOCK): Require gl_LOCK_BODY.
69058
69059 2006-10-04  Bruno Haible  <bruno@clisp.org>
69060
69061         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
69062         (gl_oset_search_atleast): New declaration.
69063         (struct gl_oset_implementation): Add field 'search_atleast'.
69064         (gl_oset_search_atleast): New inline function.
69065         * lib/gl_oset.c (gl_oset_search_atleast): New function.
69066         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
69067         (gl_array_oset_implementation): Update.
69068         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
69069         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
69070         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
69071
69072 2006-10-04  Bruno Haible  <bruno@clisp.org>
69073
69074         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
69075
69076 2006-10-03  Bruno Haible  <bruno@clisp.org>
69077
69078         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
69079         from gl_avltreehash_list_implementation.
69080
69081 2006-10-03  Bruno Haible  <bruno@clisp.org>
69082
69083         * lib/gl_oset.c (gl_oset_add): Fix return type.
69084
69085 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
69086
69087         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
69088
69089 2006-10-02  Eric Blake  <ebb9@byu.net>
69090
69091         * modules/strnlen (Depends-on): Add extensions.
69092
69093 2006-10-02  Eric Blake  <ebb9@byu.net>
69094
69095         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
69096         definition in 2.60+.
69097
69098 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
69099
69100         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
69101         checks.
69102
69103 2006-10-02  Bruno Haible  <bruno@clisp.org>
69104
69105         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
69106         to the AUTOMAKE_OPTIONS.
69107         Reported by Jim Meyering.
69108
69109 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
69110
69111         Work around bug in Solaris 10 /proc file system:
69112         /proc/self/fd/NNN/.. isn't the parent directory of
69113         the directory whose file descriptor is NNN.  This needs to
69114         be worked around at run time, not compile time, since a
69115         program might be built on Solaris 8, where things work, and
69116         run on Solaris 10.
69117         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
69118         to use the following interface instead:
69119         (OPENAT_BUFFER_SIZE): New macro.
69120         (openat_proc_name): New function.
69121         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
69122         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
69123         Likewise.
69124         * lib/openat-proc.c: New file.
69125         * modules/openat (Files): Add lib/openat-proc.c.
69126         (Depends-on): Add same-inode, stdbool.
69127         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
69128
69129 2006-09-29  Bruno Haible  <bruno@clisp.org>
69130
69131         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
69132         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
69133         argument. Set stdout_closed before testing for ferror, not after.
69134         (fwriteerror, fwriteerror_no_ebadf): New functions.
69135
69136 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69137
69138         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
69139
69140 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
69141
69142         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
69143         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
69144
69145 2006-09-28  Jim Meyering  <jim@meyering.net>
69146
69147         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
69148         Include <unistd.h>.
69149
69150 2006-09-28  Bruno Haible  <bruno@clisp.org>
69151
69152         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
69153         * modules/linkedhash-list (Depends-on): Likewise.
69154         * modules/rbtreehash-list (Depends-on): Likewise.
69155
69156 2006-09-28  Bruno Haible  <bruno@clisp.org>
69157
69158         * lib/strndup.h: Simplify the redefinition of strndup.
69159         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
69160         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
69161
69162 2006-09-28  Bruno Haible  <bruno@clisp.org>
69163
69164         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
69165         * lib/gl_linkedhash_list.c: Likewise.
69166         * lib/gl_rbtreehash_list.c: Likewise.
69167
69168 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
69169
69170         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
69171         getaddrinfo.
69172
69173         * lib/__fpending.h: Don't include <stdio_ext.h> unless
69174         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
69175         it causes <stdio_ext.h> to cause a compile-time error.
69176         Problem reported by Nelson H. F. Beebe.
69177         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
69178         of HAVE_DECL___PENDING.
69179
69180         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
69181         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
69182         declaration.
69183
69184 2006-09-27  Jim Meyering  <jim@meyering.net>
69185
69186         This file could end up with a definition for a function
69187         named __strndup, rather than rpl_strndup on a system with
69188         incomplete weak_alias support.
69189         * lib/strndup.c (strndup): Rename from __strndup.
69190         Remove #defines that used to map __strndup to strndup.
69191         Don't use K&R prototypes.
69192         Remove LIBC-related code, since this file is not sync'd with glibc.
69193         * lib/strndup.h: Revamp, accordingly.
69194         * m4/strndup.m4: Modernize.
69195
69196 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
69197
69198         * modules/savewd (Depends-on): Add 'raise'.
69199         * lib/savewd.c: Include <signal.h>, for 'raise'.
69200
69201 2006-09-26  Jim Meyering  <jim@meyering.net>
69202
69203         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
69204         when we detect Darwin 8.7.0's acl_get_file bug.
69205         Rearrange to perform the new (below) run-test while $LIBS
69206         contains any acl-related library.  Set USE_ACL at the end.
69207         (gl_ACL_GET_FILE): New function.
69208
69209 2006-09-26  Eric Blake  <ebb9@byu.net>
69210
69211         * lib/verror.c: Include <config.h> unconditionally.
69212
69213 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
69214
69215         * modules/clock-time (Maintainer): Add self.
69216         * modules/getlogin_r (Depends-on): Add extensions.
69217
69218 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69219
69220         * modules/clock-time: New module.
69221         * modules/nanosleep (Depends-on): Add clock-time.
69222         * modules/gethrxtime (Depends-on): Likewise.
69223         * modules/gettime (Depends-on): Likewise.
69224         * modules/settime (Depends-on): Likewise.
69225
69226         * modules/fts-lgpl: Depend on openat.
69227         * modules/mkancesdirs: Depend on savewd.
69228         * modules/mkdir-p: Likewise.
69229
69230 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69231
69232         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
69233
69234         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
69235         `gl_have_arbitrary_file_name_length_limit' to
69236         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
69237         actually works between configure runs.
69238
69239 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69240             Bruno Haible  <bruno@clisp.org>
69241
69242         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
69243
69244 2006-09-25  Jim Meyering  <jim@meyering.net>
69245
69246         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
69247         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
69248
69249 2006-09-25  Eric Blake  <ebb9@byu.net>
69250
69251         * gnulib-tool (func_import, func_create_testdir): Fix typos in
69252         exec's in 2006-09-18 patch when shuffling fds.
69253
69254 2006-09-25  Bruno Haible  <bruno@clisp.org>
69255
69256         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
69257         Reported by Jim Meyering.
69258
69259 2006-09-24  Jim Meyering  <jim@meyering.net>
69260
69261         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
69262         compare a pointer against a literal "0".  That caused failures with
69263         at least HP-UX's hpcc.
69264
69265 2006-09-22  Simon Josefsson  <jas@extundo.com>
69266
69267         * modules/gc-sha1:
69268         * modules/gc-md4:
69269         * modules/gc-hmac-sha1:
69270         * modules/gc-hmac-md5:
69271         * modules/gc-des:
69272         * modules/gc-arcfour: Distribute more files.
69273
69274 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69275
69276         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
69277         (gl_linked_iterator_from_to): Initialize struct completely.
69278         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
69279         (gl_tree_iterator_from_to): Likewise
69280         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
69281         * lib/gl_array_list.c [lint] (gl_array_iterator)
69282         (gl_array_iterator_from_to): Likewise.
69283         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
69284         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
69285         (gl_carray_iterator_from_to): Likewise.
69286
69287         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
69288         * lib/md4.c (md4_process_block): Remove unused variable.
69289         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
69290         parentheses for clarity.
69291
69292 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69293
69294         * modules/bison-i18n (Depends-on): Add gettext.
69295
69296 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69297
69298         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
69299         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
69300         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
69301         also add missing comma that caused broken test.
69302         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
69303         stdlib.h, for `abort'.
69304         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
69305         variables.
69306         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
69307         include unistd.h if present, for `rmdir'.
69308         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
69309         variables.
69310         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
69311         in the process include standard headers for prototypes.
69312         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
69313         gets declared on GNU/Linux.
69314         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
69315         unistd.h, for `rmdir'.
69316         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
69317
69318         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
69319         always true.
69320         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
69321
69322         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
69323
69324 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69325
69326         * gnulib-tool (func_version): Create output all at once.  This
69327         may help avoid triggering unnecessary SIGPIPEs, and at any
69328         rate it doesn't hurt.
69329
69330 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69331             Bruno Haible  <bruno@clisp.org>
69332
69333         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
69334         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69335         * m4/signed.m4 (bh_C_SIGNED): Likewise.
69336
69337         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
69338         (gl_FUNC_VASPRINTF): Invoke it.
69339
69340 2006-09-22  Bruno Haible  <bruno@clisp.org>
69341
69342         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
69343         getloadavg.c as first argument.
69344
69345 2006-09-22  Bruno Haible  <bruno@clisp.org>
69346
69347         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
69348         at the beginning of the gl_INIT macro.
69349         * modules/getloadavg (configure.ac): Pass $gl_source_base to
69350         gl_GETLOADAVG.
69351
69352 2006-09-22  Bruno Haible  <bruno@clisp.org>
69353
69354         * gnulib-tool (func_create_megatestdir): Don't include the config-h
69355         module.
69356         Suggested by Ralf Wildenhues.
69357
69358 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69359
69360         Import this patch from libc:
69361
69362         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
69363
69364         * lib/regex_internal.c (re_string_reconstruct): Handle
69365         offset < pstr->valid_raw_len && pstr->offsets_needed case.
69366         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
69367         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
69368         re_string_context_at.
69369
69370         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
69371         now requires it.
69372         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
69373         gl_REGEX now does it for us.
69374         (gl_REGEX): Add test taken from
69375         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
69376
69377         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
69378         Check that large offsets work.  Modernize Autoconf usages.
69379         Prefer "yes" to mean a good thing rather than a bad.
69380         Don't put "#define mkstemp" in config.h, as this might interfere
69381         with standard system headers that "#define mkstemp mkstemp64".
69382
69383         * modules/mkstemp (Depends-on): Add extensions, so that
69384         mkstemp is visible on some platforms.
69385         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
69386         (Include): Change to "mkstemp.h" from <stdlib.h>.
69387         (Files): Add mkstemp.h.
69388
69389         * lib/mkstemp.h: New file, since some standard headers
69390         #define mkstemp.
69391         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
69392         Include "mkstemp.h".
69393         Make the _LIBC code resemble glibc original more,
69394         e.g., use K&R style.
69395         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
69396         (mkstemp): Remove, since mkstemp.h does this for us.
69397         * lib/stdlib--.h: Include mkstemp.h.
69398
69399         Import this patch from libc:
69400
69401         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69402
69403         * lib/tempname.c (__gen_tempname): Change attempts_min
69404         into a macro.  Use preprocessor to decide how to initialize
69405         attempts [Coverity CID 67].
69406
69407 2006-09-20  Bruno Haible  <bruno@clisp.org>
69408
69409         * lib/mkdtemp.c: Import from libc.
69410         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69411                 * sysdeps/posix/tempname.c (__gen_tempname): Change
69412                 attempts_min into a macro.  Use preprocessor to decide how to
69413                 initialize attempts [Coverity CID 67].
69414         2001-11-27  Paul Eggert  <eggert@twinsun.com>
69415                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
69416                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
69417
69418 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69419
69420         * gnulib-tool (func_exit): New function, to allow to pass the
69421         exit status portably through the trap.  Use everywhere.
69422         (--help, --version): Signal a write error.
69423         (trap): catch SIGPIPE, for write errors.
69424         Exit at the end of the trap, with the correct exit status.
69425
69426 2006-09-19  Karl Berry  <karl@gnu.org>
69427
69428         * doc/gnulib.texi: note about the license texinfo files.
69429
69430 2006-09-19  Eric Blake  <ebb9@byu.net>
69431
69432         * gnulib-tool: Avoid space-tab.
69433
69434 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69435
69436         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
69437         that prevented coreutils 6.1 from building.  Problem reported
69438         by Petter Reinholdtsen.
69439
69440 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69441
69442         * gnulib-tool (avoidlist): Fix typo that broke options like
69443         --avoid=lock that are used by coreutils bootstrap.
69444
69445 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
69446
69447         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
69448         more systematically.
69449
69450 2006-09-18  Jim Meyering  <jim@meyering.net>
69451
69452         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
69453
69454 2006-09-18  Bruno Haible  <bruno@clisp.org>
69455
69456         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
69457
69458 2006-09-18  Bruno Haible  <bruno@clisp.org>
69459
69460         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
69461         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
69462         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
69463         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
69464         * m4/gettext.m4: Require autoconf >= 2.52.
69465         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
69466         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
69467         of gl_cv_header_inttypes_h.
69468
69469 2006-09-18  Bruno Haible  <bruno@clisp.org>
69470
69471         * lib/javaversion.c: Include configmake.h.
69472
69473 2006-09-18  Bruno Haible  <bruno@clisp.org>
69474
69475         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
69476         avoid that the while loops be executed in a subshell.
69477
69478 2006-09-18  Bruno Haible  <bruno@clisp.org>
69479
69480         * MODULES.html.sh (func_module): Break long lines.
69481         Suggested by Bruce Korb <bkorb@gnu.org>.
69482
69483 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69484
69485         Speed up by a factor of 1.12.
69486         * gnulib-tool (nl): New variable.
69487         (func_import): Rewrite include directive extraction to only read each
69488         directive once.
69489
69490 2006-09-17  Bruno Haible  <bruno@clisp.org>
69491
69492         * modules/javaversion (Makefile.am): Remove DEFS setting.
69493         (Depends-on): Add configmake, for PKGDATADIR definition.
69494
69495 2006-09-17  Bruno Haible  <bruno@clisp.org>
69496
69497         * gnulib-tool (func_create_testdir): Rewrite all files at once.
69498
69499 2006-09-17  Bruno Haible  <bruno@clisp.org>
69500
69501         * gnulib-tool (func_append): New function, stolen from libtool.m4.
69502         (func_modules_transitive_closure, func_modules_add_dummy,
69503         func_modules_to_filelist, func_import, func_create_testdir,
69504         func_create_megatestdir, ...): Use it wherever possible.
69505         Suggested by Ralf Wildenhues.
69506
69507 2006-09-16  Karl Berry  <karl@gnu.org>
69508
69509         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
69510         to avoid sectioning errors.
69511         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
69512         [ifinfo]: blank line after @center-ed titles.
69513         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
69514         Spell FSF address consistently with others.
69515         (These changes approved by rms.)
69516
69517 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69518
69519         Speed up by a factor of 1.61.
69520         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
69521         already checked module names again.
69522
69523 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69524
69525         Speed up by a factor of 1.13.
69526         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
69527         for new_files, and the input to func_add_or_update.
69528
69529 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69530
69531         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
69532         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
69533
69534 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69535
69536         * modules/mkancesdirs (Depends-on): Add fcntl.
69537         * modules/savewd: New file.
69538         * MODULES.html.sh (File system functions): Add savewd.
69539
69540         * modules/configmake (Makefile.am): Add support for the
69541         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
69542
69543 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69544
69545         * m4/savewd.m4: New file.
69546
69547 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69548
69549         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
69550         (dirchownmod): New arg FD.  All callers changed.
69551         Use FD rather than opening the directory ourself, as opening is
69552         now the caller's responsibility.
69553         * lib/dirchownmod.h: Likewise.
69554         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
69555         hosts that require <sys/types.h> before <sys/stat.h>.  Include
69556         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
69557         (test_dir): Remove.
69558         (mkancesdirs): Return length of prefix of FILE that has already
69559         been made, or -2 if there is a child doing the work.  Redo
69560         algorithm so that it is O(N) rather than O(N**2).  Optimize away
69561         ".", and treat ".." specially since it might stray back into
69562         already-created areas.  Use a subprocess if necessary.  New arg
69563         WD; all users changed.  MAKE_DIR function should now return 1
69564         if it creates a directory that is not readable.  Return -2 if
69565         a child process is spun off.
69566         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
69567         Adjust signature to match code.
69568         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
69569         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
69570         all users changed.
69571         * lib/savewd.c, lib/savewd.h: New files.
69572
69573 2006-09-15  Jim Meyering  <jim@meyering.net>
69574
69575         * modules/rename-dest-slash: New module.
69576         * MODULES.html.sh (posix_compat): Add it here.
69577
69578         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
69579
69580 2006-09-15  Jim Meyering  <jim@meyering.net>
69581
69582         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
69583         file.
69584
69585         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
69586
69587 2006-09-15  Jim Meyering  <jim@meyering.net>
69588
69589         * lib/rename-dest-slash.c (has_trailing_slash): Use
69590         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
69591         (rpl_rename_dest_slash): Perform the cheaper trailing slash
69592         test before testing whether SRC is a directory.
69593         Suggestions from Bruno Haible.
69594
69595         Avoid a warning about an unused variable.
69596         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
69597         into the #ifdef block where it's used.
69598
69599         * lib/rename-dest-slash.c: New file.
69600
69601 2006-09-14  Bruno Haible  <bruno@clisp.org>
69602
69603         * lib/allocsa.c: Include <config.h> unconditionally.
69604         * lib/asnprintf.c: Likewise.
69605         * lib/asprintf.c: Likewise.
69606         * lib/c-strcasecmp.c: Likewise.
69607         * lib/c-strcasestr.c: Likewise.
69608         * lib/c-strncasecmp.c: Likewise.
69609         * lib/c-strstr.c: Likewise.
69610         * lib/classpath.c: Likewise.
69611         * lib/clean-temp.c: Likewise.
69612         * lib/concatpath.c: Likewise.
69613         * lib/copy-file.c: Likewise.
69614         * lib/csharpcomp.c: Likewise.
69615         * lib/csharpexec.c: Likewise.
69616         * lib/execute.c: Likewise.
69617         * lib/fatal-signal.c: Likewise.
69618         * lib/findprog.c: Likewise.
69619         * lib/fwriteerror.c: Likewise.
69620         * lib/gl_array_list.c: Likewise.
69621         * lib/gl_array_oset.c: Likewise.
69622         * lib/gl_avltree_list.c: Likewise.
69623         * lib/gl_avltree_oset.c: Likewise.
69624         * lib/gl_avltreehash_list.c: Likewise.
69625         * lib/gl_carray_list.c: Likewise.
69626         * lib/gl_linked_list.c: Likewise.
69627         * lib/gl_linkedhash_list.c: Likewise.
69628         * lib/gl_list.c: Likewise.
69629         * lib/gl_oset.c: Likewise.
69630         * lib/gl_rbtree_list.c: Likewise.
69631         * lib/gl_rbtree_oset.c: Likewise.
69632         * lib/gl_rbtreehash_list.c: Likewise.
69633         * lib/imaxabs.c: Likewise.
69634         * lib/imaxdiv.c: Likewise.
69635         * lib/javacomp.c: Likewise.
69636         * lib/javaexec.c: Likewise.
69637         * lib/javaversion.c: Likewise.
69638         * lib/linebreak.c: Likewise.
69639         * lib/localcharset.c: Likewise.
69640         * lib/lock.c: Likewise.
69641         * lib/mbchar.c: Likewise.
69642         * lib/mbswidth.c: Likewise.
69643         * lib/mkdtemp.c: Likewise.
69644         * lib/pipe.c: Likewise.
69645         * lib/printf-args.c: Likewise.
69646         * lib/printf-parse.c: Likewise.
69647         * lib/progname.c: Likewise.
69648         * lib/progreloc.c: Likewise.
69649         * lib/readlink.c: Likewise.
69650         * lib/sh-quote.c: Likewise.
69651         * lib/stpcpy.c: Likewise.
69652         * lib/stpncpy.c: Likewise.
69653         * lib/strcasecmp.c: Likewise.
69654         * lib/strcasestr.c: Likewise.
69655         * lib/strcspn.c: Likewise.
69656         * lib/striconv.c: Likewise.
69657         * lib/strncasecmp.c: Likewise.
69658         * lib/strnlen1.c: Likewise.
69659         * lib/strstr.c: Likewise.
69660         * lib/strtok_r.c: Likewise.
69661         * lib/tls.c: Likewise.
69662         * lib/tmpdir.c: Likewise.
69663         * lib/unicodeio.c: Likewise.
69664         * lib/unsetenv.c: Likewise.
69665         * lib/vasnprintf.c: Likewise.
69666         * lib/vasprintf.c: Likewise.
69667         * lib/wait-process.c: Likewise.
69668         * lib/xallocsa.c: Likewise.
69669         * lib/xsetenv.c: Likewise.
69670         * lib/xstriconv.c: Likewise.
69671
69672 2006-09-13  Simon Josefsson  <jas@extundo.com>
69673
69674         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
69675         that internally, suggested by Ralf Wildenhues
69676         <Ralf.Wildenhues@gmx.de>.
69677
69678 2006-09-13  Simon Josefsson  <jas@extundo.com>
69679
69680         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
69681         @LIBOBJS@.
69682         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69683
69684 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69685
69686         * lib/_fpending.c: Include <config.h> unconditionally, since we no
69687         longer worry about uses that don't define HAVE_CONFIG_H.
69688         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
69689         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
69690         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
69691         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
69692         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
69693         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
69694         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
69695         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
69696         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
69697         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
69698         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
69699         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
69700         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
69701         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
69702         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
69703         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
69704         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
69705         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
69706         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
69707         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
69708         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
69709         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
69710         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
69711         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
69712         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
69713         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
69714         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
69715         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
69716         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
69717         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
69718         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
69719         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
69720         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
69721         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
69722         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
69723         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
69724         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
69725         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
69726         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
69727         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
69728         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
69729         Likewise.
69730
69731 2006-09-13  Eric Blake  <ebb9@byu.net>
69732
69733         * lib/getopt.c: Fix typo in last commit.
69734
69735 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69736
69737         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
69738         dgettext.
69739
69740 2006-09-12  Jim Meyering  <jim@meyering.net>
69741
69742         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
69743         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
69744         Reported by Nelson H. F. Beebe.
69745
69746 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69747
69748         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
69749         program_invocation_name and program_invocation_short_name are
69750         initialized.
69751         * lib/argp-namefrob.h: Move declarations of program_invocation_name
69752         and program_invocation_short_name to argp.h, so they are visible
69753         to user programs.
69754         * lib/argp.h: Likewise
69755
69756 2006-09-10  Bruno Haible  <bruno@clisp.org>
69757
69758         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69759         m4/inttypes_h.m4, m4/uintmax_t.m4.
69760
69761 2006-09-10  Bruno Haible  <bruno@clisp.org>
69762
69763         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
69764         gl_AC_TYPE_UINTMAX_T.
69765
69766 2006-09-10  Bruno Haible  <bruno@clisp.org>
69767
69768         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
69769
69770 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69771
69772         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
69773         convention.  Text proposed by Bruno Haible.
69774         (struct argp_option): Document the use of N_() wrappers.
69775
69776         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
69777         '\v', and translate the two parts separately, instead of feeding
69778         the whole string to gettext.  This allows to exclude
69779         '\v' from the strings visible to the translator by writing doc
69780         strings as N_("..") "\v" N_("..").
69781
69782 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
69783
69784         * config/srclist.txt: Undo latest change; the bug was fixed.
69785
69786 2006-09-09  Bruno Haible  <bruno@clisp.org>
69787
69788         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
69789         assignments if building a library without libtool.
69790         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
69791         in func_emit_lib_Makefile_am.
69792         (func_import): When building a static library libfoo.a, arrange to
69793         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
69794         (func_create_testdir): Likewise.
69795         * modules/gc (configure.ac, Makefile.am): If building statically,
69796         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
69797         * modules/iconvme (configure.ac, Makefile.am): Likewise.
69798         * modules/striconv (configure.ac, Makefile.am): Likewise.
69799         Based on a suggestion by Ralf Wildenhues.
69800
69801 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69802
69803         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
69804         Check for unistd.h too, since Autoconf doesn't assume POSIX.
69805         Also:
69806
69807         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69808         Add year_2050_test to catch glibc bug 2821
69809         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69810
69811         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69812         Prefer #ifdef to #if.
69813
69814         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
69815         Return from 'main' instead of calling 'exit'.
69816
69817 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69818
69819         * lib/mktime.c (guess_time_tm): Fix bug where mktime
69820         returned the maximum time_t value rather than (time_t) -1.
69821         Problem originally reported by William Bardwell
69822         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69823
69824         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69825         Moved to here ...
69826         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69827         ... from here.
69828
69829 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69830
69831         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
69832         2821 is fixed.
69833
69834 2006-09-08  Jim Meyering  <jim@meyering.net>
69835
69836         Don't make generated files read-only.  That would bother too many
69837         people.  However, do retain the ability to work when targets are
69838         read-only: remove the destination and temporary files before writing
69839         them (when generated via sed or echo), or by using the -f option for
69840         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
69841         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69842         * modules/byteswap, modules/configmake, modules/fcntl:
69843         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69844         * modules/localcharset, modules/netinet_in, modules/poll:
69845         * modules/stdbool, modules/stdint, modules/sys_select:
69846         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69847
69848 2006-09-08  Jim Meyering  <jim@meyering.net>
69849
69850         Avoid new build failure on FreeBSD 6.0.
69851         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
69852         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
69853         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
69854
69855 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69856
69857         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
69858
69859 2006-09-07  Jim Meyering  <jim@meyering.net>
69860
69861         Fix global typo in last change: use chmod u-w, not chmod u-x.
69862         Spotted by Paul Eggert and Bruce Korb.
69863         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69864         * modules/byteswap, modules/configmake, modules/fcntl:
69865         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69866         * modules/localcharset, modules/netinet_in, modules/poll:
69867         * modules/stdbool, modules/stdint, modules/sys_select:
69868         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69869
69870 2006-09-06  Jim Meyering  <jim@meyering.net>
69871
69872         Make generated files be read-only.
69873         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
69874         Ensure that each generated file is now read-only.
69875         * modules/argz: Likewise.
69876         * modules/arpa_inet: Likewise.
69877         * modules/byteswap: Likewise.
69878         * modules/configmake: Likewise.
69879         * modules/fcntl: Likewise.
69880         * modules/fnmatch: Likewise.
69881         * modules/getopt: Likewise.
69882         * modules/glob: Likewise.
69883         * modules/inttypes: Likewise.
69884         * modules/netinet_in: Likewise.
69885         * modules/poll: Likewise.
69886         * modules/stdbool: Likewise.
69887         * modules/stdint: Likewise.
69888         * modules/sys_select: Likewise.
69889         * modules/sys_socket: Likewise.
69890         * modules/sys_stat: Likewise.
69891         * modules/sysexits: Likewise.
69892         * modules/localcharset: Same as above, but continue using temporary
69893         file named "t-$@" (why different?) rather than the "$@-t" used
69894         everywhere else.
69895
69896         * modules/sysexits (Makefile.am): Replace literal occurrences
69897         of "sysexit.h" more readable, and more consistent, "$@".
69898
69899 2006-09-06  Bruno Haible  <bruno@clisp.org>
69900
69901         * modules/striconv: New file.
69902         * modules/xstriconv: New file.
69903         * MODULES.html.sh (Internationalization functions): Add striconv,
69904         xstriconv.
69905
69906 2006-09-06  Bruno Haible  <bruno@clisp.org>
69907
69908         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
69909         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
69910         not using libtool correctly.
69911
69912 2006-09-06  Bruno Haible  <bruno@clisp.org>
69913
69914         * lib/striconv.h: New file.
69915         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
69916         iconvstring.c.
69917         * lib/xstriconv.h: New file.
69918         * lib/xstriconv.c: New file.
69919
69920 2006-09-06  Bruno Haible  <bruno@clisp.org>
69921
69922         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69923         lib_..._LDFLAGS.
69924
69925 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69926
69927         * lib/argz_.h: Sync from Libtool.
69928
69929         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
69930                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69931
69932         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
69933
69934 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69935
69936         * modules/trim: New file.
69937
69938 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69939
69940         * lib/trim.h: New file.
69941         * lib/trim.c: New file.
69942
69943 2006-09-05  Bruno Haible  <bruno@clisp.org>
69944
69945         * MODULES.html.sh (String handling): Add trim.
69946
69947 2006-09-04  Karl Berry  <karl@gnu.org>
69948
69949         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
69950         until next release.
69951
69952 2006-09-03  Bruno Haible  <bruno@clisp.org>
69953
69954         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
69955         correctly.
69956
69957 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69958
69959         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
69960         not gl_GETLOADAVG.  Omit unneeded semicolons.
69961         Problems reported by Ralf Wildenhues in
69962         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69963         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
69964         at the end, which is the usual gnulib style.
69965
69966         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
69967         of doing all the work ourselves.
69968         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
69969         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
69970
69971 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69972
69973         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
69974         Problem reported by Ralf Wildenhues in
69975         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69976
69977         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
69978         HAVE_STRUCT_STATFS_F_FSTYPENAME.
69979
69980 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69981
69982         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
69983         yesterday's patch by changing test -n to test -z.
69984
69985 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69986
69987         * modules/getloadavg (Files): Add m4/getloadavg.m4.
69988         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
69989         the former is now obsolescent.
69990
69991         * modules/chdir-long (Depends-on): Add fcntl.
69992
69993 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69994
69995         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
69996         obsolescent, and programs should use gnulib instead.
69997         * m4/getloadavg.m4: New file, with contents taken from Autoconf
69998         but with prefixes changed.
69999
70000 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70001
70002         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
70003         or stdbool.h, because they might not exist while configuring.
70004
70005         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
70006         Don't include unistd.h or limits.h; not needed, since chdir-long.h
70007         does that for us.
70008         (O_DIRECTORY): Remove.
70009
70010 2006-08-31  Eric Blake  <ebb9@byu.net>
70011
70012         * gnulib-tool: Don't let emacs change spaces to TAB.
70013
70014 2006-08-31  Bruno Haible  <bruno@clisp.org>
70015
70016         * gnulib-tool: When calling func_import more than once, do it in a
70017         subshell.
70018         Reported by Eric Blake <ebb9@byu.net>.
70019
70020 2006-08-31  Bruno Haible  <bruno@clisp.org>
70021
70022         * gnulib-tool (nl): Remove variable.
70023         (sed_transform_lib_file): Use more robust test for config-h module.
70024         (func_import): Fix typo in 2006-08-25 patch.
70025
70026 2006-08-31  Bruno Haible  <bruno@clisp.org>
70027
70028         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
70029         specified, augment Makefile.am variables instead of assigning them.
70030
70031 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70032
70033         Work around a bug in both the Linux and SunOS 64-bit kernels:
70034         nanosleep mishandles sleeps for longer than 2**31 seconds.
70035         Problem reported by Frank v Waveren in
70036         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
70037         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
70038         Check for nanosleep bug.
70039         (LIB_NANOSLEEP): Append clock_gettime library if needed.
70040
70041 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70042
70043         Work around a bug in both the Linux and SunOS 64-bit kernels:
70044         nanosleep mishandles sleeps for longer than 2**31 seconds.
70045         Problem reported by Frank v Waveren in
70046         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
70047         * lib/nanosleep.c (BILLION): New constant.
70048         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
70049         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
70050         implementation.
70051
70052 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70053
70054         * modules/nanosleep (Depends-on): Add gettime.
70055
70056 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70057         and Simon Josefsson  <jas@extundo.com>
70058         and Oskar Liljeblad  <oskar@osk.mine.nu>
70059
70060         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
70061         * gnulib-tool (func_import): New license type 'unmodifiable license
70062         text'.
70063         * modules/fdl: Use it.  Longer description.
70064         * module/gpl, module/lgpl: New files.
70065
70066 2006-08-30  Jim Meyering  <jim@meyering.net>
70067
70068         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
70069         shadowing the parameter.
70070
70071 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70072
70073         Sync from Libtool:
70074
70075         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70076
70077         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
70078         sharing with gnulib.  Report by Eric Blake.
70079
70080 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70081
70082         * modules/isapipe: New file.
70083         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
70084
70085 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70086
70087         * modules/configmake (Makefile.am): Add a comment, and omit
70088         the CONFIGMAKE_ prefix from generated macro names.  Suggested
70089         by Bruno Haible.
70090
70091 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70092
70093         * m4/isapipe.m4: New file.
70094
70095 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70096
70097         * lib/isapipe.c, lib/isapipe.h: New files.
70098
70099 2006-08-29  Jim Meyering  <jim@meyering.net>
70100
70101         * modules/configmake (Makefile.am): Make configmake.h depend on
70102         Makefile.  Otherwise, a stale configmake.h could hang around.
70103
70104 2006-08-29  Eric Blake  <ebb9@byu.net>
70105
70106         * lib/error.c (error_at_line, print_errno_message): Match libc, after
70107         resolution of upstream bug 3044.
70108
70109 2006-08-29  Bruno Haible  <bruno@clisp.org>
70110
70111         * modules/localcharset (Depends-on): Add configmake.
70112         (Makefile.am): Remove setting of LIBDIR through DEFS.
70113
70114 2006-08-29  Bruno Haible  <bruno@clisp.org>
70115
70116         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
70117         defined.
70118
70119 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70120
70121         * modules/fcntl: New file.
70122         * modules/chdir-safer (Depends-on): Add fcntl.
70123         * modules/fts: Likewise.
70124         * modules/mkdir-p: Likewise.
70125
70126         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
70127         This undoes the most recent change, since we're now addressing the
70128         problem in a different way.
70129
70130         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
70131         into output, since the output might be called Makefile.am even
70132         if $makefile_name is something different.
70133         (func_import): Use $makefile_am rather than
70134         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
70135         empty.
70136
70137         * modules/inttypes (Files): Add m4/inttypes-h.m4.
70138
70139 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70140
70141         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
70142         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
70143         recent change to stdint.m4, since we're now addressing the problem in a
70144         different way.
70145
70146 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70147
70148         * m4/fcntl_h.m4: New file.
70149
70150 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70151
70152         * lib/fcntl_.h: New file.
70153         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
70154         the fcntl module.
70155         * lib/dirchownmod.c: Likewise.
70156         * lib/fts.c: Likewise.
70157
70158         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
70159         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
70160         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
70161         just before including <inttypes.h>, to avoid circular inclusion.
70162
70163 2006-08-28  Jim Meyering  <jim@meyering.net>
70164
70165         * doc/visibility.texi: Actually read and correct the grammar of the
70166         sentence affected by yesterday's change.
70167
70168 2006-08-28  Eric Blake  <ebb9@byu.net>
70169
70170         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
70171         needs wrapper.
70172
70173 2006-08-28  Eric Blake  <ebb9@byu.net>
70174
70175         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
70176
70177 2006-08-28  Eric Blake  <ebb9@byu.net>
70178
70179         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
70180
70181 2006-08-28  Bruno Haible  <bruno@clisp.org>
70182
70183         * modules/c-strstr: New file, from GNU gettext.
70184         * MODULES.html.sh (String handling): Add c-strstr.
70185
70186 2006-08-28  Bruno Haible  <bruno@clisp.org>
70187
70188         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
70189         macros.
70190         Reported by Eric Blake.
70191
70192 2006-08-28  Bruno Haible  <bruno@clisp.org>
70193
70194         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
70195         (VASNPRINTF): Return a string of length > INT_MAX without failing.
70196         * lib/vasprintf.c: Include errno.h, limits.h.
70197         (EOVERFLOW): New fallback definition.
70198         (vasprintf): Test here whether the string length is > INT_MAX.
70199         * lib/vsnprintf.c: Include errno.h, limits.h.
70200         (EOVERFLOW): New fallback definition.
70201         (vsnprintf): Fix bug when generated string was too long for the buffer.
70202         Test here whether the string length is > INT_MAX.
70203
70204 2006-08-28  Bruno Haible  <bruno@clisp.org>
70205
70206         * lib/inttypes_.h (SCNX*): Remove definitions.
70207         Reported by Eric Blake.
70208
70209 2006-08-28  Bruno Haible  <bruno@clisp.org>
70210
70211         * lib/c-strstr.h: New file, from GNU gettext.
70212         * lib/c-strstr.c: New file, from GNU gettext.
70213
70214 2006-08-28  Bruno Haible  <bruno@clisp.org>
70215
70216         * gnulib-tool: Reorder some statements.
70217
70218 2006-08-28  Bruno Haible  <bruno@clisp.org>
70219
70220         * gnulib-tool: New option --makefile-name.
70221         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
70222         $makefile_name.
70223         (func_import): Write $makefile_name to the cache file, and read it from
70224         there unless explicitly specified. Use $makefile_name as file name
70225         instead of Makefile.am. Adjust the recommendations accordingly.
70226
70227 2006-08-28  Bruno Haible  <bruno@clisp.org>
70228
70229         * gnulib-tool (func_verify_module): Check against misapplying patch.
70230
70231 2006-08-28  Bruno Haible  <bruno@clisp.org>
70232
70233         * gnulib-tool (func_relativize, func_relconcat): New functions.
70234         Give an error if --local-dir is given with --update.
70235         Remove trailing slashes from $local_gnulib_dir.
70236         (func_import): Store the relativized $local_gnulib_dir in
70237         gnulib-cache.m4, and read it from there if not specified explicitly.
70238
70239 2006-08-28  Bruno Haible  <bruno@clisp.org>
70240
70241         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
70242         is the current directory. Respect also $local_gnulib_dir.
70243
70244 2006-08-28  Bruno Haible  <bruno@clisp.org>
70245             Simon Josefsson  <jas@extundo.com>
70246
70247         BeOS portability.
70248         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
70249
70250 2006-08-27  Jim Meyering  <jim@meyering.net>
70251
70252         * doc/visibility.texi: Remove duplicate word: "pointer".
70253
70254 2006-08-26  Bruno Haible  <bruno@clisp.org>
70255
70256         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
70257         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
70258         (Makefile.am): Create inttypes.h from inttypes_.h.
70259         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
70260
70261         * modules/imaxabs: New file.
70262
70263         * modules/imaxdiv: New file.
70264
70265 2006-08-26  Bruno Haible  <bruno@clisp.org>
70266
70267         * m4/inttypes.m4: New file.
70268         * m4/_inttypes_h.m4: Remove file.
70269         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
70270         PRI_MACROS_BROKEN.
70271         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
70272
70273         * m4/imaxabs.m4: New file.
70274
70275         * m4/imaxdiv.m4: New file.
70276
70277 2006-08-26  Bruno Haible  <bruno@clisp.org>
70278
70279         * lib/inttypes_.h: New file.
70280         * lib/inttypes.h: Remove file.
70281         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
70282
70283         * lib/imaxabs.c: New file.
70284
70285         * lib/imaxdiv.c: New file.
70286
70287 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70288
70289         New config-h module, so that "make" output needn't be cluttered
70290         by -DHAVE_CONFIG_H.
70291         * MODULES.html.sh (Support for building libraries and executables):
70292         Add config-h.
70293         * modules/config-h: New file.
70294         * gnulib-tool (nl, sed_transform_lib_file): New vars.
70295         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
70296         the config-h module is used.
70297
70298         New configmake module, so that "make" output needn't be cluttered
70299         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
70300         * MODULES.html.sh (Support for building libraries and executables):
70301         Add configmake.
70302         * modules/configmake: New file.
70303
70304 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70305
70306         * m4/config-h.m4: New file.
70307
70308 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70309
70310         * config/srclist.txt: Add elisp-comp.
70311
70312 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70313
70314         * MODULES.html.sh (Support for building libraries and executables):
70315         Add elisp-comp.
70316         * build-aux/elisp-comp: New file.
70317         * modules/elisp-comp: New file.
70318
70319 2006-08-24  Bruno Haible  <bruno@clisp.org>
70320
70321         * gnulib-tool (func_create_testdir): Use non-default values of
70322         sourcebase and m4base.
70323
70324 2006-08-24  Bruno Haible  <bruno@clisp.org>
70325
70326         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
70327         HTML structure.
70328
70329 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70330
70331         * modules/openat (Depends-on): Add lchown.
70332
70333 2006-08-23  Bruno Haible  <bruno@clisp.org>
70334
70335         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
70336         of gl_LOCK_EARLY instead of gl_LOCK.
70337
70338 2006-08-23  Bruno Haible  <bruno@clisp.org>
70339
70340         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
70341         on OSF/1 to no.
70342         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
70343
70344 2006-08-23  Bruno Haible  <bruno@clisp.org>
70345
70346         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
70347         as unusable.
70348
70349         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
70350         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
70351         (gl_LOCK): New macro.
70352
70353 2006-08-22  Simon Josefsson  <jas@extundo.com>
70354
70355         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
70356         to md5 module.
70357
70358 2006-08-22  Simon Josefsson  <jas@extundo.com>
70359
70360         * MODULES.html.sh: Add "Support for maintaining and release
70361         projects".
70362
70363         * build-aux/gnupload: New file, from coreutils.
70364
70365 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70366
70367         Avoid the need for AC_LIBSOURCES in m4 macros.
70368         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
70369         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
70370         * modules/check-version (EXTRA_DIST): Add check-version.h.
70371         * modules/crc (EXTRA_DIST): Add crc.h.
70372         * modules/des (EXTRA_DIST): Add des.h.
70373         * modules/gc (EXTRA_DIST): Add gc.h.
70374         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
70375         * modules/getline (EXTRA_DIST): Add getline.h.
70376         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
70377         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
70378         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
70379         * modules/md2 (EXTRA_DIST): Add md2.h.
70380         * modules/md4 (EXTRA_DIST): Add md4.h.
70381         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
70382         * modules/read-file (EXTRA_DIST): Add read-file.h.
70383         * modules/readline (EXTRA_DIST): Add readline.h.
70384         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
70385         rijndael-api-fst.h.
70386
70387 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70388
70389         * m4/rijndael.m4 (gl_ARCFOUR):
70390         * m4/arctwo.m4 (gl_ARCTWO):
70391         * m4/check-version.m4 (gl_CHECK_VERSION):
70392         * m4/crc.m4 (gl_CRC):
70393         * m4/des.m4 (gl_DES):
70394         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
70395         * m4/gc.m4 (gl_GC):
70396         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
70397         * m4/getline.m4 (gl_FUNC_GETLINE):
70398         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
70399         * m4/hmac-md5.m4 (gl_HMAC_MD5):
70400         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
70401         * m4/md2.m4 (gl_MD2):
70402         * m4/md4.m4 (gl_MD4):
70403         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
70404         * m4/read-file.m4 (gl_FUNC_READ_FILE):
70405         * m4/readline.m4 (gl_FUNC_READLINE):
70406         * m4/rijndael.m4 (gl_RIJNDAEL):
70407         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70408         to get the necessary .h files and whatnot.
70409
70410 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70411
70412         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
70413         gnulib rather than the other way around.
70414         * config/srclistvars.sh (COREUTILS): Remove.
70415
70416 2006-08-22  Jim Meyering  <jim@meyering.net>
70417
70418         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
70419
70420         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
70421
70422 2006-08-22  Eric Blake  <ebb9@byu.net>
70423
70424         * modules/regexprops-generic: New file.
70425         * MODULES.html.sh (Support for building documentation): List it.
70426
70427 2006-08-22  Eric Blake  <ebb9@byu.net>
70428
70429         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
70430         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
70431         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
70432         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
70433
70434 2006-08-22  Bruno Haible  <bruno@clisp.org>
70435
70436         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
70437         and lib_LTLIBRARIES like the other lib_* variables.
70438
70439 2006-08-22  Bruno Haible  <bruno@clisp.org>
70440
70441         * build-aux/x-to-1.in: New file, from GNU gettext.
70442
70443 2006-08-22  Bruno Haible  <bruno@clisp.org>
70444
70445         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
70446         <utmpx.h> exists.
70447
70448 2006-08-22  Bruno Haible  <bruno@clisp.org>
70449
70450         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
70451         <utmpx.h> exists.
70452
70453 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70454
70455         BeOS portability.
70456         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
70457         exist.
70458         Problem reported by Bruno Haible.
70459
70460 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70461
70462         Avoid the need for AC_LIBSOURCES in m4 macros.
70463         * modules/acl (EXTRA_DIST): Add acl.h.
70464         * modules/argmatch (Files): Add m4/argmatch.m4.
70465         (configure.ac): Add gl_ARGMATCH.
70466         (EXTRA_DIST): Renamed from lib_SOURCES, for
70467         consistency with the other modules.  Remove argmatch.c.
70468         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
70469         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
70470         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
70471         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
70472         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
70473         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
70474         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
70475         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
70476         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
70477         * modules/closeout (EXTRA_DIST): Add closeout.h.
70478         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
70479         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
70480         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
70481         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
70482         dirname.h; remove basename.c and stripslash.c.
70483         * modules/exclude (EXTRA_DIST): Add exclude.h.
70484         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
70485         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
70486         * modules/file-type (EXTRA_DIST): Add file-type.h.
70487         * modules/filemode (EXTRA_DIST): Add filemode.h.
70488         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
70489         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70490         * modules/fpending (EXTRA_DIST): Add __fpending.h.
70491         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
70492         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
70493         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
70494         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
70495         * modules/getdate (EXTRA_DIST): Add getdate.c.
70496         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
70497         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
70498         * modules/getpass (EXTRA_DIST): Add getpass.h.
70499         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
70500         * modules/group-member (EXTRA_DIST): Add group-member.h.
70501         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
70502         * modules/hash (EXTRA_DIST): Add hash.h.
70503         * modules/human (EXTRA_DIST): Add human.h.
70504         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
70505         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
70506         * modules/lchown (EXTRA_DIST): Add lchown.h.
70507         * modules/long-options (EXTRA_DIST): Add long-options.h.
70508         * modules/lstat (EXTRA_DIST): Add lstat.h.
70509         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
70510         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
70511         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
70512         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
70513         * modules/memxor (EXTRA_DIST): Add memxor.h.
70514         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
70515         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
70516         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
70517         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
70518         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
70519         * modules/physmem (EXTRA_DIST): Add physmem.h.
70520         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
70521         * modules/posixver (EXTRA_DIST): Add posixver.h.
70522         * modules/quote (EXTRA_DIST): Add quote.h.
70523         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
70524         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
70525         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
70526         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
70527         regex_internal.h regexec.c.
70528         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
70529         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
70530         * modules/same (EXTRA_DIST): Add same.h.
70531         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
70532         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
70533         * modules/savedir (EXTRA_DIST): Add savedir.h.
70534         * modules/sha1 (EXTRA_DIST): Add sha1.h.
70535         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
70536         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
70537         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
70538         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
70539         * modules/strdup (EXTRA_DIST): Add strdup.h.
70540         * modules/strftime (EXTRA_DIST): Add strftime.h.
70541         * modules/strndup (EXTRA_DIST): Add strndup.h.
70542         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
70543         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
70544         * modules/time_r (EXTRA_DIST): Add time_r.h.
70545         * modules/timespec (EXTRA_DIST): Add timespec.h.
70546         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70547         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
70548         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
70549         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
70550         * modules/userspec (EXTRA_DIST): Add userspec.h.
70551         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
70552         * modules/utimens (EXTRA_DIST): Add utimens.h.
70553         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
70554         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
70555         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
70556         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
70557         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
70558         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
70559         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
70560         * modules/yesno (EXTRA_DIST): Add yesno.h.
70561
70562 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70563
70564         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
70565
70566         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
70567         * m4/dev-ino.m4, same-inode.m4: Remove.
70568
70569         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
70570         * m4/acl.m4 (AC_FUNC_ACL):
70571         * m4/backupfile.m4 (gl_BACKUPFILE):
70572         * m4/c-strtod.m4 (gl_C99_STRTOLD):
70573         * m4/canon-host.m4 (gl_CANON_HOST):
70574         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70575         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
70576         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
70577         * m4/cloexec.m4 (gl_CLOEXEC):
70578         * m4/close-stream.m4 (gl_CLOSE_STREAM):
70579         * m4/closeout.m4 (gl_CLOSEOUT):
70580         * m4/dirfd.m4 (gl_FUNC_DIRFD):
70581         * m4/dirname.m4 (gl_DIRNAME):
70582         * m4/exclude.m4 (gl_EXCLUDE):
70583         * m4/exitfail.m4 (gl_EXITFAIL):
70584         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
70585         * m4/file-type.m4 (gl_FILE_TYPE):
70586         * m4/filemode.m4 (gl_FILEMODE):
70587         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
70588         * m4/fpending.m4 (gl_FUNC_FPENDING):
70589         * m4/fprintftime.m4 (gl_FPRINTFTIME):
70590         * m4/fts.m4 (gl_FUNC_FTS):
70591         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
70592         * m4/getdate.m4 (gl_GETDATE):
70593         * m4/gethrxtime.m4 (gl_GETHRXTIME):
70594         * m4/getpagesize.m4 (gl_GETPAGESIZE):
70595         * m4/getpass.m4 (gl_FUNC_GETPASS):
70596         * m4/gettime.m4 (gl_GETTIME):
70597         * m4/getugroups.m4 (gl_GETUGROUPS):
70598         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
70599         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
70600         * m4/hard-locale.m4 (gl_HARD_LOCALE):
70601         * m4/hash.m4 (gl_HASH):
70602         * m4/idcache.m4 (gl_IDCACHE):
70603         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
70604         * m4/lchown.m4 (gl_FUNC_LCHOWN):
70605         * m4/long-options.m4 (gl_LONG_OPTIONS):
70606         * m4/lstat.m4 (gl_FUNC_LSTAT):
70607         * m4/md5.m4 (gl_MD5):
70608         * m4/memcasecmp.m4 (gl_MEMCASECMP):
70609         * m4/memcoll.m4 (gl_MEMCOLL):
70610         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
70611         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
70612         * m4/memxor.m4 (gl_MEMXOR):
70613         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
70614         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
70615         * m4/modechange.m4 (gl_MODECHANGE):
70616         * m4/mountlist.m4 (gl_MOUNTLIST):
70617         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70618         * m4/openat.m4 (gl_FUNC_OPENAT):
70619         * m4/pathmax.m4 (gl_PATHMAX):
70620         * m4/physmem.m4 (gl_PHYSMEM):
70621         * m4/posixtm.m4 (gl_POSIXTM):
70622         * m4/posixver.m4 (gl_POSIXVER):
70623         * m4/quote.m4 (gl_QUOTE):
70624         * m4/quotearg.m4 (gl_QUOTEARG):
70625         * m4/readtokens.m4 (gl_READTOKENS):
70626         * m4/readutmp.m4 (gl_READUTMP):
70627         * m4/regex.m4 (gl_REGEX):
70628         * m4/safe-read.m4 (gl_SAFE_READ):
70629         * m4/safe-write.m4 (gl_SAFE_WRITE):
70630         * m4/same.m4 (gl_SAME):
70631         * m4/save-cwd.m4 (gl_SAVE_CWD):
70632         * m4/savedir.m4 (gl_SAVEDIR):
70633         * m4/settime.m4 (gl_SETTIME):
70634         * m4/sha1.m4 (gl_SHA1):
70635         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
70636         * m4/stat-macros.m4 (gl_STAT_MACROS):
70637         * m4/stat-time.m4 (gl_STAT_TIME):
70638         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
70639         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
70640         * m4/strdup.m4 (gl_FUNC_STRDUP):
70641         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
70642         * m4/strndup.m4 (gl_FUNC_STRNDUP):
70643         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
70644         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
70645         * m4/time_r.m4 (gl_TIME_R):
70646         * m4/timespec.m4 (gl_TIMESPEC):
70647         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
70648         * m4/unlinkdir.m4 (gl_UNLINKDIR):
70649         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
70650         * m4/userspec.m4 (gl_USERSPEC):
70651         * m4/utimecmp.m4 (gl_UTIMECMP):
70652         * m4/utimens.m4 (gl_UTIMENS):
70653         * m4/xalloc.m4 (gl_XALLOC):
70654         * m4/xgetcwd.m4 (gl_XGETCWD):
70655         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
70656         * m4/xreadlink.m4 (gl_XREADLINK):
70657         * m4/xstrtod.m4 (gl_XSTRTOD):
70658         * m4/yesno.m4 (gl_YESNO):
70659         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70660         to get the necessary .h files and whatnot.
70661
70662 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
70663             Bruno Haible  <bruno@clisp.org>
70664
70665         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
70666         /bin/sh understanding of '!' conditional negation.
70667
70668 2006-08-21  Jim Meyering  <jim@meyering.net>
70669
70670         * modules/openat (Depends-on): Really alphabetize.
70671
70672         * modules/acl (Depends-on): Add error and quote.
70673
70674         * check-module (find_included_lib_files): Add at-func.c to the
70675         ok-to-include-more-than-once white list.
70676
70677         * modules/openat (Depends-on): Add lstat.  Alphabetize.
70678
70679 2006-08-21  Bruno Haible  <bruno@clisp.org>
70680
70681         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70682         Emit a pkgdata_DATA variable only if some snippets add contents to it.
70683         Reported by Martin Lambers <marlam@marlam.de>.
70684
70685 2006-08-21  Bruno Haible  <bruno@clisp.org>
70686
70687         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
70688         specify an installation location, don't emit a noinst_LIBRARIES or
70689         noinst_LTLIBRARIES assignment.
70690
70691 2006-08-21  Bruno Haible  <bruno@clisp.org>
70692
70693         BeOS portability.
70694         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
70695         BeOS has mbrtowc() but no <wctype.h>.
70696
70697 2006-08-21  Bruno Haible  <bruno@clisp.org>
70698
70699         BeOS portability.
70700         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
70701         exist.
70702
70703 2006-08-21  Bruno Haible  <bruno@clisp.org>
70704
70705         BeOS portability.
70706         * lib/mbchar.h: Include <wctype.h> only if it exists.
70707
70708 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70709
70710         Remove files that are no longer needed by their respective modules.
70711         * m4/obstack.m4: Remove.
70712         * m4/strerror_r.m4: Remove.
70713         * m4/uint32_t.m4: Remove.
70714         * m4/uintptr_t.m4: Remove.
70715         * m4/ullong_max.m4: Remove.
70716         * m4/xstrtoimax.m4: Remove.
70717         * m4/xstrtoumax.m4: Remove.
70718
70719         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
70720         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
70721         dependencies now capture this.
70722
70723         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
70724         Do not use AC_LIBSOURCES, since gnulib modules now do this.
70725         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
70726         * m4/human.m4 (gl_HUMAN): Likewise.
70727         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
70728         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
70729
70730         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
70731
70732         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
70733         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
70734         stdint.
70735         * m4/human.m4 (gl_HUMAN): Likewise.
70736         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
70737         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
70738         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70739         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70740         * m4/xstrtol (gl_XSTRTOL): Likewise.
70741
70742         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
70743         AC_TYPE_LONG_LONG_INT.
70744         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70745         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
70746         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
70747         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70748
70749         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
70750         on stdbool.
70751
70752         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
70753         (gl_PREREQ_XSTRTOUL): Remove.
70754
70755         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
70756
70757         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
70758         mode.
70759
70760 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70761
70762         Add and change modules to make it easier for coreutils to use
70763         gnulib-tool.
70764         * modules/backupfile (Files): Remove m4/d-ino.m4.
70765         (Depends-on): Add d-ino.
70766         * modules/cycle-check (Depends-on): Add stdint.
70767         (lib_SOURCES): Add cycle-check.h.
70768         * modules/d-ino: New module.
70769         * modules/d-type: New module.
70770         * modules/error (Files): Remove m4/strerror_r.m4.
70771         * modules/filemode (Files): Add m4/st_dm_mode.m4.
70772         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70773         m4/inttypes_h.m4, m4/uintmax_t.m4.
70774         (Depends-on): Add stdint.
70775         (lib_SOURCES): Add fsusage.h.
70776         * modules/getcwd (Files): Remove d-ino.m4.
70777         (Depends-on): Add d-ino.
70778         * modules/getndelim2 (Depends-on): Add stdint.
70779         * modules/glob (Files): Remove m4/d-type.m4.
70780         (Depends-on): Add d-type.
70781         * modules/host-os: New module.
70782         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
70783         m4/inttypes_h.m4, m4/uintmax_t.m4.
70784         * Depends-on: Add stdint.
70785         (lib_SOURCES): Add human.h.
70786         * modules/inttostr (Files): Remove m4/intmax_t.m4,
70787         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
70788         m4/uintmax_t.m4, m4/ulonglong.m4.
70789         (Depends-on): Add stdint.
70790         (EXTRA_DIST): Add inttostr.h.
70791         * modules/lchmod: New module.
70792         * modules/link-follow: New module.
70793         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
70794         (Depends-on): Add lchmod.
70795         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
70796         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
70797         (Depends-on): Add stdint.
70798         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
70799         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
70800         (Depends-on): Add stdint.
70801         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
70802         * modules/perl: New module.
70803         * modules/regex (Depends-on): Add stdint.
70804         * modules/rmdir-errno: New module.
70805         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70806         m4/intmax_t.m4.
70807         (Depends-on): Add stdint.
70808         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70809         m4/uintmax_t.m4.
70810         (Depends-on): Add stdint.
70811         * modules/unlink-busy: New module.
70812         * modules/utimecmp (Depends-on): Add stdint.
70813         * modules/uptime: New module.
70814         * modules/winsz-ioctl: New module.
70815         * modules/winsz-termios: New module.
70816         * modules/xnanosleep (Depends-on): Add nanosleep.
70817         * modules/ullong_max: Remove.
70818         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
70819         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
70820         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
70821         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
70822         (Depends-on): Add inttypes.
70823         (lib_SOURCES): Add xstrtol.h.
70824         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
70825         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
70826         * MODULES.html.sh: Move 'assert' into the assert section.
70827         Move 'dummy' into the linking section.
70828         Remove ullong_max.
70829         Add section for compatibility checks for POSIX:2001 functions,
70830         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
70831         winsz-ioctl, and winsz-termios into it.
70832         Add lchmod.
70833         Add top-level Misc section and put host-os, perl, and uptime
70834         into it.
70835
70836 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70837
70838         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
70839         now assume the stdint module.  Do not include inttypes.h.
70840         * lib/fsusage.h: Likewise.
70841         * lib/getndelim2.c: Likewise.
70842         * lib/human.h: Likewise.
70843         * lib/inttostr.h: Likewise.
70844         * lib/obstack.c: Likewise.
70845         * lib/regex_internal.h: Likewise.
70846         * lib/tempname.c: Likewise.
70847         * lib/utimecmp.c: Likewise.
70848         * lib/xstrtol.h: Likewise.
70849
70850         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
70851
70852         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
70853         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
70854         * lib/xtime.h: Likewise.
70855
70856 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70857
70858         * modules/openat (Files): Add lib/fchmodat.c.
70859         Fixes problem reported by Jay Youngman.
70860
70861 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70862
70863         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
70864         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
70865
70866 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
70867             Bruno Haible  <bruno@clisp.org>
70868
70869         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
70870         and is a script that invokes bison. Tighten the code. Add comments.
70871
70872 2006-08-18  Jim Meyering  <jim@meyering.net>
70873
70874         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
70875         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
70876         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
70877         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
70878
70879 2006-08-18  Bruno Haible  <bruno@clisp.org>
70880
70881         * modules/bison-i18n: New file.
70882         * MODULES.html.sh (Internationalization functions): Add it.
70883
70884 2006-08-18  Bruno Haible  <bruno@clisp.org>
70885
70886         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
70887         sys/statvfs.h. When getmntinfo was found, check its declaration and
70888         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
70889
70890 2006-08-18  Bruno Haible  <bruno@clisp.org>
70891
70892         * m4/bison-i18n.m4: New file, from bison.
70893
70894 2006-08-18  Bruno Haible  <bruno@clisp.org>
70895
70896         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
70897         (ME_DUMMY): Treat "kernfs" as a dummy.
70898         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
70899
70900 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70901
70902         Update from coreutils.
70903
70904         2006-08-15  Jim Meyering  <jim@meyering.net>
70905
70906         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
70907
70908         2006-01-17  Jim Meyering  <jim@meyering.net>
70909
70910         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
70911
70912         2006-01-11  Jim Meyering  <jim@meyering.net>
70913
70914         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
70915         Check for the lchmod function.
70916
70917 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70918
70919         Update from coreutils.
70920
70921         * lib/__fpending.h: Add copyright notice.
70922         * lib/fprintftime.h: Likewise.
70923         * lib/savedir.c: Use (C) in copyright notice.
70924         * lib/savedir.h: Likewise.
70925
70926         2006-08-15  Jim Meyering  <jim@meyering.net>
70927
70928         * lib/at-func.c: New file, with the logic of all emulated at-functions.
70929         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
70930         in support of the EXPECTED_ERRNO macro.
70931         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
70932         definitions.  Instead, define the appropriate symbols and include
70933         "at-func.c".
70934         * lib/mkdirat.c (mkdirat): Likewise.
70935         * lib/fchmodat.c (fchmodat): Likewise.
70936         (ENOSYS): Remove definition.
70937         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
70938         it.  Don't include "unistd--.h" -- it wasn't ever used.
70939
70940         2006-01-17  Jim Meyering  <jim@meyering.net>
70941
70942         Rewrite fts.c not to change the current working directory,
70943         by using openat, fstatat, fdopendir, etc..
70944
70945         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
70946         (HAVE_OPENAT_SUPPORT): Define.
70947         [_LIBC] (fchdir): Don't undef or define; no longer used.
70948         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
70949         Now, this `function' always succeeds, and consumes its file descriptor
70950         parameter -- so callers must not close such FDs.  Update callers.
70951         (diropen_fd, opendirat, cwd_advance_fd): New functions.
70952         (diropen): Add parameter, SP.  Adjust all callers.
70953         Implement using diropen_fd, rather than open.
70954         (fts_open): Initialize new member, fts_cwd_fd.
70955         Remove fts_rft-setting code.
70956         (fts_close): Close fts_cwd_fd, if necessary.
70957         (__opendir2): Define in terms of opendir or opendirat,
70958         depending on whether the FST_NOCHDIR flag is set.
70959         (fts_build): Since fts_safe_changedir consumes its FD, and since
70960         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
70961         and close the dup'd file descriptor upon failure.
70962         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
70963         (fts_safe_changedir): Tweak semantics to reflect that this function
70964         now calls cwd_advance_fd and hence consumes its FD argument.
70965         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
70966         [struct FTS] (fts_rft): Remove now-unused member.
70967         [struct FTS] (fts_cycle.state): Improve comment.
70968
70969         * lib/openat.c (openat_needs_fchdir): New function.
70970         * lib/openat.h (openat_needs_fchdir): Declare it.
70971
70972 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70973
70974         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
70975         Problem and fix reported by Pádraig Brady in
70976         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
70977
70978 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70979
70980         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
70981
70982 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70983
70984         * lib/memcoll.c (memcoll): Optimize for the common case where the
70985         arguments are bytewise equal.
70986
70987 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70988
70989         * doc/regexprops-generic.texi: Add a copyright notice.
70990
70991 2006-08-15  Bruno Haible  <bruno@clisp.org>
70992
70993         * modules/tmpdir (License): Change to LGPL.
70994
70995 2006-08-15  Bruno Haible  <bruno@clisp.org>
70996
70997         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
70998         module.
70999
71000 2006-08-14  Simon Josefsson  <jas@extundo.com>
71001
71002         * config/srclist.txt: Add gnupload.
71003
71004 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71005
71006         Change copyright notice from LGPL 2 to GPL 2, since that's the
71007         standard form used in the gnulib repository.
71008         * tests/test-lock.c: Likewise.
71009         * tests/test-stdint.c: Likewise.
71010         * tests/test-tls.c: Likewise.
71011
71012         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
71013         prelude-manager.  User shorter URLs for GNU projects, without '?'.
71014         Add copyright notice.
71015
71016         * check-module: Add copyright notice.  Output a copyright
71017         notice if "--version" is specified.
71018         * modules/COPYING: New file.
71019         * tests/test-getaddrinfo.c: Add copyright notice.
71020         * tests/test-verify.c: Likewise.
71021
71022 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71023
71024         Change copyright notice from LGPL 2 to GPL 2, since that's the
71025         standard form used in the gnulib repository.
71026         * lib/lock.c: LGPL -> GPL.
71027         * lib/lock.h: Likewise.
71028         * lib/strnlen1.c: Likewise.
71029         * lib/strnlen1.h: Likewise.
71030         * lib/tls.c: Likewise.
71031         * lib/tls.h: Likewise.
71032         * lib/tmpdir.c: Likewise.
71033
71034         * lib/TODO: Remove; this belongs only in coreutils.
71035
71036 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71037
71038         Add copyright notices to long-enough files that lack them, since
71039         otherwise the files aren't clearly free.  Use the same notice that
71040         getdate.texi already uses.
71041         * doc/alloca-opt.texi: Add copyright notice.
71042         * doc/alloca.texi: Likewise.
71043         * doc/ctime.texi: Likewise.
71044         * doc/functions.texi: Likewise.
71045         * doc/gcd.texi: Likewise.
71046         * doc/gnulib-tool.texi: Likewise.
71047         * doc/inet_ntoa.texi: Likewise.
71048         * doc/visibility.texi: Likewise.
71049
71050         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
71051         * doc/quote.texi: Add copyright notice.
71052
71053         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
71054         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
71055         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
71056         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
71057         is now obsolete, and give a pointer to the Sun list.
71058         Add copyright notice.
71059
71060 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71061
71062         * config/srclistvars.sh: Add copyright notice.
71063
71064 2006-08-14  Eric Blake  <ebb9@byu.net>
71065
71066         Import the following change from libc:
71067
71068         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
71069
71070         Upstream bug 2997.
71071         * lib/misc/error.c: Add space between program name and message if file
71072         name is missing.
71073
71074 2006-08-12  Karl Berry  <karl@gnu.org>
71075
71076         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
71077         remove, these originate in gnulib now.
71078
71079 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71080
71081         * doc/Makefile (standards.info standards.html standards.dvi):
71082         Also depend on make-stds.texi.
71083
71084 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71085
71086         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
71087         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
71088
71089         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
71090         in wchar_t.  Problem reported by Eric Blake.
71091
71092         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
71093         LEN is smaller than SIZE.  Suggested by Bruno Haible.
71094         Also, help the compiler to keep LEN in a register.
71095
71096 2006-08-11  Eric Blake  <ebb9@byu.net>
71097
71098         * users.txt: Sort.  Add tar.
71099
71100 2006-08-11  Bruno Haible  <bruno@clisp.org>
71101
71102         * users.txt: New file.
71103
71104 2006-08-11  Bruno Haible  <bruno@clisp.org>
71105
71106         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
71107         before <wchar.h>. Needed for OSF/1 and BSD/OS.
71108
71109 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71110
71111         * modules/snprintf (Depends-on): Remove minmax.
71112         (Maintainer): Add self and Bruno.
71113
71114 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71115
71116         * lib/.cppi-disable: Add snprintf.h, socket_.h.
71117         * lib/snprintf.c: Include <errno.h> and <limits.h>.
71118         (EOVERFLOW): Define if the system does not.
71119         Do not include "minmax.h"; it wasn't used.
71120         (snprintf): Don't assume size_t promotes to an unsigned type.
71121         Fix bug when generated string was too long for the buffer: the
71122         buffer's contents are supposed to be the initial prefix of the
71123         output.  Don't assume vasnprintf returns EOVERFLOW if the size
71124         exceeds INT_MAX; do the check ourselves.
71125
71126         Import the following changes from libc:
71127
71128         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
71129
71130         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
71131         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
71132         set wc to the byte which couldn't be converted.
71133         (re_string_reconstruct): Don't clear valid_raw_len before calling
71134         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
71135         tip_context using re_string_context_at.
71136
71137         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
71138
71139         * lib/posix/regex.h: g++ still cannot handled [restrict].
71140
71141         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
71142
71143         * lib/posix/regex.h: Remove special handling for VMS.
71144
71145 2006-08-10  Jim Meyering  <jim@meyering.net>
71146
71147         * modules/same-inode: New module.
71148         * modules/dev-ino: New module.
71149         * modules/cycle-check: Depend on these modules, rather than simply
71150         including their .h files.
71151         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
71152         required via m4/cycle-check.m4.
71153         * modules/same: Depend on new same-inode module, rather than
71154         including same-inode.h.
71155         * modules/chdir-safer: New file.
71156
71157         * modules/chown (Depends-on): Add stat-macros.
71158
71159 2006-08-10  Jim Meyering  <jim@meyering.net>
71160
71161         * m4/cycle-check.m4: New file.
71162         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
71163         * m4/dev-ino.m4, m4/same-inode.m4: New files.
71164
71165 2006-08-10  Eric Blake  <ebb9@byu.net>
71166
71167         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
71168         in from original proposal.
71169
71170 2006-08-10  Eric Blake  <ebb9@byu.net>
71171         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
71172
71173         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
71174         namespace.
71175
71176 2006-08-10  Bruno Haible  <bruno@clisp.org>
71177
71178         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
71179         as well.
71180
71181 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71182
71183         Sync from coreutils.
71184
71185         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
71186
71187         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
71188         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
71189
71190 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71191
71192         * modules/restrict: Remove; no longer needed now that we assume
71193         Autoconf 2.59 or later.
71194         * MODULES.html.sh: Remove 'restrict'.
71195         * modules/argp (Depends-on): Remove 'restrict'.
71196         * modules/base64 (Depends-on): Likewise.
71197         * modules/gc (Depends-on): Likewise.
71198         * modules/getaddrinfo (Depends-on): Likewise.
71199         * modules/glob (Depends-on): Likewise.
71200         * modules/inet_ntop (Depends-on): Likewise.
71201         * modules/inet_pton (Depends-on): Likewise.
71202         * modules/memxor (Depends-on): Likewise.
71203         * modules/regex (Depends-on): Likewise.
71204         * modules/strtok_r (Depends-on): Likewise.
71205         * modules/time_r (Depends-on): Likewise.
71206
71207 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71208
71209         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
71210         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
71211         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71212         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
71213         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
71214         * m4/memxor.m4 (gl_MEMXOR): Likewise.
71215         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
71216         gl_C_RESTRICT replaced by AC_C_RESTRICT.
71217
71218         Merge from coreutils.
71219         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
71220         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
71221         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
71222         * m4/time_r.m4 (gl_TIME_R): Likewise.
71223
71224 2006-08-09  Karl Berry  <karl@gnu.org>
71225
71226         * config/srclist.txt: no more gettext-tools, per Bruno.
71227
71228 2006-08-08  Eric Blake  <ebb9@byu.net>
71229
71230         * modules/verror: New module.
71231         * MODULES.html.sh: Document it.
71232
71233 2006-08-08  Eric Blake  <ebb9@byu.net>
71234
71235         * lib/verror.h, lib/verror.c: New files.
71236
71237 2006-08-08  Eric Blake  <ebb9@byu.net>
71238
71239         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
71240         verror_at_line output complies with GNU Coding Standards even when
71241         file is NULL.
71242
71243 2006-08-07  Bruno Haible  <bruno@clisp.org>
71244
71245         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
71246         versions of AIX.
71247         Reported by Ralf Wildenhues.
71248
71249 2006-08-07  Bruno Haible  <bruno@clisp.org>
71250
71251         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
71252         in an AC_DEFUN. Needed so that the autoconf snippets can use
71253         AC_REQUIRE.
71254
71255 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71256
71257         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71258         Initialize pkgdata_DATA.
71259         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
71260         overriding it.
71261
71262 2006-08-06  Eric Blake  <ebb9@byu.net>
71263
71264         * lib/error.h: Fold in some upstream changes from glibc.
71265         * lib/error.c: Likewise.
71266
71267 2006-08-04  Bruno Haible  <bruno@clisp.org>
71268
71269         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71270         Make the mostlyclean-local rule depend on mostlyclean-generic.
71271         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
71272
71273 2006-07-31  Bruno Haible  <bruno@clisp.org>
71274
71275         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
71276         <stdlib.h>, <string.h>.
71277
71278 2006-07-30  Bruno Haible  <bruno@clisp.org>
71279
71280         * modules/readlink (License): Change to LGPL.
71281
71282 2006-07-30  Bruno Haible  <bruno@clisp.org>
71283
71284         * modules/javaversion (Makefile.am): Distribute javaversion.java and
71285         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
71286         set PKGDATADIR to point to it.
71287
71288 2006-07-30  Bruno Haible  <bruno@clisp.org>
71289
71290         * modules/csharpexec (configure.ac): Comment out macro invocation.
71291         * modules/javaexec (configure.ac): Likewise.
71292         * modules/javacomp-script (configure.ac): Likewise.
71293
71294         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
71295
71296 2006-07-30  Bruno Haible  <bruno@clisp.org>
71297
71298         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
71299         linked-list.
71300
71301 2006-07-30  Bruno Haible  <bruno@clisp.org>
71302
71303         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
71304
71305 2006-07-30  Bruno Haible  <bruno@clisp.org>
71306
71307         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71308         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
71309         get removed.
71310
71311 2006-07-29  Bruno Haible  <bruno@clisp.org>
71312
71313         Make it possible for gnulib-tool to work with locally modified or
71314         augmented gnulib repositories.
71315         * gnulib-tool (func_usage): Document --local-dir option.
71316         (local_gnulib_dir): New variable.
71317         Handle --local-dir option.
71318         (func_lookup_file): New function.
71319         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
71320         (func_get_description, func_get_filelist, func_get_description,
71321         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
71322         func_get_automake_snippet, func_get_include_directive,
71323         func_get_license, func_get_maintainer): Use func_lookup_file.
71324         (func_import, func_create_testdir): Use func_lookup_file.
71325
71326 2006-07-29  Bruno Haible  <bruno@clisp.org>
71327
71328         * modules/setenv (Depends-on): Add unistd.
71329
71330 2006-07-29  Bruno Haible  <bruno@clisp.org>
71331
71332         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
71333
71334 2006-07-29  Bruno Haible  <bruno@clisp.org>
71335
71336         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
71337
71338 2006-07-29  Bruno Haible  <bruno@clisp.org>
71339
71340         * gnulib-tool (import, update): If there is no Makefile.am, look at
71341         aclocal.m4, instead of bailing out.
71342
71343 2006-07-29  Bruno Haible  <bruno@clisp.org>
71344
71345         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
71346         Categorize the options by when they are useful.
71347
71348 2006-07-29  Bruno Haible  <bruno@clisp.org>
71349
71350         * gnulib-tool (func_usage): Document option --no-libtool.
71351         Handle option --no-libtool.
71352         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
71353         for changed semantics of $libtool variable.
71354         (func_import): Likewise. If libtool is not used, show this through
71355         an option --no-libtool.
71356         (func_create_testdir): Update.
71357
71358 2006-07-29  Bruno Haible  <bruno@clisp.org>
71359
71360         * gnulib-tool (func_import): Extend error message about missing
71361         --doc-base.
71362
71363 2006-07-29  Bruno Haible  <bruno@clisp.org>
71364
71365         * gnulib-tool (func_import): Don't create the $docbase directory if
71366         there is no file to store there.
71367
71368 2006-07-29  Bruno Haible  <bruno@clisp.org>
71369
71370         * gnulib-tool (autoconf_minversion): If a --dir option is given and
71371         relevant, look for configure.ac there, not in the current directory.
71372         Also use a simple search for AC_PREREQ, not "autoconf --trace".
71373
71374 2006-07-29  Bruno Haible  <bruno@clisp.org>
71375
71376         * gnulib-tool (SORT): New variable.
71377         (func_usage): Undocument --assume-autoconf option.
71378         Remove --assume-autoconf option handling.
71379         (autoconf_minversion): Determine from the contents of configure.ac.
71380         (func_import): Remove autoconf_minversion handling.
71381         Suggested by Eric Blake.
71382
71383 2006-07-29  Bruno Haible  <bruno@clisp.org>
71384
71385         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
71386
71387 2006-07-29  Bruno Haible  <bruno@clisp.org>
71388
71389         * config/srclist.txt (*setenv.[ch]): Remove rules.
71390
71391 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71392
71393         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
71394
71395 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71396
71397         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
71398         arpa/inet.h.
71399
71400 2006-07-28  Simon Josefsson  <jas@extundo.com>
71401
71402         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
71403         * modules/inet_pton (Depends-on): Likewise.
71404
71405 2006-07-28  Simon Josefsson  <jas@extundo.com>
71406
71407         * m4/netinet_in_h.m4: New file.
71408
71409 2006-07-28  Simon Josefsson  <jas@extundo.com>
71410
71411         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
71412         #include's.
71413
71414 2006-07-28  Simon Josefsson  <jas@extundo.com>
71415
71416         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
71417         #include's.
71418
71419 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
71420
71421         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
71422         setgid on directories only if they set these bits.
71423         * lib/modechange.h: Remove obsolete comment about masks.
71424
71425 2006-07-28  Eric Blake  <ebb9@byu.net>
71426
71427         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
71428         macro expansion.
71429
71430 2006-07-28  Bruno Haible  <bruno@clisp.org>
71431
71432         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
71433
71434 2006-07-28  Bruno Haible  <bruno@clisp.org>
71435
71436         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
71437
71438 2006-07-28  Bruno Haible  <bruno@clisp.org>
71439
71440         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
71441         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
71442         Define fallbacks.
71443         Avoids link error on FreeBSD 4.x.
71444         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71445
71446         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
71447         encoding.
71448         * lib/mbswidth.c (iswcntrl): Likewise.
71449
71450 2006-07-27  Bruno Haible  <bruno@clisp.org>
71451
71452         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
71453         test.
71454
71455 2006-07-27  Bruno Haible  <bruno@clisp.org>
71456
71457         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
71458         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
71459         defined.
71460
71461 2006-07-26  Eric Blake  <ebb9@byu.net>
71462
71463         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
71464
71465 2006-07-26  Eric Blake  <ebb9@byu.net>
71466
71467         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
71468         like mingw that lack mkstemp.
71469         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
71470         avoid compilation warning on mingw.
71471
71472 2006-07-26  Bruno Haible  <bruno@clisp.org>
71473
71474         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
71475         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
71476         INT_FAST*_MIN, INTPTR_MIN.
71477
71478 2006-07-25  Bruno Haible  <bruno@clisp.org>
71479
71480         * modules/version-etc (Depends-on): Add stdarg.
71481
71482 2006-07-25  Bruno Haible  <bruno@clisp.org>
71483
71484         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
71485         complex commands.
71486
71487 2006-07-25  Bruno Haible  <bruno@clisp.org>
71488
71489         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
71490         defined in <stdarg.h> or config.h.
71491
71492 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71493
71494         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
71495         (gl_STDIO_SAFER): Remove.
71496
71497 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71498
71499         * MODULES.html.sh (File stream based Input/Output):
71500         Add fopen-safer, tmpfile-safer; remove stdio-safer.
71501         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
71502         * modules/fopen-safer, modules/tmpfile-safer: New files.
71503         * modules/stdio-safer: Remove.
71504
71505 2006-07-24  Bruno Haible  <bruno@clisp.org>
71506
71507         * modules/tmpdir: New file.
71508         * MODULES.html.sh (File system functions): Add it.
71509
71510 2006-07-24  Bruno Haible  <bruno@clisp.org>
71511
71512         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
71513         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
71514
71515 2006-07-24  Bruno Haible  <bruno@clisp.org>
71516
71517         * modules/clean-temp: New file.
71518
71519 2006-07-24  Bruno Haible  <bruno@clisp.org>
71520
71521         * m4/tmpdir.m4: New file, from GNU gettext.
71522
71523 2006-07-24  Bruno Haible  <bruno@clisp.org>
71524
71525         * lib/tmpdir.h: New file, from GNU gettext.
71526         * lib/tmpdir.c: New file, from GNU gettext.
71527
71528 2006-07-24  Bruno Haible  <bruno@clisp.org>
71529
71530         * lib/clean-temp.h: New file, from GNU gettext.
71531         * lib/clean-temp.c: New file, from GNU gettext.
71532
71533 2006-07-23  Eric Blake  <ebb9@byu.net>
71534
71535         * modules/stdio-safer (Files): Add tmpfile-safer.c.
71536         (Depends-on): Add binary-io.
71537
71538 2006-07-23  Eric Blake  <ebb9@byu.net>
71539
71540         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
71541
71542 2006-07-23  Eric Blake  <ebb9@byu.net>
71543
71544         * lib/tmpfile-safer.c: New file.
71545         * lib/stdio-safer.h (fopen_safer): Add prototype.
71546         * lib/stdio--.h (tmpfile): Make safer.
71547
71548 2006-07-23  Bruno Haible  <bruno@clisp.org>
71549
71550         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
71551         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
71552         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
71553         gl_linked_remove_at): Use it.
71554
71555 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71556         and Simon Josefsson <jas@extundo.com>
71557
71558         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
71559
71560         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
71561
71562 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71563
71564         * modules/close-stream: New file.
71565         * modules/closeout (Description): Make it clear that it exits
71566         with a diagnostic on error.
71567         (Depends-on): Add close-stream.  Remove fpending, stdbool.
71568         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
71569
71570 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71571
71572         * m4/close-stream.m4: New file.
71573
71574 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71575
71576         * lib/close-stream.c, lib/close-stream.h: New files.
71577
71578 2006-07-22  Bruno Haible  <bruno@clisp.org>
71579
71580         Merge from GNU gettext 0.15.
71581
71582         2006-05-01  Bruno Haible  <bruno@clisp.org>
71583
71584                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
71585
71586         2006-07-22  Bruno Haible  <bruno@clisp.org>
71587
71588                 * modules/javaversion: New file.
71589                 * MODULES.html.sh (Java): Add javaversion.
71590
71591         2006-03-12  Bruno Haible  <bruno@clisp.org>
71592
71593                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
71594
71595         2005-12-04  Bruno Haible  <bruno@clisp.org>
71596
71597                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
71598                 (untested).
71599
71600         2006-06-21  Bruno Haible  <bruno@clisp.org>
71601
71602                 Avoid warnings from recent versions of mcs.
71603                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
71604                 -o, -L, -r any more. Use options documented since mcs-1.0
71605                 instead. Similarly for -g.
71606
71607         2005-12-04  Bruno Haible  <bruno@clisp.org>
71608
71609                 * build-aux/csharpcomp.sh.in: Suffix for resources is
71610                 .resources, not .resource.
71611
71612         2005-07-09  Bruno Haible  <bruno@clisp.org>
71613
71614                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
71615                 add a .dll suffix.
71616                 Reported by Mark Junker <mjscod@gmx.de>.
71617
71618         2006-07-22  Bruno Haible  <bruno@clisp.org>
71619
71620                 * modules/gettext: Upgrade to gettext-0.15.
71621                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
71622                 m4/visibility.m4.
71623                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
71624
71625 2006-07-22  Bruno Haible  <bruno@clisp.org>
71626
71627         Merge from GNU gettext 0.15.
71628
71629         2006-03-25  Bruno Haible  <bruno@clisp.org>
71630
71631                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
71632
71633         2006-07-21  Bruno Haible  <bruno@clisp.org>
71634
71635                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
71636                 "1.1".
71637
71638         2006-05-09  Bruno Haible  <bruno@clisp.org>
71639
71640                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
71641                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
71642                 for the conftestver execution.
71643
71644         2006-05-01  Bruno Haible  <bruno@clisp.org>
71645
71646                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
71647                 optional target-version argument. Verify that the compiler
71648                 groks source of the specified source-version, or add -source
71649                 option as necessary. Verify that the compiler produces
71650                 bytecode in the specified target-version, or add -target and
71651                 -source options as necessary. Make the result of the test
71652                 available as variable CONF_JAVAC. Also log error output in
71653                 config.log.
71654
71655         2006-03-11  Bruno Haible  <bruno@clisp.org>
71656
71657                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
71658
71659         2006-05-09  Bruno Haible  <bruno@clisp.org>
71660
71661                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
71662                 CLASSPATH_SEPARATOR to a semicolon.
71663
71664         2006-03-12  Bruno Haible  <bruno@clisp.org>
71665
71666                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
71667                 available as variable CONF_JAVA, for subsequent autoconf
71668                 tests. Also log error output in config.log.
71669
71670         2006-07-19  Bruno Haible  <bruno@clisp.org>
71671
71672                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
71673                 that getline works on glibc2 systems. Needed to avoid trouble
71674                 in relocatable.c.
71675                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
71676
71677         2005-12-04  Bruno Haible  <bruno@clisp.org>
71678
71679                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
71680                 launcher (untested).
71681
71682         2005-12-04  Bruno Haible  <bruno@clisp.org>
71683
71684                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
71685
71686         2006-07-22  Bruno Haible  <bruno@clisp.org>
71687
71688                 * gettext.m4: Update from GNU gettext-0.15.
71689                 * nls.m4: Likewise.
71690                 * po.m4: Likewise.
71691                 * inttypes-pri.m4: Likewise.
71692                 * inttypes-h.m4: Renamed from inttypes.m4.
71693                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
71694
71695 2006-07-22  Bruno Haible  <bruno@clisp.org>
71696
71697         Merge from GNU gettext 0.15.
71698
71699         2005-07-05  Bruno Haible  <bruno@clisp.org>
71700
71701                 * printf-args.c (printf_fetchargs): Work around broken
71702                 definition of wint_t on mingw.
71703
71704         2005-02-12  Bruno Haible  <bruno@clisp.org>
71705
71706                 * xallocsa.h: Add extern "C" for C++.
71707
71708         2006-05-17  Bruno Haible  <bruno@clisp.org>
71709
71710                 Cygwin portability.
71711                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
71712
71713         2006-04-30  Bruno Haible  <bruno@clisp.org>
71714
71715                 * progreloc.c: Include <mach-o/dyld.h> if available.
71716                 (find_executable): Use _NSGetExecutablePath when possible.
71717
71718         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71719
71720                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
71721                 function.
71722
71723         2005-12-29  Bruno Haible  <bruno@clisp.org>
71724
71725                 * progreloc.c (set_program_name_and_installdir): Fix
71726                 compilation error.
71727
71728         2005-12-04  Bruno Haible  <bruno@clisp.org>
71729
71730                 Cygwin portability.
71731                 * progreloc.c: Include <windows.h> also on Cygwin.
71732                 (find_executable): Add support for Cygwin.
71733                 (set_program_name_and_installdir): Handle also platforms with
71734                 nonempty EXEEXT.
71735
71736         2006-07-11  Bruno Haible  <bruno@clisp.org>
71737
71738                 * javacomp.c: Fix a comment.
71739                 Reported by Jim Meyering.
71740
71741         2006-04-30  Bruno Haible  <bruno@clisp.org>
71742
71743                 * javacomp.h (compile_java_class): Add source_version,
71744                 target_version arguments.
71745                 * javacomp.c: Rewritten to choose only a compiler that
71746                 respects the specified source_version and target_version.
71747
71748         2006-06-27  Bruno Haible  <bruno@clisp.org>
71749
71750                 Assume correct S_ISDIR macro.
71751                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
71752
71753         2006-07-22  Bruno Haible  <bruno@clisp.org>
71754
71755                 * javaversion.h: New file, from GNU gettext.
71756                 * javaversion.c: New file, from GNU gettext.
71757                 * javaversion.java: New file, from GNU gettext.
71758                 * javaversion.class: New file, from GNU gettext.
71759
71760         2006-05-17  Bruno Haible  <bruno@clisp.org>
71761
71762                 Cygwin portability.
71763                 * javaexec.c (execute_java_class): Test for jview program
71764                 also on Cygwin.
71765
71766         2006-04-09  Bruno Haible  <bruno@clisp.org>
71767
71768                 * fatal-signal.c: Don't include string.h.
71769                 (at_fatal_signal): Use a copying loop instead of memcpy.
71770
71771         2005-12-04  Bruno Haible  <bruno@clisp.org>
71772
71773                 * csharpexec.c: Add support for 'clix' launcher (untested).
71774                 (execute_csharp_using_sscli): New function.
71775                 (execute_csharp_program): Call it.
71776
71777         2006-06-21  Bruno Haible  <bruno@clisp.org>
71778
71779                 Avoid warnings from recent versions of mcs.
71780                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
71781                 -o, -L, -r any more. Use options documented since mcs-1.0
71782                 instead. Similarly for -g.
71783
71784         2005-07-09  Bruno Haible  <bruno@clisp.org>
71785
71786                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
71787                 add a .dll suffix.
71788                 Reported by Mark Junker <mjscod@gmx.de>.
71789
71790         2006-06-17  Bruno Haible  <bruno@clisp.org>
71791
71792                 * config.charset: Update for NetBSD 3.0.
71793
71794         2006-05-17  Bruno Haible  <bruno@clisp.org>
71795
71796                 Cygwin portability.
71797                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
71798
71799         2006-05-16  Bruno Haible  <bruno@clisp.org>
71800
71801                 * localcharset.c [CYGWIN]: Include <windows.h>.
71802                 (get_charset_aliases): For Cygwin, return the same CPxxx
71803                 aliases list as under WIN32.
71804                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
71805                 the environment variables. Fall back to GetACP().
71806
71807         2006-04-05  Bruno Haible  <bruno@clisp.org>
71808
71809                 * config.charset: Update Juan Manuel Guerrero's address.
71810
71811         2005-02-12  Bruno Haible  <bruno@clisp.org>
71812
71813                 * allocsa.h: Add extern "C" for C++.
71814
71815         2005-02-10  Bruno Haible  <bruno@clisp.org>
71816
71817                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
71818                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
71819
71820         2006-07-22  Bruno Haible  <bruno@clisp.org>
71821
71822                 * gettext.h: Update to GNU gettext-0.15.
71823
71824 2006-07-22  Bruno Haible  <bruno@clisp.org>
71825
71826         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
71827         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
71828         lib-prefix.m4, longdouble.m4, ssize_t.m4.
71829
71830 2006-07-21  Eric Blake  <ebb9@byu.net>
71831
71832         * modules/stdlib-safer: New file.
71833         * MODULES.html.sh (File stream based Input/Output): Add
71834         stdlib-safer.
71835
71836 2006-07-21  Eric Blake  <ebb9@byu.net>
71837
71838         * lib/stdlib-safer.h: New file from coreutils, required by
71839         stdlib--.h.
71840
71841 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
71842
71843         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
71844
71845 2006-07-20  Bruno Haible  <bruno@clisp.org>
71846
71847         * gnulib-tool: Recognize new option --assume-autoconf.
71848         (autoconf_minversion): New variable.
71849         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
71850
71851 2006-07-20  Bruno Haible  <bruno@clisp.org>
71852
71853         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
71854
71855 2006-07-19  Derek R. Price  <derek@ximbiot.com>
71856
71857         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
71858         Reindent and repaginate.
71859
71860 2006-07-19  Derek Price  <derek@ximbiot.com>
71861
71862         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
71863         Correct grammar.
71864
71865 2006-07-17  Bruno Haible  <bruno@clisp.org>
71866
71867         * modules/list: New file.
71868         * modules/array-list: New file.
71869         * modules/carray-list, modules/carray-list-tests: New files.
71870         * modules/linked-list, modules/linked-list-tests: New files.
71871         * modules/avltree-list, modules/avltree-list-tests: New files.
71872         * modules/rbtree-list, modules/rbtree-list-tests: New files.
71873         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
71874         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
71875         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
71876         * modules/oset: New file.
71877         * modules/array-oset: New file.
71878         * modules/avltree-oset, modules/avltree-oset-tests: New files.
71879         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
71880         * tests/test-carray_list.c: New file.
71881         * tests/test-linked_list.c: New file.
71882         * tests/test-avltree_list.c: New file.
71883         * tests/test-rbtree_list.c: New file.
71884         * tests/test-linkedhash_list.c: New file.
71885         * tests/test-avltreehash_list.c: New file.
71886         * tests/test-rbtreehash_list.c: New file.
71887         * tests/test-avltree_oset.c: New file.
71888         * tests/test-rbtree_oset.c: New file.
71889         * MODULES.html.sh (Container data structures): New section.
71890
71891 2006-07-17  Bruno Haible  <bruno@clisp.org>
71892
71893         * m4/gl_list.m4: New file.
71894
71895 2006-07-17  Bruno Haible  <bruno@clisp.org>
71896
71897         * lib/gl_list.h: New file.
71898         * lib/gl_list.c: New file.
71899         * lib/gl_array_list.h: New file.
71900         * lib/gl_array_list.c: New file.
71901         * lib/gl_carray_list.h: New file.
71902         * lib/gl_carray_list.c: New file.
71903         * lib/gl_linked_list.h: New file.
71904         * lib/gl_linked_list.c: New file.
71905         * lib/gl_anylinked_list1.h: New file.
71906         * lib/gl_anylinked_list2.h: New file.
71907         * lib/gl_avltree_list.h: New file.
71908         * lib/gl_avltree_list.c: New file.
71909         * lib/gl_anyavltree_list1.h: New file.
71910         * lib/gl_anyavltree_list2.h: New file.
71911         * lib/gl_rbtree_list.h: New file.
71912         * lib/gl_rbtree_list.c: New file.
71913         * lib/gl_anyrbtree_list1.h: New file.
71914         * lib/gl_anyrbtree_list2.h: New file.
71915         * lib/gl_anytree_list1.h: New file.
71916         * lib/gl_anytree_list2.h: New file.
71917         * lib/gl_linkedhash_list.h: New file.
71918         * lib/gl_linkedhash_list.c: New file.
71919         * lib/gl_anyhash_list1.h: New file.
71920         * lib/gl_anyhash_list2.h: New file.
71921         * lib/gl_avltreehash_list.h: New file.
71922         * lib/gl_avltreehash_list.c: New file.
71923         * lib/gl_rbtreehash_list.h: New file.
71924         * lib/gl_rbtreehash_list.c: New file.
71925         * lib/gl_anytreehash_list1.h: New file.
71926         * lib/gl_anytreehash_list2.h: New file.
71927
71928         * lib/gl_oset.h: New file.
71929         * lib/gl_oset.c: New file.
71930         * lib/gl_array_oset.h: New file.
71931         * lib/gl_array_oset.c: New file.
71932         * lib/gl_avltree_oset.h: New file.
71933         * lib/gl_avltree_oset.c: New file.
71934         * lib/gl_rbtree_oset.h: New file.
71935         * lib/gl_rbtree_oset.c: New file.
71936         * lib/gl_anytree_oset.h: New file.
71937
71938 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71939
71940         * m4/mkancesdirs.m4: New file.
71941         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
71942         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
71943         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
71944         it.
71945
71946 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71947
71948         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
71949         * lib/mkancesdirs.h: New files.
71950         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
71951         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
71952         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
71953         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
71954         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
71955         callers changed.  Revamp internals significantly, by not
71956         attempting to create directories that are temporarily more
71957         permissive than the final results.  Do not attempt to use
71958         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
71959         This removes some race conditions, fixes some bugs, and simplifies
71960         things.  Use new dirchownmod function to do owner and mode changes.
71961         * lib/mkdir-p.h: Likewise.
71962         * lib/modechange.c (octal_to_mode): New function.
71963         (struct mode_change): New member mentioned.
71964         (make_node_op_equals): New arg mentioned.  All callers changed.
71965         (mode_compile): Keep track of which mode bits the user has explicitly
71966         mentioned.
71967         (mode_adjust): New arg DIR, so that we implement the X op correctly.
71968         New arg PMODE_BITS, to keep track of which mode bits the user
71969         mentioned; it treats S_ISUID and S_ISGID speciall.
71970         All callers changed.
71971         * lib/modechange.h: Likewise.
71972
71973 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71974
71975         * MODULES.html.sh: Add mkancestors.
71976         * modules/mkancesdirs: New module.
71977         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
71978         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
71979         The chdir-safer and afs files are now orphans; I'll remove them
71980         unless someone speaks up.
71981         Add lib/dirchownmod.c, lib/dirchownmod.h.
71982         (Depends-on): Remove alloca, chown, save-cwd, dirname.
71983         Add lchown, mkancesdirs.
71984         (Maintainer): Add self.
71985
71986 2006-07-15  Karl Berry  <karl@gnu.org>
71987
71988         * gnulib-tool: help message wording/arrangement.
71989
71990 2006-07-14  Simon Josefsson  <jas@extundo.com>
71991
71992         * doc/gnulib.texi (Libtool and Windows): New section.
71993
71994 2006-07-12  Simon Josefsson  <jas@extundo.com>
71995
71996         * modules/gendocs (License): Fix license, approved by Karl.
71997
71998 2006-07-12  Eric Blake  <ebb9@byu.net>
71999
72000         * MODULES.html.sh: Add gendocs.
72001
72002 2006-07-11  Eric Blake  <ebb9@byu.net>
72003
72004         * modules/fdl: New module, to install doc/fdl.texi.
72005         * MODULES.html.sh: Add new section for documentation modules.
72006         * gnulib-tool: Avoid space-tab.
72007         (--doc-base): New option, to manage files from doc.
72008
72009 2006-07-11  Eric Blake  <ebb9@byu.net>
72010
72011         * m4/absolute-header.m4: Fix comments to match recent change.
72012
72013 2006-07-11  Eric Blake  <ebb9@byu.net>
72014
72015         * gnulib-tool: List --doc-base before --tests-base.
72016
72017 2006-07-11  Derek R. Price  <derek@ximbiot.com>
72018
72019         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
72020
72021 2006-07-11  Bruno Haible  <bruno@clisp.org>
72022
72023         * README: Mention where to put documentation.
72024
72025 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72026
72027         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
72028
72029 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72030
72031         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
72032         to stdint.m4.
72033
72034 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72035
72036         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
72037         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
72038         "no/such/file/stdint.h" when there is no such file, so that
72039         the resulting C code can be parsed by dodgy compilers.
72040         Problems reported by Bob Proulx.
72041
72042 2006-07-10  Derek R. Price  <derek@ximbiot.com>
72043
72044         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
72045         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72046         macros into the GNU _D_EXACT_NAMLEN.
72047         * lib/savedir.c:  Likewise.
72048         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
72049
72050 2006-07-10  Derek R. Price  <derek@ximbiot.com>
72051         and Paul Eggert  <eggert@cs.ucla.edu>
72052
72053         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
72054         * m4/savedir.m4:
72055         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72056         macros into the GNU _D_EXACT_NAMLEN.
72057
72058 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72059
72060         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
72061         around the absolute name, to work around a problem with the HP-UX
72062         11.23 native C compiler, reported by Bob Proulx.
72063
72064 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72065
72066         * doc/maintain.texi, make-stds.texi: Sync from
72067         <http://savannah.gnu.org/projects/gnustandards>.
72068
72069 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72070
72071         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
72072
72073 2006-07-09  Jim Meyering  <jim@meyering.net>
72074
72075         * m4/glob.m4: Remove a doubled word in a comment.
72076
72077 2006-07-09  Jim Meyering  <jim@meyering.net>
72078
72079         * lib/argp-pv.c: Remove a doubled word in a comment.
72080         * lib/check-version.c (check_version): Likewise.
72081         * lib/javacomp.c (compile_java_class): Likewise.
72082
72083 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72084
72085         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
72086         for the benefit of people using Autoconf 2.60.  If you want to
72087         support older Autoconf versions you can copy m4/onceonly_2_57.m4
72088         (or m4/onceonly.m4, if pre-2.57) manually.
72089
72090 2006-07-08  Jim Meyering  <jim@meyering.net>
72091
72092         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
72093         comment.
72094         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
72095         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
72096         comment.
72097
72098 2006-07-08  Jim Meyering  <jim@meyering.net>
72099
72100         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
72101
72102 2006-07-07  Simon Josefsson  <jas@extundo.com>
72103
72104         * tests/test-crc.c: Change expected crc value, the test vector
72105         were probably computed using the old broken crc.c?
72106
72107 2006-07-06  Simon Josefsson  <jas@extundo.com>
72108
72109         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
72110         now the canonical place for the M4 file).
72111
72112         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
72113         from the sys_socket dependency now.
72114
72115         * modules/inet_pton (Files): Ditto.
72116
72117         * modules/inet_ntop (Files): Ditto.
72118
72119 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72120
72121         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
72122         not gl_PREREQ_GETUSERSHELL.
72123
72124 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72125
72126         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
72127         with only one argument, for Autoconf 2.60.
72128         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
72129         expand to nothing, so add a shell command to avoid syntax error.
72130         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72131
72132 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72133
72134         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
72135
72136 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72137
72138         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
72139         no longer needed.  Check for isblank decl.
72140         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
72141         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
72142         of existence.
72143
72144 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72145
72146         * lib/getloadavg.c: Use __VMS, not VMS.
72147         * lib/getopt.c: Likewise.
72148         * lib/getpagesize.h: Likewise.
72149         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
72150         and probably does not work.
72151
72152 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72153
72154         * lib/.cppi-disable: Add wcwidth.
72155         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
72156         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
72157         (ISGRAPH): Remove.  All uses changed to isgraph.
72158         (FOLD) [!defined _LIBC]: Remove special case.
72159         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
72160         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
72161         HAVE_ISBLANK.
72162         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
72163         case.
72164
72165 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72166
72167         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
72168         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
72169         brackets.  Other minor changes to suppress some compiler
72170         warnings.
72171
72172 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72173         and Paul Eggert  <eggert@cs.ucla.edu>
72174
72175         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
72176         of invoking obsolescent AC_HEADER_DIRENT macro.
72177         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
72178         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
72179         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
72180         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
72181         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
72182         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72183         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
72184         * m4/readdir.m4: Remove; no longer needed.
72185
72186 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72187         and Paul Eggert  <eggert@cs.ucla.edu>
72188
72189         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
72190         Don't worry about this obsolete case any more.
72191         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
72192         directories.
72193         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
72194         worry about this obsolete case any more.
72195         * lib/fts.c: Likewise.
72196         * lib/getcwd.c: Likewise.
72197         * lib/glob.h: Likewise.
72198         * lib/savedir.c: Likewise.
72199
72200 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72201
72202         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
72203         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
72204         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
72205         needed.
72206         All uses removed.
72207         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72208         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72209         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
72210         needed.
72211         * m4/getdate.m4 (gl_GETDATE): Likewise.
72212         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72213         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72214         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72215         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72216         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72217         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72218         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
72219         needed.
72220
72221 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72222
72223         * lib/memcasecmp.c: Include <limits.h>.
72224         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
72225         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
72226         Don't assume isdigit succeeds only on '0' through '9'.
72227
72228 2006-07-05  Eric Blake  <ebb9@byu.net>
72229
72230         * modules/getaddrinfo (Depends-on): Add snprintf.
72231
72232 2006-07-05  Eric Blake  <ebb9@byu.net>
72233
72234         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
72235         to avoid 'header present but could not be compiled' on cygwin.
72236
72237 2006-07-05  Eric Blake  <ebb9@byu.net>
72238
72239         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
72240         missing from netdb.h.
72241         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
72242
72243 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72244
72245         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
72246         no longer needed.
72247         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
72248         * m4/getdate.m4 (gl_GETDATE): Likewise.
72249         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72250         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72251         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72252         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72253         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72254
72255 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72256
72257         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
72258         All uses of is_space replaced by isspace.
72259         * lib/exit.h: Don't talk about STDC_HEADERS.
72260         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
72261         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
72262         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
72263         replaced by isprint etc.
72264         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
72265         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72266         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
72267         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
72268         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
72269         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72270
72271 2006-07-05  Bruno Haible  <bruno@clisp.org>
72272
72273         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
72274         the function exists, before testing against AIX.
72275         Reported by Martin Lambers <marlam@marlam.de>.
72276
72277 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72278
72279         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
72280         From Mark D. Baushke.
72281
72282 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72283
72284         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
72285         to the absolute name, not just one, to bypass Sun C 5.8's
72286         "warning: #include of /usr/include/... may be non-portable".
72287
72288 2006-07-04  Eric Blake  <ebb9@byu.net>
72289
72290         * modules/dirname-tests: New test module.
72291         * tests/test-dirname.c: New file, replacing dirname.c
72292         TEST_DIRNAME section that was recently deleted.
72293
72294 2006-07-04  Bruno Haible  <bruno@clisp.org>
72295
72296         Assume ANSI C header files and <ctype.h> functions.
72297         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
72298         (mbsnwidth): Use isprint, iscntrl instead.
72299
72300 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72301
72302         Merge from coreutils.
72303         * MODULES.html.sh: Add xstrtold.
72304         * modules/xstrtold: New file.
72305         * modules/cycle-check (Files): Add lib/same-inode.h.
72306         * modules/dirname (Files): Add m4/double-slash-root.m4.
72307         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
72308         * modules/mkdir-p (Files): Add lib/same-inode.h.
72309         * modules/same (Files): Add lib/same-inode.h.
72310
72311 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72312
72313         * m4/absolute-header.m4: Renamed from full-header-path.m4.
72314         This is to keep the terminology clean; POSIX talks about
72315         "absolute pathnames", not "full pathnames", but the GNU
72316         Coding Standards say to use "path" for something else;
72317         so use "absolute" to keep both sides happy.
72318         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
72319         Set gl_absolute_header, not gl_full_header_path.
72320         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
72321         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
72322         All uses changed.
72323
72324         Merge from coreutils.
72325
72326         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72327
72328         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
72329         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
72330         want to require the building of c-strtod.o.
72331         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
72332         needs -lm directly.
72333         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
72334
72335         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72336
72337         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
72338         --as-needed option if available.  Problem reported by Albert Chin in
72339         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
72340         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
72341         cc merely issues a bunch of annoying warnings for --as-needed
72342         (this problem was reported by Bob Proulx).  Also, try linking with
72343         -lm to detect a bug in binutils 2.16 (this problem was reported
72344         by Ralf Wildenhues).
72345
72346         2006-06-18  Jim Meyering  <jim@meyering.net>
72347
72348         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
72349         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
72350         macro.
72351         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
72352         also check for glibc-2.4's abort-inducing bug.
72353
72354         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
72355         Low-probability clean-up should be to use rmdir to get rid of
72356         the just-created directory, not unlink.
72357
72358         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
72359         configure fail, and request a bug report to inform us about it.
72360         Add a comment that, barring reports to the contrary, in 2007 we'll
72361         assume ftruncate is universally available.
72362
72363         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72364
72365         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
72366
72367         2006-03-12  Jim Meyering  <jim@meyering.net>
72368
72369         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
72370         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
72371         * m4/same.m4 (gl_SAME): Likewise.
72372         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
72373
72374         2006-03-11  Eric Blake  <ebb9@byu.net>
72375
72376         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
72377         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
72378         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
72379         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
72380
72381 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72382
72383         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
72384         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
72385         reported by Mark D. Baushke, one in
72386         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
72387
72388         Merge from coreutils.
72389
72390         * lib/.cppi-disable: Add stdint_.h.
72391         * lib/.cvsignore: Add stdint.h.
72392
72393         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72394
72395         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
72396         both double and long double versions.
72397         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
72398         * lib/xstrtold.c: New file.
72399         * lib/xstrtod.h (xstrtold): New decl.
72400
72401         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72402
72403         * lib/filemode.c (setst): Remove.
72404         (strmode): Rewrite to avoid setst.  This makes the code shorter,
72405         (arguably) clearer, and the generated code is a bit smaller on my
72406         Debian GNU/Linux stable x86 host.
72407
72408         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72409
72410         * lib/filemode.c: Include "filemode.h" first, to test the interface.
72411         Assume that filemode.h includes sys/types.h and sys/stat.h.
72412         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
72413         (ftypelet): Reorder to put common cases first, for efficiency.
72414         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
72415         to do 'M'.
72416         (strmode): Renamed from mode_string, and now stores 12 bytes instead
72417         of 10, for compatibility with FreeBSD.  All callers changed.
72418         (filemodestring): Now stores 12 bytes instead of 10, and sets file
72419         types that can't be deduced solely from st_mode.  First arg is now a
72420         const pointer.
72421         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
72422         (strmode): Renamed from mode_string.
72423         (filemodestring): New decl.
72424         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
72425         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
72426         needed.
72427         (S_ISPORT, S_ISWHT): New macros, if not already defined.
72428
72429         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72430
72431         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
72432         fsusage.h now does that.  Include fsusage.h first, to test interface.
72433         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
72434         at most one method (the old code could have generated decls that
72435         didn't conform to C89, not that this was ever exercised).
72436         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
72437
72438         2006-03-19  Jim Meyering  <jim@meyering.net>
72439
72440         Work even in a chroot where d_ino values for entries in "/"
72441         don't match the stat.st_ino values for the same names.
72442         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
72443         number, iterate through all entries again, using lstat instead.
72444         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
72445         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
72446
72447         * lib/getcwd.c (__getcwd): Clarify a comment.
72448         Use memcpy in place of a call to strcpy.
72449
72450         2006-03-12  Jim Meyering  <jim@meyering.net>
72451
72452         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
72453         matches that of the current directory (which we're about to chdir ".."
72454         out of), then save the dev-ino of the parent, instead.
72455
72456         * lib/same-inode.h (SAME_INODE): New file/macro.
72457         * lib/chdir-safer.c (SAME_INODE): Remove definition.
72458         Include "same-inode.h", instead.
72459         * lib/same.c: Likewise.
72460         * lib/cycle-check.h: Include "same-inode.h".
72461         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
72462         * lib/cycle-check.c (SAME_INODE): Remove definition.
72463         * lib/root-dev-ino.h: Include "same-inode.h".
72464
72465         2006-03-11  Eric Blake  <ebb9@byu.net>
72466
72467         * lib/same.c (same_name): s/base_name/last_component/
72468         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
72469         * lib/filenamecat.c (file_name_concat): Likewise.
72470
72471         2006-03-11  Eric Blake  <ebb9@byu.net>,
72472                     Paul Eggert  <eggert@cs.ucla.edu>
72473
72474         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
72475         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
72476         drive prefix.
72477         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
72478         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
72479         (last_component): New method.
72480         * lib/dirname.c (dir_len): Determine when drive letters need a
72481         subsequent slash.  Preserve // when it is special.
72482         (dir_name): Don't append dot when drive letter is absolute.
72483         [TEST_DIRNAME]: Move into a full-blown gnulib test.
72484         * lib/basename.c (base_name): New semantics - malloc the result.
72485         Preserve // when it is special.  Preserve relative files that look
72486         like drive letters.
72487         (base_len): Preserve // when it is special.
72488         (last_component): New method, similar to old base_name semantics.
72489         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
72490         base_name.  Strip redundant slashes from ///.
72491
72492 2006-07-03  Jim Meyering  <jim@meyering.net>
72493
72494         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
72495         macro is used before the first cycle_check call.
72496
72497 2006-07-03  Eric Blake  <ebb9@byu.net>
72498
72499         * modules/dirname (Depends-on): Add xstrndup.
72500
72501 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72502
72503         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
72504         test cases, so that config.log is a bit easier to follow.
72505
72506 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72507
72508         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
72509         both are 64 bits, since this seems to be the tradition, and this
72510         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
72511         we ever run into a host that prefers long long to long in this
72512         case, we'll need another configure-time test.  Problem reported by
72513         Jim Meyering.
72514
72515 2006-07-02  Eric Blake  <ebb9@byu.net>
72516
72517         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
72518
72519 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72520
72521         * modules/inttypes (Depends-on): No longer depends on stdint.
72522         * modules/stdint (Description): Say more about assumptions.
72523         Say that the fast types might differ.  Say macros are used.
72524         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
72525         (Makefile.am): Revise list of substituted symbols to match
72526         new stdint.m4.
72527         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
72528         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
72529         * tests/test-stdint.c (verify_same_types)
72530         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
72531         the code conforms to C99/C89.
72532         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
72533         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
72534
72535 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72536
72537         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
72538         but fix a bug, by requiring at least 64 bits.
72539         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
72540         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
72541         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
72542         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
72543
72544         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
72545         changes.  Make 2.59 a prerequisite.  Check and substitute for
72546         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
72547         inttypes.h.  Do not use special include files; just use the
72548         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
72549         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
72550         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
72551         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
72552         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
72553         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
72554         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
72555         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
72556         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
72557         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
72558         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
72559         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
72560         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
72561         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
72562         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
72563         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
72564         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
72565         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
72566         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
72567         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
72568         WINT_MAX.  Check for C99 conformance more strictly, by detecting
72569         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
72570         not check for things that C99 does not require, e.g., int8_t.  If
72571         a test isn't needed unless <stdint.h> isn't working, and is
72572         unlikely to be needed for any other reason, then don't do it
72573         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
72574         size_t, since we assume C89 freestanding at least.  Do not check
72575         for sig_atomic_t, wchar_t, or wint_t, since the code now does
72576         the right thing even if the types are not defined.  Instead use:
72577         (gl_STDINT_TYPE_PROPERTIES): New macro.
72578         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
72579         testing whether <sys/types.h> clashes, as Autoconf does this for
72580         us now.  All uses removed.
72581         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
72582         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
72583         (gl_CHECK_TYPE_SAME):
72584         Remove; no longer needed.
72585         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
72586         exists, since we'll return 0 anyway in that case.
72587         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
72588
72589 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72590
72591         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
72592         possible collision with system files.
72593         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
72594         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
72595         WCHAR_MIN and WCHAR_MAX in this case.
72596         (<stddef.h>): Do not include; no longer needed.
72597         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
72598         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
72599         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
72600         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
72601         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
72602         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
72603         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
72604         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
72605         !defined(__c99))]: Include in this case too, since it's harmless
72606         now.
72607         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
72608         dangerous to do so.
72609         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
72610         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
72611         (_STDINT_MIN, _STDINT_MAX): New macros.
72612         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
72613         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
72614         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
72615         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
72616         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
72617         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
72618         macros, not typedefs; this simplifies things quite a bit.
72619         Use long int for all types narrower than int64_t.
72620         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
72621         Define in terms of long long int or int64_t or long int,
72622         not int64_t or int32_t.  This saves some compile-time testing.
72623         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
72624         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
72625         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
72626         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
72627         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
72628         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
72629         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
72630         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
72631         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
72632         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
72633         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72634         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72635         undef any previous version and define our own version, for
72636         simplicity and consistency with the new macros for types.
72637         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72638         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72639         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
72640         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
72641         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
72642         @WINT_T_SUFFIX@ to keep things simple here.
72643         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
72644         Simplify by assuming typical 8/16/32/64 host, since we're
72645         already doing that elsewhere anyway.
72646         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
72647         and assume long long int is 64 bits if available.  This
72648         speeds up 'configure'.
72649
72650 2006-07-01  Eric Blake  <ebb9@byu.net>
72651
72652         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
72653         Reported by Andreas Buening.
72654
72655 2006-07-01  Eric Blake  <ebb9@byu.net>
72656
72657         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
72658
72659 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72660
72661         * lib/getaddrinfo.c: fixed typo
72662
72663 2006-06-29  Jim Meyering  <jim@meyering.net>
72664
72665         * modules/strftime (Maintainer): Add my name, since with the
72666         FPRINTFTIME changes strftime.c has forked from glibc.
72667
72668 2006-06-29  Eric Blake  <ebb9@byu.net>
72669
72670         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
72671
72672 2006-06-29  Eric Blake  <ebb9@byu.net>
72673
72674         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
72675
72676 2006-06-29  Eric Blake  <ebb9@byu.net>
72677
72678         * lib/stat_.h: New file.
72679
72680 2006-06-29  Eric Blake  <ebb9@byu.net>
72681
72682         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
72683         unused static function.
72684
72685 2006-06-29  Eric Blake  <ebb9@byu.net>
72686
72687         * doc/functions.texi (Function Portability): Document missing lstat
72688         on mingw.
72689
72690 2006-06-29  Eric Blake  <ebb9@byu.net>
72691
72692         * MODULES.html.sh: Add sys_stat.
72693         * modules/sys_stat: New module.
72694         * modules/mkstemp (Depends-on): Add sys_stat.
72695
72696 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72697
72698         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
72699
72700 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72701
72702         * m4/c-bs-a.m4: Removed.
72703
72704 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72705
72706         * lib/strftime.c: Assume strftime() exists.
72707
72708 2006-06-29  Derek Price  <derek@ximbiot.com>
72709
72710         * modules/c-bs-a: Removed - \a is C89.
72711         * MODULES.html.sh: Remove c-bs-a.
72712
72713 2006-06-29  Bruno Haible  <bruno@clisp.org>
72714
72715         * modules/wcwidth (License): Change to LGPL.
72716
72717 2006-06-28  Simon Josefsson  <jas@extundo.com>
72718
72719         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
72720         on _WIN32.
72721
72722         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
72723         getnameinfo.
72724
72725 2006-06-28  Simon Josefsson  <jas@extundo.com>
72726
72727         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
72728
72729 2006-06-28  Simon Josefsson  <jas@extundo.com>
72730
72731         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
72732         functions there.  It will succeed on Windows XP, but on Windows
72733         2000 and (presumably) earlier, it will fail, and use the internal
72734         re-implementation.
72735         (use_win32_p): New function.
72736         (getaddrinfo): Use strtoul on servname, to support numeric ports.
72737         Support AI_NUMERICSERV to disable getservbyname.
72738         (getnameinfo): New function, only supports
72739         NI_NUMERICHOST|NI_NUMERICSERV for now.
72740
72741         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
72742         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
72743         getnameinfo.
72744
72745 2006-06-28  Eric Blake  <ebb9@byu.net>
72746
72747         * modules/wcwidth: New file.
72748         * modules/mbchar (Depends-on): Add wcwidth.
72749         * modules/mbswidth (Depends-on): Add wcwidth.
72750         * MODULES.html.sh: Add wcwidth.
72751
72752 2006-06-28  Eric Blake  <ebb9@byu.net>
72753
72754         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
72755         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
72756
72757 2006-06-28  Eric Blake  <ebb9@byu.net>
72758
72759         * lib/xvasprintf.h: Fix comments.
72760
72761 2006-06-28  Eric Blake  <ebb9@byu.net>
72762
72763         * lib/mbchar.h (wcwidth): Include wcwidth.h.
72764         * lib/mbswidth.c (wcwidth): Move from here...
72765         * lib/wcwidth.h: ...to this new file.
72766
72767 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72768
72769         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
72770
72771         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
72772         it's obsolete.
72773         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
72774
72775 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72776
72777         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
72778         Autoconf 2.60 says this stuff was obsolete.
72779
72780 2006-06-28  Bruno Haible  <bruno@clisp.org>
72781
72782         * modules/wcwidth (Files): Add m4/wchar_t.m4.
72783
72784 2006-06-28  Bruno Haible  <bruno@clisp.org>
72785
72786         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
72787         gt_TYPE_WCHAR_T.
72788
72789 2006-06-28  Bruno Haible  <bruno@clisp.org>
72790
72791         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
72792         declaration for wcwidth.
72793         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
72794
72795 2006-06-28  Bruno Haible  <bruno@clisp.org>
72796
72797         * lib/mkdtemp.c [MINGW]: Include <io.h>.
72798         (mkdir): Define using _mkdir.
72799
72800 2006-06-28  Bruno Haible  <bruno@clisp.org>
72801
72802         * lib/getaddrinfo.h: Fix POSIX URL.
72803         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
72804         _WIN32.
72805         (use_win32_p): Make static.
72806         (getaddrinfo): Reject service name if it is empty or does not consist
72807         solely of decimal digits, or if its value is > 65535.
72808         (getnameinfo): Remove useless casts.
72809
72810 2006-06-27  Simon Josefsson  <jas@extundo.com>
72811
72812         * modules/sys_select: New file, suggested by Bruno Haible, Paul
72813         Eggert and Martin Lambers.
72814
72815 2006-06-27  Simon Josefsson  <jas@extundo.com>
72816
72817         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
72818         Eggert and Martin Lambers.
72819
72820 2006-06-27  Bruno Haible  <bruno@clisp.org>
72821
72822         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
72823         result to 0, not to empty.
72824         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
72825
72826 2006-06-27  Bruno Haible  <bruno@clisp.org>
72827
72828         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
72829
72830 2006-06-26  Simon Josefsson  <jas@extundo.com>
72831
72832         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
72833         present.
72834
72835 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
72836
72837         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
72838         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
72839         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
72840
72841 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
72842
72843         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
72844
72845 2006-06-26  Bruno Haible  <bruno@clisp.org>
72846
72847         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
72848
72849 2006-06-26  Bruno Haible  <bruno@clisp.org>
72850
72851         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
72852
72853 2006-06-26  Bruno Haible  <bruno@clisp.org>
72854
72855         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
72856         SGI C compiler in pre-C99 mode.
72857         Suggested by Mark D. Baushke and Larry Jones.
72858
72859 2006-06-26  Bruno Haible  <bruno@clisp.org>
72860
72861         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
72862         WCHAR_MAX.
72863         Reported by Mark D. Baushke and Larry Jones.
72864
72865 2006-06-26  Bruno Haible  <bruno@clisp.org>
72866
72867         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
72868         in pre-C99 mode.
72869         Suggested by Mark D. Baushke and Larry Jones.
72870
72871 2006-06-23  Simon Josefsson  <jas@extundo.com>
72872             Bruno Haible  <bruno@clisp.org>
72873
72874         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
72875         Emit mostlyclean-local rule.
72876         (func_emit_tests_Makefile_am): Likewise.
72877         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
72878
72879 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
72880
72881         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
72882
72883 2006-06-23  Bruno Haible  <bruno@clisp.org>
72884
72885         * tests/test-stdint.c: Update to match ISO C 99 Technical
72886         Corrigendum 1.
72887
72888 2006-06-23  Bruno Haible  <bruno@clisp.org>
72889
72890         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
72891
72892 2006-06-23  Bruno Haible  <bruno@clisp.org>
72893
72894         * lib/stdint_.h: Treat IRIX like OpenBSD.
72895
72896 2006-06-23  Bruno Haible  <bruno@clisp.org>
72897
72898         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
72899         ISO C 99 Technical Corrigendum 1.
72900
72901 2006-06-22  Simon Josefsson  <jas@extundo.com>
72902
72903         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
72904         MinGW.
72905
72906 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72907
72908         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
72909         needed.  Some compiler complained about some of them.  Problem reported
72910         by Larry Jones in
72911         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
72912
72913 2006-06-21  Simon Josefsson  <jas@extundo.com>
72914
72915         * tests/test-getaddrinfo.c: New file.
72916
72917         * modules/getaddrinfo-tests: New file.
72918
72919         * MODULES.html.sh: Add inet_pton.
72920
72921         * modules/inet_pton: New file.
72922
72923 2006-06-21  Simon Josefsson  <jas@extundo.com>
72924
72925         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
72926         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
72927         of using the (limited) gnulib implementation on Windows XP.
72928
72929         * m4/inet_pton.m4: New file.
72930
72931 2006-06-21  Simon Josefsson  <jas@extundo.com>
72932
72933         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
72934         variable.
72935
72936         * lib/socket_.h: Don't define WINVER.
72937
72938         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
72939         slightly modified to work in gnulib.
72940
72941 2006-06-21  Simon Josefsson  <jas@extundo.com>
72942
72943         * doc/gnulib.texi (Windows sockets): Add.
72944
72945 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
72946
72947         * lib/read-file.c (fread_file): Start with buffer allocation of
72948         0 bytes rather than 1 byte; this simplifies the code.
72949         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
72950         code to free buffer and save/restore errno.
72951         (internal_read_file): Remove unused local.
72952
72953 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
72954
72955         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
72956         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
72957         Problem reported by Denis Excoffier in
72958         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
72959
72960 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72961
72962         * modules/sys_socket, modules/socklen: Include sys/types since
72963         FreeBSD 4.x's sys/socket.h needs it.
72964
72965 2006-06-19  Simon Josefsson  <jas@extundo.com>
72966
72967         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
72968
72969 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72970
72971         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
72972
72973 2006-06-19  Bruno Haible  <bruno@clisp.org>
72974
72975         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
72976         and FULL_PATH_INTTYPES_H in angle brackets.
72977         Reported by Mark D. Baushke <mdb@gnu.org>.
72978
72979 2006-06-17  Eric Blake  <ebb9@byu.net>
72980
72981         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
72982         errno.
72983
72984 2006-06-17  Bruno Haible  <bruno@clisp.org>
72985
72986         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
72987         <sys/inttypes.h>.
72988
72989 2006-06-17  Bruno Haible  <bruno@clisp.org>
72990
72991         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
72992         whether errno is declared. Assume <errno.h> declares errno.
72993
72994 2006-06-17  Bruno Haible  <bruno@clisp.org>
72995
72996         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
72997
72998 2006-06-17  Bruno Haible  <bruno@clisp.org>
72999
73000         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
73001         problem on Solaris 2.5.1.
73002
73003 2006-06-16  Eric Blake  <ebb9@byu.net>
73004
73005         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
73006         * lib/unicodeio.c [!defined errno]: Likewise.
73007         * lib/strtol.c [!defined errno]: Likewise.
73008         * lib/strtod.c [!defined errno]: Likewise.
73009
73010 2006-06-15  Eric Blake  <ebb9@byu.net>
73011
73012         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
73013
73014 2006-06-15  Eric Blake  <ebb9@byu.net>
73015
73016         * config/srclist.txt (ssize_t.m4): Lose sync.
73017
73018 2006-06-15  Bruno Haible  <bruno@clisp.org>
73019
73020         * modules/stdint (Files): Include m4/full-header-path.m4,
73021         m4/size_max.m4, m4/wchar_t.m4.
73022         (Makefile.am): Many more substitutions.
73023         * modules/stdint-tests: New file.
73024         * tests/test-stdint.c: New file.
73025
73026 2006-06-15  Bruno Haible  <bruno@clisp.org>
73027
73028         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
73029         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
73030         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
73031         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
73032         gl_CHECK_TYPE_SAME): New macros.
73033
73034 2006-06-15  Bruno Haible  <bruno@clisp.org>
73035
73036         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
73037
73038 2006-06-15  Bruno Haible  <bruno@clisp.org>
73039
73040         * lib/stdint_.h: Rewritten to be fully auto-configured.
73041         Fixes bug on HP-UX/IA64.
73042
73043 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
73044
73045         * lib/getdate.y (__attribute__): Don't define if already defined.
73046         Problem reported by Larry Jones.
73047         * lib/utimens.c (__attribute__): Likewise.
73048
73049 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
73050
73051         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
73052         reported by Andreas Schwab.
73053
73054 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73055             Bruno Haible  <bruno@clisp.org>
73056
73057         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
73058         check for the declaration of strnlen and a run test that exposes the
73059         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
73060         rpl_strndup.
73061
73062 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73063             Bruno Haible  <bruno@clisp.org>
73064
73065         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
73066
73067 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73068
73069         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
73070         compile test, for Tru64 4.0D.
73071
73072 2006-05-28  Karl Berry  <karl@gnu.org>
73073
73074         * config/srclist.txt (printf-args.c): lose sync.
73075
73076 2006-05-26  Martin Lambers  <marlam@marlam.de>
73077
73078         * lib/getpass.c: Updates the test for the native W32 API, and adds
73079         missing includes, thus fixing compilation warnings.
73080
73081 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73082
73083         * lib/exclude.c (exclude_fnmatch): New function.
73084         (excluded_file_name): Call exclude_fnmatch.
73085         * lib/exclude.h (excluded_file_name): New prototype
73086
73087 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
73088
73089         * lib/tempname.c (small_open, large_open): New macros.
73090         (__open, __open64) [!_LIBC]: Remove.
73091         (__gen_tempname): Use small_open and large_open instead of __open
73092         and __open64.  This fixes a portability bug on HP-UX 11.11i
73093         reported by Simon Wing-Tang in
73094         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
73095
73096 2006-05-24  Bruno Haible  <bruno@clisp.org>
73097
73098         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
73099         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
73100         Reported by Thorsten Maerz <torte@netztorte.de> via
73101         Aaron Stone <aaron@serendipity.cx>.
73102
73103 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73104
73105         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
73106         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
73107         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
73108         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
73109         not really conditional on the cache.
73110         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
73111
73112 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73113
73114         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
73115         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
73116         (my_usleep): Don't mishandle maximum value.
73117
73118 2006-05-19  Jim Meyering  <jim@meyering.net>
73119
73120         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
73121
73122 2006-05-17  Bruno Haible  <bruno@clisp.org>
73123
73124         Cygwin portability.
73125         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
73126
73127 2006-05-17  Bruno Haible  <bruno@clisp.org>
73128
73129         * lib/stdint_.h: Fix recognition of Cygwin.
73130
73131 2006-05-15  Bruno Haible  <bruno@clisp.org>
73132
73133         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
73134         on libtool patch by Ralf Wildenhues.
73135
73136 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73137
73138         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
73139         test for C99 conformance; (bool) 0.5 is an integer constant
73140         expression, but (bool) -0.5 is not.  Problem reported by Fedor
73141         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
73142
73143 2006-05-11  Simon Josefsson  <jas@extundo.com>
73144
73145         * m4/xvasprintf.m4: Fix obvious typo.
73146
73147 2006-05-11  Jim Meyering  <jim@meyering.net>
73148
73149         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
73150         James Lemley.
73151
73152 2006-05-10  Simon Josefsson  <jas@extundo.com>
73153
73154         * lib/md4.c: Typo fix, update copyright years.
73155         (K1, K2): Don't use L because it turn computations into 64-bit on
73156         64-bit platforms.
73157
73158 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
73159
73160         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
73161         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
73162         unwanted sign propagation, e.g., on hosts with 64-bit int.
73163         There still are some problems with reeelly weird theoretical hosts
73164         (e.g., 33-bit int) but it's not worth worrying about now.
73165         * lib/sha1.c (rol): Likewise.
73166         (K1, K2, K3, K4): Remove unnecessary L suffix.
73167
73168 2006-05-10  Bruno Haible  <bruno@clisp.org>
73169
73170         * lib/des.c: Cast to avoid warnings.
73171
73172 2006-05-09  Bruno Haible  <bruno@clisp.org>
73173
73174         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
73175         (Depends-on): Depend also on xsize, stdarg.
73176         (configure.ac): Add gl_XVASPRINTF.
73177
73178 2006-05-09  Bruno Haible  <bruno@clisp.org>
73179
73180         * m4/xvasprintf.m4: New file.
73181
73182 2006-05-09  Bruno Haible  <bruno@clisp.org>
73183
73184         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
73185         (EOVERFLOW): Define fallback value.
73186         (xstrcat): New function.
73187         (xvasprintf): Recognize the special case of a string concatenation.
73188
73189 2006-05-08  Eric Blake  <ebb9@byu.net>
73190
73191         * gnulib-tool (func_version): Base copyright year on CVS date.
73192         (func_emit_copyright_notice): New function.
73193         (func_emit_lib_Makefile_am): Use it.
73194         (func_emit_tests_Makefile_am): Likewise.
73195         (func_import): Likewise.
73196
73197 2006-05-08  Bruno Haible  <bruno@clisp.org>
73198
73199         * modules/stdarg: New file.
73200         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
73201
73202 2006-05-08  Bruno Haible  <bruno@clisp.org>
73203
73204         * m4/stdarg.m4: New file, from GNU gettext.
73205
73206 2006-05-08  Bruno Haible  <bruno@clisp.org>
73207
73208         * config/srclist.txt (build-aux/config.rpath): different from latest
73209         release.
73210
73211 2006-05-08  Bruno Haible  <bruno@clisp.org>
73212
73213         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
73214
73215 2006-05-05  Jim Meyering  <jim@meyering.net>
73216
73217         * m4/warning.m4: New file, derived from bison's file by the same name.
73218
73219 2006-05-03  Bruno Haible  <bruno@clisp.org>
73220
73221         * lib/stdint_.h: Shorter URL.
73222         * lib/inttypes.h: Likewise.
73223
73224 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73225
73226         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
73227
73228 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73229
73230         * lib/verify.h: Document the internals better.  Most of this change
73231         was written by Bruno Haible.
73232
73233 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73234
73235         * doc/verify.texi: New file, partly based on a proposal by
73236         Bruno Haible.
73237
73238 2006-05-02  Bruno Haible  <bruno@clisp.org>
73239
73240         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
73241         test from here...
73242         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
73243
73244 2006-04-29  Bruno Haible  <bruno@clisp.org>
73245
73246         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
73247         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
73248
73249 2006-04-29  Bruno Haible  <bruno@clisp.org>
73250
73251         * gnulib-tool: Make --update option actually work.
73252
73253 2006-04-29  Bruno Haible  <bruno@clisp.org>
73254
73255         * doc/gcd.texi: New file.
73256         * doc/gnulib.texi: Include it.
73257
73258 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
73259
73260         * lib/getdate.y (get_date): When adding relative date, start with the
73261         initial time, not with the result of the first mktime call.
73262
73263 2006-04-25  Bruno Haible  <bruno@clisp.org>
73264
73265         * gnulib-tool (func_import): Output the include directives in three
73266         blocks, sorted separately.
73267         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73268
73269 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73270
73271         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
73272         to define main with arguments, for C++.  Reported by Eric Blake.
73273         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
73274         Prefer 'int main ()' to 'int main (void)', for C++.
73275         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
73276         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
73277         for 'main', for C99 and C++.
73278
73279 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73280
73281         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
73282         Don't assume that exit status -1 is valid.
73283         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73284         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
73285         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
73286         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
73287         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
73288         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
73289         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
73290         functions can be used without declaring them, or that you can
73291         exit with status -1.
73292         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
73293
73294 2006-04-24  Karl Berry  <karl@gnu.org>
73295
73296         * config/srclist.txt (longdouble.m4): sync lost.
73297
73298 2006-04-24  Eric Blake  <ebb9@byu.net>
73299
73300         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
73301
73302 2006-04-24  Bruno Haible  <bruno@clisp.org>
73303
73304         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
73305         poll() implementation in AIX.
73306         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73307
73308 2006-04-24  Bruno Haible  <bruno@clisp.org>
73309
73310         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
73311         assigned exactly once.
73312
73313 2006-04-23  Claudio Fontana  <claudio@gnu.org>
73314             Bruno Haible  <bruno@clisp.org>
73315
73316         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
73317         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
73318         for AM_CPPFLAGS.
73319
73320 2006-04-23  Bruno Haible  <bruno@clisp.org>
73321
73322         * modules/copy-file: Depend on unistd.
73323         * modules/execute: Likewise.
73324         * modules/fatal-signal: Likewise.
73325         * modules/findprog: Likewise.
73326         * modules/mkdtemp : Likewise.
73327         * modules/pipe: Likewise.
73328         * modules/wait-process: Likewise.
73329
73330 2006-04-23  Bruno Haible  <bruno@clisp.org>
73331
73332         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
73333         condition was already detected.
73334         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73335
73336 2006-04-23  Bruno Haible  <bruno@clisp.org>
73337
73338         * lib/copy-file.c: Include <unistd.h> unconditionally.
73339         * lib/execute.c: Likewise.
73340         * lib/fatal-signal.c: Likewise.
73341         * lib/findprog.c: Likewise.
73342         * lib/mkdtemp.c: Likewise.
73343         * lib/pipe.h: Likewise.
73344         * lib/pipe.c: Likewise.
73345         * lib/wait-process.h: Likewise.
73346
73347 2006-04-23  Bruno Haible  <bruno@clisp.org>
73348
73349         * gnulib-tool (func_usage): Fix --import description. Document
73350         --update.
73351         (func_import): Create temporary file in a temporary directory, if
73352         --dry-run is specified. Silence errors from 'grep' when there are no
73353         m4 files in $m4dir.
73354         (func_create_testdir): Silence errors from 'grep' when there are no
73355         m4 files in $m4dir.
73356         Reported by Karl Berry <karl@freefriends.org>.
73357
73358 2006-04-20  Bruno Haible  <bruno@clisp.org>
73359
73360         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
73361         one argument, so that the code will be portable to Autoconf 2.60.
73362         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
73363         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73364         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
73365
73366 2006-04-19  Derek Price  <derek@ximbiot.com>
73367             Eric Blake  <ebb9@byu.net>
73368
73369         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
73370         rather than "/full/path.h".  Update comment to match.  Shorten &
73371         generalize m4_translit call via AS_TR_CPP.
73372
73373 2006-04-19  Derek Price  <derek@ximbiot.com>
73374             Eric Blake  <ebb9@byu.net>
73375
73376         * lib/inttypes.h: Correct grammar in comment.
73377
73378 2006-04-18  Derek Price  <derek@ximbiot.com>
73379             Paul Eggert  <eggert@cs.ucla.edu>
73380
73381         * modules/inttypes: New file.
73382         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
73383
73384 2006-04-18  Derek Price  <derek@ximbiot.com>
73385             Paul Eggert  <eggert@cs.ucla.edu>
73386
73387         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
73388         New files.
73389
73390 2006-04-18  Derek Price  <derek@ximbiot.com>
73391             Paul Eggert  <eggert@cs.ucla.edu>
73392
73393         * lib/inttypes.h: New file.
73394         * lib/strtoimax.c: Assume <inttypes.h>.
73395
73396 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
73397
73398         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
73399         isn't mounted.  Problem reported by Kir Kolyshkin.
73400
73401 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73402
73403         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
73404         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
73405         Derek R. Price.
73406         * lib/regex.h (RE_DUP_MAX): Update comment to match current
73407         implementation.
73408
73409 2006-04-12  Eric Blake  <ebb9@byu.net>
73410
73411         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
73412         is now done automatically by the corresponding Autoconf macro.
73413
73414 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
73415
73416         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
73417         time_r.h.
73418
73419 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73420
73421         Merge regex changes from libc, removing some of our
73422         POSIX-conformance changes that were rejected and redoing them in a
73423         less-intrusive way.
73424
73425         * lib/regcomp.c (re_compile_internal, init_dfa):
73426         Length arg is now size_t, not Idx.  All uses changed.
73427         (peek_token): Forward decl now says internal_function.
73428         (__re_error_msgid, __re_error_msgid_idx):
73429         Now static rather than extern with attribute_hidden.
73430         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
73431         For some reason libc prefers K&R style defns for external functions.
73432         (regerror) [!defined _LIBC]: Likewise.
73433         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
73434         (seek_collating_symbol_entry, lookup_collation_sequence_value):
73435         (build_range_exp, build_collating_symbol):
73436         Use K&R-style defn.
73437         (re_compile_fastmap): Use '\0' to memset, not 0.
73438         (utf8_sb_map): Make the calculations more obvious.
73439         (init_dfa, parse_bracket_exp, build_charclass_op):
73440         Call calloc and cast result, as glibc does.
73441         (init_word_char, fetch_token, peek_token, peek_token_bracket):
73442         (build_range_exp, build_collating_symbol):
73443         Now internal functions.
73444
73445         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
73446
73447         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
73448         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
73449         Don't depend on VMS; depend on __VMS instead, for POSIX
73450         namespace cleanness.
73451         (regoff_t): Define to ssize_t, not long int.
73452
73453         Remove the REG_ macros named below.  Instead, make the old names
73454         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
73455         __USE_GNU_REGEX.
73456         (REG_BACKSLASH_ESCAPE_IN_LISTS):
73457         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
73458         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
73459         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
73460         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
73461         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
73462         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
73463         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
73464         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
73465         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
73466         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
73467         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
73468         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
73469         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
73470         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
73471         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
73472         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
73473         (REG_NREGS):
73474         Remove.  All uses replaced by the old RE_* names.
73475         (RE_BACKSLASH_ESCAPE_IN_LISTS):
73476         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
73477         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
73478         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
73479         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
73480         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
73481         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
73482         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
73483         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
73484         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
73485         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
73486         Don't bother having these macros be independent of each others'
73487         values, since they no longer exist in the POSIX name space.
73488
73489         Rename the following member names back to their old names,
73490         unless !__USE_GNU_REGEX.  All uses changed back.
73491         (buffer): Renamed from re_buffer.
73492         (allocated): Renamed from re_allocated.
73493         (used): Renamed from re_used.
73494         (syntax): Renamed from re_syntax.
73495         (fastmap): Renamed from re_fastmap.
73496         (translate): Renamed from re_translate.
73497         (can_be_null): Renamed from re_can_be_null.
73498         (regs_allocated): Renamed from re_regs_allocated.
73499         (fastmap_accurate): Renamed from re_fastmap_accurate.
73500         (no_sub): Renamed from re_no_sub.
73501         (not_bol): Renamed from re_not_bol.
73502         (not_eol): Renamed from re_not_eol.
73503         (newline_anchor): Renamed from re_newline_anchor.
73504         (num_regs): Renamed from rm_num_regs.
73505         (start): Renamed from rm_start.
73506         (end): Renamed from rm_end.
73507
73508         (free_state): Move up a bit.
73509
73510         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
73511         #define to be empty.
73512         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
73513         when that is what is intended.
73514         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
73515         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
73516         (MAX): New macro.
73517         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
73518         All uses changed back to re_malloc, etc.  It's now the caller's
73519         responsibility to check for overflow; all callers changed.
73520         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
73521         (re_x2nrealloc): Remove.
73522         (free_state): Remove decl.
73523
73524         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
73525         (re_set_registers, re_exec):
73526         Use K&R-style defn.
73527
73528         2006-01-31  Roland McGrath  <roland@redhat.com>
73529
73530         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
73531         Reported by Mike Frysinger <vapier@gentoo.org>.
73532
73533         2006-01-15  Andreas Jaeger  <aj@suse.de>
73534
73535         [BZ #1950]
73536         * lib/regex_internal.c (re_string_reconstruct): Adjust for
73537         build_wcs_upper_buffer change.
73538         (build_wcs_upper_buffer): Change return type.
73539
73540         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
73541
73542         * lib/regex_internal.h: Include <stdint.h> if available.
73543
73544         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
73545
73546         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
73547
73548         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73549
73550         * lib/regcomp.c: Adjust for changed secondary hash function.
73551
73552         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
73553
73554         * lib/regex.h: Pretty printing.
73555         Clean up namespace a bit.
73556
73557         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
73558
73559         * lib/regexec.c (update_cur_sifted_state, check_arrival,
73560         check_arrival_add_next_nodes): Avoid using uninitialized variable.
73561
73562         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73563                     Ulrich Drepper  <drepper@redhat.com>
73564
73565         [BZ #1302]
73566         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
73567         changed.
73568         (bitset_word_t): Renamed from bitset_word.  All uses changed.
73569
73570         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
73571
73572         [BZ #281]
73573         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
73574         * lib/regcomp.c: Remove unnecessary uses of
73575         unsigned RE_TRANSLATE_TYPE.
73576         * lib/regex_internal.h: Likewise.
73577         * lib/regex_internal.c: Likewise.
73578         * lib/regexec.c: Likewise.
73579         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
73580
73581         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
73582
73583         * lib/regexec.c (find_recover_state): Remove unnecessary
73584         initialization.
73585         (transit_state_bkref): Make DFA a const pointer.
73586         (get_subexp): Likewise.
73587         (check_arrival): Likewise.
73588         (update_cur_sifted_state): Likewise.
73589         (re_search_internal): Likewise.
73590         (prune_impossible_nodes): Likewise.
73591         (acquire_init_state_context): Likewise.
73592         (proceed_next_node): Likewise.
73593         (set_regs): Likewise.
73594         (free_fail_stack_return): Likewise.
73595         (check_arrival_expand_ecl): Mark DFA parameter as const.
73596         (check_arrival_expand_ecl_sub): Likewise.
73597         (check_subexp_limits): Likewise.
73598         (sub_epsilon_src_nodes):  Likewise.
73599         (add_epsilon_src_nodes):  Likewise.
73600         (merge_state_array): Likewise.
73601         (update_regs): Likewise.
73602         (build_trtable): Likewise.
73603         (sift_states_backward): Mark MCTX parameter as const.
73604         (build_sifted_states): Likewise.
73605         (update_cur_sifted_state): Likewise.
73606         (sift_states_mkref): Likewise.
73607         (check_arrival_expand_ecl): Mark eclosure as const.
73608         (check_dst_limits_calc_pos_1): Likewise.
73609         * lib/regex_internal.h (re_match_context_t): Make dfa a const
73610         pointer.
73611
73612         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
73613
73614         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
73615         (transit_state_sb): Likewise.
73616         (transit_state_mb): Likewise.
73617         (sift_states_iter_mb): Likewise.
73618         (check_arrival_add_next_nodes): Likewise.
73619         (check_node_accept_bytes): Change first parameter to pointer-to-const.
73620         [_LIBC] (re_search_2_stub): Use mempcpy.
73621
73622         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
73623         mbrtowc for very simple UTF-8 case.
73624
73625         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
73626         a pointer-to-const.
73627         (re_acquire_state_context): Likewise.
73628         * lib/regex_internal.h: Adjust prototypes.
73629
73630         * lib/regex.c: Prevent using C++ compilers.
73631
73632         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
73633         (re_acquire_state_context): Likewise.
73634
73635 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73636
73637         * modules/regex (Depends-on): Add ssize_t.
73638
73639 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73640
73641         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
73642         translation table.
73643
73644 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73645
73646         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
73647
73648 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
73649             Bruno Haible  <bruno@clisp.org>
73650
73651         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
73652         <sys/types.h> and <inttypes.h>.
73653
73654 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73655
73656         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
73657         `__error_t_defined', so argp.h will not typedef the former.
73658
73659 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
73660
73661         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
73662         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
73663         glibc names.  Even if glibc is changed to conform to POSIX, the
73664         traditional names will be available anyway, since regex depends on
73665         the extensions module.  Also, fix a longstanding typo in the
73666         implementation of Spencer ERE test #75 from grep 2.3.  Problems
73667         reported by Emanuele Giaquinta.  Also, change sense of cached
73668         variable, so that the message makes sense.
73669
73670 2006-03-24  Simon Josefsson  <jas@extundo.com>
73671
73672         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
73673         including some doc fixes.
73674         (base64_encode_alloc): Fix +1 bug on allocation failures.
73675
73676 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73677
73678         * lib/base64.c (base64_encode): Do not read past end of array with
73679         unsanitized input on systems with CHAR_BIT > 8.
73680
73681 2006-03-24  Eric Blake  <ebb9@byu.net>
73682
73683         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
73684
73685 2006-03-22  Karl Berry  <karl@gnu.org>
73686
73687         * config/srclist.txt (*setenv.[ch]): get from coreutils.
73688         * config/srclistvars.sh (COREUTILS): new var.
73689
73690 2006-03-17  Jim Meyering  <jim@meyering.net>
73691
73692         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
73693         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
73694
73695 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73696
73697         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
73698         no longer needs it.  Instead, check that regoff_t is as least
73699         as wide as ptrdiff_t.
73700
73701         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
73702         so that our regex.h stays compatible with the installed regex.
73703         This is helpful for installers who configure --without-included-regex.
73704         Problem reported by Emanuele Giaquinta.
73705
73706 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73707
73708         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
73709         Typedef to long int, not to off_, as POSIX will likely change
73710         in that direction.
73711
73712 2006-03-15  Eric Blake  <ebb9@byu.net>
73713
73714         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
73715
73716 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73717
73718         * lib/argp-help.c (validate_uparams): Fix typo
73719         * lib/argp-parse.c (argp_default_options): Consistently begin help
73720         messages with a lowercase letter.
73721
73722 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
73723
73724         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
73725         overrun buffers and shouldn't be used (much as gets shouldn't be
73726         used).
73727         * lib/time_r.c (asctime_r, ctime_r): Likewise.
73728
73729 2006-03-08  Simon Josefsson  <jas@extundo.com>
73730
73731         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
73732         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73733
73734 2006-03-08  Simon Josefsson  <jas@extundo.com>
73735
73736         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
73737         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73738
73739 2006-03-08  Simon Josefsson  <jas@extundo.com>
73740
73741         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
73742         signal that configure disabled the device.
73743
73744 2006-03-08  Simon Josefsson  <jas@extundo.com>
73745
73746         * build-aux/maint.mk: Fix refresh-po, to handle no translated
73747         languages.
73748
73749 2006-03-07  Simon Josefsson  <jas@extundo.com>
73750
73751         * modules/getopt (Depends-on): Add unistd.
73752
73753         * modules/unistd: New file.
73754
73755 2006-03-07  Simon Josefsson  <jas@extundo.com>
73756
73757         * modules/gc-random: New file.
73758
73759 2006-03-07  Simon Josefsson  <jas@extundo.com>
73760
73761         * m4/unistd_h.m4: New file.
73762
73763 2006-03-07  Simon Josefsson  <jas@extundo.com>
73764
73765         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
73766         test to be side-effect free by storing the result in the cache
73767         variable gl_cv_lib_readline, and moving the assignment of
73768         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
73769         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73770
73771 2006-03-07  Simon Josefsson  <jas@extundo.com>
73772
73773         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
73774         error on missing devices (the functions will return an error).
73775
73776         * m4/gc.m4: Move random stuff to gc-random.m4
73777
73778 2006-03-07  Simon Josefsson  <jas@extundo.com>
73779
73780         * lib/unistd_.h: New file.
73781
73782 2006-03-07  Simon Josefsson  <jas@extundo.com>
73783
73784         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
73785
73786 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73787
73788         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
73789         Problem reported by Juan Manuel Guerrero.
73790
73791 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73792
73793         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
73794         the unistd module.
73795         * lib/getlogin_r.c: Likewise.
73796         * lib/getlogin_r.h: Likewise.
73797         * lib/glob.c: Likewise.
73798         * lib/pagealign_alloc.c: Likewise.
73799         * lib/unistd_.h: Remove; no longer needed.
73800
73801 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73802
73803         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73804         Add unistd.
73805         * modules/c-stack (Depends-on): Add unistd.
73806         * modules/getlogin_r: Likewise.
73807         * modules/glob: Likewise.
73808         * modules/pagealign_alloc: Likewise.
73809         * modules/unistd (Files): Remove lib/unistd_.h.
73810         (EXTRA_DIST): Remove.
73811         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
73812         need unistd_.h.
73813         (MOSTLYCLEANFILES): Remove unistd.h-t.
73814
73815 2006-03-03  Simon Josefsson  <jas@extundo.com>
73816
73817         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
73818
73819 2006-03-03  Simon Josefsson  <jas@extundo.com>
73820
73821         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
73822         libidn and bison.
73823
73824 2006-03-03  Simon Josefsson  <jas@extundo.com>
73825
73826         * build-aux/maint.mk: Add indent target.
73827
73828 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
73829
73830         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
73831         our replacement poll.h in any case, to avoid a differing
73832         declaration from a system header.  Seen on AIX.
73833
73834 2006-03-01  Simon Josefsson  <jas@extundo.com>
73835
73836         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
73837         <kasal@ucw.cz>.
73838
73839 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73840
73841         * modules/gettime (Depends-on): Add extensions module.
73842         * modules/nanosleep (Depends-on): Likewise.
73843         * modules/settime (Depends-on): Likewise.
73844
73845 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73846
73847         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
73848         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
73849         pedantically.
73850         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73851         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
73852
73853         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
73854         not "==".  Reported by Ralf Wildenhues.
73855
73856 2006-03-01  Karl Berry  <karl@gnu.org>
73857
73858         * doc/Copyright/request-*: new files, synced from gnuorg.
73859
73860 2006-03-01  Karl Berry  <karl@gnu.org>
73861
73862         * config/srclist.txt (Copyright/*): new entries.
73863
73864 2006-02-28  Simon Josefsson  <jas@extundo.com>
73865
73866         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
73867
73868 2006-02-27  Simon Josefsson  <jas@extundo.com>
73869
73870         * lib/base64.h: Indent #define's.  From Jim Meyering
73871         <jim@meyering.net>.
73872
73873 2006-02-27  Jim Meyering  <jim@meyering.net>
73874
73875         Revert the change of 2006-02-24, so these files can continue
73876         to be sync'd from gettext.
73877         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
73878         of `config.h'.
73879
73880 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73881
73882         * modules/intprops: New file.
73883         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73884         Add intprops.
73885         * modules/getloadavg (Files): Remove lib/intprops.h.
73886         (Depends-on): Add intprops.
73887         * modules/human: Likewise.
73888         * modules/inttostr: Likewise.
73889         * modules/openat: Likewise.
73890         * modules/sig2str: Likewise.
73891         * modules/userspec: Likewise.
73892         * modules/utimecmp: Likewise.
73893         * modules/xnanosleep: Likewise.
73894         * modules/xstrtol: Likewise.
73895
73896 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
73897
73898         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
73899         * modules/lock-tests (TESTS): Use $(EXEEXT).
73900         * modules/tls-tests: Likewise.
73901         * modules/argp-tests: Likewise.
73902         (check_PROGRAMS): New var, replacing...
73903         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
73904
73905 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73906
73907         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
73908         `config.h'.
73909
73910 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73911
73912         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
73913
73914 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73915
73916         Sync from coreutils.
73917         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
73918         gl_CHDIR_SAFER.
73919
73920 2006-02-22  Jim Meyering  <jim@meyering.net>
73921
73922         Sync from coreutils.
73923         * m4/chdir-safer.m4: New file.
73924
73925 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73926
73927         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
73928         AT_FDCWD exceeds INT_MAX.
73929         * lib/openat.h (AT_FDCWD): Likewise.
73930
73931 2006-02-17  Eric Blake  <address@hidden>
73932
73933         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
73934
73935 2006-02-16  Simon Josefsson  <jas@extundo.com>
73936
73937         * modules/getaddrinfo (Depends-on): Add sys_socket.
73938
73939 2006-02-15  Simon Josefsson  <jas@extundo.com>
73940
73941         * build-aux/maint.mk: Add dsyntax-check rule.
73942
73943 2006-02-15  Eric Blake  <ebb9@byu.net>
73944
73945         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
73946         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
73947         'present but cannot compile' warnings on cygwin.
73948         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
73949         use ws2tcpip.h if sys/socket.h works.
73950         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
73951         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
73952
73953 2006-02-14  Simon Josefsson  <jas@extundo.com>
73954
73955         * modules/maintainer-makefile (Files): Rename.
73956
73957         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
73958         and (the local) Makefile.cfg to maint-cfg.mk.
73959
73960         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
73961         to the latter.
73962
73963         * modules/maintainer-makefile: New module.
73964
73965         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
73966         severaly stripped to make it possible to build it up from scratch
73967         with reliable tests.
73968
73969         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
73970         fixes to permit overriding the default actions when configure and
73971         makefile are not available.
73972
73973 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73974
73975         Sync from coreutils.
73976         * modules/lstat (Depends-on): Don't depend on xalloc.
73977         (License): Change from GPL to LGPL, since this is now simply a
73978         replacement for a libc function.
73979
73980 2006-02-14  Jim Meyering  <jim@meyering.net>
73981
73982         Sync from coreutils.
73983
73984         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
73985         failure on deficient systems, and simplify gnulib lgpl dependencies.
73986         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
73987         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
73988
73989         * lib/xalloc-die.c: Remove unused definition of N_.
73990
73991 2006-02-14  Jim Meyering  <jim@meyering.net>
73992
73993         Sync from coreutils.
73994         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
73995         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
73996         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
73997         double-quote uses of that variable, to accommodate the rare case in
73998         which getmntent is available in none of the libraries checked.  This
73999         happens at least on FreeBSD 5.0.
74000
74001 2006-02-13  Simon Josefsson  <jas@extundo.com>
74002
74003         * gnulib-tool (Usage): Fix --import, from
74004         karl@freefriends.org (Karl Berry).
74005
74006 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
74007
74008         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
74009
74010 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
74011
74012         * lib/argp-namefrob.h: Restore changes accidentally lost during the
74013         "autoupdate" on 2005-12-12.
74014
74015 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
74016
74017         * modules/closeout (Depends-on): Remove atexit.
74018
74019 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
74020
74021         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
74022         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
74023
74024 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74025
74026         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
74027         __EXTENSIONS__ if this causes compilation to fail.  Problem
74028         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
74029         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
74030
74031 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
74032
74033         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
74034         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
74035         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
74036         All uses changed.
74037
74038 2006-01-26  Simon Josefsson  <jas@extundo.com>
74039
74040         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
74041         prototype is visible on mingw32.
74042
74043         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
74044         for mingw32.
74045
74046         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
74047         mingw32).
74048
74049 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
74050
74051         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
74052         attempt to open for write; this always fails, at least on POSIX
74053         hosts.  This reinstates the 2006-01-09 change, which was
74054         inadvertently removed.
74055
74056 2006-01-26  Bruno Haible  <bruno@clisp.org>
74057
74058         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
74059         Reported by Paul Eggert.
74060
74061 2006-01-26  Bruno Haible  <bruno@clisp.org>
74062             Paul Eggert  <eggert@cs.ucla.edu>
74063
74064         * lib/stdbool_.h (_Bool)
74065         [(! (defined __cplusplus || defined __BEOS__)
74066           && !defined __GNUC__
74067           && !(defined __HP_cc || defined __xlc__
74068                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
74069                || defined __sgi))]:
74070         #define to signed char in these cases too; this simplifies
74071         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
74072         etc., separately) and makes it more conservative.
74073
74074 2006-01-25  Simon Josefsson  <jas@extundo.com>
74075
74076         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
74077         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
74078         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
74079
74080 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74081
74082         * lib/argp-namefrob.h: Bugfix. Remove stray #
74083
74084 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
74085
74086         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
74087         so that we test the test.
74088         Check for yet another HP-UX cc bug involving *bool |= bool.
74089
74090 2006-01-25  Karl Berry  <karl@gnu.org>
74091
74092         * config/srclist.txt (vasnprintf.c): sync lost.
74093
74094 2006-01-25  Jim Meyering  <jim@meyering.net>
74095
74096         Sync from the stable (b5) branch of coreutils:
74097
74098         * lib/fts.c (fts_children): Don't let close() clobber errno from
74099         failed fchdir().
74100
74101         * lib/fts.c (fts_stat): When following a symlink-to-directory,
74102         don't necessarily interpret stat-fails+lstat-succeeds as indicating
74103         a dangling symlink.  That can also happen at least for ELOOP.
74104         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
74105         FYI, this bug predates the inclusion of fts.c in coreutils.
74106
74107         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
74108         in their own block, so pre-c99 compilers don't object.
74109
74110         Avoid the double-free (first in fts_read, second in fts_close) that
74111         would occur when an `active' directory is made inaccessible (e.g.,
74112         via chmod a-x) during a traversal.
74113         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74114         before returning.  Reproduce this failure by
74115         mkdir -p a/b; cd a; chmod a-x . b
74116         Reported by Stavros Passas.
74117
74118 2006-01-25  Jim Meyering  <jim@meyering.net>
74119
74120         * lib/fileblocks.c: Remove more useless parentheses.
74121         * lib/readutmp.h: Likewise.
74122
74123 2006-01-25  Bruno Haible  <bruno@clisp.org>
74124
74125         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
74126         warnings.
74127         Reported by Paul Eggert.
74128
74129 2006-01-25  Bruno Haible  <bruno@clisp.org>
74130
74131         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
74132         rid of a trap command. For Solaris sh.
74133         Reported by Mark D. Baushke <mdb@gnu.org>.
74134
74135 2006-01-24  Simon Josefsson  <jas@extundo.com>
74136
74137         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
74138         Bruno.
74139
74140 2006-01-24  Karl Berry  <karl@gnu.org>
74141
74142         * config/srclist.txt (argp-namefrob.h): sync lost.
74143
74144 2006-01-24  Jim Meyering  <jim@meyering.net>
74145
74146         * modules/openat (Files): Add lib/intprops.h.
74147         From Mark D. Baushke.
74148
74149 2006-01-24  Jim Meyering  <jim@meyering.net>
74150
74151         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
74152         Reported by Mark D. Baushke.
74153
74154 2006-01-24  Jim Meyering  <jim@meyering.net>
74155
74156         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
74157
74158 2006-01-24  Bruno Haible  <bruno@clisp.org>
74159
74160         * modules/strnlen (Maintainer): Change from glibc to all.
74161
74162 2006-01-24  Bruno Haible  <bruno@clisp.org>
74163
74164         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
74165         Patch by Paul Eggert.
74166
74167 2006-01-24  Bruno Haible  <bruno@clisp.org>
74168
74169         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
74170         already has it.
74171         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
74172         2005-11-26.
74173
74174         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
74175         'signed char' to avoid problems with the built-in _Bool type.
74176         Reported by Paul Eggert on 2005-11-26.
74177
74178 2006-01-24  Bruno Haible  <bruno@clisp.org>
74179
74180         * gnulib-tool (func_import): Avoid constructing complicated sed
74181         expressions inside backquote.
74182         Report and solution by Mark D. Baushke <mdb@gnu.org>.
74183
74184 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
74185
74186         These changes imported from libc.
74187         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
74188         test and two separate function calls.
74189         * lib/strndup.c (__strndup): Add libc_hidden_def.
74190
74191 2006-01-23  Simon Josefsson  <jas@extundo.com>
74192
74193         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
74194         Remove the test_*_SOURCES variable: automake infers it by default.
74195         * modules/tls-tests: Likewise.
74196
74197 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74198
74199         Work around porting bugs reported by Dieter in
74200         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
74201         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
74202         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
74203         Include "getopt.h" first, to check interface.
74204         (getenv): Declare only if defined HAVE_DECL_GETENV &&
74205         !HAVE_DECL_GETENV.
74206         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
74207         (__strndup): Revert to K&R-style function dfns, the glibc style.
74208         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
74209         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
74210         Include strnlen.h first, to get prototype properly.
74211         (strnlen): Renamed from __strnlen.
74212         Remove weak alias.
74213
74214 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74215
74216         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
74217
74218 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74219
74220         * config/srclist.txt: Adjust to reflect glibc reorganization.
74221         This affects only comments.
74222
74223 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74224
74225          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
74226          Reported by Bruce Korb <bkorb@gnu.org>.
74227
74228 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74229
74230         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
74231         to pacify gcc -Wswitch-default.
74232
74233 2006-01-22  Bruno Haible  <bruno@clisp.org>
74234
74235         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
74236         temporary buffer for sprintf, take into account the precision also
74237         for 'd', 'i', 'u', 'o', 'x', 'X'.
74238
74239 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
74240
74241         * modules/argp-tests: New module
74242         * tests/test-argp.c: New file
74243         * tests/test-argp-2.sh: New file
74244
74245 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
74246
74247         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
74248         (__argp_base_name): Removed
74249         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
74250         typo.
74251         (__argp_base_name): Provide macro definition or extern declaration
74252         depending on the configuration
74253
74254 2006-01-20  Simon Josefsson  <jas@extundo.com>
74255
74256         * modules/inet_ntop (Depends-on): Depend on sys_socket.
74257
74258 2006-01-20  Simon Josefsson  <jas@extundo.com>
74259
74260         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
74261
74262 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74263
74264         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
74265         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
74266         Suggested by Bruno Haible.
74267
74268 2006-01-20  Karl Berry  <karl@gnu.org>
74269
74270         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
74271         until changes propagate, I guess.
74272
74273 2006-01-19  Simon Josefsson  <jas@extundo.com>
74274
74275         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
74276
74277 2006-01-19  Simon Josefsson  <jas@extundo.com>
74278
74279         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
74280
74281 2006-01-19  Simon Josefsson  <jas@extundo.com>
74282
74283         * gnulib-tool: Set check_PROGRAMS.
74284
74285         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74286         modules/des-tests, modules/gc-arcfour-tests,
74287         modules/gc-arctwo-tests, modules/gc-des-tests,
74288         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74289         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74290         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74291         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74292         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74293         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
74294         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
74295         test_*_SOURCES.
74296
74297 2006-01-18  Simon Josefsson  <jas@extundo.com>
74298
74299         * modules/socklen (Depends-on): Depend on sys_socket.
74300
74301 2006-01-18  Simon Josefsson  <jas@extundo.com>
74302
74303         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74304         modules/des-tests, modules/gc-arcfour-tests,
74305         modules/gc-arctwo-tests, modules/gc-des-tests,
74306         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74307         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74308         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74309         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74310         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74311         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
74312         $(EXEEXT) to automake TESTS variable, for mingw32.
74313
74314 2006-01-17  Simon Josefsson  <jas@extundo.com>
74315
74316         * modules/socklen (Include): Need sys/socket.h.
74317
74318 2006-01-17  Bruno Haible  <bruno@clisp.org>
74319
74320         * modules/ssize_t (Include): Add <sys/types.h>.
74321
74322 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
74323
74324         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
74325         it's not portable and it doesn't work with cross-compiles.
74326         Problem reported by Bruno Haible.  Fix missing-$ typo in
74327         'test "gl_cv_ignore_unused_libraries" ...' that prevented
74328         -zignore from being used with Sun's C compiler.
74329
74330 2006-01-12  Simon Josefsson  <jas@extundo.com>
74331
74332         * lib/base64.c: Fix warning, reported by Bruno Haible
74333         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
74334
74335 2006-01-12  Bruno Haible  <bruno@clisp.org>
74336
74337         * modules/ldd: New file.
74338         * build-aux/ldd.sh.in: New file.
74339         * MODULES.html.sh (Support for building libraries and executables): Add
74340         ldd.
74341
74342 2006-01-12  Bruno Haible  <bruno@clisp.org>
74343
74344         * m4/ldd.m4: New file.
74345
74346 2006-01-12  Bruno Haible  <bruno@clisp.org>
74347
74348         * gnulib-tool (func_import, func_create_testdir): Don't go into an
74349         endless loop while replacing $auxdir with build-aux.
74350
74351 2006-01-11  Simon Josefsson  <jas@extundo.com>
74352
74353         * lib/stdint_.h (SIZE_MAX): Add missing (.
74354
74355 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
74356
74357         Sync from coreutils.
74358         * lib/md5.c: Fix commentary typos.
74359         (alignof, UNALIGNED_P): No need for a GCC-specific version.
74360         * lib/md5.h (__attribute__): Remove; unused.
74361         * lib/sha1.c: Fix commentary to match md5 better.
74362         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
74363         so that we don't need to worry about alignment.  All uses changed.
74364         This merges the 2005-10-28 md5 change into sha1.
74365
74366 2006-01-11  Jim Meyering  <jim@meyering.net>
74367
74368         Sync from coreutils.
74369         * lib/md5.c (OP): Fix spacing.
74370
74371 2006-01-11  Bruno Haible  <bruno@clisp.org>
74372
74373         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74374         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
74375         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
74376
74377 2006-01-11  Bruno Haible  <bruno@clisp.org>
74378
74379         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74380         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
74381         the "early" section as well.
74382
74383 2006-01-11  Bruno Haible  <bruno@clisp.org>
74384
74385         Avoid "ar: no archive members specified" error on MacOS X.
74386         * gnulib-tool (func_modules_add_dummy): New function.
74387         (func_import, func_create_testdir): Invoke it.
74388
74389 2006-01-11  Bruno Haible  <bruno@clisp.org>
74390
74391         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
74392         with $auxdir in AC_CONFIG_FILES statements.
74393
74394 2006-01-11  Bruno Haible  <bruno@clisp.org>
74395
74396         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74397         Initialize also noinst_HEADERS to empty.
74398
74399 2006-01-11  Bruno Haible  <bruno@clisp.org>
74400
74401         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
74402         variables.
74403         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
74404         autoreconf.
74405
74406 2006-01-11  Bruno Haible  <bruno@clisp.org>
74407
74408         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
74409         overridable by the user.
74410         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74411
74412 2006-01-10  Simon Josefsson  <jas@extundo.com>
74413
74414         * modules/sys_socket: New file.
74415
74416 2006-01-10  Simon Josefsson  <jas@extundo.com>
74417
74418         * m4/sys_socket_h.m4: New file.
74419
74420 2006-01-10  Simon Josefsson  <jas@extundo.com>
74421
74422         * lib/socket_.h: New file.
74423
74424 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74425
74426         * modules/readutmp (Maintainer): Add myself.
74427
74428 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74429
74430         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
74431         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
74432         People who are still concerned with buggy memcmp implementations
74433         can invoke gl_FUNC_MEMCMP themselves.
74434
74435 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74436
74437         * lib/regex_internal.h (BITSET_WORD_BITS):
74438         Work around a bug in 64-bit PGC (before version 6.1-2), where the
74439         preprocessor mishandles large unsigned values as if they were signed.
74440         Problem reported by Claudio Fontana in
74441         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
74442
74443 2006-01-10  Jim Meyering  <jim@meyering.net>
74444
74445         Avoid the double-free (first in fts_read, second in fts_close) that
74446         would occur when an `active' directory is made inaccessible (e.g.,
74447         via chmod a-x) during a traversal.
74448         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74449         before returning.  Reproduce this failure by
74450         mkdir -p a/b; cd a; chmod a-x . b
74451         Reported by Stavros Passas.
74452
74453         Sync from coreutils.
74454         * lib/sha1.c: Tweak grammar in a comment.
74455
74456 2006-01-10  Jim Meyering  <jim@meyering.net>
74457
74458         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
74459         Patch by Joerg Sonnenberger.
74460
74461 2006-01-10  Bruno Haible  <bruno@clisp.org>
74462
74463         * modules/readutmp: Depend on module free.
74464         * modules/strtok_r: Depend on module restrict.
74465
74466 2006-01-10  Bruno Haible  <bruno@clisp.org>
74467
74468         * modules/gettext (configure.ac): Add an invocation of
74469         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
74470
74471 2006-01-10  Bruno Haible  <bruno@clisp.org>
74472
74473         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
74474         Reported by Werner Lemberg <wl@gnu.org>.
74475
74476 2006-01-10  Bruno Haible  <bruno@clisp.org>
74477
74478         * lib/localcharset.c: Update from GNU gettext.
74479
74480 2006-01-10  Bruno Haible  <bruno@clisp.org>
74481
74482         * lib/argp.h (__const): Remove macro. Use const instead.
74483         * lib/argp-fmtstream.h (__const): Likewise.
74484         * lib/glob_.h (__const): Remove macro.
74485         * lib/glob-libc.h: Use const instead of __const.
74486
74487 2006-01-10  Bruno Haible  <bruno@clisp.org>
74488
74489         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
74490         variable.
74491         Needed to avoid an automake error regarding the 'gettext' module.
74492
74493 2006-01-09  Simon Josefsson  <jas@extundo.com>
74494
74495         * modules/inet_ntop (Depends-on): Add restrict.
74496
74497 2006-01-09  Simon Josefsson  <jas@extundo.com>
74498
74499         * modules/gc-rijndael-tests (License): Put under LGPL.
74500
74501         * modules/gc-des-tests (License): Likewise.
74502
74503         * modules/gc-arcfour-tests (License): Likewise.
74504
74505         * modules/gc-arctwo-tests (License): Likewise.
74506
74507         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
74508
74509         * modules/gc-hmac-sha1-tests (Files): Likewise.
74510
74511         * modules/gc-hmac-md5-tests (License): Likewise.
74512
74513         * modules/gc-sha1-tests (License): Likewise.
74514
74515         * modules/gc-md5-tests (License): Likewise.
74516
74517         * modules/gc-md4-tests (License): Likewise.
74518
74519         * modules/gc-md2-tests (License): Likewise.
74520
74521         * modules/gc-tests (License): Likewise.
74522
74523         * modules/des-tests (License): Likewise.
74524
74525         * modules/md4-tests (License): Likewise.
74526
74527         * modules/md2-tests (License): Likewise.
74528
74529 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74530
74531         Sync from coreutils:
74532
74533         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
74534         * modules/lib-ignore: New file.
74535         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
74536         chdir-safer.m4, lchmod.m4.
74537         * modules/openat: Add mkdirat.c, openat-priv.h.
74538
74539 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74540
74541         Sync from coreutils.
74542         * m4/lib-ignore.m4: New file.
74543         * m4/lchmod.m4: New file.
74544
74545 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74546
74547         Sync from coreutils.
74548         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
74549         for write access: POSIX says that must fail.
74550         * lib/fts.c (diropen): Likewise.
74551         * lib/save-cwd.c (save_cwd): Likewise.
74552         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
74553         well, for minor improvements on hosts that lack O_DIRECTORY.
74554         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
74555         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
74556         Fall back on chown if open failed with EACCES.
74557
74558         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
74559         Report an error at compile-time if only a 1-second nominal clock
74560         resolution is found.
74561
74562         * lib/lchmod.h: New file.
74563         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
74564         (make_dir_parents): Use lchown rather than chown, and
74565         lchmod rather than chmod.
74566
74567         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
74568         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
74569         "proc" reported by n0dalus.
74570
74571         * lib/mountlist.c: Include <limits.h>.
74572         (dev_from_mount_options)
74573         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
74574         New function.  It no longer assumes "dev=" has the System V meaning
74575         on Linux (since it doesn't).  It also parses "dev=" more carefully.
74576         (read_file_system_list)
74577         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
74578         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
74579         dev= in that case.
74580
74581         * lib/posixtm.h (PDS_PRE_2000): New macro.
74582         * lib/posixtm.c (year): Arg is now syntax_bits rather than
74583         allow_century.  All usages changed.  Reject dates outside the range
74584         1969-1999 if PDS_PRE_2000 is used.
74585
74586 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74587
74588         Sync from coreutils.
74589         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
74590         (Time of day items): Mention the possibility of leap seconds.
74591         Problem reported by Dr. David Alan Gilbert.
74592
74593 2006-01-09  Jim Meyering  <jim@meyering.net>
74594
74595         Sync from coreutils.
74596
74597         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
74598
74599         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
74600
74601         * lib/modechange.c (mode_compile): Reject an invalid mode string
74602         that starts with an octal digit.  From Andreas Gruenbacher.
74603
74604         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
74605         and dup to open_safer and dup_safer, respectively.
74606         (openat_permissive): Fix typo in comment.
74607
74608         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
74609         "gettext.h"; either no longer needed or are guaranteed by openat.h.
74610         (_): Remove; no longer needed.
74611         (openat): Renamed from rpl_openat; no need for rpl_openat
74612         since openat.h renames openat for us.
74613         Replace most of the body with a call to openat_permissive,
74614         to avoid duplicate code.
74615         Port to (probably hypothetical) environments were mode_t is
74616         wider than int.
74617         (openat_permissive): Require mode arg, so that we can check
74618         types better.  Put it just after flags.  Change cwd failure
74619         indicator from pointer-to-bool to pointer-to-errno-value.
74620         All callers changed.
74621         Invoke openat_save_fail and/or openat_restore_fail if
74622         cwd_errno is null, so that openat can call us.
74623         (openat_permissive, fdopendir, fstatat, unlinkat):
74624         Simplify errno handling to avoid some duplicate code,
74625         as it's OK to set errno on success.
74626         * lib/openat.h: Revamp code so that function macros depend on
74627         __OPENAT_PREFIX only, not also on AT_FDCWD.
74628         (openat_ro): Remove.  Caller changed to use openat_permissive.
74629         (openat_permissive): Now a macro, if not a function.
74630         (openat_restore_fail, openat_save_fail): Now always functions,
74631         since mkdirat needs them even if __OPENAT_PREFIX is defined.
74632
74633         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
74634         and openat.c.
74635         * lib/mkdirat.c: Include openat-priv.h.
74636         Remove definitions of macros defined therein.
74637         * lib/openat.c: Likewise.
74638
74639         * lib/mkdirat.c (mkdirat): New file and function.
74640         * lib/openat.h (mkdirat): Declare.
74641
74642         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
74643
74644         * lib/openat.h (openat_permissive): Declare.
74645         (openat_ro): Define.
74646
74647         * lib/openat.c (EXPECTED_ERRNO): New macro.
74648         (openat_permissive): New function -- used in remove.c rewrite.
74649         (all functions): Set errno just before returning, only if there
74650         was an actual failure.
74651         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
74652
74653         Emulate openat-family functions using Linux's procfs, if possible.
74654         Idea and some code based on Ulrich Drepper's glibc changes.
74655
74656         * lib/openat.c: (BUILD_PROC_NAME): New macro.
74657         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
74658         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
74659         before falling back on save_cwd and restore_cwd.
74660         (fdopendir, fstatat, unlinkat): Likewise.
74661
74662         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
74663         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
74664
74665         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
74666         as second argument to va_arg.  Otherwise, some versions of gcc
74667         warn that `if this code is reached, the program will abort'.
74668
74669 2006-01-09  Jim Meyering  <jim@meyering.net>
74670
74671         Sync from coreutils.
74672         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
74673         Require openat-priv.h.
74674
74675 2006-01-09  Bruno Haible  <bruno@clisp.org>
74676
74677         * modules/strnlen (Include): Use strnlen.h.
74678
74679 2006-01-09  Bruno Haible  <bruno@clisp.org>
74680
74681         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
74682
74683 2006-01-09  Bruno Haible  <bruno@clisp.org>
74684
74685         * lib/sysexit_.h (EX_OK): New macro.
74686         Suggested by Martin Lambers <marlam@marlam.de>.
74687
74688 2006-01-09  Bruno Haible  <bruno@clisp.org>
74689
74690         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
74691         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
74692
74693 2006-01-09  Bruno Haible  <bruno@clisp.org>
74694
74695         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
74696         numbers.
74697
74698 2006-01-09  Bruno Haible  <bruno@clisp.org>
74699
74700         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
74701         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
74702         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
74703         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
74704
74705 2006-01-09  Bruno Haible  <bruno@clisp.org>
74706
74707         * build-aux/javacomp.sh.in: New file, moved from lib/.
74708         * modules/javacomp-script (Files): Update.
74709         (configure.ac): Add AC_CONFIG_FILES invocation.
74710         (EXTRA_DIST): Remove variable.
74711
74712         * build-aux/javaexec.sh.in: New file, moved from lib/.
74713         * modules/javaexec (Files): Update.
74714         (configure.ac): Add AC_CONFIG_FILES invocation.
74715         (EXTRA_DIST): Remove javaexec.sh.in.
74716
74717         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
74718         * modules/csharpcomp-script (Files): Update.
74719         (configure.ac): Add AC_CONFIG_FILES invocation.
74720         (EXTRA_DIST): Remove variable.
74721
74722         * build-aux/csharpexec.sh.in: New file, moved from lib/.
74723         * modules/csharpexec (Files): Update.
74724         (configure.ac): Add AC_CONFIG_FILES invocation.
74725         (EXTRA_DIST): Remove csharpexec.sh.in.
74726
74727 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74728
74729         Sync from coreutils.
74730
74731         Add POSIX ACL support
74732         * lib/acl.h (copy_acl, set_acl): Add declarations.
74733         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
74734         systems other than Linux.
74735         (chmod_or_fchmod): New function: use fchmod when possible,
74736         and chmod otherwise.
74737         (file_has_acl): Add a POSIX ACL implementation, with a
74738         Linux-specific subcase.
74739         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
74740         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
74741         acls are unsupported.
74742         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
74743         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
74744         are unsupported.
74745
74746 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74747
74748         Sync from coreutils.
74749         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
74750
74751 2006-01-07  Bruno Haible  <bruno@clisp.org>
74752
74753         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
74754         gl_EARLY.
74755
74756 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74757
74758         * lib/strftime.c (tzname): Don't declare if it is already #defined.
74759         Problem reported for Mingw by Mark Junker.
74760
74761 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74762
74763         * README: Gnulib normally doesn't generate a tarball.
74764
74765 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
74766
74767         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
74768         long int, not int, for nanosecond counts, so that people who are
74769         used to POSIX struct timespec won't be surprised.  Reported by Jim
74770         Meyering.
74771
74772 2005-12-28  Bruno Haible  <bruno@clisp.org>
74773
74774         * build-aux/config.rpath: Update from GNU gettext.
74775
74776 2005-12-16  Jim Meyering  <jim@meyering.net>
74777
74778         * modules/fprintftime: New module.
74779         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
74780
74781 2005-12-16  Jim Meyering  <jim@meyering.net>
74782
74783         * m4/fprintftime.m4: New file.
74784
74785 2005-12-16  Jim Meyering  <jim@meyering.net>
74786
74787         * lib/fprintftime.c, lib/fprintftime.h: New files.
74788
74789 2005-12-15  Simon Josefsson  <jas@extundo.com>
74790
74791         * modules/socklen (configure.ac): Fix M4 macro name, to align with
74792         new m4/socklen.m4.
74793
74794 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74795
74796         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
74797         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
74798
74799 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74800
74801         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
74802         * lib/argp-help.c (fill_in_uparams): Check if the constructed
74803         struct uparams is valid. Fall back to the default values if it is
74804         not.
74805
74806 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74807
74808         * modules/argp (Files): Add argp-pin.c
74809         (Depends-on): dirname
74810         (lib_SOURCES): Add argp-pin.c
74811
74812 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74813
74814         * m4/argp.m4:  Check if program_invocation_name and
74815         program_invocation_short_name are declared and define appropriate
74816         macros if they are not.
74817
74818 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74819
74820         * lib/argp-help.c (__argp_base_name): New function
74821         (__argp_short_program_name): Rewrite using __argp_base_name
74822         * lib/argp-namefrob.h: Define program_invocation_name and
74823         program_invocation_short_name if requested
74824         (__argp_base_name): Add prototype
74825         * lib/argp-parse.c (argp_def): Use gettext wrappers
74826         (argp_default_parser): Use __argp_base_name
74827         * lib/argp-pin.c: New file. Defines program_invocation_name and
74828         program_invocation_short_name on systems that lack them.
74829
74830 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74831
74832         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
74833         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74834         porting problem reported by Georg Schwarz in
74835         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74836
74837 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74838
74839         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
74840         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74841         porting problem reported by Georg Schwarz in
74842         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74843
74844 2005-12-05  Bruno Haible  <bruno@clisp.org>
74845
74846         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
74847         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
74848         Reported by Mark Junker <mjscod@gmx.de>.
74849
74850 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
74851
74852         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
74853         Use implementation from Albert Chin, with some
74854         comments/corrections by Stepan Kasal and myself.
74855
74856 2005-12-02  Bruno Haible  <bruno@clisp.org>
74857
74858         * gnulib-tool (func_import): Accept GPLed build tool modules when
74859         --lgpl is given.
74860         * modules/csharpcomp-script: New file.
74861         * modules/csharpcomp: Depend on it.
74862         * modules/javacomp-script: New file.
74863         * modules/javacomp: Depend on it.
74864         Suggested by Simon Josefsson.
74865
74866 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
74867
74868         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
74869         statement, to work around an HP-UX 10.20 compiler bug reported by
74870         Peter O'Gorman.
74871
74872 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74873
74874         * modules/savedir (Depends-on): Add openat.
74875
74876 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74877
74878         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
74879         (uintmax_t) [defined uintmax_t]: Do not declare.
74880         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
74881         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
74882         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
74883         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
74884         sake of portability to weird hosts that C allows (though we don't
74885         know of any practical examples).
74886
74887         * lib/savedir.h (fdsavedir): New decl.
74888         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
74889         contains most of the former guts of savedir.
74890         (savedir): Use savedirstream.
74891         Include "openat.h".
74892
74893 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74894
74895         * modules/obstack (Files): Add m4/ulonglong.m4.
74896         Problem reported by Davide Angelocola.
74897
74898 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
74899
74900         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
74901         coreutils no longer futzes with rounding modes.
74902
74903 2005-11-14  Jim Meyering  <jim@meyering.net>
74904
74905         * lib/mkstemp-safer.c: Include <config.h>, required for possible
74906         replacement of mkstemp.
74907
74908 2005-11-10  Simon Josefsson  <jas@extundo.com>
74909
74910         * lib/readline.c: Remove EOL.
74911
74912 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74913
74914         * modules/gethrxtime (Depends-on): Add gettime.
74915
74916 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74917
74918         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
74919         or gettimeofday; no longer needed.
74920
74921 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74922
74923         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
74924         time business.
74925         (gethrxtime) [! (HAVE_NANOUPTIME
74926         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
74927         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
74928         our own approximation.
74929
74930 2005-11-08  Eric Blake  <ebb9@byu.net>
74931
74932         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74933
74934 2005-11-08  Eric Blake  <ebb9@byu.net>
74935
74936         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74937
74938 2005-11-04  Bruno Haible  <bruno@clisp.org>
74939
74940         * gnulib-tool: Implement --update mode.
74941
74942 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74943
74944         Fix porting problem reported by Theodoros V. Kalamatianos.
74945         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
74946         Don't assume that futimes failing means we must fail.
74947
74948 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74949
74950         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
74951         variables to suggest the intended function of the PATH_MAX check.
74952
74953 2005-10-30  Kean Johnston  <jkj@sco.com>
74954
74955         Trivial changes to support SCO systems.
74956         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
74957         as PATH_MAX.
74958         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
74959         where __ptr is null when no I/O is pending.
74960
74961 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74962
74963         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
74964         leave errno alone.  Problem reported by Dmitry V. Levin.
74965
74966 2005-10-28  Simon Josefsson  <jas@extundo.com>
74967
74968         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
74969         Test more.
74970
74971         * tests/test-gc-md2.c, tests/test-md2.c: New files.
74972
74973         * modules/md2, modules/md2-tests: New files.
74974
74975 2005-10-28  Simon Josefsson  <jas@extundo.com>
74976
74977         * m4/inet_ntop.m4: More tests.
74978
74979         * m4/gc-md2.m4, md2.m4: New file.
74980
74981 2005-10-28  Simon Josefsson  <jas@extundo.com>
74982
74983         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
74984         "restrict" keywords, as per POSIX.  Protect the function
74985         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
74986         Don't use K&R prototypes.  Check the sprintf return values.
74987         Re-define EAFNOSUPPORT if not present.  Indent.
74988
74989         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
74990         suggested by Bruno Haible <bruno@clisp.org>.
74991
74992         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
74993
74994         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
74995
74996         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
74997         libgcrypt).
74998
74999         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
75000
75001         * lib/md2.h, lib/md2.c: New files.
75002
75003 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
75004
75005         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
75006         errno alone.  Problem reported by Frederic Jolliton.
75007
75008 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75009
75010         * modules/verify (License): Change from GPL to LGPL.  This is a
75011         tiny module and there are apparently near-equivalents that are
75012         under the BSD license.
75013
75014 2005-10-24  Simon Josefsson  <jas@extundo.com>
75015
75016         * modules/sha1: Relicense to LGPL.
75017
75018 2005-10-24  Simon Josefsson  <jas@extundo.com>
75019
75020         * lib/md4.h: Shrink buffer size, now that we changed the type.
75021
75022 2005-10-23  Simon Josefsson  <jas@extundo.com>
75023
75024         * gnulib-tool (func_import): Fix --tests-base.
75025
75026 2005-10-22  Simon Josefsson  <jas@extundo.com>
75027
75028         * modules/arcfour (Depends-on): Need stdint.
75029
75030 2005-10-22  Simon Josefsson  <jas@extundo.com>
75031
75032         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
75033         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
75034
75035 2005-10-22  Simon Josefsson  <jas@extundo.com>
75036
75037         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
75038         suggested by Bruno Haible <bruno@clisp.org>.
75039
75040 2005-10-22  Simon Josefsson  <jas@extundo.com>
75041
75042         * lib/crc.h: Include stddef.h, for size_t.
75043
75044 2005-10-22  Simon Josefsson  <jas@extundo.com>
75045
75046         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
75047         arcfour_context struct (simplify test vector testing in GNU
75048         Shishi).
75049
75050 2005-10-21  Simon Josefsson  <jas@extundo.com>
75051
75052         * modules/des, modules/des-tests: New files.
75053
75054         * modules/gc-des, modules/gc-des-tests: New files.
75055
75056         * tests/test-des.c, tests/test-gc-des.c: New file.
75057
75058 2005-10-21  Simon Josefsson  <jas@extundo.com>
75059
75060         * modules/arctwo, modules/arctwo-tests: New files.
75061
75062         * tests/test-arctwo.c: New file.
75063
75064         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
75065
75066         * tests/test-gc-arctwo.c: New file.
75067
75068 2005-10-21  Simon Josefsson  <jas@extundo.com>
75069
75070         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
75071         Bruno Haible <bruno@clisp.org>.
75072
75073         * m4/gc-des.m4: New file.
75074
75075 2005-10-21  Simon Josefsson  <jas@extundo.com>
75076
75077         * m4/arctwo.m4: New file.
75078
75079         * m4/gc-arctwo.m4: New file.
75080
75081 2005-10-21  Simon Josefsson  <jas@extundo.com>
75082
75083         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
75084         block.
75085
75086 2005-10-21  Simon Josefsson  <jas@extundo.com>
75087
75088         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
75089         <bruno@clisp.org>.
75090
75091         * lib/hmac-sha1.c (hmac_sha1): Likewise.
75092
75093         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
75094         Bruno Haible <bruno@clisp.org>.
75095
75096         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
75097         <bruno@clisp.org>.
75098
75099 2005-10-21  Simon Josefsson  <jas@extundo.com>
75100
75101         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
75102
75103 2005-10-21  Simon Josefsson  <jas@extundo.com>
75104
75105         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
75106
75107 2005-10-21  Simon Josefsson  <jas@extundo.com>
75108
75109         * lib/des.h, lib/des.c: New files.
75110
75111         * lib/gc-gnulib.c: Support DES.c
75112
75113 2005-10-21  Simon Josefsson  <jas@extundo.com>
75114
75115         * lib/arctwo.h, lib/arctwo.c: New files.
75116
75117         * lib/gc-gnulib.c: Support ARCTWO.
75118
75119 2005-10-21  Simon Josefsson  <jas@extundo.com>
75120
75121         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
75122         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75123
75124 2005-10-21  Simon Josefsson  <jas@extundo.com>
75125
75126         * gnulib-tool (func_import, func_create_testdir): Define automake
75127         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
75128         Makefile.am snippet),
75129         suggested by Bruno Haible <bruno@clisp.org>.
75130
75131         * modules/gc (Makefile.am): Use it.
75132
75133 2005-10-21  Bruno Haible  <bruno@clisp.org>
75134
75135         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
75136         patch.
75137
75138 2005-10-19  Simon Josefsson  <jas@extundo.com>
75139
75140         * tests/test-gc-rijndael.c: New file.
75141
75142         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
75143
75144 2005-10-19  Simon Josefsson  <jas@extundo.com>
75145
75146         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
75147         interface too.
75148
75149 2005-10-19  Simon Josefsson  <jas@extundo.com>
75150
75151         * tests/test-gc-arcfour.c: New file.
75152
75153         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
75154
75155 2005-10-19  Simon Josefsson  <jas@extundo.com>
75156
75157         * modules/gc-md4, modules/gc-md4-tests: New file.
75158
75159         * tests/test-gc-md4.c: New file.
75160
75161 2005-10-19  Simon Josefsson  <jas@extundo.com>
75162
75163         * m4/gc-md4.m4: New file.
75164
75165 2005-10-19  Simon Josefsson  <jas@extundo.com>
75166
75167         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
75168         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
75169         <kasal@ucw.cz>.
75170
75171 2005-10-19  Simon Josefsson  <jas@extundo.com>
75172
75173         * m4/gc-arcfour.m4: New file.
75174
75175         * m4/gc-rijndael.m4: New file.
75176
75177 2005-10-19  Simon Josefsson  <jas@extundo.com>
75178
75179         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
75180
75181 2005-10-19  Simon Josefsson  <jas@extundo.com>
75182
75183         * lib/gc-gnulib.c: Support ARCFOUR.
75184
75185 2005-10-19  Simon Josefsson  <jas@extundo.com>
75186
75187         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
75188         support.
75189
75190         * lib/gc.h: Add ECB enum type.
75191
75192         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
75193
75194 2005-10-18  Simon Josefsson  <jas@extundo.com>
75195
75196         * tests/test-md5.c: New file.
75197
75198         * modules/md5-tests: New file.
75199
75200 2005-10-18  Simon Josefsson  <jas@extundo.com>
75201
75202         * tests/test-md4.c: New file.
75203
75204         * modules/md4, modules/md4-tests: New files.
75205
75206 2005-10-18  Simon Josefsson  <jas@extundo.com>
75207
75208         * m4/md4.m4: New file.
75209
75210 2005-10-18  Simon Josefsson  <jas@extundo.com>
75211
75212         * lib/md4.h, lib/md4.c: New files, based on md5.?.
75213
75214 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
75215
75216         * gnulib-tool (func_create_testdir): Omit the second check whether
75217         BUILT_SOURCES in nonempty.
75218
75219 2005-10-17  Simon Josefsson  <jas@extundo.com>
75220
75221         * tests/test-rijndael.c: New file.
75222
75223 2005-10-17  Simon Josefsson  <jas@extundo.com>
75224
75225         * modules/sha1: Depend on stdint instead of md5.
75226
75227         * modules/md5: Depend on stdint, remove uint32_t.
75228
75229 2005-10-17  Simon Josefsson  <jas@extundo.com>
75230
75231         * modules/gc-sha1-tests: New file.
75232
75233         * tests/test-gc-sha1.c: New file.
75234
75235 2005-10-17  Simon Josefsson  <jas@extundo.com>
75236
75237         * m4/md5.m4: Remove call to uint32_t.m4.
75238
75239 2005-10-17  Simon Josefsson  <jas@extundo.com>
75240
75241         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
75242
75243         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
75244         md5.h.
75245
75246         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
75247
75248         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
75249
75250 2005-10-17  Simon Josefsson  <jas@extundo.com>
75251
75252         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
75253
75254 2005-10-17  Simon Josefsson  <jas@extundo.com>
75255
75256         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
75257
75258 2005-10-17  Simon Josefsson  <jas@extundo.com>
75259
75260         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
75261
75262         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
75263
75264 2005-10-17  Bruno Haible  <bruno@clisp.org>
75265
75266         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
75267         that it can also be used in a test.
75268
75269 2005-10-16  Bruno Haible  <bruno@clisp.org>
75270
75271         * gnulib-tool (func_emit_tests_Makefile_am): Also define
75272         TESTS_ENVIRONMENT, so that individual tests can augment it.
75273
75274         * gnulib-tool (func_create_testdir): Use an intermediate target for
75275         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
75276         macros, like $(ALLOCA_H), which cannot be passed through the command
75277         line.
75278
75279 2005-10-15  Simon Josefsson  <jas@extundo.com>
75280
75281         * modules/rijndael-tests: New file.
75282
75283         * modules/rijndael: New file.
75284
75285 2005-10-15  Simon Josefsson  <jas@extundo.com>
75286
75287         * m4/rijndael.m4: New file.
75288
75289 2005-10-15  Simon Josefsson  <jas@extundo.com>
75290
75291         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
75292
75293         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
75294
75295 2005-10-14  Simon Josefsson  <jas@extundo.com>
75296
75297         * tests/test-arcfour.c: New file.
75298
75299         * modules/arcfour, modules/arcfour-tests: New files.
75300
75301 2005-10-14  Simon Josefsson  <jas@extundo.com>
75302
75303         * m4/arcfour.m4: New file.
75304
75305 2005-10-14  Simon Josefsson  <jas@extundo.com>
75306
75307         * lib/arcfour.h, lib/arcfour.c: New files.
75308
75309 2005-10-14  Roland McGrath  <roland@redhat.com>
75310
75311         Import from libc.  [BZ #1331]
75312         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
75313         macro argument.
75314         Reported by Matej Vela <vela@debian.org>.
75315
75316 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75317
75318         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
75319         include <wchar.h>; no longer needed.
75320
75321 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75322
75323         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
75324
75325 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
75326         and  Ulrich Drepper  <drepper@redhat.com>
75327
75328         Import from libc.
75329         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
75330         instead of inline stream orientation test and two separate
75331         function calls.  Pay no attention to USE_IN_LIBIO.
75332
75333 2005-10-13  Simon Josefsson  <jas@extundo.com>
75334
75335         * modules/gc-hmac-md5-tests: New file.
75336
75337         * tests/test-gc-hmac-sha1.c: New file.
75338
75339         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
75340
75341         * modules/gc-hmac-md5-tests: New file.
75342
75343         * tests/test-gc-md5.c: New file.
75344
75345         * modules/gc-md5-tests: New file.
75346
75347 2005-10-13  Simon Josefsson  <jas@extundo.com>
75348
75349         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
75350         Move memory allocation outside of loop.
75351
75352 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
75353
75354         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
75355         intermediate directory is in a read-only file system.  Problem
75356         reported by Eric Blake.
75357
75358 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
75359
75360         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
75361
75362 2005-10-12  Simon Josefsson  <jas@extundo.com>
75363
75364         * tests/test-hmac-sha1.c: New file.
75365
75366         * modules/hmac-sha1-tests: New file.
75367
75368         * modules/hmac-sha1: New file.
75369
75370 2005-10-12  Simon Josefsson  <jas@extundo.com>
75371
75372         * modules/gc-sha1: New file.
75373
75374 2005-10-12  Simon Josefsson  <jas@extundo.com>
75375
75376         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
75377
75378         * tests/test-gc-pbkdf2-sha1.c: New file.
75379
75380 2005-10-12  Simon Josefsson  <jas@extundo.com>
75381
75382         * modules/gc-md5, modules/gc-hmac-md5: New files.
75383
75384         * modules/gc (Files): Remove md5, memxor and hmac files.
75385
75386 2005-10-12  Simon Josefsson  <jas@extundo.com>
75387
75388         * m4/gc-pbkdf2-sha1.m4: New file.
75389
75390         * m4/gc-hmac-sha1.m4: New file.
75391
75392         * m4/gc-sha1: New file.
75393
75394         * m4/hmac-sha1.m4: New file.
75395
75396 2005-10-12  Simon Josefsson  <jas@extundo.com>
75397
75398         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
75399
75400         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
75401
75402 2005-10-12  Simon Josefsson  <jas@extundo.com>
75403
75404         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
75405         suggested by Bruno Haible <bruno@clisp.org>.
75406
75407 2005-10-12  Simon Josefsson  <jas@extundo.com>
75408
75409         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
75410
75411 2005-10-12  Simon Josefsson  <jas@extundo.com>
75412
75413         * lib/gc-pbkdf2-sha1.c: New file.
75414
75415         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
75416
75417 2005-10-12  Simon Josefsson  <jas@extundo.com>
75418
75419         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
75420
75421         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
75422
75423 2005-10-12  Simon Josefsson  <jas@extundo.com>
75424
75425         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
75426         GC_USE_HMAC_MD5, respectively.
75427
75428         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
75429         (gc_md5): Fix typo.
75430
75431         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
75432
75433         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
75434
75435         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
75436
75437 2005-10-12  Bruno Haible  <bruno@clisp.org>
75438
75439         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
75440         Reported by Stepan Kasal <kasal@ucw.cz>.
75441
75442 2005-10-11  Simon Josefsson  <jas@extundo.com>
75443
75444         * tests/test-crc.c: New file.
75445
75446         * modules/crc, modules/crc-tests: New files.
75447
75448 2005-10-11  Simon Josefsson  <jas@extundo.com>
75449
75450         * m4/crc.m4: New file.
75451
75452 2005-10-11  Simon Josefsson  <jas@extundo.com>
75453
75454         * lib/gc.h: Add gc_hash and gc_hash_buffer.
75455
75456         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
75457
75458         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
75459
75460 2005-10-11  Simon Josefsson  <jas@extundo.com>
75461
75462         * lib/crc.h, lib/crc.c: New files.
75463
75464         * lib/gc.h (gc_hash_buffer): Add doc.
75465
75466 2005-10-11  Bruno Haible  <bruno@clisp.org>
75467
75468         * modules/c-strcasestr: New file.
75469         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
75470
75471 2005-10-11  Bruno Haible  <bruno@clisp.org>
75472
75473         * modules/c-strcase: New file.
75474         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
75475
75476 2005-10-11  Bruno Haible  <bruno@clisp.org>
75477
75478         * lib/strcasecmp.c: Include limits.h.
75479         (strcasecmp): Avoid integer overflow on exotic platforms.
75480         * lib/strncasecmp.c: Include limits.h.
75481         (strncasecmp): Avoid integer overflow on exotic platforms.
75482         Reported by Paul Eggert.
75483
75484 2005-10-11  Bruno Haible  <bruno@clisp.org>
75485
75486         * lib/c-strcasestr.h: New file, from GNU gettext.
75487         * lib/c-strcasestr.c: New file, from GNU gettext.
75488
75489 2005-10-11  Bruno Haible  <bruno@clisp.org>
75490
75491         * lib/c-strcase.h: New file, from GNU gettext.
75492         * lib/c-strcasecmp.c: New file, from GNU gettext.
75493         * lib/c-strncasecmp.c: New file, from GNU gettext.
75494
75495 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75496
75497         * modules/mempcpy (License): GPL -> LGPL.
75498         * modules/strchrnul (License): Likewise.
75499         * modules/sysexits (License): Likewise.
75500
75501 2005-10-08  Simon Josefsson  <jas@extundo.com>
75502
75503         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
75504
75505 2005-10-07  Simon Josefsson  <jas@extundo.com>
75506
75507         * m4/memxor.m4: Remove gl_C_RESTRICT call.
75508
75509 2005-10-06  Simon Josefsson  <jas@extundo.com>
75510
75511         * tests/test-hmac-md5.c: New file.
75512
75513         * modules/hmac-md5-tests: New file.
75514
75515         * modules/hmac-md5: New file.
75516
75517 2005-10-06  Simon Josefsson  <jas@extundo.com>
75518
75519         * m4/hmac-md5.m4: New file.
75520
75521         * m4/memxor.m4: Require gl_C_RESTRICT.
75522
75523 2005-10-06  Simon Josefsson  <jas@extundo.com>
75524
75525         * lib/memxor.c (memxor): Avoid casts and warnings.
75526
75527 2005-10-06  Simon Josefsson  <jas@extundo.com>
75528
75529         * lib/hmac-md5.c: New file.
75530
75531         * lib/hmac.h: New file.
75532
75533 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75534
75535         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
75536         promotes to int, not unsigned int, to catch the AIX 5.3
75537         compiler bug.
75538
75539 2005-10-05  Simon Josefsson  <jas@extundo.com>
75540
75541         * modules/memxor: New file.
75542
75543         * modules/iconv (Files): Move config.rpath to havelib, it is used
75544         there.
75545
75546         * modules/havelib (Files): Add config.rpath.
75547
75548 2005-10-05  Simon Josefsson  <jas@extundo.com>
75549
75550         * m4/memxor.m4: New file.
75551
75552 2005-10-05  Simon Josefsson  <jas@extundo.com>
75553
75554         * lib/memxor.c (memxor): Fix compiler error.
75555
75556         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
75557         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
75558
75559         * lib/memxor.h, lib/memxor.c: New files.
75560
75561         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
75562         we assume all systems have it, suggested by Jim Meyering
75563         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
75564         any systems lack sys/socket.h; mingw32 is known to lack it, but we
75565         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
75566         same reasons.
75567
75568 2005-10-05  Simon Josefsson  <jas@extundo.com>
75569
75570         * config/srclist.txt: Add glibc bug 1423 for md5.h.
75571
75572 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75573
75574         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
75575         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
75576         needed, since the source code now assumes these .h files.
75577
75578 2005-10-05  Derek Price  <derek@ximbiot.com>
75579
75580         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
75581
75582 2005-10-05  Bruno Haible  <bruno@clisp.org>
75583
75584         * modules/stdint (License): Change to LGPL.
75585
75586 2005-10-04  Simon Josefsson  <jas@extundo.com>
75587
75588         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
75589         D. Baushke" <mdb@gnu.org>.
75590
75591 2005-10-04  Bruno Haible  <bruno@clisp.org>
75592
75593         * lib/verify.h (verify_true): Provide alternative definition for C++.
75594
75595 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
75596
75597         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
75598         (SSIZE_MAX): New macro, if not already defined.
75599         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
75600         than 2 GiB.
75601
75602 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75603
75604         Sync from coreutils.
75605         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
75606         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
75607         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
75608         ULLONG_MAX doesn't work with 2.7.2.1.
75609
75610 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75611
75612         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
75613         From Ben Pfaff.
75614
75615         * modules/exclude (Depends-on): Depend on verify.
75616         * modules/strtoimax (Depends-on): Likewise.
75617         * modules/utimecmp (Depends-on): Likewise.
75618
75619 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75620
75621         * lib/exclude.c: Include verify.h.
75622         (verify): Remove.  All callers changed to use verify.h's version.
75623         * lib/strtoimax.c: Likewise.
75624         * lib/utimecmp.c: Likewis.e
75625
75626         Sync from coreutils.
75627         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
75628         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
75629         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
75630         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
75631         bother returning ENOSYS if settimeofday or stime fails; just let
75632         them return whatever errno they want to return.
75633         * lib/utimens.c: Include unistd.h, for dup2.
75634         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
75635         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
75636
75637 2005-10-02  Jim Meyering  <jim@meyering.net>
75638
75639         Sync from coreutils.
75640         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
75641         from glibc-2.2.5 that fails for read-only files.
75642
75643 2005-10-02  Jim Meyering  <jim@meyering.net>
75644
75645         Sync from coreutils.
75646         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
75647         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
75648         `#if HAVE_CONFIG_H'.
75649         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
75650         Remove AT_FDCWD test.
75651         Do not consume the fd unless successful.
75652         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
75653         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
75654         block, so that we don't even try to compile it if settimeofday is
75655         available.  This works around a compilation failure on OSF1 V5.1,
75656         due to stime requiring a `long int*' while tv_sec is `int'.
75657
75658 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
75659
75660         Sync from coreutils.
75661         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
75662         against `yes', rather than just testing for nonempty.
75663
75664 2005-10-01  Simon Josefsson  <jas@extundo.com>
75665
75666         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
75667         and Darwin.
75668
75669         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
75670         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
75671         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
75672         freeaddrinfo and gai_strerror are declared by the POSIX headers.
75673         Check if struct addrinfo is declared.
75674
75675 2005-10-01  Simon Josefsson  <jas@extundo.com>
75676
75677         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
75678         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
75679         AI_* and EAI_* definitions.  Protect function declarations.
75680
75681 2005-10-01  Jim Meyering  <jim@meyering.net>
75682
75683         Sync from coreutils.
75684
75685         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
75686         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
75687         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
75688         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75689         in the inet and nsl libraries.  Required on Solaris 5.7.
75690
75691 2005-10-01  Jim Meyering  <jim@meyering.net>
75692
75693         Sync from coreutils.
75694         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75695         in the inet and nsl libraries.  Required on Solaris 5.7.
75696
75697 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
75698
75699         * lib/getdelim.c (getdelim): Remove unused variables.
75700
75701 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75702
75703         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
75704         so that the code works even with ancient cpp.  Portability problem
75705         with GCC 2.7.2.1 reported by Thomas M.Ott.
75706
75707 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75708
75709         * modules/regex (Depends-on): Add strcase.
75710
75711         * modules/gethostname (Licence): Change from GPL to LGPL, since
75712         gethostname.c is a trivial implementation of a standard library
75713         function.
75714         * modules/poll (License): Change from GPL to LGPL, since it's
75715         derived from LGPL code.
75716
75717 2005-09-27  Jim Meyering  <jim@meyering.net>
75718
75719         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
75720         HAVE_CONFIG_H.
75721
75722         * lib/intprops.h (signed_type_or_expr__): Define.
75723         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
75724         for unsigned types.
75725
75726 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75727
75728         * lib/verify.h (verify_expr): Remove, replacing with:
75729         (verify_true): New macro that returns true instead of void.
75730         (verify_type__): Remove.
75731         (verify): Use verify_true rather than verify_type__.
75732
75733 2005-09-26  Bruno Haible  <bruno@clisp.org>
75734
75735         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
75736         is necessary.
75737         (lib_SOURCES): Remove mbchar.c.
75738         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
75739         (Files): Add m4/mbrtowc.m4.
75740         * modules/mbiter: Likewise.
75741         * modules/mbuiter: Likewise.
75742
75743 2005-09-26  Bruno Haible  <bruno@clisp.org>
75744
75745         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
75746         compile mbchar.c if they are not both present.
75747         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
75748         * m4/mbiter.m4 (gl_MBITER): Likewise.
75749         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
75750         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
75751         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
75752
75753 2005-09-25  Jim Meyering  <jim@meyering.net>
75754
75755         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
75756         also uses socklen_t.
75757
75758 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
75759
75760         * lib/utimens.c (ENOSYS): Define if not already defined.
75761         (futimens): Support having a null PATH if the file descriptor
75762         is nonnegative.
75763
75764         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
75765         Remove.
75766         (__attribute): Define to empty unless GCC 3.1 or later.
75767         This works around a core dump on OpenBSD 3.4, which has GCC
75768         2.95.3, which dumps core when given __attribute__(()).  It also
75769         simplifies other tests, since we really don't want to bother with
75770         worrying about which ancient version of GCC supported what.
75771         Original problem reported by Yoann Vandoorselaere, with part of
75772         the fix suggested by Derek Price.
75773
75774 2005-09-24  Jim Meyering  <jim@meyering.net>
75775
75776         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
75777         so we can once again use a positive bitfield width of 1 -- now we
75778         don't have to explain why we were using a bitfield width of 2.
75779
75780 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75781
75782         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
75783         and similarly for the other external symbols.  Problem reported
75784         by James Gallager.
75785
75786         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
75787         bug reported by Jim Meyering.
75788
75789         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
75790         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
75791         not needed, since socklen is a prerequisite module.
75792
75793 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75794
75795         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
75796         Problem reported by Eric Blake.
75797         (getaddrinfo): Initialize se so that it's not garbage.
75798         Redo internal storage allocation so that it doesn't make unportable
75799         assumptions about alignment.
75800         Fix a memory leak.
75801
75802         * lib/utimens.c (futimens): Use futimesat if available.
75803         Prefer it to futimes since it doesn't have the futimes bug.
75804
75805         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
75806         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
75807         Instead, declare a function that returns a pointer to an array,
75808         and use verify_type__ to declare the size of the array.
75809         Problem and germ of a solution reported by Bruno Haible.
75810         (verify_type__): Use 2, not 1, for bitfield size, to avoid
75811         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
75812
75813 2005-09-23  Jim Meyering  <jim@meyering.net>
75814
75815         Sync from coreutils.
75816         Correct build failure (socklen_t not defined) on at least
75817         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
75818         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
75819
75820 2005-09-23  Jim Meyering  <jim@meyering.net>
75821
75822         * modules/getaddrinfo (Depends-on): Add socklen.
75823
75824 2005-09-23  Bruno Haible  <bruno@clisp.org>
75825
75826         * tests/test-verify.c: New file.
75827
75828 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75829
75830         Sync from coreutils.
75831
75832         * modules/argmatch (Depends-on): Add verify.
75833         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
75834         unistd-safer.
75835         * modules/save-cwd (Depends-on): Likewise.
75836
75837         * modules/openat (Files): Add lib/openat-die.c.
75838         (Depends-on): Remove error, exitfail.
75839         Add dirname.
75840
75841         * modules/verify: New file.
75842         * MODULES.html.sh (Diagnostics <assert.h>): New section,
75843         with "verify" module.
75844
75845 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75846
75847         Sync from coreutils.
75848
75849         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
75850         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
75851         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
75852         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
75853         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
75854         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
75855         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
75856         Don't bother checking for string.h, stdlib.h, unistd.h.
75857         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
75858         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
75859         module's job.
75860         * m4/jm-macros.m4 (gl_MACROS): Likewise.
75861         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
75862
75863         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
75864         (gl_GETDATE): Use it.
75865
75866         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
75867
75868 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75869
75870         Sync from coreutils.
75871
75872         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
75873         stat-time.h.
75874         * lib/argmatch.h: Include verify.h
75875         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
75876         (ARGMATCH_ASSERT): Remove; unused.
75877         * lib/canonicalize.c: Assume STDC_HEADERS.
75878         * lib/exclude.c: Include "strcase.h".
75879         * lib/regex_internal.h [!defined _LIBC]: Likewise.
75880         * lib/getusershell.c: Include stdio--.h rather than stdio.h
75881         and stdio-safer.h.
75882         (getusershell): Call fopen, not fopen_safer.
75883         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
75884         Do not include unistd-safer.h.
75885         (save_cwd): Don't call fd_safer; no longer needed
75886         now that we include fcntl--.h.
75887
75888         * lib/getdate.y (relative_time): New type.
75889         (RELATIVE_TIME_0): New constant.
75890         (parser_control): Use relative_time instead of doing it ourselves.
75891         (%union): Add new relative_time rel member.
75892         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
75893         Now typeless.
75894         (relunit, relunit_snumber): Now of type rel.
75895         (zone, rel, relunit, get_date): Adjust to above changes.
75896
75897         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
75898         Do not include unistd-safer.h.
75899         (getloadavg): Don't call fd_safer; no longer needed
75900         now that we include fcntl--.h.
75901
75902         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
75903         (make_dir_parents): Treat ENOSYS like EEXIST.
75904
75905         Improve quality of diagnostics on restore_cwd failure.
75906         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
75907         (make_dir_parents): Last arg is now int * (for errno), not bool *.
75908         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
75909         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
75910         each time through the loop.  Do not diagnose restore_cwd failure;
75911         that is the caller's job (and perhaps the caller does not care).
75912
75913         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
75914         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
75915         If the file already exists but is not a directory, don't bother
75916         to try to make its parents.
75917         Close potential file descriptor leak if we can't chdir("/") (!).
75918         Don't always return true if chdir($PWD) fails; return true only
75919         if the requested action was done successfully (except for the
75920         chdir($PWD)).
75921         Don't log final directory unless we actually made it.
75922         Refactor to avoid duplicate code to fix up permissions.
75923         Don't attempt to fix up parent permissions if chdir($PWD) fails.
75924
75925         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
75926         to make it a bit faster and (I hope) clearer.
75927         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
75928         Fix bug in formats like %2N.
75929
75930         * lib/verify.h: New file.
75931
75932 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75933
75934         Sync from coreutils.
75935         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
75936
75937 2005-09-22  Jim Meyering  <jim@meyering.net>
75938
75939         Sync from coreutils.
75940
75941         * m4/lstat.m4 (gl_FUNC_LSTAT):
75942         Use AC_LIBSOURCES to require lstat.c and lstat.h.
75943         Remove obsolete comment.
75944         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
75945         * m4/xstrtod.m4: Likewise.
75946
75947         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
75948
75949 2005-09-22  Jim Meyering  <jim@meyering.net>
75950
75951         Sync from coreutils.
75952
75953         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
75954
75955         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
75956         the .tm_year member, since otherwise gcc-4.0 would now warn about
75957         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
75958
75959         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
75960         order to avoid an unsuppressible warning from gcc on 64-bit systems.
75961
75962         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
75963         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
75964         when run in a time zone for which daylight savings time is in effect
75965         for the starting date.
75966
75967         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
75968         stop us from restricting permissions of just-created absolute-named
75969         directories.
75970         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
75971         to restore initial working directory.
75972         * lib/mkdir-p.c (make_dir_parents): New parameter:
75973         different_working_dir, to tell caller if/when we change the working
75974         directory and are unable to return to the initial one.
75975         * lib/mkdir-p.h (make_dir_parents): Update prototype.
75976         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
75977         `return false'.  This fixes a bug introduced on 2004-07-30.
75978
75979         * lib/openat.c (fdopendir): Be sure to close the supplied
75980         file descriptor before returning.  This makes our replacement
75981         implementation a little closer to Solaris's, where fdopendir
75982         ties the file descriptor to the returned DIR* pointer.
75983         * lib/openat.c (unlinkat): New function.
75984         * lib/openat.h (unlinkat): Add prototype.
75985         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
75986         (openat_restore_fail): Rename from openat_restore_die.
75987         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
75988
75989         Provide an alternative to exiting immediately upon save_cwd or
75990         restore_cwd failure.  Now, an application can arrange e.g.,
75991         to perform a longjump in that case.
75992         * lib/openat.c: Include dirname.h.
75993         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
75994         (rpl_openat, fdopendir, fstatat): Call openat_save_die
75995         and openat_restore_die rather than calling error directly.
75996         Don't include "error.h" or "exitfail.h"; they're no longer needed.
75997
75998         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
75999         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
76000         define.
76001
76002         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
76003         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
76004                             int utc, int nanoseconds);
76005         Background:
76006         date should not have to allocate a megabyte of virtual memory to
76007         handle a format argument like +%1048575T.  When implemented with
76008         strftime, it must allocate such a buffer, use strftime to fill it
76009         in, print it, then free it.
76010         With fprintftime, it simply prints everything and exits.
76011         With no need for memory allocation, that's one fewer way to fail.
76012         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
76013         optional field width, not before, so we accept %9:z, not %:9z.
76014         (my_strftime): Be sure to use L_('x') for literals.
76015
76016         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
76017         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
76018         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
76019         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
76020         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
76021         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
76022         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
76023         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
76024         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
76025         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
76026         * lib/xgethostname.c, lib/xreadlink.c:
76027         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
76028
76029         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
76030         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
76031         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
76032         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76033         and don't include <sys/file.h>).
76034
76035 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
76036
76037         Sync from coreutils.
76038
76039         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
76040         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
76041         [!LDAV_DONE]: Avoid unused variable warning.
76042
76043 2005-09-21  Bruno Haible  <bruno@clisp.org>
76044
76045         * lib/unicodeio.h (unicode_to_mb): New declaration.
76046
76047 2005-09-20  Derek Price  <derek@ximbiot.com>
76048
76049         * lib/getaddrinfo.c: Don't include <netdb.h> included from
76050         getaddrinfo.h.
76051
76052 2005-09-20  Bruno Haible  <bruno@clisp.org>
76053
76054         * gnulib-tool: Remove trailing slashes from the values specified for
76055         --source-base, --m4-base, --tests-base, --aux-dir.
76056         Suggested by Simon Josefsson <jas@extundo.com>.
76057
76058 2005-09-20  Bruno Haible  <bruno@clisp.org>
76059
76060         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
76061         func_modules_to_filelist, func_import, func_create_testdir): Make all
76062         sorting results locale-independent, so that gnulib-cache.m4 doesn't
76063         change when gnulib-tool is invoked in a different locale.
76064
76065 2005-09-19  Simon Josefsson  <jas@extundo.com>
76066
76067         * m4/socklen.m4: Fix typo.
76068
76069 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76070
76071         Use a consistent style for including <config.h>.
76072         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
76073         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
76074         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
76075         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
76076         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
76077         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
76078         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
76079         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
76080         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
76081         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
76082         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
76083         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
76084         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
76085         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
76086         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
76087         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
76088         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
76089         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
76090         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
76091         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
76092         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
76093         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
76094         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
76095         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
76096         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
76097         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
76098         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
76099         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
76100         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
76101         lib/xstrtoumax.c, lib/yesno.c:
76102         Standardize inclusion of config.h.
76103         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
76104         lib/inttostr.h:  Removed inclusion of config.h from header files.
76105         * lib/inttostr.c:  Adjusted in-tree users.
76106         * lib/timespec.h: Remove superfluous warning to include config.h.
76107         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
76108         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
76109         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
76110         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
76111         config.h with HAVE_CONFIG_H.
76112
76113 2005-09-19  Jim Meyering  <jim@meyering.net>
76114
76115         * modules/pathmax (License): Change to LGPL.
76116
76117 2005-09-19  Derek Price  <derek@ximbiot.com>
76118
76119         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
76120
76121 2005-09-19  Bruno Haible  <bruno@clisp.org>
76122
76123         * gnulib-tool (import): Provide default for --tests-base.
76124
76125 2005-09-19  Bruno Haible  <bruno@clisp.org>
76126
76127         * doc/quote.texi: New file, extracted from gnulib.texi.
76128         * doc/ctime.texi: New file, extracted from gnulib.texi.
76129         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
76130         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
76131         * doc/gnulib.texi: Include them.
76132
76133 2005-09-18  Bruno Haible  <bruno@clisp.org>
76134
76135         Portability fix.
76136         * gnulib-tool (func_readlink): New function.
76137         (func_ln_if_changed): Use it.
76138
76139 2005-09-18  Bruno Haible  <bruno@clisp.org>
76140
76141         * gnulib-tool: Support --with-tests also with --import.
76142         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
76143         (func_import): Use variables $testsbase and $inctests. Emit a
76144         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
76145         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
76146         SUBDIRS += $testsdir.
76147         (func_create_testdir): Update.
76148
76149 2005-09-18  Bruno Haible  <bruno@clisp.org>
76150
76151         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
76152         instead of $dry_run.
76153         (func_cp_if_changed, func_mv_if_changed): Remove functions.
76154         (func_ln_if_changed): Don't handle dry-run here.
76155         (func_import): In dry-run mode, detect more precisely which actions
76156         would be performed, and don't use "...ing" verbs.
76157
76158 2005-09-18  Bruno Haible  <bruno@clisp.org>
76159
76160         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
76161         (func_import): Use join on two temporary files instead of three nested
76162         loops, in order to determine which files are new or old.
76163
76164 2005-09-18  Bruno Haible  <bruno@clisp.org>
76165
76166         * gnulib-tool (func_import): Comment out code that spits out the
76167         new files with --dry-run.
76168
76169 2005-09-18  Bruno Haible  <bruno@clisp.org>
76170
76171         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
76172
76173 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76174
76175         * lib/stat-time.h: New file.
76176         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
76177         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
76178         in a different way.
76179         (timespec_cmp): New function.
76180         * lib/utimecmp.c: Include stat-time.h.
76181         (SYSCALL_RESOLUTION): Depend on whether various struct stat
76182         members exist, not on the obsolescent ST_MTIM_NSEC.
76183         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
76184
76185 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76186
76187         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
76188
76189 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76190
76191         * MODULES.html.sh (File system functions): Add stat-time.
76192         * modules/stat-time: New file.
76193         * modules/timespec (Files): Remove m4/st_mtim.m4; this
76194         is now done in a different way, by the stat-time module.
76195         * modules/utimecmp (Depends-on): Add stat-time.
76196
76197 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76198
76199         * m4/st_mtim.m4: Remove.  Superseded by...
76200         * m4/stat-time.m4: New file.
76201         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
76202         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
76203
76204 2005-09-15  Derek Price  <derek@ximbiot.com>
76205
76206         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
76207
76208 2005-09-15  Derek Price  <derek@ximbiot.com>
76209
76210         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
76211         * lib/regex_internal.c: Ditto, using this...
76212         (__GNUC_PREREQ): ...new macro.
76213         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
76214         using...
76215         (__GNUC_PREREQ): ...this new macro.
76216
76217         * lib/strstr.h: Include string.h. Define strstr as a macro here.
76218
76219 2005-09-15  Derek Price  <derek@ximbiot.com>
76220             Paul Eggert  <eggert@cs.ucla.edu>
76221
76222         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
76223         changes, consolidating in...
76224         * lib/regex_internal.h: ...this file.
76225
76226 2005-09-13  Jim Meyering  <jim@meyering.net>
76227
76228         * lib/canon-host.c: Filter through gnu indent and reword comments
76229         slightly.
76230         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
76231
76232 2005-09-13  Derek Price  <derek@ximbiot.com>
76233
76234         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
76235         failure.
76236         Reported by Jim Meyering  <jim@meyering.net>.
76237
76238 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76239
76240         * lib/base64.c: Typo.
76241         (base64_encode): Put b64str in initialized data section.
76242
76243 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
76244
76245         Merge glibc and coreutils changes into gnulib, plus a few
76246         extra fixes.
76247         * lib/md5.c: Use #error rather than a string.
76248         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
76249         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
76250         (__attribute__): Define to empty for non recent-GCC.
76251         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
76252         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
76253         Renamed from their non-__ counterparts, with new macros replacing
76254         them if not _LIBC.  Add __THROW attribute.
76255         (rol): Remove.
76256         (struct md5_ctx): Align buffer if using GCC.
76257         * lib/sha1.h (struct sha1_ctx): Likewise.
76258         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
76259         The old name was backwards.
76260         (NOTSWAP): Remove; not used.
76261         (rol): New macro, moved here from md5.h.
76262         (sha1_process_block): Remove a FIXME that doesn't make sense.
76263
76264 2005-09-12  Derek Price  <derek@ximbiot.com>
76265
76266         Return usable errors from canon-host.
76267         * lib/canon-host.h: New file.
76268         * lib/canon-host.c (canon_host): Wrap...
76269         (canon_host_r): ...this new function, which now relies exclusively on
76270         getaddrinfo.
76271         (ch_strerror): New function.
76272         (last_cherror): New global.
76273         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
76274         interface.
76275         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
76276         void *.
76277         (freeaddrinfo): Free ai->ai_canonname when set.
76278
76279 2005-09-12  Derek Price  <derek@ximbiot.com>
76280
76281         Make canon-host require getaddrinfo.
76282         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
76283         AC_LIBSOURCE canon-host.h.  Call...
76284         (gl_PREREQ_CANON_HOST): ...this new function, which requires
76285         gl_GETADDRINFO.
76286         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
76287
76288 2005-09-12  Derek Price  <derek@ximbiot.com>
76289
76290         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
76291         LGPL.
76292         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
76293
76294 2005-09-12  Derek Price  <derek@ximbiot.com>
76295
76296         * lib/gai_strerror.c: Include config.h when available.  Include
76297         getaddrinfo.h before other headers to test interface.
76298         Reported by Larry Jones <lawrence.jones@ugs.com>.
76299
76300 2005-09-12  Derek Price  <derek@ximbiot.com>
76301             Paul Eggert  <eggert@cs.ucla.edu>
76302
76303         * modules/glob (Files): Add glob-libc.h.
76304
76305 2005-09-12  Derek Price  <derek@ximbiot.com>
76306             Paul Eggert  <eggert@cs.ucla.edu>
76307
76308         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
76309         glob_.h, glob-libc.h.
76310         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
76311
76312 2005-09-12  Derek Price  <derek@ximbiot.com>
76313             Paul Eggert  <eggert@cs.ucla.edu>
76314
76315         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
76316         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
76317         protecting things that should be done only in gnulib contexts.
76318         * lib/glob_.h: New file, containing only the glob things needed for
76319         gnulib.
76320         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
76321         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
76322         (glob, globfree, glob_pattern_p): Now defined simply in terms of
76323         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
76324         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
76325         and to respect the namespace rules better.
76326
76327 2005-09-08  Simon Josefsson  <jas@extundo.com>
76328
76329         * modules/socklen: New file.
76330
76331 2005-09-08  Simon Josefsson  <jas@extundo.com>
76332
76333         * m4/socklen.m4: New file.
76334
76335 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76336
76337         * modules/utimens (Files): Add m4/utimbuf.m4, since
76338         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
76339         Reported by Sergey Poznyakoff.
76340
76341 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76342
76343         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
76344         definitions, since that's the preferred style in glibc.
76345         Fix a minor spacing issue, and update copyright notice to match
76346         glibc's.
76347
76348 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76349
76350         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
76351
76352 2005-09-06  Simon Josefsson  <jas@extundo.com>
76353
76354         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
76355         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
76356
76357 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76358
76359         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
76360         warning.
76361
76362 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76363
76364         * config/srclist.txt: Add glibc bug 1302.
76365
76366 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
76367
76368         Change bitset word type from unsigned int to unsigned long int,
76369         as this has better performance on typical 64-bit hosts.
76370         Port bitset code to hosts with unusual word sizes.
76371         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
76372         (build_collating_symbol):
76373         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
76374         argument is a bitset.  This is merely a style issue, but it makes
76375         it clearer that an entire array is expected.
76376         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
76377         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
76378         Port to the case where bitset_word is not the same as unsigned int.
76379         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76380         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
76381         Likewise.
76382         * lib/regexec.c (check_dst_limits_calc_pos_1,
76383         check_subexp_matching_top):
76384         (build_trtable, group_nodes_into_DFAstates):
76385         Likewise.
76386         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
76387         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
76388         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
76389         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
76390         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
76391         * lib/regcomp.c (optimize_subexps, lower_subexp):
76392         Work even if bitset_word has holes in its bitwise representation.
76393         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
76394         * lib/regexec.c (check_dst_limits_calc_pos_1,
76395         check_subexp_matching_top):
76396         Likewise.
76397         * lib/regex_internal.c (re_string_reconstruct):
76398         Don't assume UCHAR_MAX == 255.
76399         * lib/regex_internal.h (bitset_set_all): Likewise.
76400         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
76401         All uses changed.
76402         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
76403         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
76404         All uses changed.
76405         (BITSET_WORD_MAX): New macro.
76406         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
76407         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
76408         (bitset_empty, bitset_copy):
76409         Prefer sizeof (bitset) to multiplying it out ourselves.
76410         (bitset_not_merge): Remove; unused.
76411         (bitset_contain): Return bool, not unsigned int with one bit on.
76412         All callers changed.
76413         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
76414         alignment than re_node_set; do this by defining a new internal
76415         type struct dests_alloc and using it to allocate memory.
76416
76417 2005-09-05  Bruno Haible  <bruno@clisp.org>
76418
76419         * gnulib-tool (func_import): Fix comparison in handling of symbolic
76420         links.
76421
76422 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
76423
76424         * modules/size_max (Makefile.am): Add size_max.h
76425
76426 2005-09-04  Derek Price  <derek@ximbiot.com>
76427
76428         * gnulib-tool (func_import): Fix reversed $symbolic logic.
76429
76430 2005-09-03  Simon Josefsson  <jas@extundo.com>
76431
76432         * gnulib-tool: Fix typo.
76433
76434 2005-09-03  Simon Josefsson  <jas@extundo.com>
76435
76436         * config/srclist.txt: Add glibc bug 1293.
76437
76438 2005-09-03  Derek Price  <derek@ximbiot.com>
76439
76440         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
76441         From Larry Jones <lawrence.jones@ugs.com>.
76442
76443 2005-09-02  Simon Josefsson  <jas@extundo.com>
76444
76445         * modules/socklen: New file.
76446
76447 2005-09-02  Simon Josefsson  <jas@extundo.com>
76448
76449         * modules/havelib: New module.
76450
76451         * modules/gettext, modules/iconv, modules/lock, modules/readline:
76452         Use havelib.
76453
76454 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76455
76456         Check for arithmetic overflow when calculating sizes, to prevent
76457         some buffer-overflow issues.  These patches are conservative, in the
76458         sense that when I couldn't determine whether an overflow was possible,
76459         I inserted a run-time check.
76460         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
76461         macros.
76462         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
76463         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
76464         (re_xnrealloc, re_x2nrealloc): New inline functions.
76465         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
76466         parse_bracket_exp):
76467         (build_equiv_class, build_charclass): Check for arithmetic overflow
76468         in size expression calculations.
76469         * lib/regex_internal.c (re_string_realloc_buffers):
76470         (build_wcs_upper_buffer, re_node_set_add_intersect):
76471         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
76472         (re_dfa_add_node, register_state): Likewise.
76473         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
76474         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
76475         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
76476         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
76477
76478 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76479
76480         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76481         m4/ulonglong.m4.  Problem reported by Martin Lambers.
76482
76483 2005-09-02  Bruno Haible  <bruno@clisp.org>
76484
76485         Support for lib vs. lib64 distinction on biarch platforms.
76486         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
76487         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
76488         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
76489
76490 2005-09-02  Bruno Haible  <bruno@clisp.org>
76491
76492         * gnulib-tool (import): In the other first-use case, provide defaults
76493         as well.
76494
76495 2005-09-02  Bruno Haible  <bruno@clisp.org>
76496
76497         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
76498         patches not yet found in the latest gettext release.
76499
76500 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76501
76502         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
76503         to avoid a collision with bits/local_lim.h in glibc.
76504         All uses changed.  Problem reported by Dmitry V. Levin in
76505         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
76506
76507         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
76508         bugs in int versus size_t comparisons.
76509         (re_string_context_at): Fix bug where the code assumed that
76510         Idx is signed.
76511
76512         Use bool where appropriate.
76513         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
76514         All callers changed.
76515         (calc_eclosure_iter): Likewise, for ROOT arg.
76516         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
76517         (build_charclass_op): Likewise, for NON_MATCH arg.
76518         * lib/regex_internal.c (re_string_allocate, re_string_construct):
76519         (re_string_construct_common): Likewise, for ICASE arg.
76520         * lib/regexec.c (re_search_2_stub, re_search_stub):
76521         Likewise, for RET_LEN arg.
76522         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
76523         (set_regs): Likewise, for FL_BACKTRACK arg.
76524         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
76525         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
76526         (calc_eclosure_iter, parse_bracket_exp):
76527         Use bool for internal variables that are booleans.
76528         * lib/regexec.c (re_search_internal, check_matching,
76529         proceed_next_node):
76530         (set_regs, build_sifted_states, sift_states_bkref):
76531         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
76532         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76533         (find_collation_sequence_value):
76534         Likewise.
76535         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
76536         (re_node_set_compare):
76537         Return bool, not int. All callers changed.
76538         * lib/regexec.c (check_halt_node_context, check_dst_limits):
76539         (build_trtable, check_node_accept): Likewise.
76540         * lib/regex_internal.h: Include stdbool.h.
76541
76542         Fix bugs uncovered when converting to bool.
76543         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
76544         failure instead of charging ahead blindly.
76545         * lib/regex_internal.c (register_state): Likewise.
76546         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
76547         for freeing internal storage.
76548         (group_nodes_into_DFA_states): Use unsigned int, not int, for
76549         bitset pieces used as boolean, to avoid undefined behavior
76550         on hosts that do int overflow checking.
76551
76552 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76553
76554         * config/srclist.txt: Add glibc bugs 1285-1287.
76555
76556 2005-09-01  Jim Meyering  <jim@meyering.net>
76557
76558         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
76559         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
76560         Require gl_STAT_MACROS, too.
76561
76562 2005-09-01  Bruno Haible  <bruno@clisp.org>
76563
76564         * gnulib-tool (import): In the first-use case, provide defaults.
76565
76566 2005-09-01  Bruno Haible  <bruno@clisp.org>
76567
76568         * gnulib-tool (func_import): Remove the .tmp files.
76569
76570 2005-09-01  Bruno Haible  <bruno@clisp.org>
76571
76572         * gnulib-tool (func_import): Fix handling of symbolic links.
76573
76574 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76575
76576         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
76577         old glibc regex code mishandles strings longer than 2**31 bytes.
76578         This patch fixes this when the regex code is used in gnulib
76579         (i.e., outside glibc).
76580
76581         This patch should not affect the use of the regex code inside
76582         glibc.  No doubt this problem also needs to be handled for glibc
76583         as well, but the result will be an incompatible change to the
76584         glibc ABI, and the old ABI will have to be supported too.  That
76585         can be the the subject for another patch.
76586
76587         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
76588         governing whether the rest of this patch is active.  By default,
76589         the macro is disabled and the patch has no effect.
76590         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
76591         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
76592         (struct re_pattern_buffer, re_search, re_search_2, re_match):
76593         (re_match_2, re_set_registers): Use the new types.
76594         * lib/regex_internal.h (Idx, re_hashval_t): New types.
76595         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
76596         New macros.
76597         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
76598         (re_string_context_at, bin_tree_t, re_dfastate_t):
76599         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
76600         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
76601         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
76602         (re_string_char_size_at, re_string_wchar_at):
76603         (re_string_elem_size_at):
76604         Use the new types and macros to port to 64-bit hosts.
76605         Use unsigned types for internal values, so that the code
76606         mostly works even for arrays larger than SSIZE_MAX.
76607         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
76608         (search_duplicated_node, calc_eclosure_iter, fetch_number):
76609         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
76610         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
76611         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
76612         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
76613         (calc_inveclosure, parse_dup_op, build_range_exp):
76614         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
76615         (fetch_number, create_token_tree, mark_opt_subexp):
76616         Likewise.
76617         * lib/regex_internal.c (re_string_construct_common,
76618         create_ci_newstate):
76619         (create_cd_newstate, re_string_allocate, re_string_construct):
76620         (re_string_realloc_buffers, build_wcs_upper_buffer):
76621         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76622         (re_string_reconstruct, re_string_peek_byte_case):
76623         (re_string_fetch_byte_case, re_string_context_at):
76624         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76625         (re_node_set_init_copy, re_node_set_add_intersect):
76626         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76627         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76628         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76629         (re_acquire_state, re_acquire_state_context, register_state):
76630         Likewise.
76631         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
76632         search_cur_bkref_entry):
76633         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
76634         (re_search_internal, re_search_2_stub, re_search_stub)
76635         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
76636         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
76637         (update_cur_sifted_state, check_dst_limits):
76638         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76639         (check_subexp_limits, sift_states_bkref, merge_state_array):
76640         (check_subexp_matching_top, get_subexp, get_subexp_sub):
76641         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
76642         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76643         (expand_bkref_cache, check_node_accept_bytes):
76644         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
76645         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
76646         (acquire_init_state_context, check_halt_node_context):
76647         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
76648         (sift_states_backward, clean_state_log_if_needed):
76649         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
76650         (find_recover_state, transit_state_sb, transit_state_mb):
76651         (transit_state_bkref, build_trtable, match_ctx_clean):
76652         Likewise.
76653         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
76654         to work around an assumption that REG_MISSING is negative.
76655
76656         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
76657         (seek_collating_symbol_entry) [defined _LIBC]:
76658         (lookup_collation_sequence_value) [defined _LIBC]:
76659         (build_range_exp, build_collating_symbol) [defined _LIBC]:
76660         Use prototypes rather than old-style function definitions.
76661         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
76662         (transit_state_sb) [0]:
76663         (find_collation_sequence_value) [defined _LIBC]: Likewise.
76664
76665         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
76666         rm_eo.
76667
76668         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
76669         (optimize_subexps, lower_subexp):
76670         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
76671         since the signed shift might overflow.  Use 1u<<31 instead.
76672         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76673         Likewise.
76674         * lib/regexec.c (check_dst_limits_calc_pos_1,
76675         check_subexp_matching_top): Likewise.
76676
76677         * lib/regcomp.c (optimize_subexps, lower_subexp):
76678         Use CHAR_BIT rather than 8, for clarity.
76679         * lib/regexec.c (check_dst_limits_calc_pos_1):
76680         (check_subexp_matching_top): Likewise.
76681         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
76682         have to worry about portability issues when shifting it left.
76683         Remove no-longer-needed test for table_size > 0.
76684         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
76685         in a word, as the resulting behavior is undefined.
76686         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
76687         in one case, a <= should have been an <, and in another case the
76688         whole test was missing.
76689         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
76690         the standard name CHAR_BIT.
76691         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
76692         this is not true on one's complement and signed-magnitude hosts.
76693
76694         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
76695         next_last_offset.
76696         (struct re_dfa_t): Remove unused member states_alloc.
76697         * lib/regcomp.c (init_dfa): Don't initialize unused members.
76698
76699 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76700
76701         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
76702         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
76703         and large-file glibc and in 32-bit large-file Solaris.
76704
76705 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76706
76707         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
76708         lengths fit in regoff_t; this isn't true if regoff_t is the same
76709         width as size_t.
76710         * lib/regex.c (re_search_internal): 5th arg is LAST_START
76711         (= START + RANGE) instead of RANGE.  This avoids overflow
76712         problems when regoff_t is the same width as size_t.
76713         All callers changed.
76714         (re_search_2_stub): Check for overflow when adding the
76715         sizes of the two strings.
76716         (re_search_stub): Check for overflow when adding START
76717         to RANGE; if it occurs, substitute the extreme value.
76718
76719 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76720
76721         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
76722
76723 2005-08-31  Jim Meyering  <jim@meyering.net>
76724
76725         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
76726         a pointer-to-const.
76727         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
76728         (register_state): Likewise.
76729         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
76730         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76731         (group_nodes_into_DFAstates): Likewise.
76732
76733 2005-08-31  Jim Meyering  <jim@meyering.net>
76734
76735         * check-module: Add a FIXME comment.
76736
76737 2005-08-31  Eric Blake  <ebb9@byu.net>
76738
76739         * modules/unistd-safer (Files): Add unistd--.h.
76740         * modules/stdio-safer (Files): Add stdio--.h.
76741
76742 2005-08-31  Derek Price  <derek@ximbiot.com>
76743
76744         * lib/getdelim.c (getdelim): Return EOF on EOF.
76745         Reported by Larry Jones <lawrence.jones@ugs.com>.
76746
76747 2005-08-31  Bruno Haible  <bruno@clisp.org>
76748
76749         Avoid unnecessary diffs in the generated lib/Makefile.am.
76750         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
76751         the generated files.
76752         (func_import): Don't set cmd.
76753
76754 2005-08-31  Bruno Haible  <bruno@clisp.org>
76755
76756         * lib/strstr.c: Include <stddef.h>, for NULL.
76757         * lib/strcasestr.c: Likewise.
76758         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76759
76760 2005-08-31  Bruno Haible  <bruno@clisp.org>
76761
76762         * gnulib-tool: New option --macro-prefix.
76763         (func_import): Use macro_prefix.
76764         (import): Handle option --macro-prefix.
76765
76766 2005-08-31  Bruno Haible  <bruno@clisp.org>
76767
76768         * gnulib-tool (import): Rename most ac_* variables to cached_*.
76769         Also use new variables cached_lgpl, cached_libtool.
76770
76771 2005-08-31  Bruno Haible  <bruno@clisp.org>
76772
76773         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
76774         always instantiating them.
76775
76776 2005-08-31  Bruno Haible  <bruno@clisp.org>
76777
76778         * gnulib-tool (func_import): Read the previous cached settings
76779         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
76780         earlier added by gnulib but are now dropped. Warn when a gnulib file
76781         overwrites a non-gnulib file.
76782
76783 2005-08-31  Bruno Haible  <bruno@clisp.org>
76784
76785         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
76786         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
76787         projects that don't keep autogenerated files in CVS. Put into
76788         actioncmd only the specified modules, not the transitive closure.
76789
76790 2005-08-31  Bruno Haible  <bruno@clisp.org>
76791
76792         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
76793         Create directories that shall be filled.
76794         (import): Don't look for gl_* macros in configure.ac. Recurse across
76795         all directories containing a gnulib-cache.m4 files, if meaningful.
76796
76797 2005-08-31  Bruno Haible  <bruno@clisp.org>
76798
76799         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
76800         (import): Set seen_libtool when we see gl_LIBTOOL.
76801
76802 2005-08-31  Bruno Haible  <bruno@clisp.org>
76803
76804         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
76805         declaration macro definitions from generated gnulib.m4.
76806
76807 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
76808
76809         * lib/iconvme.h: Add prototype for iconv_alloc.
76810
76811 2005-08-29  Simon Josefsson  <jas@extundo.com>
76812
76813         * lib/iconvme.c: Fix errno.
76814
76815 2005-08-29  Bruno Haible  <bruno@clisp.org>
76816
76817         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
76818         that it works when the directory contains spaces.
76819
76820 2005-08-29  Bruno Haible  <bruno@clisp.org>
76821
76822         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
76823
76824 2005-08-29  Bruno Haible  <bruno@clisp.org>
76825
76826         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
76827         Emit more advice.
76828
76829 2005-08-29  Bruno Haible  <bruno@clisp.org>
76830         and Stepan Kasal  <kasal@ucw.cz>
76831
76832         * check-module: If more parameters are given, check each of them
76833         separately; add more exceptions, as noted by Jim Meyering.
76834         (check_module): New procedure.
76835         (%exempt_header): Now contains all exceptions.
76836
76837 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
76838
76839         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
76840
76841 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76842
76843         * lib/iconvme.c: Split iconv_string into iconv_alloc.
76844
76845 2005-08-28  Bruno Haible  <bruno@clisp.org>
76846
76847         * m4/gnulib-tool.m4: New file.
76848
76849 2005-08-27  Jim Meyering  <jim@meyering.net>
76850
76851         * modules/unistd-safer (Files): Add pipe-safer.c.
76852         * modules/fcntl-safer (Files): Add creat-safer.c.
76853
76854 2005-08-27  Jim Meyering  <jim@meyering.net>
76855
76856         * m4/stdlib-safer.m4: New file.  From coreutils.
76857         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
76858         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
76859         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
76860         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
76861         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
76862
76863 2005-08-27  Jim Meyering  <jim@meyering.net>
76864
76865         * lib/fopen-safer.c: Merge minor changes from coreutils.
76866         * lib/dup-safer.c: Likewise.
76867         * lib/fd-safer.c: Likewise.
76868
76869         Merge from coreutils.
76870         * lib/stdio--.h: New file.
76871         * lib/stdlib--.h: New file.
76872         * lib/mkstemp-safer.c: New file.
76873
76874         GNU tar needs these.
76875         * lib/pipe-safer.c: New file.
76876         * lib/creat-safer.c: New file.
76877         * lib/fcntl--.h (creat): Define to creat_safer.
76878         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
76879         * lib/unistd--.h (pipe): Define to pipe_safer.
76880         * lib/unistd-safer.h: Declare pipe_safer.
76881
76882 2005-08-26  Simon Josefsson  <jas@extundo.com>
76883
76884         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
76885         Haible <bruno@clisp.org>.
76886
76887 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
76888
76889         * lib/regex_internal.h: Remove all references to
76890         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
76891         or better.
76892         (bitset_not, bitset_merge, bitset_not_merge):
76893         (bitset_mask, re_string_allocate, re_string_construct):
76894         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
76895         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
76896         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
76897         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
76898         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76899         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76900         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
76901         (re_acquire_state_context):
76902         Remove unnecessary forward decls.
76903         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
76904         Put __attribute at function definition,
76905         now that the function decl has been removed.
76906         * lib/regex_internal.c (re_string_peek_byte_case):
76907         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
76908         Likewise.
76909
76910 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
76911
76912         * m4/regex.m4: Add AC_PREREQ(2.50).
76913         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
76914
76915 2005-08-25  Simon Josefsson  <jas@extundo.com>
76916
76917         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
76918         __fsetlocking.
76919
76920 2005-08-25  Simon Josefsson  <jas@extundo.com>
76921
76922         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
76923         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
76924         GLIBC specific code.
76925
76926 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76927
76928         Make regex safe for g++.  This fixes one real bug (an "err"
76929         that should have been "*err").  g++ problem reported by
76930         Sam Steingold.
76931         * lib/regex_internal.h (re_calloc): New macro, consistent with
76932         re_malloc etc.  All callers of calloc changed to use re_calloc.
76933         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
76934         not int.  All callers changed.
76935         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
76936         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
76937         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
76938         (find_recover_state): Change "err" to "*err"; this fixes what
76939         appears to be a real bug.
76940         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
76941         versus int.
76942
76943 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76944
76945         * modules/regex (Depends-on): Add malloc, since the code
76946         assumes that !malloc(0) means failure.
76947
76948 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76949
76950         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
76951
76952         alloca modernization/simplification for regex.
76953         * lib/regex.c: Remove portability cruft for alloca.  This no longer
76954         needs to be at the start of the file, and can be moved into
76955         regex_internal.h and simplified.
76956         * lib/regex_internal.h: Include <alloca.h>.
76957         (__libc_use_alloca) [!defined _LIBC]: New macro.
76958         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
76959         now works outside glibc.
76960
76961 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76962
76963         * config/srclist.txt: Add glibc bugs 1241, 1245.
76964
76965 2005-08-25  Jim Meyering  <jim@meyering.net>
76966
76967         * lib/open-safer.c: Include <config.h>.
76968         Otherwise, we'd lose LARGEFILE support in any file using
76969         e.g. "fcntl--.h"
76970
76971 2005-08-25  Bruno Haible  <bruno@clisp.org>
76972
76973         * m4/minmax.m4: Require autoconf 2.52.
76974         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
76975         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
76976         alternatives of translit over the alphabet.
76977         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
76978
76979 2005-08-24  Simon Josefsson  <jas@extundo.com>
76980
76981         * tests/test-getpass.c: New file.
76982
76983 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76984
76985         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
76986         for GNU regex features.
76987
76988 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76989
76990         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
76991         * lib/regex.h (regerror): Likewise.
76992
76993         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
76994         requires this.  (The code never needed it.)
76995
76996         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
76997         All uses of recently-renamed identifiers changed to use the new,
76998         POSIX-compliant names.  The code will build and run just fine
76999         without these changes, but it's better to eat our own dog food
77000         and use the standard-conforming names.
77001
77002         * lib/regex.h: Fix a multitude of POSIX name space violations.
77003         These changes have an effect only for programs that define
77004         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
77005         do not change anything for programs compiled in the normal way.
77006         Also, there is no effect on the ABI.
77007
77008         (_REGEX_SOURCE): New macro.
77009         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
77010         defined and _GNU_SOURCE is not; this fixes a name space violation.
77011
77012         Rename the following macros to obey POSIX requirements.
77013         The old names are still visible as macros if _REGEX_SOURCE is defined.
77014         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
77015         RE_BACKSLASH_ESCAPE_IN_LISTS.
77016         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
77017         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
77018         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
77019         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
77020         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
77021         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
77022         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
77023         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
77024         (REG_INTERVALS): renamed from RE_INTERVALS.
77025         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
77026         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
77027         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
77028         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
77029         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
77030         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
77031         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
77032         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
77033         RE_UNMATCHED_RIGHT_PAREN_ORD.
77034         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
77035         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
77036         (REG_DEBUG): renamed from RE_DEBUG.
77037         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
77038         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
77039         unusual, since we can't clash with the POSIX REG_ICASE.
77040         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
77041         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
77042         (REG_NO_SUB): renamed from RE_NO_SUB.
77043         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
77044         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
77045         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
77046         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
77047         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
77048         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
77049         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
77050         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
77051         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
77052         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
77053         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
77054         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
77055         RE_SYNTAX_POSIX_MINIMAL_BASIC.
77056         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
77057         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
77058         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
77059         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
77060         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
77061         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
77062         (REG_FIXED): Renamed from REGS_FIXED.
77063         (REG_NREGS): Renamed from RE_NREGS.
77064
77065         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
77066         of other REG_* macros, since POSIX says the user is allowed to
77067         #undef these macros selectively.
77068
77069         (reg_errcode_t): Update comment stating what other tables need
77070         to be consistent.
77071
77072         Rename the following enum values to obey POSIX requirements.
77073         The old names are still visible as macros.
77074         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
77075         is not defined, since GNU is supposed to be a superset of POSIX as
77076         much as possible, and since we want reg_errcode_t to be a signed
77077         type for implementation consistency.
77078         (_REG_NOERROR): Renamed from REG_NOERROR.
77079         (_REG_NOMATCH): Renamed from REG_NOMATCH.
77080         (_REG_BADPAT): Renamed from REG_BADPAT.
77081         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
77082         (_REG_ECTYPE): Renamed from REG_ECTYPE.
77083         (_REG_EESCAPE): Renamed from REG_EESCAPE.
77084         (_REG_ESUBREG): Renamed from REG_ESUBREG.
77085         (_REG_EBRACK): Renamed from REG_EBRACK.
77086         (_REG_EPAREN): Renamed from REG_EPAREN.
77087         (_REG_EBRACE): Renamed from REG_EBRACE.
77088         (_REG_BADBR): Renamed from REG_BADBR.
77089         (_REG_ERANGE): Renamed from REG_ERANGE.
77090         (_REG_ESPACE): Renamed from REG_ESPACE.
77091         (_REG_BADRPT): Renamed from REG_BADRPT.
77092         (_REG_EEND): Renamed from REG_EEND.
77093         (_REG_ESIZE): Renamed from REG_ESIZE.
77094         (_REG_ERPAREN): Renamed from REG_ERPAREN.
77095         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
77096         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
77097         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
77098         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
77099
77100         (_REG_RE_NAME, _REG_RM_NAME): New macros.
77101         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
77102         changed.  But support the old name if the new one is not defined
77103         and if _REGEX_SOURCE.
77104
77105         Change the following member names in struct re_pattern_buffer.
77106         The old names are still supported if !_REGEX_SOURCE.
77107         The new names are always supported, regardless of _REGEX_SOURCE.
77108         (re_buffer): Renamed from buffer.
77109         (re_allocated): Renamed from allocated.
77110         (re_used): Renamed from used.
77111         (re_syntax): Renamed from syntax.
77112         (re_fastmap): Renamed from fastmap.
77113         (re_translate): Renamed from translate.
77114         (re_can_be_null): Renamed from can_be_null.
77115         (re_regs_allocated): Renamed from regs_allocated.
77116         (re_fastmap_accurate): Renamed from fastmap_accurate.
77117         (re_no_sub): Renamed from no_sub.
77118         (re_not_bol): Renamed from not_bol.
77119         (re_not_eol): Renamed from not_eol.
77120         (re_newline_anchor): Renamed from newline_anchor.
77121
77122         Change the following member names in struct re_registers.
77123         The old names are still supported if !_REGEX_SOURCE.
77124         The new names are always supported, regardless of _REGEX_SOURCE.
77125         (rm_num_regs): Renamed from num_regs.
77126         (rm_start): Renamed from start.
77127         (rm_end): Renamed from end.
77128
77129         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
77130         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
77131         Prepend __ to parameter names.
77132
77133         Undo yesterday's changes.
77134
77135 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77136
77137         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
77138         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
77139         lib/regex.c.
77140
77141 2005-08-24  Jim Meyering  <jim@meyering.net>
77142
77143         Sync from coreutils.
77144         * m4/fcntl-safer.m4: New file.
77145
77146         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
77147         and object files for this module.
77148
77149 2005-08-24  Jim Meyering  <jim@meyering.net>
77150
77151         Sync from coreutils.
77152         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
77153
77154 2005-08-24  Jim Meyering  <jim@meyering.net>
77155
77156         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
77157         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
77158
77159 2005-08-24  Jim Meyering  <jim@meyering.net>
77160
77161         * modules/fcntl-safer: New module.
77162         * modules/fts (Depends-on): Add fcntl-safer.
77163         * MODULES.html.sh (File descriptor based Input/Output):
77164         Add fcntl-safer.
77165
77166 2005-08-24  Bruno Haible  <bruno@clisp.org>
77167
77168         Support for unit test modules.
77169         * modules/README: Mention tests modules.
77170         * modules/TEMPLATE-TESTS: New file.
77171         * gnulib-tool: New options --extract-tests-module, --with-tests and
77172         --tests-base (unused for the moment).
77173         (testsbase, inctests): New variables.
77174         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
77175         (func_verify_module): Exclude TEMPLATE-TESTS.
77176         (func_verify_nontests_module, func_verify_tests_module): New functions.
77177         (func_get_dependencies): Add implicit dependency for tests modules.
77178         (func_get_tests_module): New function.
77179         (func_modules_transitive_closure): When --with-tests was specified,
77180         include the unit tests as well, unless explicitly avoided.
77181         (func_emit_lib_Makefile_am): Ignore the tests modules here.
77182         (func_emit_tests_Makefile_am): New function.
77183         (func_create_testdir): When --with-tests was specified, emit a
77184         tests/ directory.
77185         * MODULES.html.sh (Future developments): Update.
77186
77187 2005-08-24  Bruno Haible  <bruno@clisp.org>
77188
77189         * modules/tls-tests: New file.
77190         * tests/test-tls.c: New file, from GNU gettext.
77191
77192 2005-08-24  Bruno Haible  <bruno@clisp.org>
77193
77194         * modules/lock-tests: New file.
77195         * tests/test-lock.c: New file, from GNU gettext.
77196
77197 2005-08-24  Bruno Haible  <bruno@clisp.org>
77198
77199         * lib/lock.h: Add multiple inclusion guard.
77200         * lib/tls.h: Add multiple inclusion guard.
77201
77202 2005-08-24  Bruno Haible  <bruno@clisp.org>
77203
77204         * gnulib-tool: Add support for the --aux-dir option to
77205         --create-testdir, --create-megatestdir, --test, --megatest.
77206         (func_create_testdir, func_create_megatestdir): Optionally emit a
77207         AC_CONFIG_AUX_DIR directive.
77208         (create-testdir, create-megatestdir, test, megatest): Provide a
77209         default value for $auxdir.
77210
77211 2005-08-24  Bruno Haible  <bruno@clisp.org>
77212
77213         * gnulib-tool (import): Use compound statement instead of subshell
77214         where possible.
77215
77216 2005-08-24  Bruno Haible  <bruno@clisp.org>
77217
77218         * gnulib-tool (import): Change --aux-dir default to "build-aux".
77219
77220 2005-08-24  Bruno Haible  <bruno@clisp.org>
77221
77222         * gnulib-tool (func_version): Update.
77223
77224 2005-08-24  Bruno Haible  <bruno@clisp.org>
77225
77226         * gnulib-tool (func_import, func_create_testdir,
77227         func_create_megatestdir): Quote all autoconf macro arguments.
77228
77229 2005-08-24  Bruno Haible  <bruno@clisp.org>
77230
77231         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
77232         option --force, because --force causes the aclocal.m4 of each
77233         subdirectory to be newer than the corresponding config.h.in.
77234
77235 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77236
77237         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
77238         All contents moved to gl_REGEX.
77239         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
77240         assume that it does.
77241
77242 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77243
77244         * lib/regex.h (REG_NOSYS)
77245         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
77246         Define, since POSIX requires it as of 2001.
77247         (_REG_ENOSYS)
77248         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
77249         New private symbol, used to keep the enum signed in all cases.
77250         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
77251         Youngman in
77252         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
77253
77254         * lib/regex_internal.c (re_string_skip_chars, register_state):
77255         (calc_state_hash):
77256         Remove forward decls; no longer needed now that we use prototypes.
77257         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
77258         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
77259         (clean_state_log_if_needed): Likewise.
77260
77261 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77262
77263         * config/srclist.txt: Add glibc bugs 1231-1233.
77264
77265 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77266
77267         Fix problems reported by Sam Steingold in
77268         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
77269         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
77270         assumed that reg_errcode_t is a signed type, which is not
77271         necessarily true if _XOPEN_SOURCE is not defined.
77272         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
77273         since some compilers warn about it otherwise.
77274
77275 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77276
77277         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
77278         (init_word_char, create_initial_state, duplicate_node_closure):
77279         (fetch_token, peek_token_bracket, build_range_exp):
77280         (build_collating_symbol): Remove forward decls; no longer needed
77281         now that we use prototypes.
77282
77283         * lib/regcomp.c:
77284         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
77285         (re_compile_fastmap_iter, regcomp, regerror, regfree):
77286         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
77287         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
77288         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
77289         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
77290         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
77291         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
77292         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
77293         (build_range_exp, build_collating_symbol, parse_bracket_exp):
77294         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
77295         (build_charclass, build_charclass_op, fetch_number, create_tree):
77296         (create_token_tree, mark_opt_subexp, duplicate_tree):
77297         Use prototypes rather than old-style definitions.
77298
77299         * lib/regex_internal.c:
77300         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
77301         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
77302         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77303         (re_string_reconstruct, re_string_peek_byte_case):
77304         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
77305         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77306         (re_node_set_init_copy, re_node_set_add_intersect):
77307         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77308         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77309         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77310         (re_acquire_state, re_acquire_state_context, register_state):
77311         (create_ci_newstate, create_cd_newstate, free_state):
77312         Likewise.
77313         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
77314         re_search_2):
77315         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
77316         (re_search_internal, prune_impossible_nodes):
77317         (acquire_init_state_context, check_matching, static):
77318         (check_halt_node_context, check_halt_state_context, proceed_next_node):
77319         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
77320         (update_regs, sift_states_backward, build_sifted_states):
77321         (clean_state_log_if_needed, merge_state_array):
77322         (update_cur_sifted_state, add_epsilon_src_nodes):
77323         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
77324         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
77325         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
77326         (find_recover_state, check_subexp_matching_top, transit_state_mb):
77327         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
77328         (check_arrival, check_arrival_add_next_nodes):
77329         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77330         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77331         (check_node_accept_bytes, check_node_accept, extend_buffers):
77332         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
77333         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
77334         (sift_ctx_init):
77335         Likewise.
77336
77337         * lib/regex_internal.h:
77338         (re_string_allocate, re_string_construct, re_string_reconstruct):
77339         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
77340         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
77341         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
77342         (re_string_context_at, re_string_peek_byte_case):
77343         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
77344         is defined, since we now use prototypes always.
77345
77346         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
77347         C89 or better.  All uses removed.
77348
77349 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77350
77351         * config/srclist.txt: Add glibc bugs 1220-1227.
77352
77353 2005-08-20  Jim Meyering  <jim@meyering.net>
77354
77355         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
77356         of unused local, dfa.
77357
77358 2005-08-20  Bruno Haible  <bruno@clisp.org>
77359
77360         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
77361
77362 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77363
77364         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
77365         (re_node_set_insert_last, re_dfa_add_node):
77366         Rename local variables to avoid GCC shadowing warnings.
77367
77368 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77369
77370         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
77371         [defined lint]: Suppress bogus uninitialized-variable warnings.
77372
77373         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
77374         and let the caller return REG_ESPACE if out of space.  This
77375         removes an uninitialied-variable warning with GCC 4.0.1, and also
77376         avoids taking the address of a local variable.  All callers
77377         changed.
77378
77379 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77380
77381         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
77382         $LIBCSRC/posix/regexec.c.
77383         Add glibc bug 1217 for regcomp.c.
77384
77385 2005-08-19  Jim Meyering  <jim@meyering.net>
77386
77387         * lib/regexec.c (proceed_next_node): Redo local variables to
77388         avoid GCC shadowing warnings.
77389
77390 2005-08-18  Bruno Haible  <bruno@clisp.org>
77391
77392         * lib/strstr.c (strstr): Fix return value in multibyte case.
77393         * lib/strcasestr.c (strcasestr): Likewise.
77394
77395 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77396
77397         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
77398
77399 2005-08-17  Jim Meyering  <jim@meyering.net>
77400
77401         Make the %s format (seconds since the epoch) work for a negative
77402         number and when used with a zero-padded field width, e.g. %015s.
77403
77404         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
77405         label so that it precedes the code to set `digits'.  Otherwise,
77406         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
77407         print `00-22'.  Now, it prints `-0022', as it should.
77408
77409 2005-08-17  Bruno Haible  <bruno@clisp.org>
77410
77411         * modules/strstr (Files): Add m4/mbrtowc.m4.
77412         (Depends-on): Add mbuiter.
77413
77414 2005-08-17  Bruno Haible  <bruno@clisp.org>
77415
77416         * modules/strcasestr: New file.
77417         * MODULES.html.sh (String handling, based on ANSI C 89): Add
77418         strcasestr.
77419
77420 2005-08-17  Bruno Haible  <bruno@clisp.org>
77421
77422         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
77423
77424 2005-08-17  Bruno Haible  <bruno@clisp.org>
77425
77426         * modules/mbuiter: New file.
77427         * MODULES.html.sh (Extended multibyte and wide character utilities):
77428         Add mbuiter.
77429
77430 2005-08-17  Bruno Haible  <bruno@clisp.org>
77431
77432         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
77433         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
77434
77435 2005-08-17  Bruno Haible  <bruno@clisp.org>
77436
77437         * m4/strcasestr.m4: New file.
77438
77439 2005-08-17  Bruno Haible  <bruno@clisp.org>
77440
77441         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
77442         * lib/strstr.c: Completely rewritten, with multibyte locale support.
77443
77444 2005-08-17  Bruno Haible  <bruno@clisp.org>
77445
77446         * lib/strcasestr.h: New file.
77447         * lib/strcasestr.c: New file.
77448
77449 2005-08-17  Bruno Haible  <bruno@clisp.org>
77450
77451         * lib/strcasecmp.c: Use mbuiter.h.
77452
77453 2005-08-17  Bruno Haible  <bruno@clisp.org>
77454
77455         * lib/mbuiter.h: New file.
77456
77457 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77458
77459         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
77460         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
77461         and gl_GETOPT are both invoked via different paths (as happens
77462         with GNU tar CVS because it uses both argp and getopt), the former
77463         wins.
77464
77465 2005-08-16  Bruno Haible  <bruno@clisp.org>
77466
77467         * modules/tls: New file.
77468         * MODULES.html.sh (Multithreading): Add tls.
77469
77470 2005-08-16  Bruno Haible  <bruno@clisp.org>
77471
77472         * modules/strnlen1: New file.
77473         * MODULES.html.sh (String handling): Add strnlen1.
77474
77475 2005-08-16  Bruno Haible  <bruno@clisp.org>
77476
77477         * modules/strcase (Files): Add m4/mbrtowc.m4.
77478         (Depends-on): Add strnlen1, mbchar.
77479
77480 2005-08-16  Bruno Haible  <bruno@clisp.org>
77481
77482         * modules/mbiter: New file.
77483         * MODULES.html.sh (Extended multibyte and wide character utilities):
77484         Add mbiter.
77485
77486 2005-08-16  Bruno Haible  <bruno@clisp.org>
77487
77488         * modules/mbfile: New file.
77489         * MODULES.html.sh (Extended multibyte and wide character utilities):
77490         Add mbfile.
77491
77492 2005-08-16  Bruno Haible  <bruno@clisp.org>
77493
77494         * modules/mbchar: New file.
77495         * MODULES.html.sh (Extended multibyte and wide character utilities):
77496         New section.
77497
77498 2005-08-16  Bruno Haible  <bruno@clisp.org>
77499
77500         * m4/tls.m4: New file, from GNU gettext.
77501
77502 2005-08-16  Bruno Haible  <bruno@clisp.org>
77503
77504         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
77505         always.
77506         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
77507
77508 2005-08-16  Bruno Haible  <bruno@clisp.org>
77509
77510         * m4/mbiter.m4: New file.
77511
77512 2005-08-16  Bruno Haible  <bruno@clisp.org>
77513
77514         * m4/mbfile.m4: New file.
77515
77516 2005-08-16  Bruno Haible  <bruno@clisp.org>
77517
77518         * m4/mbchar.m4: New file.
77519
77520 2005-08-16  Bruno Haible  <bruno@clisp.org>
77521
77522         * lib/tls.h: New file, from GNU gettext.
77523         * lib/tls.c: New file, from GNU gettext.
77524
77525 2005-08-16  Bruno Haible  <bruno@clisp.org>
77526
77527         * lib/strnlen1.h: New file.
77528         * lib/strnlen1.c: New file.
77529
77530 2005-08-16  Bruno Haible  <bruno@clisp.org>
77531
77532         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
77533         (mbi_init): Update.
77534         (mbi_avail, mbi_advance): Let the iteration end before the terminating
77535         NUL byte, not after it.
77536
77537 2005-08-16  Bruno Haible  <bruno@clisp.org>
77538
77539         * lib/strcase.h (strcasecmp): Add note in comments.
77540         * lib/strncasecmp.c: Use code from strcasecmp.c.
77541         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
77542         (strcasecmp): Work correctly in multibyte locales.
77543
77544 2005-08-16  Bruno Haible  <bruno@clisp.org>
77545
77546         * lib/mbiter.h: New file.
77547
77548 2005-08-16  Bruno Haible  <bruno@clisp.org>
77549
77550         * lib/mbfile.h: New file.
77551
77552 2005-08-16  Bruno Haible  <bruno@clisp.org>
77553
77554         * lib/mbchar.h: New file.
77555         * lib/mbchar.c: New file.
77556
77557 2005-08-16  Bruno Haible  <bruno@clisp.org>
77558
77559         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
77560         the valid ones. Makes the comparison operations transitive:
77561         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
77562         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
77563
77564 2005-08-15  Simon Josefsson  <jas@extundo.com>
77565
77566         * modules/ssize_t (License): Change to 'unlimited'.
77567
77568         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
77569
77570 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77571
77572         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
77573         Add comments for each pending glibc patch.
77574
77575 2005-08-15  Bruno Haible  <bruno@clisp.org>
77576
77577         * lib/regex.h (__restrict_arr): Don't define to __restrict if
77578         __cplusplus is defined.
77579
77580 2005-08-14  Jim Meyering  <jim@meyering.net>
77581
77582         Sync from coreutils.
77583
77584         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
77585         Use the hash-table-based cycle-detection code not just when
77586         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
77587         Reported by James Youngman in
77588         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
77589         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
77590         FTS_TIGHT_CYCLE_CHECK.
77591         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
77592         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
77593         once again.
77594         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
77595         * lib/fts.c (fd_safer): Remove decl.
77596         Include fcntl--.h rather than unistd-safer.h
77597         (fts_safe_changedir): Don't call fd_safer; no longer needed
77598         now that we include fcntl--.h.
77599
77600 2005-08-12  Simon Josefsson  <jas@extundo.com>
77601
77602         * modules/getndelim2: Use ssize_t module.
77603         * modules/getnline: Likewise.
77604         * modules/safe-read: Likewise.
77605         * modules/xreadlink: Likewise.
77606
77607         * modules/ssize_t: New file.
77608
77609 2005-08-12  Simon Josefsson  <jas@extundo.com>
77610
77611         * m4/readline.m4: Look for termcap, curses or ncurses if required.
77612
77613 2005-08-12  Simon Josefsson  <jas@extundo.com>
77614
77615         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77616         ssize_t.
77617
77618 2005-08-12  Simon Josefsson  <jas@extundo.com>
77619
77620         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
77621         readline, getdelim and check_version.
77622         (Support for systems lacking ISO C 99: Sizes of integer types):
77623         Add size_max.
77624
77625 2005-08-12  Bruno Haible  <bruno@clisp.org>
77626
77627         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
77628
77629 2005-08-11  Simon Josefsson  <jas@extundo.com>
77630
77631         * modules/readline: New file.
77632
77633         * modules/strnlen (Files): Add strnlen.h.
77634
77635 2005-08-11  Simon Josefsson  <jas@extundo.com>
77636
77637         * m4/readline.m4: New file.
77638
77639 2005-08-11  Simon Josefsson  <jas@extundo.com>
77640
77641         * lib/readline.h, readline.c: New file.
77642
77643 2005-08-11  Simon Josefsson  <jas@extundo.com>
77644
77645         * doc/gnulib.texi (Initial import, Finishing touches): Mention
77646         gl_AVOID.
77647
77648 2005-08-11  Bruno Haible  <bruno@clisp.org>
77649
77650         * lib/strnlen.h (strnlen): Change parameter name to match comment.
77651
77652 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
77653
77654         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
77655
77656 2005-08-10  Simon Josefsson  <jas@extundo.com>
77657
77658         * tests/test-iconvme.c: New file.
77659
77660 2005-08-10  Simon Josefsson  <jas@extundo.com>
77661
77662         * m4/strnlen.m4: New file.
77663
77664         * m4/strndup.m4: Don't check for strnlen declaration, done in
77665         strnlen.m4.
77666
77667 2005-08-10  Simon Josefsson  <jas@extundo.com>
77668
77669         * lib/strndup.c: Use strnlen.h.
77670
77671         * lib/strnlen.h: New file.
77672
77673 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77674
77675         * README: Typos.
77676
77677 2005-08-02  Simon Josefsson  <jas@extundo.com>
77678
77679         * modules/readline: New file.
77680
77681 2005-08-02  Simon Josefsson  <jas@extundo.com>
77682
77683         * modules/getdelim: New file.
77684
77685         * modules/getline: Rewrite, don't use getndelim2.
77686
77687 2005-08-02  Simon Josefsson  <jas@extundo.com>
77688
77689         * m4/getline.m4: Separate out getdelim stuff into separate module.
77690
77691         * m4/getdelim.m4: New file.
77692
77693 2005-08-02  Simon Josefsson  <jas@extundo.com>
77694
77695         * lib/getline.h, getline.c: Rewrite.
77696
77697         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
77698
77699 2005-07-31  Bruno Haible  <bruno@clisp.org>
77700
77701         * lib/lock.h (gl_lock_initializer): New macro.
77702         (gl_lock_define_initialized): Use it.
77703         (gl_rwlock_initializer): New macro.
77704         (gl_rwlock_define_initialized): Use it.
77705         (gl_recursive_lock_initializer): New macro.
77706         (gl_recursive_lock_define_initialized): Use it.
77707
77708 2005-07-30  Karl Berry  <karl@gnu.org>
77709
77710         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
77711         Report from Ben Pfaff, regarding getopt.
77712
77713 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
77714
77715         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
77716         normal way.
77717         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
77718         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
77719         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
77720         (gl_GETOPT): Use the new macros.  Most of the implementation
77721         is moved to the new macros.  This is for programs like Emacs
77722         that don't want all the functionality of gl_GETOPT.
77723
77724 2005-07-26  Bruno Haible  <bruno@clisp.org>
77725
77726         * m4/lock.m4: Update from GNU gettext.
77727
77728 2005-07-26  Bruno Haible  <bruno@clisp.org>
77729
77730         * lib/lock.h: Update from GNU gettext.
77731         * lib/lock.c: Update from GNU gettext.
77732
77733 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
77734
77735         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
77736         obsolescent AC_TRY_RUN.  Include the default includes files, for
77737         'exit'.
77738
77739 2005-07-24  Bruno Haible  <bruno@clisp.org>
77740
77741         * modules/visibility: New file.
77742         * MODULES.html.sh (Misc): Add visibility.
77743
77744 2005-07-24  Bruno Haible  <bruno@clisp.org>
77745
77746         * m4/visibility.m4: New file.
77747
77748 2005-07-24  Bruno Haible  <bruno@clisp.org>
77749
77750         * doc/visibility.texi: New file.
77751
77752 2005-07-22  Bruno Haible  <bruno@clisp.org>
77753
77754         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
77755         $(ALLOCA_H), redundant through BUILT_SOURCES.
77756         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
77757         redundant through BUILT_SOURCES.
77758         * modules/byteswap (Makefile.am): Remove explicit dependency on
77759         $(BYTESWAP_H), redundant through BUILT_SOURCES.
77760         * modules/fnmatch (Makefile.am): Remove explicit dependency on
77761         $(FNMATCH_H), redundant through BUILT_SOURCES.
77762         * modules/getopt (Makefile.am): Remove explicit dependency on
77763         $(GETOPT_H), redundant through BUILT_SOURCES.
77764         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
77765         redundant through BUILT_SOURCES.
77766         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
77767         redundant through BUILT_SOURCES.
77768         * modules/stdbool (Makefile.am): Remove explicit dependency on
77769         $(STDBOOL_H), redundant through BUILT_SOURCES.
77770         * modules/stdint (Makefile.am): Remove explicit dependency on
77771         $(STDINT_H), redundant through BUILT_SOURCES.
77772         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
77773         Remove explicit dependency on $(SYSEXITS_H).
77774         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
77775
77776 2005-07-18  Simon Josefsson  <jas@extundo.com>
77777
77778         * lib/check-version.c (check_version): Accept identical versions too.
77779
77780 2005-07-18  Bruno Haible  <bruno@clisp.org>
77781
77782         * modules/lock: New file.
77783         * MODULES.html.sh (Multithreading): New section.
77784
77785 2005-07-18  Bruno Haible  <bruno@clisp.org>
77786
77787         * m4/lock.m4: New file, from GNU gettext.
77788
77789 2005-07-18  Bruno Haible  <bruno@clisp.org>
77790
77791         * lib/lock.h: New file, from GNU gettext.
77792         * lib/lock.c: New file, from GNU gettext.
77793
77794 2005-07-18  Bruno Haible  <bruno@clisp.org>
77795
77796         * lib/lock.h (gl_once_t): New type.
77797         (gl_once_define, gl_once): New macros.
77798         * lib/lock.c (fresh_once): New variable.
77799         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
77800         functions.
77801
77802 2005-07-16  Simon Josefsson  <jas@extundo.com>
77803
77804         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
77805         workaround, suggested by Bruno.
77806
77807 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77808
77809         * modules/xalloc (Depends-on): Add xalloc-die.
77810         * modules/xvasprintf (Depends-on): Add xalloc-die.
77811
77812 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77813
77814         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
77815         with a minor change.
77816
77817 2005-07-15  Bruno Haible  <bruno@clisp.org>
77818
77819         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
77820         When using lib/poll.c, define poll as rpl_poll.
77821
77822 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
77823
77824         * modules/argp (Depends-on): Remove unlocked-io.
77825
77826 2005-07-14  Derek Price  <derek@ximbiot.com>
77827
77828         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
77829         for glob symlink bug.
77830
77831 2005-07-14  Bruno Haible  <bruno@clisp.org>
77832
77833         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
77834         Instead, test for *_unlocked function declarations directly.
77835
77836 2005-07-11  Simon Josefsson  <jas@extundo.com>
77837
77838         * modules/size_max: New file.
77839
77840         * modules/xsize: Depend on size_max module for size_max.m4.
77841
77842 2005-07-11  Simon Josefsson  <jas@extundo.com>
77843
77844         * lib/size_max.h: New file.
77845
77846 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
77847
77848         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
77849         copyright symbol and the year.
77850         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
77851         (version_etc_va): Use parameterized copyright notice.
77852         Reword to conform to the current GNU coding standards.
77853
77854 2005-07-11  Karl Berry  <karl@gnu.org>
77855
77856         * doc/gnulib.texi (Quoting): new node.
77857         (Initial import): more info, from Patrice.
77858
77859 2005-07-11  Bruno Haible  <bruno@clisp.org>
77860
77861         * gnulib-tool (func_usage): Document option --avoid.
77862         (Command line options): Handle --avoid.
77863         (func_acceptable): New function.
77864         (func_modules_transitive_closure): Use it.
77865
77866 2005-07-11  Bruno Haible  <bruno@clisp.org>
77867
77868         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
77869         Reported by Jim Meyering.
77870
77871 2005-07-10  Bruno Haible  <bruno@clisp.org>
77872
77873         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
77874         Needed when size_t is smaller than 'unsigned int'.
77875         Reported by Paul Eggert.
77876
77877 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77878
77879         * modules/argp (Depends-on): Add unlocked-io
77880
77881 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77882
77883         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
77884         block of defines.
77885
77886 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77887
77888         * config/srclist.txt: Comment out regcomp.c, since we have a porting
77889         fix now.
77890
77891 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
77892         and Paul Eggert  <eggert@cs.ucla.edu>
77893
77894         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
77895         in wint_t, not wchar_t.  Remove now-unnecessary cast.
77896
77897 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77898
77899         * modules/regex (Files): Add lib/regex_internal.c,
77900         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
77901         (Depends-on): Add extensions.
77902         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
77903
77904 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77905
77906         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
77907         pathconf.
77908         * m4/same.m4 (gl_SAME): Likewise.
77909         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
77910
77911         * m4/regex.m4: Adjust to new libc regex implementation.
77912         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
77913         all the .c and .h parts of (the new) regex.
77914         Quote the m4 stuff better.
77915         Check for RE_ICASE bug of old gnulib.
77916         Check for REG_STARTEND of recent libc.
77917         Rename local variables from jm_* to gl_*.
77918         Quote operand of "test -f".
77919         Say "recent enough" version of libc, not "version 2".
77920         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
77921         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
77922         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
77923         Remove check for btowc, isascii.
77924         Require AM_LANGINFO_CODESET.
77925
77926 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77927
77928         * lib/regex.c, regex.h: Sync from libc.
77929         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
77930         * lib/regexec.c:
77931         New files, synced from libc, except that regex_internal.h
77932         currently has a small porting fix.
77933
77934 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77935
77936         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
77937         regex_internal.c, regexec.c.
77938         Add regex_internal.h too, but as a comment, since the libc version
77939         is currently broken in gnulib mode.
77940
77941 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77942
77943         Support programs like Emacs that use gnulib but not gettext.
77944         * MODULES.html.sh (Internationalization functions): Add gettext-h.
77945         * modules/gettext-h: New file.
77946         * modules/gettext (Files): Remove lib/gettext.h.
77947         (Depends-on): Add gettext-h.
77948         (Makefile.am): Remove lib_SOURCES.
77949         * modules/argmatch, modules/c-stack, modules/closeout:
77950         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
77951         * modules/execute, modules/file-type, modules/getaddrinfo:
77952         * modules/getopt, modules/human, modules/javacomp:
77953         * modules/javaexec, modules/mkdir-p, modules/obstack:
77954         * modules/openat, modules/pagealign_alloc, modules/pipe:
77955         * modules/quotearg, modules/regex, modules/rpmatch:
77956         * modules/unicodeio, modules/userspec, modules/version-etc:
77957         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
77958         * modules/xsetenv:
77959         Depend on gettext-h, not gettext.
77960
77961 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77962
77963         * gnulib-tool (func_import): Add support for 'public domain' license.
77964         * modules/alloca, modules/atexit, modules/memmove:
77965         Now public domain, not GPL.
77966         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
77967         * modules/realloc, modules/strerror, modules/strtod:
77968         Now LGPL, not GPL.
77969
77970 2005-07-05  Bruno Haible  <bruno@clisp.org>
77971
77972         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
77973         autoconf CVS. Needed for mingw.
77974
77975 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77976
77977         Remove the dependency of the strftime module on the tzset module.
77978         * modules/strftime (Depends-on): Remove dependency on tzset.
77979
77980 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77981
77982         Remove the dependency of the strftime module on the tzset module.
77983         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
77984         gl_FUNC_TZSET_CLOBBER.
77985
77986 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77987
77988         Remove the dependency of the strftime module on the tzset module.
77989         * lib/strftime.c (my_strftime)
77990         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
77991         Copy the input structure, to work around some of the bug with
77992         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
77993         Solaris releases, you should also use the tzset module, but we won't
77994         require it as a dependency any more since we don't want LGPLed code
77995         to depend on GPLed code.
77996
77997 2005-07-02  Jim Meyering  <jim@meyering.net>
77998
77999         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
78000         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
78001         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
78002         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
78003
78004 2005-07-02  Jim Meyering  <jim@meyering.net>
78005
78006         * lib/backupfile.c (backup_args): Change a `0' to NULL.
78007
78008 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78009
78010         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
78011         declares only 'struct timespec;' (!).
78012
78013 2005-07-01  Jim Meyering  <jim@meyering.net>
78014
78015         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
78016         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
78017         * lib/save-cwd.c, tempname.c:
78018         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
78019         and don't include <sys/file.h>).
78020
78021 2005-06-29  Jim Meyering  <jim@meyering.net>
78022
78023         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
78024         type name.  Use the variable name instead.
78025         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
78026         Likewise.
78027
78028 2005-06-28  Simon Josefsson  <jas@extundo.com>
78029
78030         * modules/check-version (Files): Add check-version.m4.
78031
78032 2005-06-28  Simon Josefsson  <jas@extundo.com>
78033
78034         * m4/check-version.m4: New file, suggested by Jim Meyering
78035         <jim@meyering.net>.
78036
78037 2005-06-28  Simon Josefsson  <jas@extundo.com>
78038
78039         * lib/check-version.h, lib/check-version.c: New files.
78040
78041 2005-06-28  Simon Josefsson  <jas@extundo.com>
78042
78043         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
78044         collision with global variable.  Better indentation.  Don't
78045         increment buffer pointer beyond buffer end.  Based on comments
78046         from Paul Eggert <eggert@cs.ucla.edu>.
78047
78048         * lib/base64.h: Indent.
78049
78050 2005-06-28  Simon Josefsson  <jas@extundo.com>
78051
78052         * doc/gnulib.texi (Library version handling): New section.
78053
78054 2005-06-28  Jim Meyering  <jim@meyering.net>
78055
78056         * check-module (find_included_lib_files): Hard-code another
78057         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
78058         but modules/fts-lgpl (correctly) does not list those files.
78059
78060         * modules/canonicalize (Files): Add lib/pathmax.h.
78061
78062 2005-06-25  Simon Josefsson  <jas@extundo.com>
78063
78064         * modules/check-version: New file.
78065
78066 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
78067
78068         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
78069         initializer of struct addrinfo, as an indication that we don't
78070         care how many members the structure has.
78071
78072 2005-06-24  Derek Price  <derek@ximbiot.com>
78073         and Bruno Haible  <bruno@clisp.org>
78074
78075         Remove stat module & update lstat.
78076         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
78077         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78078         * m4/stat.m4: Remove this file.
78079
78080 2005-06-24  Derek Price  <derek@ximbiot.com>
78081         and Bruno Haible  <bruno@clisp.org>
78082
78083         Remove stat module & update lstat.
78084         * lib/stat.c: Remove this file...
78085         (slash_aware_lstat): ...moving this content and its support...
78086         * lib/lstat.c (rpl_lstat): ...into here.
78087         * lib/lstat.h: New file.
78088
78089 2005-06-24  Derek Price  <derek@ximbiot.com>
78090         and Bruno Haible  <bruno@clisp.org>
78091
78092         Remove stat module & update lstat.
78093         * config/srclist.txt (libc sources): Remove stat.
78094
78095 2005-06-24  Derek Price  <derek@ximbiot.com>
78096         and Bruno Haible  <bruno@clisp.org>
78097
78098         Remove stat module & update lstat.
78099         * MODULES.html.sh (stat): Remove.
78100         * MODULES.html: Regenerated.
78101         * modules/lstat (Description): Correct function name.
78102         (Files): Add "lstat.h".
78103         (Depends-on): Remove stat, add xalloc, stat-macros.
78104         * modules/stat: Remove this file.
78105         (Include): Add "lstat.h", remove <sys/stat.h>.
78106
78107 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
78108
78109         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
78110         (ranged_convert): Don't save conversion in a temporary struct.
78111         This causes a warning with GCC 4.0.0, and anyway in the typical
78112         case it's not worth the extra 100 bytes or so of code.
78113         (ranged_convert, __mktime_internal): When calling a function via a
78114         pointer P, use P () rather than (*P) (), as we now assume C89 or
78115         better.
78116
78117 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78118
78119         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
78120         "who -r" failed to give output.  Problem reported by Tim Waugh.
78121
78122         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
78123         (xcalloc): Use it to avoid needless tests.
78124         Problem reported by Jim Meyering.
78125
78126 2005-06-20  Derek Price  <derek@ximbiot.com>
78127
78128         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
78129         unnecessary for Autoconfs > 2.59c.
78130
78131 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78132
78133         * lib/argp.h (__option_is_short): Check upper limit of
78134         __key. Isprint() requires its argument to have the value
78135         of an unsigned char or EOF.
78136
78137 2005-06-16  Jim Meyering  <jim@meyering.net>
78138
78139         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
78140         when either N or S is zero.
78141
78142 2005-06-16  Derek Price  <derek@ximbiot.com>
78143
78144         * m4/bison.m4: Declare YACC & YFLAGS precious.
78145
78146 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
78147
78148         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
78149         multibyte string or pattern, fall back on unibyte matching.
78150         Problem reported by James Youngman.
78151
78152 2005-06-08  Bruno Haible  <bruno@clisp.org>
78153
78154         * modules/csharpcomp: New file.
78155         * MODULES.html.sh (C#): Add csharpcomp.
78156
78157 2005-06-08  Bruno Haible  <bruno@clisp.org>
78158
78159         * m4/csharpcomp.m4: New file, from GNU gettext.
78160
78161 2005-06-08  Bruno Haible  <bruno@clisp.org>
78162
78163         * lib/csharpcomp.h: New file, from GNU gettext.
78164         * lib/csharpcomp.c: New file, from GNU gettext.
78165         * lib/csharpcomp.sh.in: New file, from GNU gettext.
78166
78167 2005-06-08  Bruno Haible  <bruno@clisp.org>
78168
78169         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
78170         warning on mingw.
78171
78172 2005-06-07  Derek Price  <derek@ximbiot.com>
78173
78174         Sync from CVS.
78175         * lib/glob_.h: Indent nested #ifdef.
78176
78177 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78178
78179         Sync from coreutils.
78180         Use "file name" when talking about file names, instead of "filename"
78181         or "path", as per the GNU coding standards.
78182         * lib/mkdir-p.c: Renamed from makepath.c.
78183         (make_dir_parents): Renamed from make_path.  All callers changed.
78184         * lib/mkdir-p.h: Likewise.  All includers changed.
78185         * lib/filenamecat.c: Renamed from path-concat.c.
78186         (file_name_concat): Renamed from path_concat.  All callers changed.
78187         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
78188         * lib/filenamecat.h: Likewise.  All includers changed.
78189         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
78190         in comments or local variable names.
78191         * lib/basename.c: Likewise.
78192         * lib/canonicalize.c, canonicalize.h: Likewise.
78193         * lib/dirname.c, dirname.h: Likewise.
78194         * lib/euidaccess.c: Likewise.
78195         * lib/exclude.c: Likewise
78196         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
78197         * lib/fsusage.c, fsuage.h: Likewise.
78198         * lib/fts.c, fts_.h: Likewise.
78199         * lib/getcwd.c: Likewise.
78200         * lib/getloadavg.c: Likewise.
78201         * lib/mkstemp.c: Likewise.
78202         * lib/mountlist.c, mountlist.h: Likewise.
78203         * lib/openat.c, openat.h: Likewise.
78204         * lib/readlink-stub.c: Likewise.
78205         * lib/readutmp.c, readutmp.h: Likewise.
78206         * lib/rename.c: Likewise.
78207         * lib/rmdir.c: Likewise.
78208         * lib/same.c: Likewise.
78209         * lib/savedir.c: Likewise.
78210         * lib/stripslash.c: Likewise.
78211         * lib/tempname.c: Likewise.
78212         * lib/xreadlink.c: Likewise.
78213         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
78214         All uses changed.
78215         * lib/exclude.h: Likewise.
78216
78217         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
78218         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78219         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
78220         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78221         * lib/pathmax.h: Include <limits.h> unconditionally, since other
78222         files have been getting away with it for years (MORE/BSD 4.3
78223         is extinct now).
78224         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
78225         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78226
78227         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
78228         Define to 256, not 255, as per modern POSIX.
78229
78230 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78231
78232         Sync from coreutils.
78233         Use "file name" when talking about file names, instead of "filename"
78234         or "path", as per the GNU coding standards.
78235         * MODULES.html.sh: mkdir-p renamed from makepath.
78236         filenamecat renamed from path-concat.
78237         * modules/filenamecat: Renamed from modules/path-concat.
78238         (Files): filenamecat.h and filenamecat.c renamed from
78239         path-concat.h and path-concat.c.
78240         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
78241         (Include): filenamecat.h, not path-concat.h.
78242         * modules/mkdir-p: Renamed from modules/makepath.
78243         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
78244         makepath.c.
78245         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
78246         (Include): mkdir-p.h, not makepath.h.
78247
78248 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78249
78250         Sync from coreutils.
78251         * m4/mkdir-p.m4: Renamed from makepath.m4.
78252         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
78253         Rename files from makepath.c to mkdir-p.c, and from
78254         makepath.h to mkdir-p.h.
78255         * m4/filenamecat.m4: Renamed from path-concat.m4.
78256         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
78257         Rename files from path-concat.c to filenamecat.c,
78258         and from path-concat.h to filenamecat.h.
78259         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
78260         "file name" in local variables or comments.
78261         * m4/rename.m4: Likewise.
78262
78263 2005-06-01  Bruno Haible  <bruno@clisp.org>
78264
78265         * modules/csharpexec: New file.
78266         * MODULES.html.sh (C#): New section.
78267
78268 2005-06-01  Bruno Haible  <bruno@clisp.org>
78269
78270         * m4/csharp.m4: New file, from GNU gettext.
78271         * m4/csharpexec.m4: New file, from GNU gettext.
78272
78273 2005-06-01  Bruno Haible  <bruno@clisp.org>
78274
78275         * lib/csharpexec.h: New file, from GNU gettext.
78276         * lib/csharpexec.c: New file, from GNU gettext.
78277         * lib/csharpexec.sh.in: New file, from GNU gettext.
78278
78279 2005-05-31  Derek Price  <derek@ximbiot.com>
78280             Paul Eggert  <eggert@cs.ucla.edu>
78281
78282         Sync from cvs.
78283         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78284
78285 2005-05-31  Derek Price  <derek@ximbiot.com>
78286             Paul Eggert  <eggert@cs.ucla.edu>
78287
78288         Sync from cvs.
78289         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78290
78291 2005-05-29  Derek Price  <derek@ximbiot.com>
78292
78293         * config/srclist.txt (glob_.h, glob.c): Add these files.
78294
78295 2005-05-29  Derek Price  <derek@ximbiot.com>
78296
78297         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
78298         * modules/glob: New file.
78299         * modules/getlogin_r: Add link to POSIX spec in description.
78300
78301 2005-05-29  Derek Price  <derek@ximbiot.com>
78302             Paul Eggert  <eggert@cs.ucla.edu>
78303
78304         * m4/glob.m4: New file.
78305
78306 2005-05-29  Derek Price  <derek@ximbiot.com>
78307             Paul Eggert  <eggert@cs.ucla.edu>
78308
78309         * lib/glob_.h, lib/glob.c: New files.
78310
78311 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78312
78313         * modules/fts (Files): Remove m4/inttypes-pri.m4.
78314         * modules/fts-lgpl (Depends-on): Remove gettext.
78315
78316 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78317
78318         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
78319         and don't require gt_INTTYPES_PRI.
78320
78321 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78322
78323         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
78324
78325         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
78326         the configuration hassle isn't worth it.
78327         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
78328         (LONGEST_MODIFIER, PRIuMAX): Remove.
78329
78330 2005-05-27  Bruno Haible  <bruno@clisp.org>
78331
78332         * lib/getlogin_r.h: Remove second include of <stddef.h>.
78333
78334 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
78335
78336         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
78337         _POSIX_PTHREAD_SEMANTICS for Solaris.
78338
78339 2005-05-25  Derek Price  <derek@ximbiot.com>
78340
78341         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
78342
78343 2005-05-25  Derek Price  <derek@ximbiot.com>
78344             Paul Eggert  <eggert@cs.ucla.edu>
78345
78346         * modules/getlogin_r, m4/getlogin_r.m4: New files.
78347         * lib/getlogin_r.c, getlogin_r.h: New files.
78348
78349 2005-05-25  Bruno Haible  <bruno@clisp.org>
78350             Derek Price  <derek@ximbiot.com>
78351
78352         * lib/getlogin_r.h: Simplify API documentation.
78353
78354 2005-05-23  Derek Price  <derek@ximbiot.com>
78355
78356         * modules/minmax (Files): Add m4/minmax.m4.
78357         (configure.ac): Add gl_MINMAX.
78358
78359 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78360
78361         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
78362         so that unistd-safer.h (GPL'ed code) need not be included.
78363
78364 2005-05-22  Bruno Haible  <bruno@clisp.org>
78365
78366         * m4/minmax.m4: New file.
78367         Based on a patch by Derek Price <derek@ximbiot.com>.
78368
78369 2005-05-22  Bruno Haible  <bruno@clisp.org>
78370
78371         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
78372         (INT64_MIN): Fix definition.
78373         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
78374
78375         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
78376         NEED_SIGNED_INT_TYPES.
78377
78378         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
78379         HAVE_SYSTEM_INTTYPES.
78380
78381 2005-05-22  Bruno Haible  <bruno@clisp.org>
78382
78383         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
78384         Also include <sys/param.h> if it defines MIN, MAX.
78385         Based on a patch by Derek Price <derek@ximbiot.com>.
78386
78387 2005-05-21  Jim Meyering  <jim@meyering.net>
78388
78389         * modules/fts (Files): Add m4/inttypes-pri.m4.
78390         (Depends-on): Add lstat and remove gettext.  Alphabetize.
78391
78392 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78393
78394         New fts module.
78395         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
78396         (setup_dir, free_dir): New functions.
78397         (enter_dir, leave_dir): Define trivial
78398         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
78399         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
78400         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
78401         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
78402         Move to fts-cycle.c.
78403         (fts_open): Use setup_dir.
78404         (fts_close): Use free_dir.
78405         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
78406         This adds a label and some gotos, but the alternatives were messier.
78407         Check for memory allocation failure when entering a dir.
78408         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
78409         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
78410         (FTS): New member fts_cycle, that is a union that contains the
78411         old active_dir_ht and cycle_state.  All uses changed to mention
78412         fts_cycle.ht and fts_cycle.state.
78413         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
78414         fts.c, with the following changes:
78415         (setup_dir, free_dir): New functions.
78416         (enter_dir): Now returns bool.  Return true if successful, false
78417         if memory exhausted.  All callers changed.
78418         Do not bother partly cleaning up on
78419         memory allocation failure; that is free_dir's job.
78420         However, free ad if hash_insert fails, to avoid memory leak.
78421         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
78422         fts->fts_options to see which union member to use.
78423
78424 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78425
78426         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
78427         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
78428
78429 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78430
78431         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
78432
78433 2005-05-20  Jim Meyering  <jim@meyering.net>
78434
78435         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
78436         Now a macro, to pacify GCC.
78437
78438 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78439
78440         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
78441         of -1.
78442
78443 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78444
78445         * lib/chown.c (rpl_chown): Return -1 on failure.
78446
78447 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78448
78449         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
78450         Don't check for stddef.h.
78451         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
78452         don't use its results.
78453         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
78454         since we include them unconditionally.  Don't require
78455         AM_STDBOOL_H, since stdbool is a prerequisite.
78456         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
78457         since we assume C89 or better.
78458         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
78459         as we don't use their results.
78460         Don't check for fchdir, memmove, memset, strrchr, as we use
78461         them unconditionally.
78462         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
78463         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
78464
78465 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78466
78467         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
78468         Include <stddef.h> unconditionally, since we assume C89 now.
78469         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
78470         * lib/fts.c: Include fts_.h first, to check interface.
78471         Do not include intprops.h; no longer needed.
78472         Include cycle-check.h and hash.h, since fts_.h no longer does.
78473         Remove unnecessary casts of closedir to void.
78474         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
78475         decide whether to decrement nlinks.
78476         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
78477         (FTS): Use struct hash_table * instead of Hash_table, so that
78478         we no longer need to include hash.h here.
78479
78480 2005-05-18  Jim Meyering  <jim@meyering.net>
78481
78482         * modules/dirfd (License): Change to LGPL.  Most of the code
78483         is already in the public domain.
78484
78485 2005-05-18  Jim Meyering  <jim@meyering.net>
78486
78487         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
78488         Reported by Yoann Vandoorselaere.
78489
78490 2005-05-17  Jim Meyering  <jim@meyering.net>
78491
78492         * m4/fts.m4: New file, from coreutils.
78493
78494 2005-05-17  Jim Meyering  <jim@meyering.net>
78495
78496         * lib/fts.c, lib/fts_.h: New files, from coreutils.
78497
78498 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78499
78500         Sync from coreutils.
78501         * m4/unlinkdir.m4: New file.
78502
78503 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78504
78505         Sync from coreutils.
78506         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
78507         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
78508         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
78509         White space changes only.
78510         * lib/makepath.c (make_path): Port to hosts where leading "//" is
78511         special.
78512         * lib/yesno.c: Include getline.h, not ctype.h.
78513         (yesno): Don't remove leading white space; POSIX doesn't allow it.
78514         Use getline to remove arbitrary restriction on response length.
78515
78516 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78517
78518         * config/srclist-update: Spell out "Street" in FSF postal
78519         mail address; this is the style the FSF seems to prefer.
78520
78521         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
78522         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
78523         this updates FSF postal mail address.
78524
78525         Sync from coreutils.
78526         * modules/unlinkdir: New file.
78527         * modules/yesno (Depends-on): Add getline.
78528         * MODULES.html.sh (File system functions): Add unlinkdir.
78529
78530 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78531
78532         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
78533         lib/strsep.h:
78534         Change the initial comment to refer to GPL, not LGPL.
78535         gnulib-tool will change it to LGPL as needed.
78536
78537         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
78538         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
78539         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
78540         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
78541         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
78542         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
78543         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
78544         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
78545         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
78546         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
78547         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
78548         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
78549         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
78550         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
78551         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
78552         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
78553         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
78554         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
78555         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
78556         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
78557         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
78558         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
78559         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
78560         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
78561         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
78562         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
78563         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
78564         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
78565         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
78566         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
78567         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
78568         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
78569         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
78570         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
78571         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
78572         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
78573         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
78574         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
78575         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
78576         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
78577         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
78578         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
78579         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
78580         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
78581         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
78582         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
78583         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
78584         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
78585         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
78586         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
78587         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78588         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
78589         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
78590         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
78591         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
78592         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
78593         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
78594         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
78595         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
78596         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
78597         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
78598         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
78599         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
78600         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
78601         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
78602         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
78603         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
78604         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
78605         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
78606         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
78607         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
78608         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
78609         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
78610         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
78611         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
78612         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
78613         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
78614         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
78615         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
78616         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
78617         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
78618         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
78619         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
78620         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
78621         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
78622         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
78623         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
78624         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
78625         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
78626         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
78627         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
78628         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
78629         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
78630         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
78631         lib/yesno.c, lib/yesno.h:
78632         Update FSF postal mail address.
78633
78634 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78635
78636         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
78637         tests/test-memmem.c, tests/test-stpncpy.c:
78638         Update FSF postal mail address.
78639
78640 2005-05-13  Bruno Haible  <bruno@clisp.org>
78641
78642         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
78643         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
78644         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
78645         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
78646         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
78647         Add support for 64-bit integers in the MSVC compiler.
78648
78649 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78650
78651         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
78652
78653 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
78654
78655         * gnulib-tool (func_import): Sort and uniquify recommended includes.
78656
78657 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
78658
78659         * doc/getdate.texi (General date syntax): Don't say that date
78660         date --iso-8601=ns generates acceptable dates; it doesn't yet.
78661         Problem reported by Nic Ferrier.
78662
78663 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78664
78665         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
78666         specified in ai_socktype. Fix invalid ai_protocol
78667         check. ai_protocol is usually set to 0 or depending on
78668         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
78669         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
78670         ai_socktype / ai_protocol in the returned addrinfo structure.
78671
78672 2005-05-10  Simon Josefsson  <jas@extundo.com>
78673
78674         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
78675         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78676
78677 2005-05-10  Karl Berry  <karl@gnu.org>
78678
78679         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
78680         (from http://www.gnu.org/licenses).
78681         * doc/COPYING.LIB: also rename to COPYING.LESSER.
78682         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
78683         fdl.texi suffices.
78684
78685 2005-05-10  Karl Berry  <karl@gnu.org>
78686
78687         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
78688         (COPYING.DOC): remove.
78689
78690         * config/srclist-update: new FSF address.
78691
78692 2005-05-10  Derek Price  <derek@ximbiot.com>
78693
78694         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
78695         possible.
78696
78697 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78698             Bruno Haible  <bruno@clisp.org>
78699
78700         * modules/inet_ntop: New file.
78701         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78702         inet_ntop.
78703
78704 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78705             Bruno Haible  <bruno@clisp.org>
78706
78707         * m4/inet_ntop.m4: New file.
78708
78709 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78710             Bruno Haible  <bruno@clisp.org>
78711
78712         * lib/inet_ntop.h: New file.
78713         * lib/inet_ntop.c: New file, from glibc with modifications.
78714
78715 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
78716
78717         * modules/time_r (License): Change to LGPL.
78718         * modules/extensions (License): Change to LGPL.  Actually,
78719         the license is more permissive than that, but currently gnulib-tool
78720         doesn't know how to handle more-permissive licenses.
78721
78722         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
78723         Problem reported by Dave Love.
78724
78725 2005-05-08  Jim Meyering  <jim@meyering.net>
78726
78727         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
78728         blank.
78729
78730 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
78731
78732         * modules/argmatch (Depends-on): Add stdbool.
78733         * modules/backupfile (Depends-on): Likewise.
78734         * modules/chdir-long (Depends-on): Likewise.
78735         * modules/closeout (Depends-on): Likewise.
78736         * modules/cycle-check (Depends-on): Likewise.
78737         * modules/dirname (Depends-on): Likewise.
78738         * modules/fnmatch (Depends-on): Likewise.
78739         * modules/fsusage (Depends-on): Likewise.
78740         * modules/fwriteerror (Depends-on): Likewise.
78741         * modules/getcwd (Depends-on): Likewise.
78742         * modules/getloadavg (Depends-on): Likewise.
78743         * modules/hard-locale (Depends-on): Likewise.
78744         * modules/makepath (Depends-on): Likewise.
78745         * modules/mountlist (Depends-on): Likewise.
78746         * modules/nanosleep (Depends-on): Likewise.
78747         * modules/posixtm (Depends-on): Likewise.
78748         * modules/quotearg (Depends-on): Likewise.
78749         * modules/readtokens (Depends-on): Likewise.
78750         * modules/readtokens0 (Depends-on): Likewise.
78751         * modules/readutmp (Depends-on): Likewise.
78752         * modules/save-cwd (Depends-on): Likewise.
78753         * modules/strftime (Depends-on): Likewise.
78754         * modules/userspec (Depends-on): Likewise.
78755         * modules/utimecmp (Depends-on): Likewise.
78756         * modules/xgetcwd (Depends-on): Likewise.
78757         * modules/xnanosleep (Depends-on): Likewise.
78758         * modules/xstrtod (Depends-on): Likewise.
78759         * modules/yesno (Depends-on): Likewise.
78760
78761 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
78762
78763         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
78764         needless checks.
78765
78766 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78767
78768         Merge from coreutils.  Among other things,
78769         add bulletproofing for cases where stdin, stdout, or stderr are closed.
78770         * lib/fd-safer.c: New file.
78771         * lib/fcntl-safer.h, open-safer.c: Remove.
78772         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
78773         * lib/dup-safer.c: Include unistd-safer.h first.
78774         Don't include errno.h.
78775         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
78776         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
78777         * lib/file-type.c: Rely on file-type.h change.
78778         * lib/getloadavg.c: Include unistd-safer.h.
78779         (getloadavg): Use safer open.
78780         * lib/getusershell.c: Include "stdio-safer.h".
78781         (getusershell): Use safer fopen.
78782         * lib/long-options.c (long_options): Use NULL rather than 0.
78783         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
78784         'free'.
78785         * lib/modechange.c: Likewise.
78786         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
78787         (MODE_DONE): New constant.
78788         (struct mode_change): Remove 'next' member.
78789         (make_node_op_equals): New function; like the old one of the
78790         same name, except it allocates an array.
78791         (mode_compile, mode_create_from_ref): Use it.
78792         (mode_compile): Allocate result as an array, not a linked list.
78793         Parse octal string ourself, so that we catch mistakes like "+0".
78794         (mode_adjust): Arg is an array, not a linked list.
78795         * lib/modechange.c: Include stat-macros.h, xalloc.h.
78796         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
78797         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
78798         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
78799         Remove.  This is now stat-macros.h's job.
78800         (talloc): Remove.  All callers replaced by xalloc, so that
78801         our invokers don't have to worry about reporting memory failures.
78802         (make_node_op_equals): Remove.
78803         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78804         New constants.
78805         (struct mode_change): Moved here from modechange.h.
78806         (mode_append_entry): Remove.
78807         (mode_compile): Remove MASKED_OPS arg, since it encouraged
78808         apps to have incorrect behavior.  Use simpler algorithm for head
78809         and tail.  Don't futz with umask; that's now the job of mode_adjust.
78810         Detect more invalid usages rather than having somewhat-random behavior.
78811         Don't insert an "a=" action, as that leads to incorrect behavior.
78812         (mode_compile, mode_create_from_ref): Return NULL on error instead
78813         of an enum, since now there's only one way to have an error.  All
78814         callers changed.
78815         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
78816         at the correct time.  Simplify calculation of "+u" and its ilk.
78817         Don't mishandle "+X".
78818         (mode_free): Remove "register" and localize decls.
78819         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78820         (struct mode_change): Move to modechange.c; callers don't
78821         need to see this stuff.
78822         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
78823         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
78824         (mode_change, mode_adjust): Reflect the new signatures noted above.
78825         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
78826         that might redefine system include files.
78827         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
78828         (my_usleep): Use NULL rather than (void *) 0.
78829         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
78830         Use siginterrupt to specify that system calls should be interrupted.
78831         (rpl_nanosleep): Move initialization of suspended closer to call of
78832         my_usleep.
78833         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
78834         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
78835         (desirable_utmp_entry): New function.
78836         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
78837         using x2nrealloc, to simplify logic.
78838         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
78839         size calculation.  Do not assume utmp file is a regular file.
78840         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
78841         (READ_UTMP_CHECK_PIDS): New constant.
78842         * lib/save-cwd.c: Include unistd-safer.h.
78843         (save_cwd): Use fd_safer.
78844         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
78845         [!_LIBC] Include "stat-macros.h" instead.
78846         * lib/unistd-safer.h (fd_safer): New decl.
78847
78848 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78849
78850         * modules/getloadavg (Depends-on): Add unistd-safer.
78851         * modules/getusershell (Depends-on): Add stdio-safer.
78852         * modules/lstat (Depends-on): Remove xalloc.
78853         * modules/mkstemp (Depends-on): Add stat-macros.
78854         * modules/modechange (Depends-on): Remove xstrtol.
78855         Add stat-macros, xalloc.
78856         * modules/save-cwd (Depends-on): Add unistd-safer.
78857         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
78858         * modules/unistd-safer (Files): Add lib/fd-safer.c
78859         (Makefile.am): Remove lib_SOURCES.
78860
78861         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
78862         Remove fcntl-safer; unistd-safer supersedes it.
78863
78864 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78865
78866         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
78867         AC_HEADER_STAT.
78868         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
78869         (gl_PREREQ_CHOWN): Remove.
78870         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
78871         it.  Don't require AC_HEADER_STAT.
78872         (gl_PREREQ_LSTAT): Remove.
78873         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
78874         Don't require AC_HEADER_STAT.
78875         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
78876         (gl_PREREQ_RMDIR): Remove.
78877         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
78878         mention stat-macros.h or AC_HEADER_STAT, since we'll make
78879         the stat-macros module a prerequisite.
78880         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
78881         * m4/filemode.m4 (gl_FILEMODE): Likewise.
78882         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
78883         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
78884         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
78885         variable names.
78886         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
78887         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
78888         variable prefixes.
78889         * m4/fcntl-safer.m4: Remove.
78890         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
78891         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
78892         Invoke gl_PREREQ_FD_SAFER.
78893         (gl_PREREQ_FD_SAFER): New macro.
78894         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
78895         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
78896         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
78897         Remove duplicate call to AC_LIBOBJ(readutmp).
78898         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
78899
78900         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
78901         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
78902
78903 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78904
78905         * MODULES.html.sh (Misc): Add byteswap.
78906
78907 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78908
78909         * modules/getcwd (Depends-on): Add extensions.
78910         * modules/openat (Depends-on): Likewise.
78911
78912 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78913
78914         * modules/byteswap: New file.
78915
78916 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78917
78918         * m4/byteswap.m4: New file.
78919
78920 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78921
78922         * lib/byteswap_.h: New file.
78923
78924 2005-04-25  Karl Berry  <karl@gnu.org>
78925
78926         * m4/gettext.m4: Update from GNU gettext 0.14.4.
78927
78928 2005-04-25  Albert Chin  <china@thewrittenword.com>
78929
78930         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
78931         Toolkit C bug.
78932
78933 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
78934
78935         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
78936         (func_ln_if_changed): Remove forcibly for no error message
78937         in case file does not exist.
78938
78939 2005-04-19  Simon Josefsson  <jas@extundo.com>
78940
78941         * gnulib-tool (Options): Make --symlink mean --symbolic.
78942
78943 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
78944
78945         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
78946
78947 2005-04-16  Simon Josefsson  <jas@extundo.com>
78948
78949         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
78950
78951 2005-04-15  Simon Josefsson  <jas@extundo.com>
78952
78953         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
78954
78955 2005-04-15  Simon Josefsson  <jas@extundo.com>
78956
78957         * gnulib-tool: Rename --symlink to --symbolic.
78958
78959 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
78960
78961         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
78962         symbolic links to files instead of copying/moving.  Add --aux-dir,
78963         specifying directory relative --dir where auxiliary build tools
78964         are placed.
78965
78966 2005-04-14  Bruno Haible  <bruno@clisp.org>
78967
78968         * modules/allocsa (License): Change to LGPL.
78969         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
78970
78971 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78972
78973         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
78974         that "UTC +1 second" continues to work.  Problem reported
78975         by Dmitry V. Levin.
78976         (relunit_snumber): New rule.
78977         (relunit): Use it.
78978
78979 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78980
78981         * lib/getdate.y (universal_time_zone_table): New constant.
78982         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
78983         universal_time_zone_table.
78984         (lookup_zone): Prefer universal_time_zone_table to
78985         local_time_zone_table, so that "GMT" time stamps are allowed in
78986         London during the summer.  Problem reported by Ian Abbott.
78987
78988 2005-04-12  Jim Meyering  <jim@meyering.net>
78989
78990         * lib/human.c (humblock): Set *options even when returning due to
78991         xstrtoumax conversion failure.  Thanks to a used-uninitialized
78992         warning from gcc-4.
78993
78994 2005-04-09  Jim Meyering  <jim@meyering.net>
78995
78996         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
78997         -Wuninitialized: initialize tm0.tm_year.
78998
78999 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
79000
79001         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
79002         count, since there's no maximum.  All uses changed.
79003         Add member dsts_seen.
79004         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
79005         not being INT_MAX.
79006         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
79007         Use pc_rels_seen to decide whther a date is absolute.
79008
79009         * lib/getdate.y (number): Don't overwrite year.
79010         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
79011         check.
79012
79013 2005-04-02  Simon Josefsson  <jas@extundo.com>
79014
79015         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
79016         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
79017
79018 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
79019
79020         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
79021         where no absolute path name can be longer than PATH_MAX.
79022
79023 2005-03-27  Jim Meyering  <jim@meyering.net>
79024
79025         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
79026
79027 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
79028
79029         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
79030         "one's complement" -> "ones' complement" in comment, as per Knuth.
79031         "value of type" -> "type or expression" in comment.
79032         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
79033
79034 2005-03-26  Jim Meyering  <jim@meyering.net>
79035
79036         Comment nits.
79037         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
79038         Correct typos: s/or/of/.
79039
79040 2005-03-26  Jim Meyering  <jim@meyering.net>
79041
79042         * modules/check-include-files: Move to ../ and rename to...
79043         * check-module: ...this.
79044
79045 2005-03-25  Jim Meyering  <jim@meyering.net>
79046
79047         * modules/xvasprintf (Files): Add xalloc.h.
79048
79049 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
79050
79051         * modules/gettext (Files): config/config.rpath ->
79052         build-aux/config.rpath
79053         * modules/iconv (Files): Likewise.
79054         Problem reported by Oskar Liljeblad.
79055
79056 2005-03-23  Jim Meyering  <jim@meyering.net>
79057
79058         * modules/check-include-files: New script to check for
79059         missing dependencies, multiple includes, etc.
79060
79061         * modules/c-strtold (Depends-on): Add xalloc.
79062         * modules/c-strtod (Depends-on): Add xalloc.
79063         * modules/hash (Depends-on): Add xalloc.
79064         (Files): Remove lib/xalloc.h.
79065
79066         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
79067         * modules/userspec (Files): Add lib/inttostr.h.
79068
79069 2005-03-23  Jim Meyering  <jim@meyering.net>
79070
79071         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
79072
79073 2005-03-22  Jim Meyering  <jim@meyering.net>
79074
79075         * modules/stat-macros: New module.
79076         * modules/canonicalize, modules/euidaccess, modules/file-type,
79077         * modules/filemode, modules/lchown, modules/makepath,
79078         * modules/rmdir, modules/stat: Depend on new stat-macros module
79079         rather than listing lib/stat-macros.h manually.
79080         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
79081
79082 2005-03-22  Jim Meyering  <jim@meyering.net>
79083
79084         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
79085
79086 2005-03-22  Bruno Haible  <bruno@clisp.org>
79087
79088         * config/srclist.txt: Replace target directory 'config' with
79089         'build-aux'.
79090         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
79091         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
79092         ../build-aux/.
79093
79094 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
79095
79096         * modules/chdir-long (Depends-on): Add mempcpy.
79097
79098         * modules/acl, modules/backupfile, modules/c-strtod,
79099         modules/c-strtold, modules/canon-host, modules/canonicalize,
79100         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
79101         modules/exclude, modules/exitfail, modules/file-type,
79102         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
79103         modules/getdate, modules/getline, modules/getpagesize,
79104         modules/getpass, modules/getugroups, modules/group-member,
79105         modules/hard-locale, modules/hash, modules/human, modules/idcache,
79106         modules/inttostr, modules/long-options, modules/makepath,
79107         modules/md5, modules/memcasecmp, modules/memcoll,
79108         modules/modechange, modules/mountlist, modules/path-concat,
79109         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
79110         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
79111         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
79112         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
79113         modules/strftime, modules/strndup, modules/strverscmp,
79114         modules/timespec, modules/unlocked-io, modules/userspec,
79115         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
79116         modules/yesno:
79117         Remove lib_SOURCES line from Makefile.am section, as this is now
79118         done automatically by the corresponding Autoconf macro.
79119
79120 2005-03-21  Jim Meyering  <jim@meyering.net>
79121
79122         Changes imported from coreutils.
79123
79124         * lib/cycle-check.c: Don't include xalloc.h.
79125
79126         * lib/path-concat.c: Don't include assert.h.
79127         (path_concat): Remove assertion that would have triggered
79128         for ABASE starting with more than one slash.
79129         Reported by Andreas Schwab.
79130
79131         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
79132         properly when ABASE is an absolute file name.
79133         Correct the description of this function.
79134         Include <assert.h>.
79135         Add an assertion and a test driver.
79136         This fixes a bug introduced on 2004-07-02.
79137         Andreas Schwab reported the resulting failure of cp --parents:
79138         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
79139
79140 2005-03-21  Jim Meyering  <jim@meyering.net>
79141
79142         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
79143         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
79144
79145 2005-03-21  Jim Meyering  <jim@meyering.net>
79146         and  Paul Eggert  <eggert@cs.ucla.edu>
79147
79148         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
79149         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
79150         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
79151         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
79152         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
79153         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
79154         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
79155         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
79156         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
79157         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
79158         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
79159         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
79160         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
79161         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
79162         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
79163         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
79164         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
79165         for these modules.
79166
79167 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
79168
79169         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
79170         (which shouldn't happen), generate nothing instead of returning 0
79171         immediately, so that nstrftime (NULL, ...) doesn't return 0.
79172
79173 2005-03-16  Bruno Haible  <bruno@clisp.org>
79174
79175         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
79176         HAVE_LONGLONG_64BIT.
79177
79178 2005-03-16  Bruno Haible  <bruno@clisp.org>
79179
79180         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
79181         HAVE_LONGLONG_64BIT.
79182
79183 2005-03-16  Bruno Haible  <bruno@clisp.org>
79184
79185         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
79186         HAVE_LONGLONG_64BIT.
79187
79188 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79189
79190         * lib/strftime.c (my_strftime): Prepend space to format so that we can
79191         reliably distinguish strftime failure from empty output on POSIX
79192         hosts.
79193
79194 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79195
79196         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
79197         (iconv_string): Don't guess a size-zero buffer, as that might cause
79198         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
79199         result would be 'too large', where 'too large' is (heuristically)
79200         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
79201         overflow concerns.  This will prevent some unwanted malloc failures
79202         when the inputs are very large.
79203
79204 2005-03-15  Karl Berry  <karl@gnu.org>
79205
79206         * config/srclist.txt (config.rpath): from gettext.
79207         * config/config.rpath: update.
79208
79209 2005-03-15  Bruno Haible  <bruno@clisp.org>
79210
79211         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
79212         to 'negate'.
79213
79214         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
79215         variable.
79216
79217         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
79218         results.
79219
79220 2005-03-14  Simon Josefsson  <jas@extundo.com>
79221
79222         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
79223         <fx@gnu.org>.
79224
79225 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
79226
79227         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
79228         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
79229         intprops.h.
79230         * lib/strtol.c: Likewise.
79231
79232 2005-03-14  Jim Meyering  <jim@meyering.net>
79233
79234         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
79235         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
79236         to be nonzero so that we (and caller) can detect the difference
79237         between a valid zero-length expansion and an error return, even
79238         when the underlying strftime fails before writing anything into
79239         that location.
79240
79241 2005-03-14  Bruno Haible  <bruno@clisp.org>
79242
79243         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
79244         Update from GNU gettext 0.14.3.
79245
79246 2005-03-10  Jim Meyering  <jim@meyering.net>
79247
79248         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
79249
79250 2005-03-10  Jim Meyering  <jim@meyering.net>
79251
79252         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
79253         so that this module works on systems without fchdir.
79254
79255 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
79256
79257         Factor int-properties macros into a single file, except for
79258         glibc-related files.
79259         * lib/intprops.h: New file.
79260         * lib/getloadavg.c: Include it instead of limits.h.
79261         (INT_STRLEN_BOUND): Remove.
79262         * lib/human.c: Include intprops.h.
79263         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
79264         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
79265         302/1000.
79266         * lib/inttostr.h: Include intprops.h instead of limits.h.
79267         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
79268         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
79269         for consistency with intprops.h.
79270         (time_t_is_integer, twos_complement_arithmetic): Use them.
79271         * lib/sig2str.h: Include <signal.h>, intprops.h.
79272         (INT_STRLEN_BOUND): Remove.
79273         * lib/strftime.c (TYPE_SIGNED): Remove.
79274         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
79275         * lib/strtol.c: Adjust comments to match intprops.h.
79276         * lib/userspec.c: Include intprops.h.
79277         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
79278         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
79279         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
79280         instead of rolling our own expressions.
79281         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
79282
79283         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
79284         instead of int.
79285         (my_strftime): Do not mishandle years close to INT_MAX, by doing
79286         the right thing even if adding 1900 would overflow.  Similarly
79287         for tm_mon + 1 and tm_yday + 1.
79288         Make %Y always equivalent to %C%y, and similarly for %G and %g.
79289         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
79290         (DO_SIGNED_NUMBER): New macro.
79291         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
79292
79293 2005-03-07  Bruno Haible  <bruno@clisp.org>
79294
79295         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
79296
79297 2005-03-07  Bruno Haible  <bruno@clisp.org>
79298
79299         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
79300
79301 2005-03-04  Derek R. Price  <derek@ximbiot.com>
79302
79303         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
79304         (func_import): Only replace files via --import when they have actually
79305         changed.
79306
79307 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79308
79309         * m4/mmap-anon.m4: New file.
79310         * m4/pagealign_alloc.m4: New file.
79311
79312 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79313             Bruno Haible  <bruno@clisp.org>
79314
79315         * modules/pagealign_alloc: New file.
79316         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
79317
79318 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79319             Bruno Haible  <bruno@clisp.org>
79320
79321         * lib/pagealign_alloc.h: New file.
79322         * lib/pagealign_alloc.c: New file.
79323
79324 2005-03-03  Bruno Haible  <bruno@clisp.org>
79325
79326         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
79327         Use an all-permissive copyright notice, recommended by RMS.
79328
79329 2005-03-02  Bruno Haible  <bruno@clisp.org>
79330
79331         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
79332         of AIX, the replacement has to be done only after <string.h> is
79333         included, therefore not in config.h. stpncpy.h does the replacement,
79334         and stpncpy.c uses it.
79335
79336 2005-03-02  Bruno Haible  <bruno@clisp.org>
79337
79338         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
79339         stpncpy.c uses it.
79340
79341 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79342
79343         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
79344         The workaround isn't strictly needed for POSIX conformance, and
79345         it's too much of a pain to configure and maintain.  We'll ask
79346         people to fix their kernels instead.
79347         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
79348         (NANOSLEEP_BUG_WORKAROUND): Remove.
79349         (xnanosleep): Remove the workaround.
79350
79351 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79352
79353         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
79354         Reported by Derek Price.
79355         (Include): Add "timespec.h".
79356
79357         * modules/xnanosleep (Depends-on): Remove gethrxtime.
79358
79359 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79360
79361         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
79362         to detect nanosleep bug.
79363
79364 2005-03-01  Bruno Haible  <bruno@clisp.org>
79365
79366         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
79367
79368 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79369
79370         * modules/gethrxtime: New file.
79371         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
79372         (Depends-on): Add gethrxtime.
79373         (configure.ac): Add gl_XNANOSLEEP.
79374         (Makefile.am): Remove lib_SOURCES line.
79375
79376 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79377
79378         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
79379         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
79380
79381 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79382
79383         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
79384         * lib/timespec.h (gettime): Return void, since it always
79385         succeeds now.  All uses changed.
79386         * lib/gettime.c (gettime): Likewise.
79387         [HAVE_NANOTIME]: Prefer nanotime.
79388         Assume gettimeofday succeeds, as POSIX requires.
79389         Assime time () succeeds, since other code already does.
79390         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
79391         (timespec_subtract): Remove.
79392         (NANOSLEEP_BUG_WORKAROUND): New constant.
79393         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
79394         things considerably.  Use it only on GNU/Linux hosts, since the
79395         workaround shouldn't be needed elsewhere.
79396
79397 2005-02-24  Bruno Haible  <bruno@clisp.org>
79398
79399         * modules/gettext (Files): Add m4/glibc2.m4.
79400
79401 2005-02-24  Bruno Haible  <bruno@clisp.org>
79402
79403         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
79404         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
79405         * m4/progtest.m4:
79406         Update from GNU gettext 0.14.2.
79407         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
79408
79409 2005-02-24  Bruno Haible  <bruno@clisp.org>
79410
79411         * lib/localcharset.c: Update from GNU gettext 0.14.2.
79412         * lib/config.charset: Update from GNU gettext 0.14.2.
79413
79414 2005-02-24  Bruno Haible  <bruno@clisp.org>
79415
79416         * lib/gettext.h: Update from GNU gettext 0.14.2.
79417
79418 2005-02-23  Simon Josefsson  <jas@extundo.com>
79419
79420         * m4/iconvme.m4: New file.
79421
79422 2005-02-23  Jim Meyering  <jim@meyering.net>
79423
79424         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
79425         change.
79426         Thanks to Bruno Haible for catching it.
79427
79428 2005-02-22  Simon Josefsson  <jas@extundo.com>
79429
79430         * modules/iconvme: New file.
79431
79432         * MODULES.html.sh: Add iconvme.
79433
79434 2005-02-22  Simon Josefsson  <jas@extundo.com>
79435
79436         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
79437
79438 2005-02-22  Simon Josefsson  <jas@extundo.com>
79439
79440         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
79441
79442 2005-02-22  Jim Meyering  <jim@meyering.net>
79443
79444         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
79445         s/ifndef/ifdef/.
79446
79447 2005-02-20  Neil Conway  <neilc@samurai.com>
79448
79449         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
79450         returned by OSX/Darwin if the specified buffer is not large
79451         enough for the hostname.
79452
79453 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79454
79455         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
79456         pass it to _help, otherwise the latter coredumps trying to
79457         dereference state.root_argp.
79458
79459 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79460
79461         * modules/chdir-long (Depends-on): Add memrchr.
79462         * modules/memrchr (Files): Add lib/memrchr.h.
79463         (Include): "memrchr.h".
79464
79465 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79466
79467         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
79468
79469 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79470
79471         * lib/memrchr.h: New file.
79472         * lib/chdir-long.c: Include it.
79473         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
79474         Don't bother including stddef.h.
79475
79476 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
79477
79478         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
79479         inclusion.
79480         Include <sys/types.h>, for dev_t.
79481         (ME_DUMMY, ME_REMOTE): Move from here....
79482         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
79483         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
79484         Dmitry V. Levin.
79485         Include mountlist.h first, to test the interface.
79486
79487 2005-01-29  Bruno Haible  <bruno@clisp.org>
79488
79489         * lib/progname.c (program_name): Initialize.
79490         Needed when linking statically on MacOS X.
79491
79492 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79493
79494         Sync from coreutils.
79495         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
79496         (Depends-on): Add c-strtod.
79497         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
79498
79499 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79500
79501         Sync from coreutils.
79502         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
79503
79504         Remove files that are specific to coreutils.
79505         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
79506
79507 2005-01-28  Bruno Haible  <bruno@clisp.org>
79508
79509         * modules/javacomp: New file.
79510         * MODULES.html.sh (Java): Add javacomp.
79511
79512 2005-01-28  Bruno Haible  <bruno@clisp.org>
79513
79514         * m4/javacomp.m4: New file, from GNU gettext.
79515
79516 2005-01-28  Bruno Haible  <bruno@clisp.org>
79517
79518         * lib/javacomp.sh.in: New file, from GNU gettext.
79519         * lib/javacomp.h: New file, from GNU gettext.
79520         * lib/javacomp.c: New file, from GNU gettext.
79521
79522 2005-01-26  Simon Josefsson  <jas@extundo.com>
79523
79524         * lib/gai_strerror.c: Use GPL in header.
79525
79526 2005-01-26  Bruno Haible  <bruno@clisp.org>
79527
79528         * modules/javaexec: New file.
79529         * MODULES.html.sh (Java): Add javaexec.
79530
79531 2005-01-26  Bruno Haible  <bruno@clisp.org>
79532
79533         * m4/javaexec.m4: New file, from GNU gettext.
79534
79535 2005-01-26  Bruno Haible  <bruno@clisp.org>
79536
79537         * lib/javaexec.sh.in: New file, from GNU gettext.
79538         * lib/javaexec.h: New file, from GNU gettext.
79539         * lib/javaexec.c: New file, from GNU gettext.
79540
79541 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79542
79543         * modules/lchown (Depends-on): Remove lchown.h
79544
79545 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79546
79547         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
79548         must be defined if the header file was not found, in order
79549         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
79550
79551 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79552
79553         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
79554         initializers for struct pentry_state.
79555         (__argp_error): Check return value of __asprintf
79556         (__argp_failure): Translate error message
79557
79558         * lib/argp-parse.c: Removed braces around the expansion of N_()
79559
79560 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79561
79562         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
79563         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
79564         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
79565         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
79566         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
79567         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
79568         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
79569         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
79570         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
79571         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
79572         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
79573         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
79574         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
79575         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
79576         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
79577         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
79578         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
79579         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
79580         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
79581         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
79582         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
79583         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
79584         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
79585         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
79586         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
79587         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
79588         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
79589         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
79590         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
79591         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
79592         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
79593         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
79594         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
79595         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
79596         xstrtol.m4, xstrtoumax.m4, yesno.m4:
79597         Use an all-permissive copyright notice, recommended by RMS.
79598
79599 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
79600
79601         * modules/chdir-long (Depends-on): Remove mempcpy.
79602
79603 2005-01-21  Jim Meyering  <jim@meyering.net>
79604
79605         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
79606         same value as for Solaris 9.
79607
79608         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
79609         component length.  This included changing the parameter to be
79610         of type `char *' rather than `char const *'.
79611         * lib/chdir-long.h (chdir_long): Update prototype.
79612
79613         * lib/openat.c (fdopendir, fstatat): New functions.
79614         * lib/openat.h: Include headers required for use of DIR and struct
79615         stat.
79616         [AT_SYMLINK_NOFOLLOW]: Define.
79617         (fdopendir, fstatat): Add prototypes.
79618
79619 2005-01-21  Bruno Haible  <bruno@clisp.org>
79620
79621         * modules/classpath: New file.
79622         * MODULES.html.sh (Java): Add classpath.
79623
79624 2005-01-21  Bruno Haible  <bruno@clisp.org>
79625
79626         * lib/classpath.h: New file, from GNU gettext.
79627         * lib/classpath.c: New file, from GNU gettext.
79628
79629 2005-01-20  Simon Josefsson  <jas@extundo.com>
79630
79631         * modules/version-etc-fsf: New file.
79632
79633 2005-01-20  Simon Josefsson  <jas@extundo.com>
79634
79635         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
79636         * lib/version-etc.c: Remove version_etc_copyright.
79637         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
79638         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
79639
79640 2005-01-20  Simon Josefsson  <jas@extundo.com>
79641
79642         * lib/base64.h (isbase64): Add.
79643
79644         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
79645         using a unsigned prototype, don't inline.
79646         (base64_decode): Use it.
79647
79648 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79649
79650         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
79651         it.
79652
79653 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79654
79655         * lib/save-cwd.c (save_cwd): Remove code to support the case
79656         where fchdir is missing or flaky.
79657
79658 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79659
79660         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
79661
79662 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
79663
79664         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
79665         AC_LIBSOURCES now does this.
79666         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
79667         with new ullong_max module.
79668
79669 2005-01-19  Bruno Haible  <bruno@clisp.org>
79670
79671         * modules/sh-quote: New file.
79672         * MODULES.html.sh (Executing programs): Add sh-quote.
79673
79674 2005-01-19  Bruno Haible  <bruno@clisp.org>
79675
79676         * lib/sh-quote.h: New file, from GNU gettext.
79677         * lib/sh-quote.c: New file, from GNU gettext.
79678
79679 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79680
79681         Merge from coreutils.
79682         * m4/ullong_max.m4: New file.
79683         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
79684         (gl_MACROS): Assume localeconv exists.
79685
79686 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79687
79688         Merge changes from coreutils, as described below in several
79689         changelogs dated today.
79690
79691         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
79692         (O_DIRECTORY): Remove; not needed here, since "." must be
79693         a directory.  All uses removed.
79694         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
79695         universal on Suns, and we also need to test for IRIX.
79696         Revamp code to use 'if' rather than '#if'.
79697         Avoid unnecessary comparison of cwd->desc to 0.
79698
79699         * lib/utimens.c (futimens): Robustify the previous patch, by checking
79700         for known valid error numbers rather than observed invalid ones.
79701
79702 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79703
79704         * modules/ullong_max: New file.
79705
79706         * modules/chdir-long, modules/openat: New files.
79707         * modules/save-cwd (Depends-on): Depend on chdir-long.
79708         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
79709
79710 2005-01-18  Jim Meyering  <jim@meyering.net>
79711
79712         Merge from coreutils.
79713         * m4/chdir-long.m4, m4/openat.m4: New files.
79714         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
79715         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
79716         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
79717         is sane and DOES follow symlinks.  Besides, testing 20 different
79718         systems found no broken chown implementations.
79719         Prompted by a change in rsync's copy of this macro.
79720         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
79721
79722         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
79723
79724         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
79725         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
79726         NULL-means-set-to-current-time semantics.
79727         Remove temporary file immediately, rather than waiting
79728         for configure's at-exit trap code to do it.
79729
79730 2005-01-18  Jim Meyering  <jim@meyering.net>
79731
79732         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79733
79734         * lib/utimens.c (futimens): Account for the fact that futimes
79735         can also fail with errno == ENOSYS or errno == ENOENT.
79736         Patch from Dmitry V. Levin.
79737
79738         Change the name of the robust chdir function from chdir to chdir_long.
79739         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
79740         (restore_cwd): Use chdir_long, not chdir.
79741         * lib/chdir-long.c: Renamed from chdir.c.
79742         * lib/chdir-long.h: Renamed from chdir.h.
79743         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
79744         Hurd.
79745
79746 2005-01-18  Bruno Haible  <bruno@clisp.org>
79747
79748         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
79749         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
79750         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
79751         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
79752         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
79753         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
79754         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
79755         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
79756         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
79757         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
79758         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
79759         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
79760         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
79761         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
79762         Use an all-permissive copyright notice, recommended by RMS.
79763
79764 2005-01-18  Bob Proulx  <bob@proulx.com>
79765
79766         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
79767         simplify offsetof() macro construct to avoid compile failure with
79768         native HP-UX 11.0 ANSI C compiler.
79769
79770 2005-01-17  Bruno Haible  <bruno@clisp.org>
79771
79772         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
79773         redundant because stpncpy.m4 takes care of it.
79774
79775 2005-01-17  Bruno Haible  <bruno@clisp.org>
79776
79777         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
79778
79779 2005-01-17  Bruno Haible  <bruno@clisp.org>
79780
79781         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
79782         used.
79783
79784 2005-01-17  Bruno Haible  <bruno@clisp.org>
79785
79786         * lib/fwriteerror.h (fwriteerror): Change specification to include
79787         fclose.
79788         * lib/fwriteerror.c: Include <stdbool.h>.
79789         (fwriteerror): At the end, close the file stream. Record whether
79790         stdout was already closed.
79791
79792 2005-01-17  Bruno Haible  <bruno@clisp.org>
79793
79794         * lib/execute.c (environ): Declare if needed.
79795         * lib/pipe.c (environ): Likewise.
79796         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
79797
79798 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79799
79800         * modules/argp: Depend on vsnprintf
79801
79802 2005-01-10  Jim Meyering  <jim@meyering.net>
79803
79804         * modules/closeout (Depends-on): Add atexit.
79805
79806 2005-01-06  Bruno Haible  <bruno@clisp.org>
79807
79808         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
79809
79810 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79811
79812         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
79813         definitions to be after all include files, to avoid collisions.
79814         Problem reported by Bob Proulx.
79815
79816 2005-01-04  Jim Meyering  <jim@meyering.net>
79817
79818         Changes imported from coreutils.
79819         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
79820         as the mkstemp template, use a temporary directory and an
79821         8.3-friendly template to avoid trouble on systems like DJGPP.
79822         Reported by Juan M. Guerrero via Stepan Kasal.
79823         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
79824         close. Remove the temporary directory right away, rather than waiting
79825         for configure's at-exit trap code to do it.
79826         Suggestion from Stepan Kasal.
79827
79828 2005-01-01  Simon Josefsson  <jas@extundo.com>
79829
79830         * gnulib-tool: Print #include directives when --import'ing.
79831
79832 2004-12-28  Simon Josefsson  <jas@extundo.com>
79833
79834         * tests/test-base64.c: Include required header files.  Remove
79835         unused variables.
79836
79837 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79838
79839         * modules/error (Depends-on): Remove gettext.
79840
79841 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79842
79843         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
79844         not needed.  This removes a dependency on the gettext module.
79845         [defined _LIBC]: Do not include <libintl.h>; not needed.
79846
79847 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79848
79849         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
79850         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
79851
79852 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79853
79854         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
79855         HAVE_DECL_STRTOLD.
79856
79857 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79858
79859         * modules/getdate (Depends-on): Remove alloca-opt.
79860
79861 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79862
79863         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
79864
79865 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79866
79867         * lib/argp-parse.c: Include <stddef.h>.
79868         (alignof, alignto): New macros.
79869         (parser_init): Don't assume that void * is aligned sufficiently
79870         for struct option.
79871
79872         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
79873         need to extend the stack.
79874         (YYINITDEPTH): New macro, so that the initial stack isn't overly
79875         large.
79876
79877 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79878
79879         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
79880
79881 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79882
79883         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
79884         (2004-10-24) change.  Apparently this was a false alarm.
79885
79886         * modules/getdate: Depend on alloca-opt, not alloca.
79887
79888 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79889
79890         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
79891         Remove now-obsolete comment about AIX.
79892         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
79893         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
79894         (YYMAXDEPTH): New macro.
79895
79896 2004-12-18  Simon Josefsson  <jas@extundo.com>
79897
79898         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
79899
79900 2004-12-18  Bruno Haible  <bruno@clisp.org>
79901
79902         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
79903
79904 2004-12-18  Bruno Haible  <bruno@clisp.org>
79905
79906         * lib/fatal-signal.c (fatal_signals): Make non-const.
79907         (init_fatal_signals): New function.
79908         (uninstall_handlers, install_handlers): Ignore signals that were set to
79909         SIG_IGN.
79910         (at_fatal_signal): Call init_fatal_signals.
79911         (init_fatal_signal_set): Likewise. Ignore signals that were set to
79912         SIG_IGN.
79913         Reported by Paul Eggert.
79914
79915 2004-12-18  Bruno Haible  <bruno@clisp.org>
79916
79917         * doc/alloca.texi: New file.
79918         * doc/alloca-opt.texi: New file.
79919
79920 2004-12-17  Jim Meyering  <jim@meyering.net>
79921
79922         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
79923         Otherwise, install-sh could exit with improper exit status when
79924         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
79925
79926 2004-12-16  Simon Josefsson  <jas@extundo.com>
79927
79928         * tests/test-base64.c: Add license.
79929
79930 2004-12-15  Stepan Kasal  <address@hidden>
79931
79932         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
79933
79934 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
79935
79936         * modules/getcwd (Files): Add m4/d-ino.m4.
79937         Suggested by Mark D. Baushke.
79938
79939 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79940
79941         * lib/getdate.y (textint): New member "negative".
79942         (time_zone_hhmm): New function.
79943         Expect 14 shift-reduce conflicts, not 13.
79944         (o_colon_minutes): New rule.
79945         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
79946         (yylex): Set the "negative" member of signed numbers.
79947
79948 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79949
79950         * doc/getdate.texi (Time of day items, Time zone items):
79951         Describe new formats +00:00, UTC+00:00.
79952
79953 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79954
79955         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
79956         spurious "-l"s.  Problem reported by Stepan Kasal.
79957
79958 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
79959
79960         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
79961         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
79962
79963 2004-12-04  Simon Josefsson  <jas@extundo.com>
79964
79965         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
79966         Vandoorselaere <yoann@prelude-ids.org>.
79967
79968 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79969
79970         Changes imported from coreutils.
79971         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
79972         exist.
79973         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
79974
79975 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79976
79977         Changes imported from coreutils.
79978         * lib/hard-locale.c: Assume <locale.h> exists.
79979         Include "strdup.h".
79980         (GLIBC_VERSION): New macro.
79981         (hard_locale): Assume setlocale exists.
79982         Rewrite to avoid #ifdef.
79983         Use strdup rather than malloc + strcpy.
79984         * lib/human.c: Assume <locale.h> exists.
79985         (human_readable): Assume localeconv exists.
79986
79987 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79988
79989         * modules/hard-locale (Depends-on): Add strdup.
79990
79991 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
79992
79993         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
79994         convert T2, not T.  (Imported from libc.)
79995
79996 2004-11-30  Simon Josefsson  <jas@extundo.com>
79997
79998         * modules/restrict (License): Change to LGPL.
79999
80000 2004-11-30  Simon Josefsson  <jas@extundo.com>
80001
80002         * m4/restrict.m4: Add copyright and copying conditions.
80003
80004 2004-11-30  Simon Josefsson  <jas@extundo.com>
80005
80006         * m4/base64.m4: New file.
80007
80008 2004-11-30  Simon Josefsson  <jas@extundo.com>
80009
80010         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
80011         base64.
80012
80013         * tests/test-base64.c: New file.
80014
80015         * modules/base64: New file.
80016
80017 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
80018
80019         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
80020         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
80021
80022         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
80023
80024 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
80025
80026         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
80027         (__getcwd.c): Don't restore errno; glibc doesn't.
80028         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
80029         first, falling back to our code only if its results look suspicious.
80030         Ensure that the resulting buffer is only as large as necessary.
80031
80032         * lib/readutmp.c: Include readutmp.h first.
80033         Include <errno.h>, since readutmp.h no longer does that.
80034         * lib/readutmp.h: Don't include <errno.h>,
80035         <sys/param.h>, <time.h>; not needed to establish interface.
80036         (errno): Remove decl.
80037         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
80038         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
80039         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
80040
80041 2004-11-28  Simon Josefsson  <jas@extundo.com>
80042
80043         * lib/base64.h, base64.c: New file.
80044
80045 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
80046
80047         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
80048
80049 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
80050
80051         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
80052         (Depends-on): Remove pathmax, same.  Add mempcpy.
80053         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
80054         (Makefile.am): Append getcwd.h to lib_SOURCES.
80055         (Include): Add getcwd.h.
80056         (Maintainer): Change from Jim Meyering to "all, glibc",
80057         since getdate now uses intended-for-glibc code.
80058         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
80059         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
80060
80061 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80062
80063         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
80064         HP's ANSI C compiler.
80065         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
80066         Declaring int functions causes warnings on some modern systems and
80067         shouldn't be needed to compile on ancient ones.
80068         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
80069         defined.
80070
80071         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
80072         with the following changes.
80073         (__set_errno): Parenthesize properly.
80074         Include <stdbool.h>.
80075         (MIN, MAX, MATCHING_INO): New macros.
80076         (__getcwd): Define with prototype, not K&R form.
80077         Use heuristics to allocate default buffer on stack if possible.
80078         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
80079         behavior, and to avoid the PATH_MAX limit when computing
80080         ../../../../...
80081         Use MATCHING_INO to compare inode number to file.
80082         Check for arithmetic overflow in size calculations.
80083         Fix bug in reallocation of dot array that caused getcwd to fail
80084         on directories nested deeper than 75.
80085         Be more careful about saving errno on error.
80086         Do not use realloc; use only free+malloc, as this is a bit
80087         more flexible and avoids a needless copy operation.
80088         Do not inspect st_dev and st_ino for symbolic links; POSIX
80089         doesn't specify the latter.
80090         Check for closedir errors.
80091         Avoid needless casts.
80092         Use "#ifdef weak_alias" around weak_alias, to be like other
80093         glibc code.
80094         The following changes to getcwd.c have effect only when used in
80095         gnulib; they have no effect inside glibc proper.
80096         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
80097         as alloca isn't used.
80098         (alloca, __alloca): Likewise.
80099         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
80100         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
80101         unconditionally, as gnulib assumes C89 or better.
80102         Do not include <sys/param.h>.
80103         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
80104         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
80105         better.
80106         (NULL) [!defined NULL]: Remove; we assume C89 or better.
80107         Include <dirent.h> in a way that is compatible with modern Autoconf.
80108         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
80109         New macros, if not already defined.
80110         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
80111         Use "_LIBC", not "defined _LIBC", for consistency.
80112         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
80113         a mempcpy module.
80114         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
80115         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
80116         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
80117         credit only to Jim Meyering and adjust the copyright dates.
80118         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
80119         <stdlib.h>, <unistd.h>, "pathmax.h".
80120         Instead, include "xgetcwd.h" (first) and "getcwd.h".
80121         (INITIAL_BUFFER_SIZE): Remove.
80122         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
80123
80124 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80125
80126         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
80127         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
80128         Use the _ONCE methods, for efficiency.
80129         Check for fcntl.h.  In test program, include <errno.h>
80130         and <fcntl.h> if available.  Remove old K&R cruft from
80131         test program.  Check for common errors in GNU/Linux,
80132         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
80133         don't do AC_LIBOBJ, as that's getcwd.m4's job.
80134         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
80135         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
80136         name accordingly.
80137         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
80138         accommodate new getcwd.c.
80139         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
80140         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
80141         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
80142         that's all we need now.
80143
80144 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80145
80146         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
80147         argp-parse.c depends on getopt internals, that means we should
80148         always use our getopt, to be on the safe side.
80149         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
80150         order not to spoil the result of an eventual previous invocation
80151         of gl_GETOPT_SUBSTITUTE.
80152
80153 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80154
80155         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
80156         redefinition warnings. To avoid them, include the defines
80157         in `#if !defined __need_getopt ... #endif'. The only place
80158         where __getopt_argv_const is used is in definitions
80159         of getopt_long and getopt_long_only below, which are as well
80160         protected by `#ifndef __need_getopt'.
80161         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
80162         __need_getopt after including <stdio.h> and <unistd.h> These
80163         headers might have defined it.
80164
80165 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80166
80167         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
80168
80169 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80170
80171         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
80172         (futimens): New function, which uses futimes if available.
80173         (futimens, utimens): Support timespec==NULL, with same semantics
80174         as utime and utimens.
80175         * lib/utimens.h (futimens): New decl.
80176
80177 2004-11-23  Jim Meyering  <jim@meyering.net>
80178
80179         * lib/getopt_.h: Remove trailing blanks.
80180
80181 2004-11-23  Jim Meyering  <jim@meyering.net>
80182
80183         * lib/__fpending.c: Add comment.
80184
80185 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
80186
80187         * modules/canonicalize (Depends-on): Add xreadlink.
80188         Problem reported by James Youngman.
80189
80190 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
80191
80192         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
80193         New macros.
80194         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
80195         optopt): Use them instead of invoking ## directly; otherwise, the
80196         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
80197
80198 2004-11-19  Bruno Haible  <bruno@clisp.org>
80199
80200         * lib/strtok_r.c: Move comments from here...
80201         * lib/strtok_r.h: ... to here.
80202
80203 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80204
80205         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
80206         implementations that mishandle size_t overflow.
80207
80208 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80209
80210         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
80211         might fail.  Problem reported by Yoann Vandoorselaere.
80212         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
80213         implementations that mishandle size_t overflow.
80214
80215 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80216
80217         * modules/canon-host (Depends-on): Add strdup.
80218
80219 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80220
80221         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
80222
80223 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80224
80225         * lib/canon-host.c: Include "strdup.h".
80226         (canon_host): Use getaddrinfo if available, so that IPv6 works.
80227         Use strdup instead of malloc/strcpy to duplicate strings.
80228
80229         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
80230         (human_space_before_unit): New constant.
80231         * lib/human.c (human_readable): Support it.
80232
80233         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
80234         (xgetcwd): Set errno correctly when failing.
80235         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
80236         the failure is actually due to a PATH_MAX problem.
80237
80238         Further getopt changes to make it more likely that glibc will
80239         buy the changes back.
80240         * lib/getopt.c (POSIXLY_CORRECT): New constant.
80241         (getopt): Use it, so to preserve glibc semantic
80242         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
80243         when compiling for libc.
80244         * lib/getopt_.h (__getopt_argv_const): Bring it back.
80245         (getopt_long, getopt_long_only): Use it.
80246
80247         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80248         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
80249         (getopt): Argv is now char * const *, as per standard.
80250         (_getopt_internal_r, _getopt_internal): Argv is now char **,
80251         not char *__getopt_argv_const *.
80252         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80253         _getopt_long_only_r): Likewise.
80254         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
80255         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80256         _getopt_long_r, _getopt_long_only_r): Likewise.
80257         * lib/getopt_.h (__getopt_argv_const): Remove.
80258         (getopt): Argv is now char * const *, as per standard.
80259
80260         * lib/getdate.y (tORDINAL): New token.
80261         (day, relunit): Allow it for relative times.
80262         (relative_time_table): Use tORDINAL for ordinals.
80263
80264 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80265
80266         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
80267         Document that "second" isn't allowed as an ordinal number.
80268
80269 2004-11-16  Jim Meyering  <jim@meyering.net>
80270
80271         * modules/closeout (Depends-on): Add fpending.
80272
80273 2004-11-15  Jim Meyering  <jim@meyering.net>
80274
80275         * lib/closeout.c: Include "__fpending.h" once again.
80276         Include <stdbool.h>.
80277         (close_stdout): Don't fail just because stdout was closed initially,
80278         since some programs don't write to stdout in the normal course of
80279         operation (other than --version and --help), and we don't want this
80280         function to make e.g. `touch file >&-' fail.
80281         But do fail if it was closed and someone has tried to write to it.
80282         E.g., `printf foo >&-' must fail.
80283
80284 2004-11-13  Jim Meyering  <jim@meyering.net>
80285
80286         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
80287
80288 2004-11-12  Simon Josefsson  <jas@extundo.com>
80289
80290         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
80291         small doc fix is still pending.
80292
80293 2004-11-11  Simon Josefsson  <jas@extundo.com>
80294
80295         * modules/strtok_r: New file.
80296
80297         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80298         strtok_r.
80299
80300 2004-11-11  Simon Josefsson  <jas@extundo.com>
80301
80302         * m4/strtok_r.m4: New file.
80303
80304         * m4/getopt.m4: Replace opterr.
80305
80306 2004-11-11  Simon Josefsson  <jas@extundo.com>
80307
80308         * lib/strtok_r.h, strtok_r.c: New file.
80309
80310 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80311
80312         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
80313         of replacing opterr, getopt, etc.  This should handle the
80314         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
80315
80316 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80317
80318         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
80319         we can stop lying to compilers about the constness of argv when we
80320         are compiled outside glibc.
80321         (getopt, getopt_long, getopt_long_only): Use it.
80322         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80323         _getopt_internal, getopt): Likewise.
80324         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80325         _getopt_long_only_r): Likewise.
80326         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80327         _getopt_long_r, _getopt_long_only_r): Likewise.
80328
80329         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
80330         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
80331         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
80332         the other external symbols.
80333         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
80334         declaration, since the above renaming now works around collisions.
80335
80336 2004-11-11  Jim Meyering  <jim@meyering.net>
80337
80338         * lib/linebreak.c: Remove trailing blanks.
80339         * lib/alloca_.h: Likewise.
80340         * lib/acosl.c: Likewise.
80341         * lib/euidaccess.c: Likewise.
80342         * lib/allocsa.h: Likewise.
80343
80344 2004-11-10  Simon Josefsson  <jas@extundo.com>
80345
80346         * m4/getaddrinfo.m4: New file.
80347
80348 2004-11-10  Simon Josefsson  <jas@extundo.com>
80349
80350         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
80351
80352 2004-11-10  Simon Josefsson  <jas@extundo.com>
80353
80354         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80355         getaddrinfo.
80356
80357         * modules/getaddrinfo: New file.
80358
80359 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80360
80361         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
80362
80363 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80364
80365         * lib/mktime.c (SHR): New macro, which is a portable
80366         substitute for >> that should work even on Crays.
80367         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
80368         Problem reported by Mark D. Baushke in
80369         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
80370         * lib/getdate.y (SHR): Likewise.
80371         (tm_diff): Use it.
80372         * lib/strftime.c (SHR): Likewise.
80373         (tm_diff): Use it.
80374         * lib/quotearg.c (struct quoting_options): Use unsigned int for
80375         quote_these_too, so that right shifts are well defined.  All uses
80376         changed.
80377
80378 2004-11-10  Jim Meyering  <jim@meyering.net>
80379
80380         Ensure that no close failure goes unreported.
80381         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
80382         return early when it seems there's nothing to flush.
80383         Don't include __fpending.h.
80384
80385 2004-11-10  Jim Meyering  <jim@meyering.net>
80386
80387         * modules/closeout (Depends-on): Remove fpending.
80388
80389 2004-11-10  Jim Meyering  <jim@meyering.net>
80390
80391         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
80392
80393 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80394
80395         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
80396         gl_FUNC_STRFTIME.
80397         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
80398         and AC_REQUIRE when possible, to avoid duplicate checks.
80399         Check for <wchar.h>.
80400
80401 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80402
80403         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
80404
80405 2004-11-09  Bruno Haible  <bruno@clisp.org>
80406
80407         * m4/sockpfaf.m4: New file.
80408
80409 2004-11-05  Bruno Haible  <bruno@clisp.org>
80410
80411         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
80412         Reported by Mark D. Baushke <mdb@cvshome.org>.
80413
80414 2004-11-04  Bruno Haible  <bruno@clisp.org>
80415
80416         2004-09-11  Bruno Haible  <bruno@clisp.org>
80417                 * allocsa.valgrind: New file.
80418         2004-02-06  Bruno Haible  <bruno@clisp.org>
80419                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
80420                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
80421                 Reported by Christopher Seip <chris.seip@hp.com>.
80422
80423 2004-11-04  Bruno Haible  <bruno@clisp.org>
80424
80425         * modules/allocsa (Files): Add lib/allocsa.valgrind.
80426         (Makefile.am): Distribute it.
80427
80428 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
80429
80430         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
80431         with errno == ERANGE if the buffer is too small.
80432         Problem reported by Mark D. Baushke.
80433
80434 2004-11-03  Albert Chin  <china@thewrittenword.com>
80435             Paul Eggert  <eggert@cs.ucla.edu>
80436
80437         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
80438         equivalent, substitute $ac_type for equivalent type rather than
80439         blindly using uint32_t *always* which won't work if uint32_t is not
80440         available.  Define _UINT32_T to work around typedef of uint32_t if
80441         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
80442         2.5.1.
80443
80444 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80445
80446         * m4/jm-macros.m4: Sync from coreutils.
80447         (gl_MACROS): Check for mbrlen, for pathchk.
80448         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
80449
80450 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80451
80452         * lib/xreadlink.c (MAXSIZE): New macro.
80453         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
80454         size does not exceed MAXSIZE.  Avoid cast.
80455         As suggested by Mark D. Baushke in
80456         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
80457         if readlink fails with buffer size just under MAXSIZE, try again
80458         with MAXSIZE.
80459
80460 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80461
80462         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
80463
80464 2004-11-02  Derek R. Price  <derek@ximbiot.com>
80465         and  Paul Eggert  <eggert@cs.ucla.edu>
80466
80467         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
80468         (get_date): Overparenthesize to avoid GCC warning.
80469
80470 2004-11-02  Bruno Haible  <bruno@clisp.org>
80471
80472         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
80473         returns void.
80474
80475 2004-11-02  Bruno Haible  <bruno@clisp.org>
80476
80477         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
80478         function returns void.
80479
80480 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80481
80482         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
80483         fflush_unlocked, flockfile, funlockfile, funlockfile,
80484         fputs_unlocked, putc_unlocked.
80485
80486 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80487
80488         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80489         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
80490         already declared.
80491
80492 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80493
80494         * modules/getdate (Files): Add doc/getdate.texi.
80495         (Depends-on): Add setenv, xalloc.
80496
80497 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80498
80499         * lib/getdate.y: Add support for TZ="foo" within a date string.
80500         Fix some bugs near time_t boundaries.  Reject dates with
80501         out-of-range components, e.g., "Sept 31".
80502         Include <stdlib.h>, "setenv.h", "xalloc.h".
80503         (ISDIGIT_LOCALE): Remove; unused.
80504         Note that the TZ and time functions used here are not reentrant.
80505         (mktime_ok, get_tz): New functions.
80506         (TZBUFSIZE): New constant.
80507         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
80508         This requires that we sometimes generate our own TZ="XXX..." setting.
80509
80510 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80511
80512         * doc/getdate.texi: New file, from coreutils with modifications for
80513         the new TZ parsing.
80514
80515 2004-10-27  Derek R. Price  <derek@ximbiot.com>
80516
80517         * lib/mktime.c (not_equal_tm): Remove redundant check.
80518
80519 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80520
80521         * modules/regex (lib_SOURCES): Add regex.c.
80522         Reported by James Youngman in
80523         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
80524
80525 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80526
80527         * lib/getdate.y: Use Bison 1.875 features, and some minor
80528         code cleanups.  This change does not affect semantics.
80529         Don't include <stdlib.h>; no longer needed.
80530         Don't include unlocked-io.h; only the "#if TEST" code uses
80531         stdio, and performance isn't crucial there.
80532         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
80533         Bison 1.875 features as described below.
80534         All uses of "PC." replaced by "pc->".
80535         (YYSTYPE): Add a forward declaration.
80536         (yylex, yyerror): Use full prototypes in forward decls.
80537         Use "%pure-parser" rather than obsolescent "%pure_parser".
80538         Use %parse-param and %lex-param instead of obsolescent
80539         YYPARSE_PARAM and YYLEX_PARAM.
80540         (meridian_table, month_and_day_table, time_units_table,
80541         relative_time_table, time_zone_table, military_table,
80542         lookup_zone, lookup_word, get_date):
80543         Use NULL instead of 0 where appropriate.
80544         (to_hour): Avoid abort (), to avoid a dependency on
80545         stdlib.h.
80546         (yyerror, yylex): Now accepts parser_control * arg.
80547         (main) [TEST]: Use '\0' rather than 0 for char.
80548
80549 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80550
80551         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
80552
80553 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80554
80555         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
80556         It's now the caller's responsibility to handle the case where
80557         !HAVE_GETPAGESIZE && !defined getpagesize.
80558
80559         * lib/mktime.c (leapyear): Arg is long int, not int.
80560
80561 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
80562
80563         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
80564
80565 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
80566
80567         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
80568         missing.  Problem reported by James Youngman.
80569
80570 2004-10-16  Simon Josefsson  <jas@extundo.com>
80571
80572         * gnulib-tool: Fix comments.  Fix parse problem.
80573         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
80574
80575 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
80576
80577         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
80578         implementation of getopt_long.  Problem reported by Alexander Taler in:
80579         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
80580
80581 2004-10-15  Bruno Haible  <bruno@clisp.org>
80582
80583         * gnulib-tool: Untabify. Initialize supplied_libname.
80584         (func_usage): More homogenous output.
80585         (func_modules_transitive_closure, func_modules_to_filelist,
80586         func_emit_lib_Makefile_am): New functions.
80587         (func_import): New function, extracted from big case statement. Use
80588         func_get_license, func_modules_transitive_closure,
80589         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
80590         opt_lgpl. Don't use test -a, as it's not portable.
80591         (func_create_testdir): Use func_modules_transitive_closure,
80592         func_modules_to_filelist, func_emit_lib_Makefile_am.
80593
80594 2004-10-15  Bruno Haible  <bruno@clisp.org>
80595
80596         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
80597
80598 2004-10-15  Bruno Haible  <bruno@clisp.org>
80599
80600         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
80601         the portions belonging to each module.
80602         Suggested by Derek Robert Price <derek@ximbiot.com>.
80603
80604 2004-10-12  Simon Josefsson  <jas@extundo.com>
80605
80606         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80607         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
80608         to real functions.
80609
80610 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80611
80612         * modules/vsnprintf: New file.
80613
80614 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80615
80616         * m4/vsnprintf.m4: New file.
80617
80618 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80619
80620         * lib/vsnprintf.h: New file.
80621         * lib/vsnprintf.c: New file.
80622
80623 2004-10-11  Bruno Haible  <bruno@clisp.org>
80624
80625         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
80626         vsnprintf.
80627
80628 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80629
80630         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
80631
80632 2004-10-07  Bruno Haible  <bruno@clisp.org>
80633
80634         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
80635         fits into the provided buffer.
80636
80637 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80638
80639         * lib/diacrit.c, diacrit.h: Add GPL notice.
80640
80641         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
80642         notice.
80643         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
80644         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
80645         This avoids a potential constant-folding bug.
80646
80647 2004-10-05  Bruno Haible  <bruno@clisp.org>
80648
80649         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
80650         for the declaration of strsep.
80651
80652 2004-10-05  Bruno Haible  <bruno@clisp.org>
80653
80654         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
80655
80656 2004-10-04  Simon Josefsson  <jas@extundo.com>
80657
80658         * modules/memmem: New file.
80659         * tests/test-memmem.c: New file.
80660         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
80661
80662 2004-10-04  Simon Josefsson  <jas@extundo.com>
80663
80664         * m4/memmem.m4: New file.
80665
80666 2004-10-04  Simon Josefsson  <jas@extundo.com>
80667
80668         * lib/memmem.h: New file.
80669         * lib/memmem.c: New file, taken from glibc.
80670
80671 2004-10-04  Simon Josefsson  <jas@extundo.com>
80672
80673         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
80674         '#ifdef USE_UNLOCKED_IO'.
80675
80676 2004-10-04  Simon Josefsson  <jas@extundo.com>
80677
80678         * config/srclist.txt: Add memmem from glibc.
80679
80680 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80681
80682         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
80683
80684         * modules/argmatch, modules/argp, modules/closeout, modules/error,
80685         modules/exclude, modules/getdate, modules/getline,
80686         modules/getndelim2, modules/getpass, modules/getpass-gnu,
80687         modules/getusershell, modules/linebuffer, modules/md5,
80688         modules/mountlist, modules/posixtm, modules/readtokens,
80689         modules/readutmp, modules/regex, modules/sha1,
80690         modules/version-etc, modules/yesno:
80691         Remove dependency on unlocked-io.
80692
80693 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80694
80695         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
80696
80697         * m4/unlocked-io.m4: Add copyright notice.
80698         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
80699
80700 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80701
80702         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
80703         * lib/xmalloc.c (xmemdup): Likewise.
80704         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
80705         XFREE): Remove these long-obsolescent macros.
80706         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
80707         * lib/xstrdup.c: Remove.
80708
80709         * lib/regex.c (re_comp): Cast gettext return value to char *,
80710         Problem reported by Martin Neitzel via Mark D. Baushke.
80711
80712 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80713
80714         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
80715         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
80716         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
80717         regex.c, sha1.c, version-etc.c, yesno.c:
80718         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
80719         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
80720         the includer's responsibility.
80721
80722         Sync from coreutils.
80723
80724         * lib/modechange.c (mode_compile): Don't decrement a pointer that
80725         points to the start of a string, as the C Standard says the
80726         resulting behavior is undefined.
80727
80728         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
80729         simple -> simple_backups, numbered_existing ->
80730         numbered_existing_backups, numbered -> numbered_backups
80731         to avoid shadowing problems.  All uses changed.
80732         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
80733         * lib/backupfile.c (check_extension, numbered_backup):
80734         Rename locals to avoid shadowing 'basename'.
80735         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
80736         once.
80737
80738         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
80739         * lib/.cvsignore: Add getopt.h.
80740
80741 2004-10-04  Bruno Haible  <bruno@clisp.org>
80742
80743         * modules/README: New file.
80744         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
80745         not a module.
80746
80747 2004-10-02  Jim Meyering  <jim@meyering.net>
80748
80749         * lib/dirfd.h, getpagesize.h: Add copyright notice.
80750
80751 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80752
80753         * modules/strsep: New file.
80754
80755 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80756
80757         * m4/strsep.m4: New file.
80758
80759 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80760
80761         * lib/strsep.h: New file.
80762         * lib/strsep.c: New file.
80763
80764 2004-10-01  Simon Josefsson  <jas@extundo.com>
80765
80766         * lib/snprintf.c (snprintf): Handle size==0.
80767
80768 2004-10-01  Simon Josefsson  <jas@extundo.com>
80769             Bruno Haible  <bruno@clisp.org>
80770
80771         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
80772         (snprintf): Declare 'args'.
80773
80774 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
80775
80776         * lib/snprintf.c: Remove comments as to why each header is needed.
80777
80778 2004-10-01  Bruno Haible  <bruno@clisp.org>
80779
80780         * MODULES.html.sh: Add strsep.
80781
80782 2004-09-30  Simon Josefsson  <jas@extundo.com>
80783
80784         * modules/snprintf: New file.
80785
80786 2004-09-30  Simon Josefsson  <jas@extundo.com>
80787
80788         * m4/snprintf.m4: New file.
80789
80790 2004-09-30  Simon Josefsson  <jas@extundo.com>
80791
80792         * lib/snprintf.h, lib/snprintf.c: New files.
80793
80794 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80795
80796         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
80797         (hol_entry_help): Never translate an empty string.
80798         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
80799         * lib/argp.h (OPTION_NO_TRANS): New option.
80800
80801 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80802
80803         * modules/argp (Maintainer): Replace Simon Josefsson
80804         by Sergey Poznyakoff.
80805
80806 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80807
80808         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
80809         changes merged back into glibc.
80810
80811 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80812
80813         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
80814
80815 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80816
80817         * lib/xvasprintf.c: Include xalloc.h.
80818         (xvasprintf): Use xalloc_die, not xmalloc_die.
80819
80820 2004-09-29  Bruno Haible  <bruno@clisp.org>
80821
80822         * modules/alloca-opt: New file, derived from modules/alloca.
80823         * modules/allocsa: Depend on alloca-opt instead of alloca.
80824         * modules/setenv: Likewise.
80825         * modules/vasnprintf: Likewise.
80826         * MODULES.html.sh: Add alloca-opt.
80827
80828 2004-09-28  Simon Josefsson  <jas@extundo.com>
80829
80830         * gnulib-tool: New parameter --lgpl, to asseert that modules are
80831         LGPL, and to replace license template from GPL to LGPL.
80832
80833 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80834
80835         * modules/dummy: Change license to LGPL.
80836
80837 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80838
80839         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
80840
80841 2004-09-24  Simon Josefsson  <jas@extundo.com>
80842
80843         * modules/minmax (License): Change from GPL to LGPL.
80844
80845 2004-09-23  Simon Josefsson  <jas@extundo.com>
80846
80847         * gnulib-tool (--import): Typo.
80848
80849 2004-09-23  Simon Josefsson  <jas@extundo.com>
80850
80851         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
80852
80853 2004-09-22  Bruno Haible  <bruno@clisp.org>
80854
80855         * modules/*: Add 'License' field.
80856         * gnulib-tool: Accept --extract-license option.
80857         (func_get_license): New function.
80858
80859 2004-09-21  Bruno Haible  <bruno@clisp.org>
80860
80861         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
80862         Reported by Simon Josefsson.
80863
80864 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80865
80866         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
80867         gl_AC_TYPE_LONG_LONG.
80868
80869 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80870
80871         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
80872
80873 2004-09-18  Simon Josefsson  <jas@extundo.com>
80874         and  Paul Eggert  <eggert@cs.ucla.edu>
80875
80876         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
80877         calls with autoreconf.  Define GL_LIB.
80878
80879 2004-09-14  Karl Berry  <karl@gnu.org>
80880
80881         * config/srclist.txt: unsync setenv.c, sigh.
80882
80883 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80884
80885         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
80886         Problem reported by Bruno Haible in:
80887         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
80888
80889 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80890
80891         * config/srclist.txt: Comment out argp-pvh.c.
80892
80893 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
80894
80895         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
80896         in case some system header has #define'd it.  Problem reported by
80897         Soeren D. Schulze in
80898         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
80899
80900 2004-09-09  Karl Berry  <karl@gnu.org>
80901
80902         * regex.[ch]: delete from the root.  These were supposed to be
80903                 synced with emacs cvs, but this has not happened for about
80904                 a year, and anyway nothing else uses emacs regex.[ch].
80905                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
80906                 lib/regex[.ch] is untouched.
80907
80908 2004-09-09  Bruno Haible  <bruno@clisp.org>
80909
80910         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
80911
80912 2004-09-09  Bruno Haible  <bruno@clisp.org>
80913
80914         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
80915         modifications.
80916         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
80917
80918 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80919
80920         * modules/xvasprintf: New file.
80921         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
80922
80923 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80924
80925         * lib/xvasprintf.h: New file.
80926         * lib/xvasprintf.c: New file.
80927         * lib/xasprintf.c: New file.
80928
80929 2004-09-08  Bruno Haible  <bruno@clisp.org>
80930
80931         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
80932
80933 2004-09-08  Bruno Haible  <bruno@clisp.org>
80934
80935         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
80936         length is > INT_MAX.
80937         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
80938         more.
80939
80940 2004-09-08  Bruno Haible  <bruno@clisp.org>
80941
80942         * lib/stdint_.h: New file, taken from GNU clisp.
80943
80944 2004-09-08  Bruno Haible  <bruno@clisp.org>
80945             Oskar Liljeblad  <oskar@osk.mine.nu>
80946
80947         * modules/stdint: New file.
80948         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
80949
80950 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80951
80952         Import from coreutils.
80953         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
80954         strings on unbounded length.  alloca's performance benefits aren't
80955         that important here.
80956         (V_STRDUP): Remove.
80957         (parse_with_separator): New function, with most of the internals
80958         of the old parse_user_spec.  Allow user to omit both user and group,
80959         for compatibility with FreeBSD.
80960         Clone only the user name, not the entire spec.
80961         Do not set *uid, *gid unless entirely successful.
80962         Avoid memory leak in some failing cases.
80963         Fix regression for USER.GROUP reported by Dmitry V. Levin in
80964         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
80965         (parse_user_spec): Rewrite to use parse_with_separator.
80966
80967 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80968
80969         * modules/userspec: Don't depend on alloca.
80970
80971 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80972
80973         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
80974
80975 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80976
80977         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
80978         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
80979         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
80980
80981 2004-08-16  Simon Josefsson  <jas@extundo.com>
80982
80983         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
80984         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
80985         Add --dry-run for --import.
80986         Let user provided command line parameters override configure.ac
80987         settings.
80988
80989 2004-08-12  Simon Josefsson  <jas@extundo.com>
80990
80991         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
80992         as discussed with Paul Eggert in threads rooted at
80993         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
80994         and
80995         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
80996         Before, the test was empty, and relied on ELIDE_CODE in source
80997         code.)
80998         (gl_PREREQ_GETOPT): New macro.
80999         (gl_GETOPT): Use them.
81000
81001 2004-08-12  Simon Josefsson  <jas@extundo.com>
81002
81003         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
81004         * lib/getopt_.h: Renamed from getopt.h.
81005
81006 2004-08-12  Simon Josefsson  <jas@extundo.com>
81007
81008         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
81009         Change default library name from libfoo to libgnu.
81010         Now, if you have a configure.ac that says:
81011                 gl_SOURCE_BASE(gl)
81012                 gl_M4_BASE(gl/m4)
81013                 gl_MODULES(error getopt etcetera)
81014                 gl_INIT
81015         you can import all you need by running:
81016                 ../gnulib/gnulib-tool --import
81017
81018         * modules/getopt (Files): Rename getopt.h to getopt_.h.
81019         (Makefile.am): Rewrite, use logic from argz.
81020         (Include): Use <getopt.h> instead of "getopt.h".
81021
81022 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81023
81024         * modules/argp (Files): Add m4/unlocked-io.m4.
81025         (Depends-on): Add extensions.
81026
81027 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81028
81029         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
81030         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
81031         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
81032         Check for program_invocation_name, program_invocation_short_name,
81033         flockfile, funlockfile, features.h, _getopt_long_only_r.
81034
81035 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81036
81037         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
81038         its complicated substitute.
81039         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
81040         and program_invocation_name.
81041         (__argp_basename) [!_LIBC]: Remove; the only use was
81042         replaced by its body.
81043         (__argp_short_program_name): Change condition from
81044         !defined __argp_short_program_name to
81045         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
81046         to match argp-namefrob.h.
81047         (__argp_failure): Don't assume strerror_r returns char *.
81048         * lib/argp-parse.c (N_): Define unconditionally.
81049         (argp_default_options): Fill out initializers with 0 to avoid
81050         gcc warnings.
81051
81052 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81053
81054         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
81055         getopt1.c.
81056
81057 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81058
81059         Merge from coreutils.
81060
81061         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
81062
81063         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
81064         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
81065
81066 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81067
81068         Merge from coreutils.
81069
81070         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
81071         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
81072         for Reliant Unix 5.43.
81073
81074         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
81075         (union fooround): Use uintmax_t, not long int.
81076         The rest is a merge from libc:
81077         [defined _LIBC]: Include <shlib-compat.h>.
81078         (_obstack) [defined _LIBC]: Remove after 2.3.4.
81079
81080         * lib/settime.c (settime): Recode to avoid warning with
81081         Sun Forte C 6U2.
81082
81083         * lib/strverscmp.c: Convert to UTF-8.
81084
81085 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81086
81087         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81088         m4/uintmax_t.m4.
81089
81090 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81091
81092         * modules/xalloc-die: New file.
81093         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
81094
81095         * modules/md5 (Files): Add m4/uint32_t.m4.
81096         * modules/sha1: Renamed from modules/sha.
81097         (Files):
81098         Rename lib/sha.h to lib/sha1.h.
81099         Rename lib/sha.c to lib/sha1.c.
81100         Rename m4/sha.m4 to m4/sha1.m4.
81101         (lib_SOURCES): Likewise.
81102         (configure.ac): Rename gl_SHA to gl_SHA1.
81103         (Include): sha.h -> sha1.h.
81104
81105 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81106
81107         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
81108         * m4/sha1.m4: Renamed from sha.m4.
81109         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
81110
81111 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81112
81113         * lib/obstack.h (obstack_empty_p):
81114         Don't assume that chunk->contents is suitably aligned.
81115         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
81116         Likewise. Problem reported by Benno in
81117         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
81118
81119         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
81120         readable.  This could be improved further but it'd take some work.
81121
81122 2004-08-08  Simon Josefsson  <jas@extundo.com>
81123
81124         * modules/xgethostname (Depends-on): Remove exit and error (not
81125         used).
81126
81127         * modules/getpass-gnu: Add getpass.h.
81128         (Depends-on): Add stdbool.
81129         * modules/getpass: Add getpass.h.
81130
81131 2004-08-08  Simon Josefsson  <jas@extundo.com>
81132
81133         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
81134         Check getpass declaration.
81135
81136 2004-08-08  Simon Josefsson  <jas@extundo.com>
81137
81138         * lib/xgethostname.c: Don't include error.h (not used).
81139
81140         * lib/getpass.h: Add.
81141         * lib/getpass.c: Include getpass.h first.
81142
81143 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
81144
81145         * lib/xalloc-die.c: New file.
81146         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
81147         All uses removed.
81148         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
81149         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
81150         xalloc-die.c.
81151         (_, N_, xalloc_die): Move to xalloc-die.c.
81152         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
81153         so that we needn't mess with xalloc_msg_memory_exhausted.
81154
81155         * lib/sha1.h: Renamed from sha.h.
81156         (SHA1_H): Renamed from _SHA_H.
81157         (sha1_ctx): Renamed from sha_ctx.
81158         (sha1_init_ctx): Renamed from sha_init_ctx.
81159         (sha1_process_block): Renamed from sha_process_block.
81160         (sha1_process_bytes): Renamed from sha_process_bytes.
81161         (sha1_finish_ctx): Renamed from sha_finish_ctx.
81162         (sha1_read_ctx): Renamed from sha_read_ctx.
81163         (sha1_stream): Renamed from sha_stream.
81164         (sha1_buffer): Renamed from sha_buffer.
81165         * lib/sha1.c: Likewise; renamed from sha.c.
81166         Do not include <sys/types.h>.
81167         Include <stddef.h> rather than <stdlib.h>.
81168
81169 2004-08-08  Bruno Haible  <bruno@clisp.org>
81170
81171         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
81172         FILESYSTEM_PREFIX_LEN.
81173         * lib/progreloc.c: Likewise.
81174         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
81175
81176 2004-08-06  Simon Josefsson  <jas@extundo.com>
81177
81178         * modules/progname (Depends-on): Don't depend on stdbool.
81179
81180 2004-08-06  Simon Josefsson  <jas@extundo.com>
81181
81182         * modules/getsubopt: New file.
81183         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81184         getsubopt.
81185
81186 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81187
81188         More merge from coreutils.
81189
81190         * m4/utimens.m4, m4/utimecmp.m4: New files.
81191         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
81192         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
81193         prereq.m4, sha.m4: Import changes from coreutils.
81194
81195 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81196
81197         More merge from coreutils.
81198         * modules/raise, modules/readtokens0, modules/utimens:
81199         * modules/utimecmp, module/xnanosleep: New files.
81200         * modules/strftime: Add lib/strftime.h.
81201         Change include from <time.h> to "strftime.h".
81202         * modules/yesno: Add lib/yesno.h.
81203         * modules/backupfile: Remove lib/addext.c.
81204         * modules/euidaccess: Add stat-macros.h.
81205         * modules/canonicalize, modules/euidaccess,
81206         modules/filemode, modules/lchown, modules/makepath,
81207         modules/rmdir, modules/stat: Likewise.
81208
81209 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81210
81211         Merge from tar.
81212         * lib/argp-help.c (make_hol, hol_append): Don't assume that
81213         SIZE_MAX is a valid preprocessor constant.
81214         (__argp_basename): Change from "#ifndef _LIBC"
81215         to "#ifndef __argp_short_program_name", so that
81216         we don't compile these functions for tar.
81217
81218         More merges from coreutils.
81219         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
81220         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
81221         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
81222         * lib/addext.c: Remove; no longer needed.
81223         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
81224         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
81225         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
81226         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
81227         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
81228         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
81229         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
81230         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
81231         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
81232         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
81233         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
81234         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
81235         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
81236         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
81237         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
81238         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
81239         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
81240         Import changes from coreutils.
81241
81242 2004-08-05  Simon Josefsson  <jas@extundo.com>
81243
81244         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
81245
81246 2004-08-05  Simon Josefsson  <jas@extundo.com>
81247
81248         * m4/getsubopt.m4: New file.
81249
81250 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81251
81252         Merge from coreutils.
81253
81254         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
81255         * m4/getcwd-path-max.m4: New files.
81256
81257         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
81258         FILESYSTEM_PREFIX_LEN ->
81259         FILE_SYSTEM_PREFIX_LEN.
81260         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
81261         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
81262         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
81263         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
81264
81265         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
81266         prerequisite modules now handle the DOS stuff.
81267         Don't check for unistd.h.
81268
81269 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81270
81271         Merge from coreutils.
81272
81273         * lib/.gdb-history: Remove; this doesn't belong here.
81274
81275         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
81276         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
81277         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
81278         * lib/getcwd.c: New files.
81279
81280         * lib/dirname.h: Include <stdbool.h>.
81281         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
81282         for consistency with POSIX terminology.  All uses changed.
81283         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
81284         (strip_trailing_slashes): Use bool for booleans.
81285         * lib/stripslash.c (strip_trailing_slashes): Likewise.
81286
81287         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
81288         sometimes returns a positive errno value even when it succeeds.
81289         (print_errno_message) [!LIBC]: Fall back on strerror if
81290         __strerror_r fails.
81291
81292         * lib/path-concat.c (mempcpy): Don't define if a system header defines
81293         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
81294         (longest_relative_suffix): New function.
81295         (path_concat): Use it.  Assume first argument is not NULL.
81296         Port to DOS.  Omit redundant separators.
81297         Report an error instead of returning NULL.
81298         Use mempcpy instead of memcpy.
81299         (xpath_concat): Remove: not declared or used.
81300
81301         * lib/same.h: Include <stdbool.h>
81302         (same_name): Return bool, not int.
81303         * lib/same.c (same_name): Likewise.
81304         (errno): Don't declare; we assume C89 or better now.
81305
81306         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
81307         if not already defined.
81308
81309         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
81310         * lib/dup-safer.c (errno): Likewise.
81311
81312 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81313
81314         Merge from coreutils.
81315         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
81316         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
81317         * modules/path-concat: Don't depend on strdup.
81318
81319 2004-08-03  Simon Josefsson  <jas@extundo.com>
81320
81321         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
81322         * lib/progname.h: Don't include stdbool.h.
81323
81324 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81325
81326         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
81327         * MODULES.html.sh (func_all_modules): Remove fatal.
81328
81329 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81330
81331         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
81332
81333 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81334
81335         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
81336         working.
81337
81338 2004-08-02  Simon Josefsson  <jas@extundo.com>
81339
81340         * lib/getsubopt.h: New file, with comments from Bruno Haible.
81341         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
81342         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
81343
81344 2004-08-01  Simon Josefsson  <jas@extundo.com>
81345
81346         * lib/xgetdomainname.c: Include stdlib.h, for free().
81347
81348 2004-07-19  Bruno Haible  <bruno@clisp.org>
81349
81350         * MODULES.html.sh (func_all_modules): Add dummy.
81351
81352 2004-07-16  Simon Josefsson  <jas@extundo.com>
81353
81354         * modules/dummy: New file.
81355
81356 2004-07-16  Simon Josefsson  <jas@extundo.com>
81357
81358         * lib/dummy.c: New file.
81359
81360 2004-07-16  Bruno Haible  <bruno@clisp.org>
81361
81362         * lib/backupfile.h: Add extern "C" for C++.
81363         * lib/closeout.h: Likewise.
81364         * lib/copy-file.h: Likewise.
81365         * lib/findprog.h: Likewise.
81366         * lib/full-write.h: Likewise.
81367         * lib/pathname.h: Likewise.
81368         * lib/progname.h: Likewise.
81369         * lib/stpcpy.h: Likewise.
81370         * lib/stpncpy.h: Likewise.
81371         * lib/strcase.h: Likewise.
81372         * lib/strstr.h: Likewise.
81373         * lib/xalloc.h: Likewise.
81374
81375         * lib/mbswidth.h: Add extern "C" for C++.
81376         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
81377
81378 2004-07-13  Robert Millan  <robertmh@gnu.org>
81379
81380         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
81381
81382 2004-07-09  Simon Josefsson  <jas@extundo.com>
81383
81384         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
81385         failed without this.)
81386
81387 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81388
81389         * modules/chown (Files): Add lib/fchown-stub.c, since
81390         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
81391
81392 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81393
81394         * lib/fchown-stub.c: New file.
81395
81396 2004-06-24  Jim Meyering  <jim@meyering.net>
81397
81398         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
81399
81400 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81401
81402         * modules/argz: Omit "#include".
81403
81404         * MODULES.html.sh (func_all_modules): Add calloc, to match
81405         2004-06-01 addition of calloc module.
81406
81407 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81408
81409         * m4/argz.m4: New file, which is autoupdated from libtool.
81410
81411 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81412
81413         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
81414         libtool.
81415
81416 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81417
81418         * config/srclist-update: Don't insist on "USA." before the
81419         close-comment, as libtool omits the period and puts the */ on a
81420         separate line.
81421         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
81422         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
81423
81424 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
81425
81426         * modules/argz: New file.
81427         * MODULES.html.sh (func_all_modules): Add argz.
81428
81429 2004-06-12  Jim Meyering  <jim@meyering.net>
81430         and  Paul Eggert  <eggert@cs.ucla.edu>
81431
81432         * modules/hash (Files): Add lib/xalloc.h.
81433         * modules/pipe (Depends-on): Add wait-process.
81434         * modules/stat (Depends-on): Add xalloc.
81435         * modules/userspec (Files): Add lib/userspec.h.
81436         * modules/xstrto
81437
81438         Upgrade from gettext-0.13.
81439         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
81440         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
81441         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
81442
81443 2004-06-10  Jim Meyering  <jim@meyering.net>
81444
81445         * lib/calloc.c: New file.
81446
81447 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
81448
81449         * lib/getdate.y (yylex): Allow space between sign and number.
81450         Problem reported by Dan Jacobson.
81451
81452 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81453
81454         Merge from coreutils CVS.
81455
81456         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
81457         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
81458         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
81459         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
81460         xstrtol.m4: Fix copyright date and/or serial number.
81461
81462         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
81463         See if we need an fchown replacement.
81464         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
81465         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
81466         and use the replacement function if we detect either defect.
81467
81468         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
81469         gl_UTIMECMP.
81470
81471 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81472         and  Jim Meyering  <jim@meyering.net>
81473
81474         Merge from coreutils CVS.
81475
81476         * lib/stat-macros.h: New file, with contents from file-type.h
81477         and coreutils' system.h.
81478         * lib/file-type.c: Include "stat-macros.h".
81479         * lib/file-type.h (file_type): Move all macro definitions to new file,
81480         stat-macros.h.
81481
81482         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
81483         Wrap old code with this conditional.
81484         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
81485         function that does not dereference symlinks.
81486         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
81487
81488         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
81489         dependency problems.
81490         (xreadlink): Accept new arg SIZE, for efficiency.
81491         All decls and uses changed.
81492         * lib/xreadlink.h: Include <stddef.h>, for size_t.
81493
81494         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
81495         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
81496
81497         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
81498         sysexits.h.
81499
81500 2004-06-01  Jim Meyering  <jim@meyering.net>
81501
81502         * m4/calloc.m4: New file.
81503
81504 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
81505
81506         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
81507         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
81508         Also, fix a typo in a diagnostic.
81509
81510 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81511
81512         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
81513         or AC_FUNC_REALLOC.
81514
81515 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81516
81517         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
81518         macros to be defined.
81519         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
81520         the allocator returns NULL because the requested size is zero.
81521
81522 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81523
81524         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
81525         var.  Add comment explaining why libc still defines it.  This
81526         merges the following patch from glibc:
81527         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
81528
81529 2004-05-20  Andreas Schwab  <schwab@suse.de>
81530
81531         * m4/free.m4: Replace free if it not known to work, not the other
81532         way round.
81533
81534 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81535
81536         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
81537         present in glibc since revision 1.1 of this file.
81538         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
81539         obstack_alignment_mask, obstack_alloc, obstack_base,
81540         obstack_blank, obstack_blank_fast, obstack_chunk_size,
81541         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
81542         obstack_grow0, obstack_init, obstack_int_grow,
81543         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
81544         obstack_next_free, obstack_object_size, obstack_ptr_grow,
81545         obstack_ptr_grow_fast, obstack_room): Remove declarations of
81546         nonexistent functions.
81547
81548 2004-05-18  Karl Berry  <karl@gnu.org>
81549
81550         * config/srclist.txt: break link for vasnprintf.c.
81551
81552 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81553
81554         Port obstack to the AS/400, where pointers are 16 bytes wide and
81555         you cannot cast an integer to a valid pointer.  This patch is
81556         currently waiting to be integrated into glibc; see
81557         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
81558
81559         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
81560         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
81561         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
81562         (struct obstack): temp member is now a union of a pointer and
81563         an integer, instead of an integer.  All integer uses changed.
81564         This does not affect the physical layout of struct obstack,
81565         except on hosts (like the AS/400) where the size or alignment of
81566         void * is greater than that of ptrdiff_t.
81567         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
81568         __STDC__)]: Store temporary in pointer member of union, not
81569         integer member.
81570         * lib/obstack.c: Include <stddef.h>, for offsetof.
81571         (struct fooalign): Remove; it doesn't need a name.
81572         (union fooround): Change double to long double, and add void *.
81573         (DEFAULT_ALIGNMENT): Use offsetof to compute.
81574         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
81575         not a macro.  Hence the values are always int; so remove all
81576         casts-to-int in uses.
81577
81578 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81579
81580         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
81581         we can get this patch merged into glibc.
81582
81583 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81584             Paul Eggert  <eggert@cs.ucla.edu>
81585
81586         * m4/argp: Depend on alloca.
81587
81588 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81589             Paul Eggert  <eggert@cs.ucla.edu>
81590
81591         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
81592         freecoding.
81593
81594 2004-05-17  Bruno Haible  <bruno@clisp.org>
81595
81596         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
81597         precision that consists of a '.' followed by an empty digit string.
81598         Patch by Tor Lillqvist <tml@iki.fi>.
81599
81600 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81601
81602         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
81603         for backward compatibility with older code.  We need our own
81604         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
81605         it under some other name, and our alloca.h will define it.
81606
81607 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81608             Derek Price  <derek@ximbiot.com>
81609
81610         * lib/alloca.c: Include <alloca.h>, to get our interface.
81611         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
81612         include <alloca.h> first.  Use C89 prototype for alloca; this
81613         requires including <stddef.h> for size_t.  Use extern "C" if C++.
81614         Use #elif for simplicity, since we can assume C89 now.
81615         Don't try to source the system alloca.h since it will not be found
81616         and to prevent recursively including its replacement.
81617         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
81618         * lib/regex.c: Likewise.
81619
81620 2004-05-16  Derek Price  <derek@ximbiot.com>
81621             Paul Eggert  <eggert@cs.ucla.edu>
81622
81623         getline cleanup.  This changes the getndelim2 API: both order of
81624         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
81625         no delimiter).
81626
81627         * lib/getline.c: Don't include stddef.h or stdio.h, since our
81628         interface does that.
81629         (getline): Always use getdelim, so that we don't have two
81630         copies of this code.
81631         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
81632         if available.
81633         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
81634         (GETNDELIM2_MAXIMUM): New macro.
81635         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
81636         instead of the old practice of delim2==0.  All callers changed.
81637         Return -1 on overflow, instead of returning junk.
81638         Do not set *linesize unless allocation succeeds.
81639         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
81640         that we include sys/types.h.
81641         * lib/getnline.h: Likewise.
81642         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
81643         (getndelim2): Reorder arguments.
81644         * lib/getnline.c (getnline, getndelim):
81645         Don't discard the NMAX argument.
81646         (getnline): Invoke getndelim, to avoid code duplication.
81647         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
81648         of (size_t) -1 by callers of the getnline family.
81649
81650 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81651
81652         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
81653         Check for gettimeofday.
81654         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
81655         Check for settimeofday, stime.
81656
81657 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81658
81659         * lib/nanosleep.c (suspended): Change its type from int to
81660         sig_atomic_t volatile.
81661         (first_call): Make it private to rpl_nanosleep, and have it
81662         be zero initially as that's a bit faster.
81663         (my_usleep): Round up fractional times instead of truncating them,
81664         as this is the usual meaning for 'sleep'.
81665
81666         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
81667         doesn't work.
81668         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
81669         (ENOSYS): Define if not defined.
81670         (settime): Fall back on stime if it exists and settimeofday fails.
81671         But don't bother with fallbacks if a method fails with errno == EPERM.
81672
81673 2004-05-11  Jim Meyering  <jim@meyering.net>
81674
81675         Prior to this change, the save_cwd caller required read access to the
81676         current directory on most systems (ones with the fchdir function).
81677
81678         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
81679         fails, try write-only, and finally, resort to using xgetcwd.
81680
81681 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
81682
81683         * lib/obstack.c, obstack.h: Import changes from libc.
81684
81685 2004-04-28  Bruno Haible  <bruno@clisp.org>
81686
81687         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
81688         also implicitly appends .exe to executables.
81689         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
81690         accepts Windows pathnames.
81691         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81692         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81693         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81694         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81695         Reported by Derek Robert Price <derek@ximbiot.com>.
81696
81697 2004-04-21  Karl Berry  <karl@gnu.org>
81698
81699         * config/srclist.txt (localcharset.c): break sync.
81700
81701 2004-04-20  Paul Eggert  <eggert@twinsun.com>
81702
81703         * m4/host-os.m4: Add a copyright notice.
81704
81705 2004-04-20  Jim Meyering  <jim@meyering.net>
81706
81707         Change UTILS_ to gl_ in AC_DEFINE'd names.
81708         Change utils_- and jm_-prefixed variables, too.
81709         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
81710         UTILS_FUNC_MKDIR_TRAILING_SLASH.
81711         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
81712
81713         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
81714         Don't emit trailing blanks.
81715         Also rename jm_-prefixed variables to have gl_ prefix.
81716
81717         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
81718         Also rename jm_-prefixed variables to have gl_ prefix.
81719
81720         * m4/jm-macros.m4: Reflect the renamings.
81721         * m4/prereq.m4: Likewise.
81722
81723 2004-04-20  Jim Meyering  <jim@meyering.net>
81724
81725         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
81726         memory.
81727
81728 2004-04-20  Jim Meyering  <jim@meyering.net>
81729             Bruno Haible  <bruno@clisp.org>
81730
81731         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
81732         memory when realloc fails.
81733
81734 2004-04-19  Jim Meyering  <jim@meyering.net>
81735
81736         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
81737         now that readutmp.c may call `free (0)'.
81738
81739 2004-04-19  Bruno Haible  <bruno@clisp.org>
81740
81741         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
81742         * m4/inttypes_h.m4: Likewise.
81743         * m4/stdint_h.m4: Likewise.
81744         * m4/intmax_t.m4: Likewise.
81745         * m4/uintmax_t.m4: Likewise.
81746
81747 2004-04-18  Jim Meyering  <jim@meyering.net>
81748
81749         * m4/prereq.m4: Don't forbid jm_ prefix.
81750
81751         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
81752         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
81753         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
81754         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
81755         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
81756         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
81757         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
81758         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
81759         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
81760         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
81761         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
81762         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
81763         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
81764         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
81765         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
81766         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
81767         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
81768         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
81769         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
81770
81771 2004-04-18  Jim Meyering  <jim@meyering.net>
81772
81773         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
81774         failure, don't leak memory and do call END_UTMP_ENT.
81775
81776 2004-04-16  Jim Meyering  <jim@meyering.net>
81777
81778         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
81779         coreutils' stat program.
81780         (gl_PREREQ): Don't require jm_PREREQ_STAT.
81781
81782 2004-04-11  Paul Eggert  <eggert@twinsun.com>
81783
81784         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
81785         C89.
81786         (CHAR_BIT): Remove, since we assume C89.
81787         Include <stdint.h> if available, as per current Autoconf CVS advice.
81788
81789 2004-03-31  Jim Meyering  <jim@meyering.net>
81790
81791         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
81792         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
81793         * m4/xalloc.m4: Likewise.
81794
81795 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81796
81797         Merge from coreutils.
81798
81799         * m4/inttostr.m4: New file.
81800         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
81801         Require AM_STDBOOL_H and gl_TIMESPEC instead.
81802         Require gl_CLOCK_TIME.
81803         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
81804
81805 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81806
81807         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
81808         not bool, to be more consistent with Unix conventions.
81809         Suggested by Bruno Haible.
81810
81811         Merge from coreutils.
81812
81813         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
81814         * lib/umaxtostr.c: New files.
81815
81816         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
81817         the usual <time.h> dance.
81818         (get_date): Change signature to support fractional time stamps.
81819         All callers changed.
81820         * lib/getdate.y: Include "getdate.h" first, as we can now
81821         assume C89 and don't need to worry about 'const'.
81822         Similarly, include "unlocked-io.h" near start, not in middle.
81823         Include <limits.h>.
81824         (textint.value): Use long int rather than int.
81825         (textint.digits): Use size_t rather than int.
81826         (BILLION, LOG10_BILLION): New constants.
81827         (parser_control): New member rel_ns.  Members day_ordinal,
81828         time_zone, month, day, hour, minutes, rel_year, rel_month,
81829         rel_day, rel_hour, rel_minutes, rel_seconds
81830         are now long int, not int.  Member seconds is now struct timespec,
81831         not int.  New member timespec_seen.  Members dates_seen, days_seen,
81832         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
81833         not int.
81834         (%union.intval): Now long int, not int.
81835         New member timespec.
81836         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
81837         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
81838         (spec): Now is a timespec or an item list.
81839         (timespec, items): New nonterminals.
81840         (time, rel, relunit, number, get_date):
81841         Add support for fractional seconds.
81842         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
81843         (gmtime, localtime, mktime): Remove decls; not needed with C89.
81844         (to_hour): First arg is now long int, not int.
81845         (to_year): Returns long int, not int.
81846         Don't treat year -70 like 70.
81847         (tm_diff): Returns long int, not int.
81848         (lookup_word): Use bool instead of int when appropriate.
81849         (yylex): Use size_t for count, not int.
81850         Detect overflow when parsing large integer constants.
81851         Add support for fractions.
81852         (get_date): Make pointers 'const' if possible.
81853         Use more-portable code to detect integer overflow.
81854         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
81855         Don't use ctime; it's not reliable if the year has >4 digits.
81856
81857         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
81858         This is for compatibility with BSD.
81859
81860         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
81861         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
81862         From coreutils' system.h.
81863
81864         * lib/userspec.c: Don't include "posixver.h".
81865         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
81866         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
81867         compatible extension.  Simplify code by removing a boolean int
81868         that was always nonzero if a string was nonnull.
81869
81870 2004-03-30  Jim Meyering  <jim@meyering.net>
81871
81872         Merge from coreutils.
81873
81874         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
81875         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
81876         on some systems one must include <grp.h> before it.
81877         Reported by Christian Krackowizer.
81878
81879 2004-03-30  Jim Meyering  <jim@meyering.net>
81880
81881         Merge from coreutils.
81882
81883         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
81884
81885         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
81886         an empty input stream.
81887
81888         * lib/readtokens.c: Include <stdbool.h>.
81889         (readtoken): Use `size_t' rather than int/long.
81890         All callers adjusted.
81891         Use `bool' rather than `int' where appropriate.
81892         Use memset rather than an explicit loop.
81893         Use x2nrealloc rather than xrealloc.
81894         Allow the use of `\0' as a delimiter.
81895         (readtokens): Likewise.
81896         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
81897
81898 2004-03-30  Jim Meyering  <jim@meyering.net>
81899
81900         * m4/realloc.m4: Remove file, since now it does no more than
81901         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
81902         the `configure.ac' section of module/realloc.
81903         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
81904
81905 2004-03-30  Bruno Haible  <bruno@clisp.org>
81906
81907         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
81908         nonnull.
81909
81910 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81911
81912         Merge changes to getloadavg.c from coreutils and Emacs.
81913
81914         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
81915         Define to an expression, not to the empty string.
81916         Include cloexec.h and xalloc.h.
81917         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
81918         Use set_cloexec_flag rather than rolling our own.
81919         * lib/cloexec.c, lib/cloexec.h: New files.
81920
81921 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81922
81923         * m4/cloexec.m4: New file.
81924
81925 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81926
81927         * lib/getopt.h: Sync with libc CVS.
81928
81929 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81930             Bruno Haible  <bruno@clisp.org>
81931
81932         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
81933         mbswidth.
81934
81935 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81936             Bruno Haible  <bruno@clisp.org>
81937
81938         * lib/mbswidth.h: Include <wchar.h> only if
81939         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
81940         <wchar.h>.
81941         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
81942
81943 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81944
81945         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
81946         Sync with libc CVS.
81947         * lib/getopt_int.h: New file, also synced from libc.
81948
81949 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81950
81951         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
81952         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
81953         Bring back getopt.c, getopt.h, getopt1.c.
81954
81955 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81956
81957         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
81958         All uses changed.  Check for sa_sigaction member; this fixes
81959         a bug first reported by Jason Andrade in
81960         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81961
81962 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81963
81964         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
81965         '#if' expressions.  Unlike the code it replaces, it does not
81966         depend on (defined _SC_PAGESIZE).  However, it does depend on
81967         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
81968         first reported by Jason Andrade in
81969         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81970
81971 2004-02-25  Simon Josefsson  <jas@extundo.com>
81972
81973         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
81974
81975 2004-02-25  Simon Josefsson  <jas@extundo.com>
81976
81977         * lib/strdup.h: New file.
81978         * lib/strdup.c: Include it.
81979         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
81980         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
81981
81982 2004-02-23  Karl Berry  <karl@gnu.org>
81983
81984         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
81985         (from fencepost.gnu.org:/gd/gnuorg).
81986
81987 2004-02-23  Karl Berry  <karl@gnu.org>
81988
81989         * config/srclistvars.sh (GNUORG) [karl]: redefine.
81990         * config/srclist.txt: add maintain/standards documents.
81991
81992 2004-02-18  Bruno Haible  <bruno@clisp.org>
81993
81994         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
81995         Reported by Derek Robert Price <derek@ximbiot.com>.
81996
81997 2004-02-16  Karl Berry  <karl@gnu.org>
81998
81999         * config/mkinstalldirs, install-sh: update from automake.
82000
82001 2004-02-06  Karl Berry  <karl@gnu.org>
82002
82003         * m4/po.m4: update from gettext 0.14.1.
82004
82005 2004-02-06  Karl Berry  <karl@gnu.org>
82006
82007         * lib/config.charset: update from gettext 0.14.1.
82008
82009 2004-02-05  Paul Eggert  <eggert@twinsun.com>
82010
82011         Add comments and code, prompted by suggestions from Bruno Haible
82012         for sh-quote.
82013         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
82014         describing the enum quoting_style values.
82015         * lib/quotearg.c (quotearg_alloc): New function.
82016         (quotearg_buffer_restyled): Treat lone { and } as special.
82017         Treat = as special.  Work around bug with older shells
82018         that "see" a '\' that is really the 2nd byte of a multibyte char.
82019         Quote empty string with shell_quoting_style.
82020
82021 2004-02-03  Bruno Haible  <bruno@clisp.org>
82022
82023         * m4/pipe.m4: New file, from GNU gettext.
82024
82025 2004-02-03  Bruno Haible  <bruno@clisp.org>
82026
82027         * lib/pipe.h: New file, from GNU gettext.
82028         * lib/pipe.c: New file, from GNU gettext.
82029
82030 2004-01-27  Bruno Haible  <bruno@clisp.org>
82031
82032         * m4/execute.m4: New file, from GNU gettext.
82033
82034 2004-01-27  Bruno Haible  <bruno@clisp.org>
82035
82036         * lib/execute.h: New file, from GNU gettext.
82037         * lib/execute.c: New file, from GNU gettext.
82038         * lib/w32spawn.h: New file, from GNU gettext.
82039
82040 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82041
82042         Merge from diffutils.
82043
82044         * lib/file-type.c (file_type): Add typed memory objects.
82045         * lib/file-type.h (S_TYPEISTMO): New macro.
82046
82047         * lib/c-stack.h (c_stack_action): Remove argv argument.
82048         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
82049         (die): Don't calculate message unless segv_action returns.
82050         (get_stack_location, min_address_from_argv, max_address_from_argv,
82051         volatile stack_base, volatile_stack_size): Remove.
82052         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
82053         that every segmentation violation is a stack overflow.  (Ouch!)
82054         See Debian bug 136249 (still outstanding) for more info about why
82055         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
82056
82057 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82058
82059         Exit-status fix from coreutils.
82060
82061         Use exit_failure consistently in place of EXIT_FAILURE,
82062         so that program exit statuses are consistent on failure.
82063
82064         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
82065         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
82066         * lib/argmatch.h: Comment fix to match the above.
82067         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
82068         Now a macro referring to exit_failure, instead of a separate
82069         variable.  Include "exitfail.h" to get it.
82070         * lib/xstrtol.h: Include "exitfail.h".
82071         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
82072
82073         * lib/long-options.c (parse_long_options): Use prototype
82074         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
82075         for clarity.
82076
82077 2004-01-21  Jim Meyering  <jim@meyering.net>
82078
82079         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
82080         so as not to conflict with a different-sized __mktime_internal
82081         function in GNU libc.
82082         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
82083         Problem building statically-linked `ls' reported by Michael Brunnbauer.
82084
82085 2004-01-20  Karl Berry  <karl@gnu.org>
82086
82087         * config/config.guess: update from config.
82088
82089         * config/srclistvars.sh: GNUWWWLICENSES for karl.
82090
82091 2004-01-20  Bruno Haible  <bruno@clisp.org>
82092
82093         Safer stack allocation.
82094         * lib/setenv.c: Include allocsa.h.
82095         (alloca): Remove fallback definition.
82096         (freea): Remove macro.
82097         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
82098         instead of freea.
82099
82100 2004-01-20  Bruno Haible  <bruno@clisp.org>
82101
82102         * m4/eealloc.m4: New file, from GNU gettext.
82103
82104 2004-01-20  Bruno Haible  <bruno@clisp.org>
82105
82106         * m4/allocsa.m4: New file, from GNU gettext.
82107
82108 2004-01-20  Bruno Haible  <bruno@clisp.org>
82109
82110         * lib/xallocsa.h: New file, from GNU gettext.
82111         * lib/xallocsa.c: New file, from GNU gettext.
82112
82113 2004-01-20  Bruno Haible  <bruno@clisp.org>
82114
82115         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
82116
82117 2004-01-20  Bruno Haible  <bruno@clisp.org>
82118
82119         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
82120         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
82121         specially.
82122
82123 2004-01-20  Bruno Haible  <bruno@clisp.org>
82124
82125         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
82126         patch.
82127
82128 2004-01-20  Bruno Haible  <bruno@clisp.org>
82129
82130         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
82131
82132 2004-01-20  Bruno Haible  <bruno@clisp.org>
82133
82134         * lib/eealloc.h: New file.
82135
82136 2004-01-20  Bruno Haible  <bruno@clisp.org>
82137
82138         * lib/binary-io.h: Avoid warnings on Cygwin.
82139
82140 2004-01-20  Bruno Haible  <bruno@clisp.org>
82141
82142         * lib/allocsa.h: New file, from GNU gettext.
82143         * lib/allocsa.c: New file, from GNU gettext.
82144
82145 2004-01-18  Karl Berry  <karl@gnu.org>
82146
82147         * doc/gpl.texi, doc/lgpl.texi: new files.
82148
82149 2004-01-18  Karl Berry  <karl@gnu.org>
82150
82151         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
82152         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
82153
82154 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82155
82156         Merge from coreutils.
82157
82158         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
82159         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
82160         (gl_DEFAULT_POSIX2_VERSION): Move
82161         the documentation from 'configure' into 'config.hin',
82162         so that 'configure --help' isn't burdened by it and
82163         we don't have to worry about its formatting there.
82164         Reword the documentation so that it's more succinct
82165         and can be run together into a single paragraph.
82166         * m4/same.m4 (gl_SAME): Check for pathconf.
82167
82168 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82169
82170         Merge from coreutils.
82171
82172         * lib/posixver.c: Include posixver.h.
82173
82174         * lib/same.c: Include <stdbool.h>, <limits.h>.
82175         (_POSIX_NAME_MAX): Define if not defined.
82176         (MIN): New macro.
82177         (same_name): If file names are silently truncated, report
82178         that the file names are the same if they are the same after
82179         the silent truncation.
82180
82181         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
82182         conversion function.
82183         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
82184         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
82185         longer needed.
82186
82187 2004-01-15  Jim Meyering  <jim@meyering.net>
82188
82189         Merge from coreutils.
82190
82191         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
82192         if no library is required.
82193         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
82194         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
82195         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
82196         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
82197         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
82198         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
82199         value, $ac_cv_search_crypt, if it's "none required".
82200         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
82201         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
82202         not gl_FUNC_GETLOADAVG.
82203         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
82204         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
82205
82206 2004-01-15  Jim Meyering  <jim@meyering.net>
82207
82208         Merge from coreutils.
82209
82210         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
82211         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
82212         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
82213
82214         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
82215         optional configure-time default.
82216
82217         * lib/version-etc.c (version_etc_copyright): Update copyright date.
82218
82219         * lib/xreadlink.c (xreadlink): Correct outdated comment.
82220
82221 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
82222
82223         Merge from coreutils.
82224
82225         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
82226         value, $ac_cv_search_nanosleep, if it's "none required".
82227
82228 2004-01-14  Paul Eggert  <eggert@twinsun.com>
82229
82230         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
82231         with like-named macro in fnmatch.c.
82232         (EXT): Use an internal constant instead.
82233
82234         Merge fnmatch patches from glibc.
82235         * lib/fnmatch.c (mbsinit): Remove define.
82236         Add libc_hidden_ver (__fnmatch, fnmatch).
82237         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
82238         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
82239
82240 2004-01-14  Karl Berry  <karl@gnu.org>
82241
82242         * config/install-sh: update from automake.
82243
82244 2004-01-13  Karl Berry  <karl@gnu.org>
82245
82246         * config/install-sh: update from automake.
82247
82248 2004-01-09  Karl Berry  <karl@gnu.org>
82249
82250         * config/install-sh: update from automake.
82251
82252 2004-01-05  Karl Berry  <karl@gnu.org>
82253
82254         * config/config.{sub,guess}: update from config.
82255
82256 2003-12-31  Karl Berry  <karl@gnu.org>
82257
82258         * config/depcomp: update from automake.
82259
82260 2003-12-14  Karl Berry  <karl@gnu.org>
82261
82262         * lib/config.charset: update from gettext-runtime.
82263
82264 2003-12-03  Paul Eggert  <eggert@twinsun.com>
82265
82266         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
82267         Bug reported by Alfred M. Szmidt.
82268
82269 2003-12-03  Bruno Haible  <bruno@clisp.org>
82270
82271         * m4/gettext.m4: Upgrade from gettext-0.13.
82272         * m4/po.m4: Upgrade from gettext-0.13.
82273         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
82274         * m4/intmax.m4: New file, from gettext-0.13.
82275         * m4/printf-posix.m4: New file, from gettext-0.13.
82276
82277 2003-11-29  Karl Berry  <karl@gnu.org>
82278
82279         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
82280
82281 2003-11-25  Paul Eggert  <eggert@twinsun.com>
82282             Bruno Haible  <bruno@clisp.org>
82283
82284         * lib/printf-parse.h: Don't include sys/types.h.
82285         (ARG_NONE): New macro.
82286         (char_directive): Change type of *arg_index fields to size_t.
82287         * lib/printf-parse.c: Don't include sys/types.h.
82288         (SSIZE_MAX): Remove macro.
82289         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
82290         Remove unnecessary overflow check.
82291         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
82292         fields.
82293
82294 2003-11-25  Bruno Haible  <bruno@clisp.org>
82295
82296         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
82297
82298 2003-11-25  Bruno Haible  <bruno@clisp.org>
82299
82300         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
82301         gt_TYPE_SSIZE_T.
82302
82303 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82304
82305         * modules/alloca: Remove dependency on xalloc.
82306
82307 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82308
82309         * lib/alloca.c: Remove dependency on xalloc module.
82310         (xalloc_die): Remove.
82311         (memory_full) [!defined emacs]: New macro.
82312         [!defined emacs]: Don't include xalloc.h.
82313         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
82314         address arithmetic overflows.  Change datatypes a bit to avoid
82315         unnecessary casts.
82316
82317 2003-11-22  Jim Meyering  <jim@meyering.net>
82318
82319         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
82320         s/size/size_t/.
82321
82322 2003-11-21  Karl Berry  <karl@gnu.org>
82323
82324         * config/config.{sub,guess}: update from config.
82325
82326 2003-11-18  Karl Berry  <karl@gnu.org>
82327
82328         * config/config.{sub,guess}: update from config.
82329
82330         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
82331
82332 2003-11-17  Paul Eggert  <eggert@twinsun.com>
82333
82334         * README: Mention that S+T cannot overflow if S is the size of
82335         an existing object and T is sufficiently small.
82336
82337 2003-11-17  Jim Meyering  <jim@meyering.net>
82338
82339         On systems without utime and without a utimes function capable of
82340         dealing with a NULL struct utimbuf* argument, this utime replacement
82341         could -- in unusual circumstances -- leak a file descriptor.
82342         * lib/utime.c: Include <unistd.h> and <errno.h>.
82343         (utime_null): Be sure to close `fd' and to preserve errno.
82344         Reported by Geoff Collyer via Arnold Robbins.
82345
82346 2003-11-17  Bruno Haible  <bruno@clisp.org>
82347
82348         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
82349         (Depends-on): Add xsize.
82350
82351 2003-11-17  Bruno Haible  <bruno@clisp.org>
82352
82353         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
82354
82355 2003-11-17  Bruno Haible  <bruno@clisp.org>
82356
82357         * lib/vasnprintf.c (alloca): Remove fallback definition.
82358         (freea): Remove definition.
82359         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
82360         Reported by Paul Eggert.
82361
82362 2003-11-16  Paul Eggert  <eggert@twinsun.com>
82363             Bruno Haible  <bruno@clisp.org>
82364
82365         Protect against address arithmetic overflow.
82366         * lib/printf-args.h: Include stddef.h.
82367         (arguments): Change type of field 'count' to size_t.
82368         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
82369         'unsigned int' where appropriate.
82370         * lib/printf-parse.h: Include sys/types.h.
82371         (char_directive): Change type of *arg_index fields to ssize_t.
82372         (char_directives): Change type of fields 'count', max_*_length to
82373         size_t.
82374         * lib/printf-parse.c: Include sys/types.h and xsize.h.
82375         (SSIZE_MAX): Define fallback value.
82376         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
82377         instead of 'int' where appropriate. Check a_allocated, d_allocated
82378         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
82379         * lib/vasnprintf.c: Include xsize.h.
82380         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
82381         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
82382         overflow. Avoid wraparound when converting a width or precision from
82383         decimal to binary.
82384
82385 2003-11-16  Bruno Haible  <bruno@clisp.org>
82386
82387         Update from GNU gettext.
82388         * lib/printf-parse.c: Generalize to it can be compiled for wide
82389         strings.
82390         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
82391         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
82392         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
82393         SNPRINTF): New macros.
82394         Don't include <alloca.h> if the file is used inside libintl.
82395         (local_wcslen): New function, for Solaris 2.5.1.
82396         (VASNPRINTF): Use it instead of wcslen.
82397
82398 2003-11-16  Bruno Haible  <bruno@clisp.org>
82399
82400         * lib/xsize.h (xmax): New function.
82401         (xsum, xsum3, xsum4): Declare as "pure" functions.
82402
82403 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82404
82405         * modules/xalloc (Files): Undo latest change, since xalloc.h
82406         no longer needs SIZE_MAX or PTRDIFF_MAX.
82407
82408 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82409
82410         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
82411         gl_PTRDIFF_MAX.
82412
82413 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82414
82415         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
82416         "return", to pacify some unknown compiler.  Problem reported
82417         by Joerg Schilling.
82418
82419 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82420
82421         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
82422         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
82423         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
82424         heuristic is just as accurate as far as we know, and it removes a
82425         dependency on size_max.m4 and ptrdiff_max.m4.
82426
82427 2003-11-11  Bruno Haible  <bruno@clisp.org>
82428
82429         * modules/xsize (Files): Add m4/size_max.m4.
82430         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
82431
82432 2003-11-11  Bruno Haible  <bruno@clisp.org>
82433
82434         * m4/size_max.m4: New file.
82435         * m4/ptrdiff_max.m4: New file.
82436         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
82437         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
82438         (gl_XALLOC): Invoke it.
82439
82440 2003-11-11  Bruno Haible  <bruno@clisp.org>
82441
82442         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
82443         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
82444         defined.
82445
82446 2003-11-10  Paul Eggert  <eggert@twinsun.com>
82447
82448         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
82449         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
82450         rejected some allocations of exactly SIZE_MAX - 2 bytes.
82451         From Bruno Haible.
82452         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
82453         not (size_t) -1, since it's defined here.
82454
82455 2003-11-09  Karl Berry  <karl@gnu.org>
82456
82457         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
82458
82459 2003-11-06  Paul Eggert  <eggert@twinsun.com>
82460
82461         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
82462         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
82463         Reject sizes of exactly SIZE_MAX bytes.
82464         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
82465         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
82466
82467 2003-11-05  Bruno Haible  <bruno@clisp.org>
82468
82469         * lib/xsize.h: Include limits.h, to avoid a possible collision with
82470         SIZE_MAX defined in <limits.h> on Solaris.
82471
82472 2003-11-04  Jim Meyering  <jim@meyering.net>
82473
82474         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
82475         variable names, rather than @VAR@.
82476         * modules/poll: Likewise.
82477
82478 2003-11-04  Bruno Haible  <bruno@clisp.org>
82479
82480         * modules/xsize: New file.
82481         * modules/linebreak: Depend on xsize.
82482         * MODULES.html.sh (func_all_modules): Add xsize.
82483
82484 2003-11-04  Bruno Haible  <bruno@clisp.org>
82485
82486         * m4/xsize.m4: New file.
82487
82488 2003-11-04  Bruno Haible  <bruno@clisp.org>
82489
82490         * lib/xsize.h: New file.
82491         * lib/linebreak.c: Include xsize.h.
82492         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
82493         argument for overflow.
82494         Suggested by Paul Eggert.
82495
82496 2003-11-03  Karl Berry  <karl@gnu.org>
82497
82498         * config/config.{guess,sub}: update from config.
82499
82500 2003-11-03  Jim Meyering  <jim@meyering.net>
82501
82502         * modules/userspec (lib_SOURCES): Add userspec.h.
82503         (Include): Add "userspec.h".
82504         Improve description.
82505
82506 2003-11-03  Jim Meyering  <jim@meyering.net>
82507
82508         * lib/userspec.c: Include "userspec.h".
82509         * lib/userspec.h: New file.
82510
82511 2003-11-03  Bruno Haible  <bruno@clisp.org>
82512
82513         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
82514
82515 2003-11-03  Bruno Haible  <bruno@clisp.org>
82516
82517         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
82518         available, to avoid (extremely rare) race condition.
82519         Suggested by Paul Eggert.
82520
82521 2003-11-02  Karl Berry  <karl@gnu.org>
82522
82523         * config/srclist.txt (vasprintf.c): sync broken, sigh.
82524
82525 2003-10-31  Paul Eggert  <eggert@twinsun.com>
82526
82527         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
82528         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
82529         (read_filesystem_list): Set and use me_type_malloced.
82530         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
82531         whatever the type happens to be), for brevity and consistency.
82532         Check for size calculation overflow on Alphas running OSF/1.
82533
82534 2003-10-31  Jim Meyering  <jim@meyering.net>
82535
82536         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
82537
82538         * lib/linebuffer.c: Include <string.h> for declaration of memset.
82539
82540 2003-10-30  Paul Eggert  <eggert@twinsun.com>
82541             Bruno Haible  <bruno@clisp.org>
82542
82543         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
82544         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
82545
82546 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82547
82548         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
82549         netbsd*-gnu*.  Suggested by Robert Millan.
82550
82551 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82552
82553         * modules/group-member: Depend on stdbool.
82554
82555 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82556
82557         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
82558
82559 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82560
82561         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
82562         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
82563         after the 'gnu' in these cases.  This fixes some bugs in the
82564         previous change, and is based on suggestions by Robert Millan.
82565
82566 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82567
82568         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
82569         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
82570         no longer needed.
82571         * lib/quotearg.c (quotearg_n_options): Use it.
82572         * lib/group-member.c: Include <stdbool.h>.
82573         (free_group_info): Arg is now const *; don't free arg.
82574         (get_group_info): Now returns bool and accepts struct group_info *,
82575         rather than returning a malloc'ed struct group_info *.
82576         All uses changed.  Check for overflow in internal size calculation.
82577
82578         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
82579         rather than xmalloc/xrealloc.
82580         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
82581         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
82582         conformance bug: the old code used a pointer after freeing the
82583         storage that it addressed.
82584         * lib/hash.c (hash_initialize): Simplify the code by using
82585         xalloc_oversized rather than doing it by hand.
82586         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
82587         the buffer preserved.  Use free and xmalloc instead.
82588         * lib/quotearg.c (quotearg_n_options): Likewise.
82589         Use a simpler test for size overflow.  Don't use xalloc_oversized
82590         because unsigned int might be wider than size_t (!); this suggests
82591         that we should switch from unsigned int to size_t for slot numbers.
82592
82593 2003-10-28  Paul Eggert  <eggert@twinsun.com>
82594
82595         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
82596         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
82597         NetBSD kernels.  Requested by Richard Stallman.
82598
82599 2003-10-27  Paul Eggert  <eggert@twinsun.com>
82600
82601         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
82602         to allocate the returned structure.  Do not allocate a subarray,
82603         as x2nrealloc will do that.
82604         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
82605         instead of xnrealloc.
82606         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
82607
82608 2003-10-27  Bruno Haible  <bruno@clisp.org>
82609
82610         * lib/stdbool_.h: Better support for BeOS.
82611
82612 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82613
82614         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
82615         now uses inline.
82616
82617 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82618
82619         * lib/xalloc.h (xalloc_oversized): New static inline function, for
82620         callers that want to do their own size-overflow checking.  Include
82621         <stdbool.h>, since xalloc_oversized returns bool.
82622         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
82623         to use xalloc_oversized.
82624
82625         Add two functions x2realloc, x2nrealloc, for programs that grow
82626         arrays dynamically by doubling their sizes.
82627         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
82628         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
82629         New functions.
82630
82631         Port to C99 semantics for 'inline' of external functions.
82632         Bug reported by Bruno Haible.
82633         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
82634         with the old contents of xnmalloc.
82635         (xnmalloc, xmalloc): Use it.
82636         (xnrealloc_inline): New static inline function,
82637         with the old contents of xnrealloc.
82638         (xnrealloc, xrealloc): Use it.
82639
82640         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
82641         that.
82642
82643 2003-10-26  Karl Berry  <karl@gnu.org>
82644
82645         * config/srclist.txt (COPYING.DOC): no longer available from
82646         /gd/gnuorg; don't know where the ultimate source is.
82647
82648 2003-10-25  Paul Eggert  <eggert@twinsun.com>
82649
82650         Fix several address-calculation bugs in the hash modules,
82651         plus some minor code cleanup.
82652
82653         * lib/hash.h: Include <stdbool.h>, for bool.
82654         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
82655         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
82656         hash_get_n_entries, hash_get_max_bucket_length,
82657         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
82658         hash_rehash): Use size_t rather than unsigned.
82659         * lib/hash.c (struct hash_table, hash_get_n_buckets,
82660         hash_get_n_buckets_used, hash_get_n_entries,
82661         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
82662         hash_get_entries, hash_do_for_each, hash_string, is_prime,
82663         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
82664         Likewise.
82665         (SIZE_MAX): Define if not defined.
82666         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
82667         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
82668         hash_print):
82669         Use const * when possible.
82670         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
82671         (check_tuning): Fix bug: if tuning parameters were very close to
82672         0 or 1, rounding errors could have caused subscript violations.
82673         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
82674         (hash_initialize): Add 'fail:' label
82675         to free table and return NULL, and use it to simplify code.
82676         Use calloc rather than clearing the storage ourself.
82677         (hash_initialize, hash_rehash): Check for arithmetic overflow in
82678         buffer size calculations.
82679         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
82680         Include <stddef.h>, for size_t.
82681         * lib/hash-pjw.c (hash_pjw): Likewise.
82682         Switch to method described by Bruno Haible.
82683         Include <limits.h>, for CHAR_BIT.
82684         (SIZE_BITS): New macro.
82685
82686 2003-10-23  Paul Eggert  <eggert@twinsun.com>
82687
82688         * m4/getline.m4 (AM_FUNC_GETLINE):
82689         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
82690         hosts.  Problem reported by Derek Robert Price in
82691         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
82692         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
82693         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
82694
82695 2003-10-21  Paul Eggert  <eggert@twinsun.com>
82696
82697         * lib/getndelim2.c (getndelim2): When size calculation overflows,
82698         ceiling the allocation at NMAX bytes rather than silently
82699         discarding input bytes before NMAX is reached.  This makes
82700         a difference only if NMAX exceeds SIZE_MAX / 2.
82701
82702         * lib/obstack.c: Merge from glibc.
82703         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
82704         Add libc_hidden_def (_obstack_newchunk).
82705         (_obstack_free) [! defined _LIBC]: Remove.
82706         [defined _LIBC]: Make a strong alias from obstack_free, rather than
82707         a clone of the function body.
82708         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
82709         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
82710
82711         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
82712         glibc.
82713         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
82714         arg to memcpy.
82715
82716         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
82717         (obstack_ptr_grow_fast, obstack_int_grow_fast):
82718         Don't use lvalue casts, as GCC plans to remove support for them
82719         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
82720         was also present in the non-GCC version, indicating that this
82721         code had always been buggy and had never been widely used.
82722         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
82723         Use the fast variant of each macro, rather than copying the
82724         definiens of the fast variant; that way, we'll be more likely to
82725         catch future bugs in the fast variants.
82726
82727 2003-10-20  Bruno Haible  <bruno@clisp.org>
82728
82729         * modules/wait-process: New file.
82730         * MODULES.html.sh (func_all_modules): Add wait-process.
82731
82732 2003-10-20  Bruno Haible  <bruno@clisp.org>
82733
82734         * m4/wait-process.m4: New file.
82735
82736 2003-10-20  Bruno Haible  <bruno@clisp.org>
82737
82738         * lib/wait-process.h: New file, from GNU gettext.
82739         * lib/wait-process.c: New file, from GNU gettext.
82740
82741 2003-10-19  Jim Meyering  <jim@meyering.net>
82742
82743         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
82744         HPUX 10.20.
82745
82746 2003-10-18  Karl Berry  <karl@gnu.org>
82747
82748         * config/config.guess: update from config.
82749
82750 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82751
82752         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
82753         (getgroups): First arg is int, not size_t.
82754         Don't let 'free' mangle errno.
82755
82756 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82757
82758         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
82759
82760 2003-10-16  Karl Berry  <karl@gnu.org>
82761
82762         * config/config.{guess,sub}: update from config.
82763
82764 2003-10-16  Jim Meyering  <jim@meyering.net>
82765
82766         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
82767         memcpy.
82768
82769 2003-10-15  Paul Eggert  <eggert@twinsun.com>
82770
82771         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
82772         (SIZE_MAX): Remove.
82773         (new_exclude, add_exclude_file): Initial size no longer needs to
82774         be a power of 2.
82775         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
82776         our own address arithmetic overflow checking.
82777
82778         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
82779         (fnmatch): Do not alloca more than 2000 wide characters;
82780         instead, use malloc for large buffers.
82781         Check for address arithmetic overflow, and return -1
82782         with errno set to ENOMEM in that case.
82783         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
82784         (NEW_PATTERN): Do not alloca more than 8000 bytes;
82785         instead, return -1.  Check for address arithmetic overflow.
82786
82787 2003-10-14  Paul Eggert  <eggert@twinsun.com>
82788
82789         Handle invalid suffixes and overflow independently, so that
82790         callers can treat them independently as needed.  Fix some bugs in
82791         suffix handling, e.g., "100k@" was not diagnosed as an invalid
82792         suffix for a human-readable blocksize.  The major caller-visible
82793         change is the addition of a new
82794         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
82795         that both overflow and suffix chars were found.
82796
82797         * lib/human.c (humblock): Don't check separately for invalid suffix
82798         char; that is xstrtoumax's job (now that its bug is fixed).
82799         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
82800         INTMAX_MAX]: New macros.
82801         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
82802         TYPE_MAXIMUM): New macros.
82803         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
82804         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
82805         if overflow occurs, as it's what __strtol does and it's more useful
82806         in practice.
82807         (__xstrtol): If __strtol reports some error other than ERANGE,
82808         reflect it to the caller as LONGINT_INVALID.  If it reports
82809         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
82810         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
82811         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
82812         value.
82813         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
82814         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
82815         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
82816         [defined UINTMAX_MAX]: New macros.
82817
82818 2003-10-14  Bruno Haible  <bruno@clisp.org>
82819
82820         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
82821
82822 2003-10-14  Bruno Haible  <bruno@clisp.org>
82823
82824         * m4/sig_atomic_t: New file, from GNU gettext.
82825         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
82826
82827 2003-10-14  Bruno Haible  <bruno@clisp.org>
82828
82829         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
82830         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
82831         Also use volatile where needed.
82832
82833 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82834
82835         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
82836         Change maintainer from Bruno Haible to 'all'.
82837
82838 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82839
82840         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
82841
82842 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82843
82844         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
82845         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
82846         and define in terms of the other primitives.
82847         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
82848         (SIZE_MAX): Define if not already defined.
82849         (array_size_overflow): New function.
82850         (xalloc_die): Abort instead of exiting if 'error' returns.
82851         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
82852         (xmalloc, xrealloc): Use them.
82853         (xcalloc): Check for address arithmetic overflow.
82854         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
82855         a bit faster than strcpy.
82856
82857 2003-10-10  Simon Josefsson  <jas@extundo.com>
82858
82859         * modules/argp (Depends-on): Add restrict and strcase.
82860
82861 2003-10-10  Simon Josefsson  <jas@extundo.com>
82862
82863         * m4/argp.m4: Add AC_C_INLINE.
82864
82865 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82866
82867         Merge getpass from libc, plus a few fixes.
82868
82869         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
82870         Include <stdbool.h>.
82871         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
82872         __fsetlocking to empty.
82873         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
82874         do include <bits/libc-lock.h>.
82875         Do not include <fcntl.h>; not needed.
82876         [_LIBC]: Include <wchar.h>.
82877         (NOTCANCEL_MODE): New macro.
82878         (flockfile, funlockfile) [_LIBC]: New macros.
82879         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
82880         [!_LIBC]: New macros.
82881         (call_fclose): New function.
82882         (getpass): Use it.  Save tty stream separately; this simplifies the
82883         code and makes it more reliable if stdin happens to equal stdout.
82884         Invoke __fsetlocking on tty.
82885         Handle thread cancellation if needed.
82886         Namespace cleanup (use __tcgetattr, __getline).
82887         Use bool for Booleans.
82888         [USE_IN_LIBIO]: Handle wide streams.
82889         [!_LIBC]: Unconditionally do the fseek, since we don't know what
82890         stream might go where.
82891
82892         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
82893         doesn't have to include <stdio.h> before us.
82894         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
82895         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
82896         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
82897         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
82898         if not declared, so that we can use getpass.c code from libc without
82899         rewriting it.
82900         (flockfile, ftrylockfile, funlockfile): New macros.
82901
82902 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82903
82904         * modules/getpass: Depend on stdbool.
82905
82906 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82907
82908         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
82909
82910 2003-10-07  Karl Berry  <karl@gnu.org>
82911
82912         * config/config.{guess,sub}: update from config.
82913
82914 2003-10-06  Jim Meyering  <jim@meyering.net>
82915             Bruno Haible  <bruno@clisp.org>
82916
82917         This lets translators provide better translations for the
82918         "Written by ..." part of --version output.
82919         * lib/version-etc.h: Include stdarg.h.
82920         (version_etc_copyright): Declare as readonly.
82921         (version_etc): Make this function variadic with a NULL-terminated list
82922         of author name strings.
82923         (version_etc_va): New declaration.
82924         * lib/version-etc.c: Include stdarg.h, stdlib.h.
82925         (version_etc_copyright): Declare as readonly.
82926         (version_etc_va): New function. Provide a different translatable string
82927         for each possible number of authors < 10. Abbreviate when there are 10
82928         authors or more.
82929         (version_etc): Make this function variadic. Call version_etc_va.
82930         Suggestion from Gary V. Vaughan.
82931
82932         * lib/long-options.h (parse_long_options): Change prototype: the
82933         authors string is moved to the end and becomes variadic.
82934         * lib/long-options.c: Include stdarg.h.
82935         (parse_long_options): Make this function variadic, too.
82936         Call version_etc_va, not version_etc.
82937
82938 2003-10-06  Bruno Haible  <bruno@clisp.org>
82939
82940         * modules/version-etc-2: Remove file.
82941         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
82942
82943 2003-10-06  Bruno Haible  <bruno@clisp.org>
82944
82945         * modules/fatal-signal: New file.
82946         * MODULES.html.sh (func_all_modules): Add fatal-signal.
82947
82948 2003-10-06  Bruno Haible  <bruno@clisp.org>
82949
82950         * m4/fatal-signal.m4: New file.
82951         * m4/signalblocking.m4: New file, from GNU gettext.
82952
82953 2003-10-06  Bruno Haible  <bruno@clisp.org>
82954
82955         * lib/version-etc-2.h: Remove file.
82956         * lib/version-etc-2.c: Remove file.
82957
82958 2003-10-06  Bruno Haible  <bruno@clisp.org>
82959
82960         * lib/fatal-signal.h: New file, from GNU gettext.
82961         * lib/fatal-signal.c: New file, from GNU gettext.
82962
82963 2003-10-05  Paul Eggert  <eggert@twinsun.com>
82964
82965         * README: Rework advice for preventing empty .o files.
82966         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
82967         not <sys/types.h>.
82968
82969 2003-10-04  Karl Berry  <karl@gnu.org>
82970
82971         * lib/argp*: update from libc.
82972
82973 2003-10-04  Karl Berry  <karl@gnu.org>
82974
82975         * config/config.{guess,sub}: update from config.
82976
82977 2003-10-02  Bruno Haible  <bruno@clisp.org>
82978
82979         * modules/lchown (Include): Add lchown.h.
82980         * modules/time_r (Include): Use "..." syntax.
82981         * modules/xgetdomainname (Include): Add xgetdomainname.h.
82982
82983 2003-10-01  Simon Josefsson  <jas@extundo.com>
82984
82985         * MODULES.html.sh (func_all_modules): Move gethostname from section
82986         'based on' to section 'lacking' POSIX:2001.
82987
82988 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
82989
82990         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
82991         to output mode on the same stream.
82992
82993 2003-09-29  Paul Eggert  <eggert@twinsun.com>
82994
82995         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
82996         Fix arg typo in previous patch.
82997
82998 2003-09-28  Jim Meyering  <jim@meyering.net>
82999
83000         * lib/error.c: Correct cpp indentation.
83001
83002 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83003
83004         * modules/free: New file.
83005
83006 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83007
83008         * m4/free.m4: New file.
83009
83010 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83011
83012         * lib/minmax.h (MIN, MAX)
83013         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
83014         Omit the special code that used __typeof__, since we worry that
83015         it could be more trouble than it's worth.  See:
83016         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
83017         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
83018
83019         * lib/free.c: New file.
83020
83021 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
83022
83023         Trivial fixes to Makefile.am parts of module listings.
83024         * modules/strstr: Append strstr.h to lib_SOURCES.
83025         * modules/strcase: Likewise, for strcase.h.
83026
83027 2003-09-27  Karl Berry  <karl@gnu.org>
83028
83029         * config/mkinstalldirs: update from automake.
83030
83031 2003-09-26  Paul Eggert  <eggert@twinsun.com>
83032
83033         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
83034         (error_tail): Do not loop, reallocating temporary buffer, since
83035         the output cannot contain more wide characters than the input
83036         contains bytes, the size must be big enough already.  This avoids
83037         one potential size overflow calculation.  Check for size overflow
83038         when calculating temporary buffer size.  Free temporary buffer
83039         when done, if it was allocated with malloc; this plugs a memory
83040         leak.  Remove casts from void * to pointers, that are no longer
83041         needed now that we're assuming C89 or better.
83042
83043         Merge error changes from glibc.
83044
83045         * lib/error.c, error.h: Update copyright notice header to match glibc.
83046         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
83047         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
83048         Disable cancellation while printing error.
83049         * lib/error.h: Prepend __ to parameter names.
83050
83051 2003-09-26  Jim Meyering  <jim@meyering.net>
83052
83053         * lib/error.c (error_tail): Move some declarations
83054         into inner scope where the local variables are used.
83055
83056 2003-09-26  Bruno Haible  <bruno@clisp.org>
83057
83058         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
83059         stpncpy().
83060         Don't define stpncpy through config.h; it's now done through stpncpy.h.
83061
83062 2003-09-26  Bruno Haible  <bruno@clisp.org>
83063
83064         * lib/stpncpy.h (gnu_stpncpy): New declaration.
83065         (stpncpy): Define as alias for gnu_stpncpy.
83066         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
83067
83068 2003-09-25  Simon Josefsson  <jas@extundo.com>
83069
83070         * lib/xgetdomainname.h: New file.
83071         * lib/xgetdomainname.c: New file.
83072
83073 2003-09-25  Simon Josefsson  <jas@extundo.com>
83074             Bruno Haible  <bruno@clisp.org>
83075
83076         * modules/getdomainname: New file.
83077         * modules/xgetdomainname: New file.
83078         * MODULES.html.sh (func_all_modules): Add getdomainname,
83079         xgetdomainname.
83080
83081 2003-09-25  Simon Josefsson  <jas@extundo.com>
83082             Bruno Haible  <bruno@clisp.org>
83083
83084         * m4/getdomainname.m4: New file.
83085
83086 2003-09-25  Simon Josefsson  <jas@extundo.com>
83087             Bruno Haible  <bruno@clisp.org>
83088
83089         * lib/getdomainname.h: New file.
83090         * lib/getdomainname.c: New file.
83091
83092 2003-09-25  Karl Berry  <karl@gnu.org>
83093
83094         * lib/argp-fmtstream.c, argp-help.c: update from libc.
83095
83096 2003-09-25  Karl Berry  <karl@gnu.org>
83097
83098         * config/install-sh: update from automake.
83099
83100 2003-09-25  Bruno Haible  <bruno@clisp.org>
83101
83102         * modules/version-etc-2: New file, from modules/version-etc with
83103         modifications.
83104         * MODULES.html.sh (func_all_modules): Add version-etc-2.
83105
83106 2003-09-25  Bruno Haible  <bruno@clisp.org>
83107
83108         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
83109         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
83110
83111 2003-09-24  Simon Josefsson  <jas@extundo.com>
83112
83113         * modules/xgethostname: Add xgethostname.h.
83114
83115 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83116
83117         * lib/linebuffer.c (freebuffer): Don't free the argument, just
83118         the buffer associated with the argument.  Bug reported by
83119         Simon Josefsson.
83120
83121 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83122
83123         * README: Document assumptions that 'int' is at least 32 bits
83124         wide, that integer arithmetic is 2's complement without overflow,
83125         that there are no holes in integer values, that adding sizes of
83126         two nonoverlapping objects can't overflow, and that all-bits-zero
83127         yields scalar zero.  Fix spelling and capitalization typos.
83128
83129 2003-09-19  Karl Berry  <karl@gnu.org>
83130
83131         * lib/argp.h: update from libc.
83132
83133 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83134
83135         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
83136         to avoid spurious warnings like "AC_RUN_IFELSE was called before
83137         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
83138
83139 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83140
83141         * gnulib-tool: Use "test -h", not "test -L", for portability
83142         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
83143         (tags_regexp): Remove, since \| doesn't conform to POSIX.
83144         (sed_extract_prog): Issue s commands one-by-one, rather than
83145         using \| in one s command.
83146
83147 2003-09-16  Paul Eggert  <eggert@twinsun.com>
83148
83149         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
83150         input error, instead of returning NULL the next time we are called
83151         (and therefore losing track of errno).
83152
83153 2003-09-16  Bruno Haible  <bruno@clisp.org>
83154
83155         * gnulib-tool (func_create_testdir): Warn about duplicated
83156         dependencies.
83157
83158 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83159
83160         * modules/argmatch, modules/fatal, modules/obstack,
83161         modules/xalloc, modules/xgethostname: Sort dependencies by
83162         importance, not alphabetically.
83163
83164 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83165
83166         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
83167         fails, so that the caller gets the proper errno.
83168
83169         * lib/readutmp.c (read_utmp): Likewise.
83170         Check for fstat error.  Close stream and free storage
83171         when failing.
83172
83173 2003-09-14  Karl Berry  <karl@gnu.org>
83174
83175         * config/srclist.txt (strdup.c): disable for c89 changes.
83176
83177 2003-09-14  Jim Meyering  <jim@meyering.net>
83178
83179         * lib/getloadavg.c: Correct cpp indentation.
83180         * lib/strdup.c: Likewise.
83181         * lib/vasnprintf.c: Likewise.
83182
83183 2003-09-14  Bruno Haible  <bruno@clisp.org>
83184
83185         * modules/fwriteerror: New file.
83186         * MODULES.html.sh (func_all_modules): Add fwriteerror.
83187
83188 2003-09-14  Bruno Haible  <bruno@clisp.org>
83189
83190         * lib/fwriteerror.h: New file.
83191         * lib/fwriteerror.c: New file.
83192
83193 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83194
83195         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
83196         modules/xgethostname, modules/xalloc: Depend on exit.
83197
83198 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83199
83200         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
83201
83202         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
83203         and AC_MINIX, too, so that their extensions are available.
83204
83205         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
83206         This macro has been superseded by gl_BACKUPFILE.
83207
83208         More patches to assume C89 or better.
83209
83210         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
83211
83212         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
83213         unconditionally.
83214         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
83215         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
83216         Include <string.h>, <stdlib.h> unconditionally.
83217         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
83218         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
83219         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
83220         headers or for string.h.
83221         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
83222         or strtoul.
83223
83224         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
83225         headers.
83226         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
83227         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83228         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
83229         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
83230         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83231         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
83232         memcpy, memset.
83233         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
83234         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
83235         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
83236         strtol.
83237         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
83238         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
83239         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
83240         strtoul.
83241
83242 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83243
83244         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
83245         * lib/obstack.c [!defined _LIBC]: Likewise.
83246         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
83247         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
83248         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
83249
83250         More changes to assume C89 or better.
83251
83252         * lib/error.c (error_tail): Assume vprintf.
83253
83254         * lib/argmatch.c (getenv): Remove decl.
83255         * lib/progreloc.c (get_full_program_name): Define via prototype.
83256         * lib/setenv.c (clearenv): Likewise.
83257         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
83258         needed.
83259         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
83260         (malloc, memcpy): Remove decls.
83261         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
83262         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
83263         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83264         (memcpy): Remove macro.
83265         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
83266         (__P): Remove.  All uses removed.
83267         (PTR): Remove.  All uses changed to void *.
83268         (CHAR_BIT, NULL): Remove.
83269         (spaces, zeros, memset_space, memset_zero)
83270         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
83271         Remove.
83272         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
83273         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
83274         Define with prototype.
83275         Remove now-unnecessary prototype decl.
83276         (extra_args_spec): Assume ANSI C.  All uses changed.
83277         (extra_args_spec_iso): Remove.
83278         (my_strftime, emacs_strftimeu): Define via prototype.
83279         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
83280         unconditionally.
83281         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
83282         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
83283         (strtoul, strtol): Remove decls.
83284         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
83285         LONG_MAX): Remove.
83286         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83287         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
83288         (LOCALE_PARAM_PROTO): New macro.
83289         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
83290         (INTERNAL (strtol), strtol): Define with a prototype.
83291         (PARAMS): Remove.  All uses removed.
83292         * lib/tempname.c: Include <string.h> unconditionally.
83293         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
83294         * lib/xgethostname.c (main): Define with a prototype.
83295         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
83296         Include <stdlib.h> unconditionally.
83297         (calloc, malloc, realloc, free): Remove decls.
83298         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
83299         Include <stdlib.h> unconditionally.  Sort include file names.
83300         (strtod): Remove.
83301         (xstrtod): Define with a prototype.
83302         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
83303         (strtol, strtoul): Remove decls.
83304
83305 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83306
83307         More patches to assume C89 or better.
83308         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
83309         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
83310         string.h, memchr, STDC_HEADERS.
83311
83312 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83313
83314         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
83315         Include <stdlib.h>, <string.h> unconditionally.
83316         Remove now-unnecessary cast to char *.
83317         * lib/strnlen.c: Include <string.h> unconditionally.
83318         * lib/yesno.c (yesno): Define with a prototype.
83319
83320 2003-09-11  Bruno Haible  <bruno@clisp.org>
83321
83322         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
83323
83324 2003-09-10  Jim Meyering  <jim@meyering.net>
83325
83326         * lib/error.c: Correct indentation of cpp directives.
83327
83328 2003-09-10  Bruno Haible  <bruno@clisp.org>
83329
83330         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
83331         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
83332         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
83333         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
83334         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
83335         <stdlib.h> and <string.h> checks.
83336         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
83337         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
83338
83339 2003-09-10  Bruno Haible  <bruno@clisp.org>
83340
83341         * lib/strcspn.c: Include <string.h> unconditionally.
83342         * lib/strpbrk.c: Include <string.h> unconditionally.
83343         * lib/strstr.c: Include <string.h> unconditionally.
83344         * lib/unicodeio.c: Include <string.h> unconditionally.
83345         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
83346         * lib/unsetenv.c: Likewise.
83347         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
83348         * lib/yesno.c: Include <stdlib.h> unconditionally.
83349         (rpmatch): Add prototype.
83350
83351 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83352
83353         More patches to assume C89 or better.
83354         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
83355         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
83356         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
83357         or for string.h.
83358         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
83359         stdlib.h.
83360         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
83361         C headers.
83362         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
83363         string.h.
83364         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
83365         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
83366         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
83367         or for string.h.
83368         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
83369         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
83370         C headers.
83371         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
83372         memcpy.
83373         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
83374         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
83375         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
83376         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
83377         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
83378         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
83379         string.h, free.
83380         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
83381         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
83382         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
83383         C headers, or for string.h.
83384         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
83385         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
83386         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
83387         headers, memory.h, stdlib.h, string.h, strings.h.
83388         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
83389         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
83390         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
83391         strchr.
83392         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
83393         headers, memory.h, string.h.
83394         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
83395         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
83396         free.
83397         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
83398         headers.
83399         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
83400         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
83401         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
83402         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
83403         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
83404
83405 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83406
83407         More K&R removal.
83408
83409         * lib/acosl.c (main): Use a prototype.
83410         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
83411         tanl.c: Likewise.
83412
83413         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
83414
83415         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
83416         (getopt, etopt_long, getopt_long_only, _getopt_internal)
83417         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
83418         with a prototype.
83419         * lib/getopt.c (const): Remove macro.
83420         Include <string.h> unconditionally.
83421         (my_index): Remove; all uses changed to strchr.
83422         (strlen): Remove decl.
83423         (exchange): Remove forward decl; no longer needed.
83424         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
83425         Define with prototype.
83426         * lib/getopt1.c (const): Remove macro.
83427         (getopt_long, getopt_long_only, main): Define with prototype.
83428
83429         * lib/getugroups.c: Include <string.h> unconditionally.
83430
83431         * lib/getusershell.c: Include <stdlib.h> unconditionally.
83432         (getusershell, setusershell, endusershell, readname, main):
83433         Define with prototypes.
83434
83435         * lib/group-member.c: Include group-member.h first.
83436         Include <stdlib.h> unconditionally.
83437
83438         * lib/hard-locale.c: Include hard-locale.h first.
83439         Include <stdlib.h>, <string.h> unconditionally.
83440
83441         * lib/hash.c (free, malloc): Remove decls.
83442         Include <stdlib.h> unconditionally.
83443
83444         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
83445         (getenv): Do not declare.
83446
83447         * lib/idcache.c: Include <string.h> unconditionally.
83448
83449         * lib/long-options.c: Include long-options.h first, to test interface.
83450         Include <stdlib.h> unconditionally.
83451
83452         * lib/makepath.c: Include makepath.h first, to test interface.
83453         Include <stdlib.h> and <string.h> unconditionally.
83454
83455         * lib/linebuffer.c: Include <stdlib.h>.
83456         (free): Remove decl.
83457
83458         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
83459         stddef.h. rpl_malloc returns void *, not char *.
83460         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
83461         prototype.
83462
83463         * lib/md5.h: Include <limits.h> unconditionally.
83464         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
83465         (__P): Remove; all uses removed.
83466         * lib/md5.c: Include "md5.h" first.
83467         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
83468         md5_buffer, md5_process_bytes, md5_process_block):
83469         Define with prototypes.
83470         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
83471         * lib/sha.c: Include "sha.h" first.
83472         Include <stdlib.h>, <string.h> unconditionally.
83473
83474         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
83475         * lib/memcmp.c (__ptr_t): Likewise.
83476         * lib/memrchr.c (__ptr_t): Likewise.
83477         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
83478         Include <string.h> unconditionally.
83479         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
83480         * lib/memchr.c: Include <stdlib.h> unconditionally.
83481         * lib/memchr.c (LONG_MAX): Remove.
83482         * lib/memrchr.c (LONG_MAX): Likewise.
83483         * lib/memchr.c (__memchr): Define via a prototype.
83484         * lib/memrchr.c (__memrchr): Likewise.
83485         * lib/memcmp.c (__P): Remove, and remove all uses.
83486         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
83487         Remove forward decls; no longer needed.
83488         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
83489         Use types required by C89 in prototype.
83490
83491         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
83492         * lib/savedir.c: Likewise.
83493         * lib/mkdir.c (free): Remove decl.
83494         * lib/rmdir.c (rmdir): Define with a prototype.
83495         * lib/savedir.c: Include savedir.h first, to test interface.
83496
83497         * lib/mktime.c (STDC_HEADERS): Remove.
83498         Include <stdlib.h>, <string.h> unconditionally.
83499
83500         * lib/modechange.c: Include <stdlib.h> unconditionally.
83501         (malloc): Remove decl.
83502
83503         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
83504         (free): Remove decl.
83505
83506         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
83507         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
83508         (This type really should be intptr_t, but that's a C99ism.)
83509         (_obstack_memcpy): Remove: all uses changed to memcpy.
83510         Include <string.h> unconditionally.
83511         (struct obstack): Assume __STDC__ for types of members
83512         chunkfun, freefun, extra_arg.
83513         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
83514         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
83515         obstack_begin, obstack_specify_allocation,
83516         obstack_specify_allocation_with_arg, obstack_chunkfun,
83517         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
83518         Remove unprototyped decls and the macros that use them.
83519         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
83520         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
83521         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
83522         (defined __STDC__ && __STDC__)]:
83523         Remove nonprototyped code.
83524         Include <stdlib.h> unconditionally.
83525         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
83526         _obstack_allocated_p, _obstack_free, obstack_free,
83527         _obstack_memory_used, print_and_abort):
83528         Define using prototypes.
83529         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
83530         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
83531         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
83532         obstack_next_free, obstack_object_size, obstack_room) [0]:
83533         Remove unused, unprototyped code.
83534
83535         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
83536
83537         * lib/physmem.c (physmem_total, physmem_available, main): Define
83538         with prototypes.
83539
83540         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
83541         (main): Define with a prototype.
83542
83543         * lib/posixver.c (getenv): Remove decl.
83544
83545         * lib/putenv.c (malloc): Returns void *, not char *.
83546         Include <string.h> unconditionally.
83547         (strchr, memcpy, NULL): Do not define.
83548
83549         * lib/readtokens.c: Include readtokens.h first, to test interface.
83550         Include <stdlib.h>, <string.h> unconditionally.
83551         (init_tokenbuffer): Define with a prototype.
83552
83553         * lib/regex.c (PARAMS): Remove.  All uses removed.
83554         All uses of _RE_ARGS removed, too.
83555         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83556         unconditionally.
83557         (bzero): Assume memset exists.
83558         (memcmp, memcpy, NULL): Remove.
83559         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
83560         char, or assignments to local vars of type signed char.
83561         (init_syntax_once, PREFIX(extract_number_and_incr),
83562         PREFIX(print_partial_compiled_pattern),
83563         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
83564         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
83565         PREFIX(regex_grow_registers), PREFIX(regex_compile),
83566         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
83567         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
83568         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
83569         wcs_compile_range, byte_compile_range, truncate_wchar,
83570         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
83571         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
83572         count_mbs_length, wcs_re_match_2_internal,
83573         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
83574         PREFIX(alt_match_null_string_p),
83575         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
83576         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
83577         regfree, PREFIX(extract_number)): Define with prototype.  Remove
83578         now-unnecessary declaration, if any.
83579         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
83580         regcomp, regexec):
83581         Remove now-unnecessary casts among pointer types.
83582         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
83583
83584         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
83585         (free): Remove decl.
83586
83587         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
83588
83589         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
83590         (free): Remove decl.
83591
83592         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
83593         * lib/xgetcwd.c: Likewise.
83594
83595         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
83596         (free): Remove decl.
83597
83598         * lib/strchrnul.c (strchrnul): Define with a prototype.
83599         Fix bug: c_in was not converted to char before searching.
83600
83601         The following changes are not K&R related:
83602
83603         * lib/group-member.h: Include <sys/types.h>, so that this file is
83604         self-contained.
83605         * lib/makepath.h: Likewise.
83606
83607         * lib/getusershell.c (readname, default_index, line_size, readname):
83608         Use size_t, not int, for sizes.
83609         (readname): If the size overflows, report an error instead of
83610         looping forever.
83611
83612 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83613
83614         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
83615         libc.
83616
83617 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83618
83619         * README: New section: portability guidelines.
83620
83621 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83622
83623         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
83624         C89 spec.
83625
83626 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83627
83628         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
83629
83630 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83631
83632         Assume C89 or better; remove K&R cruft.
83633         A few of these changes were first proposed by Derek Robert Price
83634         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
83635
83636         * lib/addext.c: Include <string.h> unconditionally.
83637         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
83638         Don't declare getenv or malloc.
83639
83640         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
83641         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
83642         (NULL): Remove.
83643         (find_stack_direction, alloca): Use prototypes.
83644
83645         * lib/atexit.c (atexit): Define using a prototype.
83646
83647         * lib/basename.c, dirname.c, stripslash.c:
83648         Include <string.h> unconditionally.
83649
83650         * lib/bcopy.c: Include <stddef.h>.
83651         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
83652
83653         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
83654
83655         * lib/error.h (error, error_at_line, error_print_progname)
83656         [! (defined (__STDC__) && __STDC__)]: Remove decls.
83657         * lib/error.c: Include error.h first, to check interface.
83658         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83659         (VA_START): Remove; all uses changeed to va_start.
83660         (exit, strerror): Remove decls.
83661         (error_print_progname): Prototype uncondionally.
83662         Don't include <errno.h>; no longer needed.
83663         (private_strerror): Remove.
83664         (error_tail): Always define.
83665         (error, error_at_line): Assume C89 or better; always use prototypes.
83666         * lib/fatal.c: Include "fatal.h" first, to test interface.
83667         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83668         (VA_START): Remove; all uses changed to va_start.
83669         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
83670         this case.
83671         (exit): Remove decl.
83672         (fatal): Prototype unconditionally.  Assume va_start works.
83673         Abort at end, to pacify gcc.
83674
83675         * lib/euidaccess.c (main): Define with a prototype.
83676
83677         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
83678
83679         * lib/exitfail.c: Include <stdlib.h> unconditionally.
83680
83681         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
83682         prototypes.
83683         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
83684         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
83685         (getenv): Remove decl.
83686         (fnmatch): Define using a prototype.
83687         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
83688         (FCT): Define using a prototype.
83689
83690         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
83691
83692         * lib/gethostname.c: Include <stddef.h>.
83693         (gethostname): Define with prototype.  Length is size_t, not int.
83694
83695 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83696
83697         Assume C89 or better; remove K&R cruft.
83698         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
83699         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
83700         string.h, getenv, malloc.
83701         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
83702         headers.
83703         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
83704         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
83705         do not check for strerror.
83706         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
83707         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
83708         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
83709         do not check for doprnt or vprintf.
83710         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
83711         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
83712
83713 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83714
83715         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
83716         getversion.c should have been removed then, but was accidentally
83717         preserved.
83718
83719         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
83720         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
83721
83722 2003-09-08  Karl Berry  <karl@gnu.org>
83723
83724         * config/config.sub, config.guess, srclistvars.sh: update from savannah
83725                 config, forget about prep.
83726
83727         * config/depcomp, missing: update from automake.
83728
83729 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83730
83731         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
83732         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83733
83734 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83735
83736         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
83737         copy_tm_result.  Bug reported by Simon Josefsson in
83738         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83739
83740 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83741
83742         * m4/time_r.m4: New file.
83743         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
83744         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
83745         is. Check for timegm declaration.
83746         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
83747         Do not check for gmtime_r.
83748         Replace mktime if __mktime_internal does not exist and if mktime
83749         hasn't been replaced already.
83750
83751 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83752
83753         * lib/time_r.c, lib/time_r.h: New files.
83754
83755         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
83756         __localtime_r.
83757         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
83758         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
83759
83760         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
83761         __gmtime_r.
83762         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
83763         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
83764         Include <time_r.h>.
83765
83766         * lib/timegm.c: Switch to glibc implementation, with the following
83767         changes:
83768         [defined HAVE_CONFIG_H]: Include <config.h>.
83769         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
83770         (__mktime_internal) [!defined _LIBC]: New decl.
83771         (__gmtime_r) [!defined _LIBC]: New macro and function.
83772         (timegm): Use a prototype, since gnulib assumes C89.
83773         Do not bother declaring tmp to be const, as it's not really usefu.
83774         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
83775         (timegm): Declare only if HAVE_DECL_TIMEGM.
83776
83777 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83778
83779         * MODULES.html.sh (func_all_modules): Add time_r.
83780         * modules/time_r: New file.
83781         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
83782         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
83783
83784 2003-09-03  Paul Eggert  <eggert@twinsun.com>
83785
83786         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
83787         Bug reported by Lute Kamstra in
83788         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
83789
83790         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
83791         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
83792         course with correspondingly smaller numbers for tomorrow and
83793         yesterday.  From Tadayoshi Funaba.  Originally installed into
83794         sh-utils on 1999-08-07, but the patch got lost (I guess during the
83795         coreutils merge?).
83796
83797 2003-08-31  Simon Josefsson  <jas@extundo.com>
83798
83799         * modules/timegm: New file.
83800         * MODULES.html.sh (func_all_modules): Add timegm.
83801
83802 2003-08-31  Simon Josefsson  <jas@extundo.com>
83803
83804         * m4/timegm.m4: New file.
83805
83806 2003-08-31  Simon Josefsson  <jas@extundo.com>
83807
83808         * lib/timegm.h: New file.
83809         * lib/timegm.c: New file.  Based on
83810         wget-1.8.2/src/http.c:mktime_from_utc.
83811
83812 2003-08-31  Karl Berry  <karl@gnu.org>
83813
83814         * lib/argp.h: update from libc.
83815
83816 2003-08-28  Bruno Haible  <bruno@clisp.org>
83817
83818         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
83819         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
83820         followed by '#define fnmatch fnmatch_posix' gives an error.
83821
83822 2003-08-28  Bruno Haible  <bruno@clisp.org>
83823
83824         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
83825         warning on QNX, which defines O_BINARY to 000000.
83826
83827 2003-08-27  Jim Meyering  <jim@meyering.net>
83828
83829         * m4/mkstemp.m4: Require that the system mkstemp be able to create
83830         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
83831         would fail after 32.  Reported by Danny Levinson.  Details here:
83832         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
83833
83834 2003-08-24  Bruno Haible  <bruno@clisp.org>
83835
83836         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
83837         MSVC7 <stdio.h> is included later.
83838
83839 2003-08-22  Simon Josefsson  <jas@extundo.com>
83840
83841         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
83842
83843 2003-08-20  Karl Berry  <karl@gnu.org>
83844
83845         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
83846
83847 2003-08-20  Bruno Haible  <bruno@clisp.org>
83848
83849         * modules/progname: New file.
83850         * MODULES.html.sh (func_all_modules): Add progname.
83851
83852 2003-08-20  Bruno Haible  <bruno@clisp.org>
83853
83854         * lib/progname.h: New file, from GNU gettext.
83855         * lib/progname.c: New file, from GNU gettext.
83856         * lib/progreloc.c: New file, from GNU gettext.
83857
83858 2003-08-19  Jim Meyering  <jim@meyering.net>
83859
83860         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
83861         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
83862
83863 2003-08-19  Bruno Haible  <bruno@clisp.org>
83864
83865         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
83866         more.
83867
83868 2003-08-19  Bruno Haible  <bruno@clisp.org>
83869
83870         * lib/xstrdup.c: Assume <string.h> exists.
83871
83872 2003-08-18  Paul Eggert  <eggert@twinsun.com>
83873
83874         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
83875         in makefile rules.
83876
83877 2003-08-18  Jim Meyering  <jim@meyering.net>
83878
83879         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
83880         * m4/lib-ld.m4: Likewise.
83881
83882 2003-08-18  Jim Meyering  <jim@meyering.net>
83883
83884         * lib/setenv.h: Indent nested cpp directive.
83885         * lib/vasnprintf.c: Remove trailing blanks.
83886
83887 2003-08-17  Simon Josefsson  <jas@extundo.com>
83888
83889         * modules/xstrndup: New file.
83890         * MODULES.html.sh (func_all_modules): Add xstrndup.
83891
83892 2003-08-17  Simon Josefsson  <jas@extundo.com>
83893
83894         * modules/argp: Fix autoconf macro name. Add more dependencies.
83895
83896 2003-08-17  Simon Josefsson  <jas@extundo.com>
83897
83898         * m4/xstrndup.m4: New file.
83899
83900 2003-08-17  Simon Josefsson  <jas@extundo.com>
83901
83902         * m4/argp.m4: New file.
83903
83904 2003-08-17  Simon Josefsson  <jas@extundo.com>
83905             Bruno Haible  <bruno@clisp.org>
83906
83907         * lib/xstrndup.h: New file.
83908         * lib/xstrndup.c: New file.
83909
83910 2003-08-17  Bruno Haible  <bruno@clisp.org>
83911
83912         * modules/strndup (Files, Include): Add lib/strndup.h.
83913
83914 2003-08-17  Bruno Haible  <bruno@clisp.org>
83915
83916         * modules/euidaccess (Files): Add lib/euidaccess.h.
83917
83918 2003-08-17  Bruno Haible  <bruno@clisp.org>
83919
83920         * lib/strndup.h: New file.
83921
83922 2003-08-17  Bruno Haible  <bruno@clisp.org>
83923
83924         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
83925         like AC_GNU_SOURCE.
83926         * modules/extensions (configure.ac): Comment out the invocation of
83927         gl_USE_SYSTEM_EXTENSIONS.
83928
83929 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83930
83931         Merges from coreutils, etc.
83932         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
83933         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
83934         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
83935         fixing a typo.
83936         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
83937         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
83938
83939 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83940
83941         Document merge from coreutils.
83942         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
83943         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
83944         * modules/utime: Add m4/utimes-null.m4.
83945
83946 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83947
83948         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
83949         space, undoing this 2003-08-12 change:
83950         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83951
83952 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83953
83954         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
83955         strtoul.c from libc, undoing this 2003-08-12 change:
83956         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83957
83958 2003-08-16  Jim Meyering  <jim@meyering.net>
83959
83960         Merges from coreutils.
83961         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
83962         prefix.  Adjust cache variables similarly.  Create 500 rather than
83963         just 300 files, to exercise bug on Darwin6.5, too.
83964         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
83965         $missing_dir.
83966         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
83967         AM_SYS_POSIX_TERMIOS.
83968         Reported by mkc@mathdogs.com.
83969         Also change use of $am_cv_sys_posix_termios
83970         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
83971         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
83972         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
83973         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
83974         in /proc/mounts until it finds one with matching device number.  This
83975         is unnecessary when the FILE argument *is* a mount point.  No stat call
83976         is necessary in that case.  So, disable the statvfs-testing code on
83977         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
83978         as RedHat bug# 84846.
83979         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83980         to 1MB, so as not to render systems with no stack size limit (e.g.,
83981         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83982         Include <unistd.h>.  On some systems,
83983         it is required for the definition of _SC_PAGESIZE.
83984
83985 2003-08-16  Jim Meyering  <jim@meyering.net>
83986
83987         Merge from coreutils.
83988         * lib/xstrtoimax.c: #else #if -> #elif.
83989         * lib/xstrtoumax.c: Likewise.
83990
83991 2003-08-16  Jim Meyering  <jim@meyering.net>
83992
83993         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
83994         * m4/utimes.m4: Removed.
83995         * m4/utimes-null.m4: Renamed from utimes.m4.
83996
83997         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83998         to 1MB, so as not to render systems with no stack size limit (e.g.,
83999         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
84000         Include <unistd.h>.  On some systems,
84001         it is required for the definition of _SC_PAGESIZE.
84002
84003 2003-08-16  Jim Meyering  <jim@meyering.net>
84004         and Paul Eggert  <eggert@cs.ucla.edu>
84005
84006         Merges from coreutils, etc.
84007
84008         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
84009         using the latest version from cvs.  This avoids problems with #line
84010         directives using a vendor (Sun) compiler.
84011         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
84012         Don't set GETGROUPS_LIB here; now it's
84013         done via getgroups.m4's wrapper function.
84014         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
84015         rather than just in sh-util/configure.in, so that the
84016         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
84017         same.
84018         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
84019         AC_FUNC_GETLOADAVG where to find getloadavg.c.
84020         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
84021         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
84022         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
84023         Remove code that is now done by the newly-required macros.
84024         Append $(EXEEXT) to DF_PROG.
84025         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
84026         Do not invoke or require the following here,
84027         since prereq.m4 or some gnulib .m4 now does this for us:
84028         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
84029         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
84030         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
84031         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
84032         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
84033         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
84034         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
84035         AC_FUNC_OBSTACK.
84036         Do not replace the following functions, as this is now the job
84037         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
84038         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
84039         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
84040         atexit getpass, strdup, getpagesize.
84041         Replace 'raise'.
84042         Do not check for the following functions, as this is now the job
84043         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
84044         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
84045         setregid.
84046         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
84047         Check for sys/sysctl.h.
84048         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
84049         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
84050         of checking for ssize_t ourselves.
84051
84052         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
84053         Require every macro that gnulib/modules/* suggests for us.
84054         (jm_PREREQ_ADDEXT): New macro.
84055         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
84056         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
84057
84058         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
84059         (gl_PHYSMEM): Use it.
84060         Also check for `table' function.
84061         Check for new headers and functions.
84062         Add check for sys/sysmp.h.
84063         With suggestions from Kaveh Ghazi.
84064         Ignore headers that are present but cannot be compiled.  This
84065         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
84066         C 5.4.
84067
84068 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84069
84070         Document merge from coreutils.
84071         * modules/userspec: Depend on posixver.
84072         * modules/strftime: Depend on tzset.
84073
84074 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84075
84076         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
84077         rather than tab, after '#' in shell-script copyright notices.
84078         Suggested by Bruno Haible.
84079
84080 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84081
84082         * config/srclist-update: Use three spaces, rather than tab, after '#'
84083         in shell-script copyright notices.  Suggested by Bruno Haible.
84084         Remove unnecessary parenthesization in regular expression.
84085
84086 2003-08-15  Jim Meyering  <jim@meyering.net>
84087
84088         Merge from coreutils.
84089         * lib/xgethostname.c: Include <stdlib.h>.
84090         (xghostname): Don't exit for anything other than memory-related
84091         failure; just return NULL.
84092         * lib/userspec.c: Include "posixver.h".
84093         (parse_user_spec): Accept `.' as a separator only
84094         in pre-POSIX-200112 mode.
84095         * lib/strtoimax.c: Use #elif rather than #else #if.
84096         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
84097         Remove function, now that we can rely on a working tzset function.
84098         [!_LIBC]: Ensure that the required autoconf test has been run.
84099         [!defined _NL_CURRENT && HAVE_STRFTIME]:
84100         Use underlying_strftime for %r.
84101         * lib/sha.c: Merge in some clean-up and optimization changes from
84102         glibc.
84103         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
84104         Ensure that it is a multiple of 64.
84105         Rearrange loop exit tests so as to avoid performing an
84106         additional fread after encountering an error or EOF.
84107         * lib/realloc.c: Update copyright date.
84108
84109 2003-08-15  Jim Meyering  <jim@meyering.net>
84110         and Paul Eggert  <eggert@twinsun.com>
84111
84112         Merge from coreutils.
84113         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
84114         member but strut utmpx does not.  Needed for AIX 4.3.3.
84115         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
84116
84117 2003-08-15  Jim Meyering  <jim@meyering.net>
84118         and Paul Eggert  <eggert@cs.ucla.edu>
84119
84120         Merges from coreutils, etc.
84121         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
84122         Require gl_FUNC_TZSET_CLOBBER.
84123         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
84124         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
84125         members.
84126
84127 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84128
84129         Help the merge from coreutils.
84130         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
84131         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
84132         * m4/tzset.m4: Use it too.
84133
84134 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84135
84136         * modules/tzset: New file.
84137
84138 2003-08-14  Jim Meyering  <jim@meyering.net>
84139
84140         Merges from coreutils.
84141         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
84142         variable names, rather than @FNMATCH_H@.
84143         * modules/alloca: Likewise for $(ALLOCA_H).
84144
84145         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
84146         the three copies of the literal target, `fnmatch.h'.
84147         * modules/alloca (alloca.h): Likewise.
84148
84149 2003-08-14  Jim Meyering  <jim@meyering.net>
84150
84151         Merge from coreutils.
84152         * m4/tzset.m4: New file.
84153         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
84154         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
84155         otherwise, AIX 5.1 systems would end up using the latter.
84156         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
84157         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
84158         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
84159         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
84160
84161 2003-08-14  Jim Meyering  <jim@meyering.net>
84162
84163         Merge from coreutils.
84164         * lib/obstack.h: Whitespace changes.
84165         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
84166         and xcalloc return values.
84167         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
84168         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
84169         hang on OSF/1 5.1 for DIR on both local and remote file systems.
84170         Reported by (and fix confirmed by) Nelson H. F. Beebe.
84171         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84172         error from mntctl.
84173         Use mntctl's return value to drive the entry-processing loop, since
84174         we can't rely on the value of the vmt_length member in the last
84175         entry.  On some systems doing so could result in exhausting
84176         virtual memory.  Based in part on a patch from Mike Jetzer.
84177
84178 2003-08-14  Jim Meyering  <jim@meyering.net>
84179         and Paul Eggert  <eggert@twinsun.com>
84180
84181         Merges from coreutils, plus other fixes.
84182         * lib/physmem.c: Merge in portability changes from gcc/libiberty
84183         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
84184         for credits and details.  Thanks to Kaveh Ghazi for helping
84185         to keep these files in sync.
84186         (ARRAY_SIZE): Define it.
84187         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
84188         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
84189         (memcasecmp): Don't assume size_t fits in unsigned int.
84190         Remove casts and duplicate code.
84191         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
84192         (memcpy): Remove definition.
84193         Merge in some clean-up and optimization changes from glibc.
84194         [BLOCKSIZE]: Move definition to top of file.
84195         Ensure that it is a multiple of 64.
84196         Rearrange loop exit tests so as to avoid performing an
84197         additional fread after encountering an error or EOF.
84198         * lib/md5.h (md5_uintptr): Define.
84199         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
84200         return to the initial working directory.  Preserve errno
84201         for caller.
84202         * lib/idcache.c: Include "xalloc.h".
84203         (xmalloc, xrealloc): Remove decls.
84204         (getuser): Remove casts no longer required in C89.
84205         * lib/human.c: Include stdio.h, for sprintf.
84206         * lib/group-member.c: Include "xalloc.h".
84207         (xmalloc, xrealloc): Remove decls.
84208         (get_group_info): Remove casts no longer required in C89.
84209         * lib/getusershell.c (readname): Remove casts no longer required in
84210         C89.
84211         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
84212         * lib/getline.c: Whitespace fix, from coreutils.
84213
84214 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84215
84216         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
84217         Check for isascii.
84218
84219         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84220         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84221         Undo previous (whitespace-only) change.
84222
84223 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84224
84225         * lib/exclude.c: Include <ctype.h>
84226         (IN_CTYPE_DOMAIN): New macro.
84227         (is_space): New fn.
84228         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
84229         and empty lines.
84230
84231         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84232         Undo previous (whitespace-only) change.
84233
84234 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84235
84236         * config/srclist-update: Change update back to the old behavior,
84237         leaving whitespace alone.  Use one 'sed' command rather than a
84238         pipeline.
84239         (fixlicense): Now a variable, not a function.
84240         (remove_trailing_blanks): Remove.
84241         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
84242         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84243         Undo previous (whitespace-only) change.
84244
84245 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84246
84247         Merge from coreutils.
84248         * modules/euidaccess: Add lib_SOURCES, include for new
84249         file euidaccess.h
84250
84251 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84252
84253         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84254         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84255         Normalize leading white space and remove trailing white space.
84256
84257         Merge from coreutils
84258         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
84259
84260         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
84261         0.12.1.  These files are now being upgraded automatically by
84262         ../config/srclist-update.
84263
84264 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84265
84266         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84267         Normalize leading white space and remove trailing white space.
84268         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
84269         notice, as per ../config/srclist-update.
84270
84271         Merge from coreutils.
84272         * lib/euidaccess.h: New file.
84273         * lib/euidaccess.c: Include it.
84274         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
84275         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
84276         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
84277
84278 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84279
84280         * config/srclist-update: Add copyright notice.
84281         (remove_id_lines, remove_trailing_blanks): New constants.
84282         (fixfile): Use them to normalize spacing a bit in copied files.
84283         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84284         Normalize leading white space and remove trailing white space.
84285
84286         * config/texinfo.tex: Sync with texinfo.
84287
84288         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
84289         strtoul.c from libc, to merge coreutils whitespace changes.
84290
84291         * config/srclist.txt: Get the following m4 files from gettext:
84292         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
84293         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
84294         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
84295         wint_t.m4.
84296
84297 2003-08-12  Karl Berry  <karl@gnu.org>
84298
84299         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
84300         been made.
84301
84302 2003-08-11  Paul Eggert  <eggert@twinsun.com>
84303
84304         * modules/gnu-source, m4/gnu-source.m4:
84305         Remove; we're assuming Autoconf 2.54 or later now.
84306         Suggested by Bruno Haible.
84307         * MODULES.html.sh (func_all_modules): Remove gnu-source.
84308
84309 2003-08-11  Bruno Haible  <bruno@clisp.org>
84310
84311         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
84312
84313 2003-08-11  Bruno Haible  <bruno@clisp.org>
84314
84315         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
84316         (vasnprintf): Use it instead of wcslen.
84317
84318 2003-08-11  Bruno Haible  <bruno@clisp.org>
84319
84320         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
84321         value to ensure that _Bool promotes to int. Use #define for _Bool when
84322         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
84323
84324 2003-08-10  Karl Berry  <karl@gnu.org>
84325
84326         * lib/regex.h: update from libc (whitespace fix).
84327
84328 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84329
84330         Merge some files from coreutils.  These changes were
84331         originally made by Jim Meyering.
84332         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
84333         many older Unixes require this.
84334         * lib/alloca.c (alloca): Remove cast to argument of free;
84335         no longer needed in C89.
84336         * lib/alloca_.h, regex.h: Fix white space to match
84337         what GNU indent does.
84338
84339 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84340
84341         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
84342         apparently Emacs's Unicode mode got confused before my 2003-08-05
84343         checkin.
84344
84345 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84346
84347         * m4/extensions.m4: New file.
84348         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
84349         Require gl_USE_SYSTEM_EXTENSIONS.
84350         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
84351         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
84352
84353 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84354
84355         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
84356         * modules/extensions, modules/gnu-source: New files.
84357         * modules/timespec, modules/unlocked-io: Depend on extensions.
84358
84359 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84360
84361         * modules/restrict: New file.
84362         * MODULES.html.sh (func_all_modules): Add restrict.
84363         * modules/regex: Depend on restrict.
84364
84365 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84366
84367         * m4/restrict.m4: New file.
84368         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
84369
84370 2003-08-07  Bruno Haible  <bruno@clisp.org>
84371
84372         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
84373         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
84374
84375 2003-08-07  Bruno Haible  <bruno@clisp.org>
84376
84377         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
84378         makes the module 'getndelim2' compatible with the module 'getline'.
84379
84380 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84381
84382         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
84383         byte with "\201" to avoid glitches when editing that source file
84384         with multi-gnome-terminal.
84385
84386 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84387
84388         * lib/bumpalloc.h: Remove.
84389
84390 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84391
84392         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
84393         * modules/bumpalloc: Remove.
84394
84395 2003-08-04  Paul Eggert  <eggert@twinsun.com>
84396
84397         * lib/getloadavg.c: Change copyright notice and spacing to conform to
84398         GNU coding style.
84399
84400         Merge from coreutils.
84401         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
84402         1. From glibc.
84403         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
84404         from Karl Berry, implemented by Jim Meyering.
84405         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
84406         from Dmitry V. Levin.
84407         Remove anachronistic cast of xrealloc.
84408         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
84409         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
84410         type. Otherwise, it wouldn't compile with at least /bin/cc on
84411         ymp-cray-unicos9.0.2.X.
84412         Combine two mostly-identical uses of alloca into one.
84413         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
84414
84415 2003-08-04  Dave Love  <d.love@dl.ac.uk>
84416
84417         [From Emacs.]
84418
84419         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
84420         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
84421         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
84422         obsolete NLIST_NAME_UNION.
84423         [__GNU__]: Undef BSD and FSCALE.
84424         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
84425
84426 2003-08-03  Paul Eggert  <eggert@twinsun.com>
84427
84428         * lib/stdbool_.h (_Bool): Make it signed char, instead of
84429         an enum type, so that it's guaranteed to promote to int.  See:
84430         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
84431
84432 2003-08-03  Karl Berry  <karl@gnu.org>
84433
84434         * config/depcomp: update from automake.
84435
84436 2003-07-31  Paul Eggert  <eggert@twinsun.com>
84437
84438         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
84439         (strerror): Don't assume that a printable int fits in 14 bytes.
84440
84441 2003-07-31  Bruno Haible  <bruno@clisp.org>
84442
84443         * modules/getpass-gnu: New file.
84444         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
84445
84446 2003-07-31  Bruno Haible  <bruno@clisp.org>
84447
84448         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
84449
84450 2003-07-24  Karl Berry  <karl@gnu.org>
84451
84452         * config/missing: update from automake.
84453
84454 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
84455             Bruno Haible  <bruno@clisp.org>
84456
84457         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
84458         * lib/getline.c (getline, getdelim): Likewise.
84459         Remove _GNU_SOURCE define; now it's defined in config.h through
84460         m4/getline.m4.
84461
84462 2003-07-23  Karl Berry  <karl@gnu.org>
84463
84464         * config/config.sub: update from prep.
84465
84466 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84467
84468         * modules/xalloc (Depends-on): Add exitfail.
84469         * modules/xmemcoll: Likewise.
84470
84471 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84472
84473         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
84474         over-parenthesization in macros.
84475
84476         Sync with coreutils.
84477
84478         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
84479         required by C99.
84480
84481         Use `exit_failure' for xalloc and xmemcoll instead of their own
84482         private exit-failure variables.
84483         * lib/xalloc.h (xalloc_exit_failure): Remove.
84484         * lib/xmalloc.c: Likewise.  Include exitfail.h.
84485         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
84486         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
84487         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
84488         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
84489
84490 2003-07-20  Jim Meyering  <jim@meyering.net>
84491
84492         * modules/closeout (Depends-on): Add exitfail.
84493         Suggestion from Bruno Haible.
84494
84495 2003-07-19  Karl Berry  <karl@gnu.org>
84496
84497         * config/config.sub: update from prep.
84498
84499 2003-07-18  Paul Eggert  <eggert@twinsun.com>
84500
84501         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
84502         Remove.
84503         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
84504         to test that it can stand by itself.  Include "exitfail.h".
84505         Clients should set exit_failure instead.
84506         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
84507
84508 2003-07-18  Bruno Haible  <bruno@clisp.org>
84509
84510         * modules/getndelim2: New file.
84511         * modules/getline: Share files with module getndelim2.
84512         * modules/getnline: Depend on getndelim2 instead of sharing files with
84513         it. Add getnline.c to lib_SOURCES.
84514         * MODULES.html.sh (func_all_modules): Add getndelim2.
84515
84516 2003-07-18  Bruno Haible  <bruno@clisp.org>
84517
84518         * m4/getndelim2.m4: New file.
84519         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
84520         invoke gl_PREREQ_GETNDELIM2.
84521         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
84522         gl_PREREQ_GETNDELIM2.
84523         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
84524         gl_GETNDELIM2.
84525
84526 2003-07-18  Bruno Haible  <bruno@clisp.org>
84527
84528         * lib/getndelim2.h: New file.
84529         * lib/getndelim2.c: Make into a module of its own. Include config.h,
84530         getndelim2.h.
84531         (getndelim2): Make non-static. Change return type to ssize_t.
84532         * lib/getline.h: Change argument names.
84533         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
84534         * lib/getnline.c: Include getndelim2.h.
84535
84536 2003-07-18  Andreas Schwab  <schwab@suse.de>
84537
84538         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
84539
84540 2003-07-17  Karl Berry  <karl@gnu.org>
84541
84542         * config/config.sub: update from prep.
84543
84544 2003-07-17  Bruno Haible  <bruno@clisp.org>
84545
84546         * modules/getnline: New file.
84547         * modules/getline: Add lib/getndelim2.c to source file list.
84548         * MODULES.html.sh (func_all_modules): Add getnline.
84549
84550 2003-07-17  Bruno Haible  <bruno@clisp.org>
84551
84552         * m4/getnline.m4: New file.
84553
84554 2003-07-17  Bruno Haible  <bruno@clisp.org>
84555
84556         * m4/Makefile.am.in: Remove file.
84557         * m4/Makefile.am: Remove file.
84558         * m4/Makefile.in: Remove file.
84559
84560 2003-07-17  Bruno Haible  <bruno@clisp.org>
84561
84562         * lib/getnline.h: New file.
84563         * lib/getnline.c: New file.
84564         * lib/getndelim2.c: New file, extracted from getline.c.
84565         (getndelim2): Renamed from getdelim2, with added nmax argument.
84566         * lib/getline.c: Include getndelim2.c.
84567         (getdelim2): Moved out to getndelim2.c.
84568         (getline, getdelim): Update.
84569
84570 2003-07-17  Bruno Haible  <bruno@clisp.org>
84571
84572         * lib/Makefile.am: Remove file.
84573         * lib/Makefile.in: Remove file.
84574
84575 2003-07-17  Bruno Haible  <bruno@clisp.org>
84576
84577         * configure.in: Remove file.
84578         * Makefile.in: Remove file.
84579
84580 2003-07-17  Bruno Haible  <bruno@clisp.org>
84581
84582         * MODULES.html.sh: Put the </BODY> right before </HTML>.
84583
84584 2003-07-16  Karl Berry  <karl@gnu.org>
84585
84586         * config/srclist-update: was running fixlicense twice, which caused
84587                 texinfo.tex to be nullified for some reason.  Simplify,
84588                 $gplsrc is no longer needed as far as I can see?
84589
84590 2003-07-16  Jim Meyering  <jim@meyering.net>
84591
84592         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
84593
84594 2003-07-15  Paul Eggert  <eggert@twinsun.com>
84595
84596         * config/srclist.txt: Get the following files from gettext-runtime/intl
84597         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
84598         ref-del.sin.  From Bruno Haible.
84599         * config/srclist-update (fixfile): Change grep pattern again, since the
84600         previous fix didn't work (there was another trailing $).  Use
84601         '[$]' to escape the $s.
84602
84603 2003-07-15  Karl Berry  <karl@gnu.org>
84604
84605         * lib/vasnprintf.c: update from gettext.
84606
84607 2003-07-15  Karl Berry  <karl@gnu.org>
84608
84609         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
84610         gets expanded when surrounded by '$'.
84611
84612 2003-07-15  Jim Meyering  <jim@meyering.net>
84613
84614         * modules/save-cwd: Don't depend on error.  From Derek Price.
84615
84616 2003-07-15  Jim Meyering  <jim@meyering.net>
84617
84618         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
84619
84620 2003-07-14  Simon Josefsson  <jas@extundo.com>
84621
84622         * modules/mempcpy: New file.
84623         * MODULES.html.sh (func_all_modules): Add mempcpy.
84624
84625 2003-07-14  Simon Josefsson  <jas@extundo.com>
84626
84627         * m4/mempcpy.m4: New file.
84628
84629 2003-07-14  Simon Josefsson  <jas@extundo.com>
84630
84631         * lib/mempcpy.h: New file.
84632         * lib/mempcpy.c: New file.
84633
84634 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84635
84636         * modules/getdate, modules/posixtm: Depend on mktime.
84637
84638 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84639
84640         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
84641         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
84642         unicodeio.c, unicodeio.h, unlocked-io.h:
84643         Switch from LGPL to GPL.
84644
84645 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84646
84647         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
84648         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
84649         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
84650         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
84651         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
84652         updated automatically by ../config/srclist-update.  This changes
84653         their license from LPGL to GPL.
84654
84655 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84656
84657         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
84658         assumed to refer to the root of the most recent stable gettext version.
84659         * config/srclistvars.sh: Add defaults for eggert.
84660         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
84661         Match "This program" as well as "The program".  This is needed
84662         for gettext.
84663
84664 2003-07-14  Jim Meyering  <jim@meyering.net>
84665
84666         Don't emit diagnostics.  Let callers do that.
84667         * lib/save-cwd.c: Don't include "error.h".
84668         (save_cwd): Don't call error.  Ensure that errno is valid
84669         when returning nonzero.
84670
84671         * lib/save-cwd.h (restore_cwd): Update prototype.
84672         * lib/save-cwd.c (restore_cwd): Remove two parameters.
84673         Simplify.  Don't call error upon failure.  Let callers do that.
84674         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
84675         when auditing is enabled.  But don't bother updating the #if.
84676
84677 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
84678
84679         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
84680         it breaks C++ compilation.
84681         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
84682
84683 2003-07-10  Simon Josefsson  <jas@extundo.com>
84684
84685         * modules/strchrnul (Makefile.am): Add strchrnul.h.
84686
84687 2003-07-10  Jim Meyering  <jim@meyering.net>
84688
84689         * m4/clock_time.m4: Remove trailing blank.
84690         * m4/intmax_t.m4: Likewise.
84691
84692 2003-07-10  Jim Meyering  <jim@meyering.net>
84693
84694         * lib/vasnprintf.c: Remove trailing blanks.
84695         Make cpp indentation consistent.
84696
84697 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84698
84699         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
84700         posixver.c, strftime.c, strnlen.c, strverscmp.c:
84701         Switch from LGPL to GPL.
84702
84703 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84704
84705         * config/srclist.txt: Sort sublists.  Add
84706         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
84707         that differ from gnulib for one reason or another; we'd like this list
84708         to be smaller but for now let's document what we have.
84709
84710 2003-07-08  Paul Eggert  <eggert@twinsun.com>
84711
84712         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
84713         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
84714         and sweeter "eval x=$x".
84715         * config/srclist.txt: Get lib/argp* from glibc.
84716
84717 2003-07-07  Paul Eggert  <eggert@twinsun.com>
84718
84719         * lib/mktime.c: Fix some boundary cases and remove need for floating
84720         point.
84721
84722         Issue a compile-time diagnostic if time_t is floating point, or if
84723         two's complement arithmetic is not in effect, or if arithmetic
84724         right shift does not propagate the sign.  These assumptions were
84725         all in the original code but they weren't checked.
84726
84727         (TIME_T_MIDPOINT, verify): New macros.
84728         (__isleap): Remove; it has integer overflow problems.
84729         (leapyear): New function, without those problems.
84730         (ydhms_tm_diff): Remove; splitting into two parts.
84731         (ydhms_diff): New function, containing the arithmetic part of
84732         the old ydhms_tm_diff function.  Issue a compile-time
84733         diagnostic if we are not using C99 integer division.
84734         Avoid casts when possible.
84735         (guess_time_tm): New function, containing the checking part of
84736         the old ydhms_tm_diff function.  Return the new value, rather than
84737         the difference between it and the old.  Accept a new argument T
84738         so that *T specifies the old value.  Check for overflow in the result.
84739
84740         (__mktime_internal): Use a time_t offset, not a long int offset.
84741         This undoes the 2003-06-04 change, which is no longer needed now
84742         that we have better overflow checking.
84743         (localtime_offset): Likewise.
84744
84745         (__mktime_internal): Avoid harmful overflow on hosts where time_t
84746         and long are 64-bit but int is only 32-bit.
84747         (ydhms_diff): Use long int to store year1 and yday1.
84748         Issue a compile-time diagnostic if long int is not wide enough.
84749
84750         (__mktime_internal): Use long int to store adjusted year and yday.
84751         Use plain C rather than preprocessor commands, if that doesn't
84752         affect efficiency.
84753         Check for overflow (and try to repair) after each probe
84754         rather than checking only at the very end.  This avoids some bugs
84755         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
84756         does not equal GMT offset at maximum time).
84757         Use integer to check for overflow rather than floating point; this
84758         is more portable to non-IEEE hosts, and is a tad faster.
84759         When we detect that we are oscillating between two values,
84760         don't check whether tm_isdst has the requested value, since
84761         we already know the answer.  When tm_isdst has the wrong value,
84762         use a different heuristic to find the right one, based on the
84763         extreme values actually observed in practice in tz2003a,
84764         rather than the (overly optimistic) "previous 3 calendar quarters".
84765
84766         (not_equal_tm, print_tm, check_result): Use "const T" rather than
84767         "T const" to accommodate glibc style.
84768         (check_result): Use less-confusing report format.  "long" -> "long int.
84769         (main): Likewise.
84770         Don't loop if the iteration overflows time_t.
84771         Allow a negative step in the iteration.
84772
84773 2003-07-06  Karl Berry  <karl@gnu.org>
84774
84775         * config/depcomp: update from automake.
84776         * config/config.sub: update from prep.
84777
84778 2003-07-03  Karl Berry  <karl@gnu.org>
84779
84780         * config/config.guess: update from prep.
84781
84782 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84783
84784         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
84785         xreadlink.c now includes it unconditionally.
84786
84787 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84788
84789         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
84790         having it depend on HAVE_SYS_TYPES_H.
84791
84792 2003-07-01  Bruno Haible  <bruno@clisp.org>
84793
84794         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
84795         <sys/types.h> should be sufficient.
84796         Reported by Paul Eggert.
84797
84798 2003-06-26  Karl Berry  <karl@gnu.org>
84799
84800         * config/depcomp: update from automake.
84801
84802 2003-06-26  Bruno Haible  <bruno@clisp.org>
84803
84804         * modules/human: Depend on module stdbool.
84805
84806 2003-06-25  Bruno Haible  <bruno@clisp.org>
84807
84808         * modules/readlink: New file.
84809         * modules/xreadlink: Depend on it.
84810         * MODULES.html.sh (func_all_modules): Add readlink.
84811
84812 2003-06-25  Bruno Haible  <bruno@clisp.org>
84813
84814         * m4/readlink.m4: New file.
84815
84816 2003-06-25  Bruno Haible  <bruno@clisp.org>
84817
84818         * lib/readlink.c: New file.
84819
84820 2003-06-22  Karl Berry  <karl@gnu.org>
84821
84822         * config/srclist.txt: update mkinstalldirs from automake.
84823         * config/mkinstalldirs: update.
84824
84825 2003-06-22  Bruno Haible  <bruno@clisp.org>
84826
84827         Portability to mingw32.
84828         * m4/ssize_t.m4: New file, from GNU gettext.
84829         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
84830         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
84831
84832 2003-06-22  Bruno Haible  <bruno@clisp.org>
84833
84834         * modules/safe-read: Add m4/ssize_t.m4.
84835         * modules/xreadlink: Add m4/ssize_t.m4.
84836
84837 2003-06-20  Bruno Haible  <bruno@clisp.org>
84838
84839         Assume C89, so PARAMS isn't needed.
84840         * lib/unicodeio.h (PARAMS): Remove.
84841         * lib/unicodeio.c: Don't use PARAMS.
84842
84843 2003-06-18  Karl Berry  <karl@gnu.org>
84844
84845         * config/config.{guess,sub}: update from prep.
84846
84847 2003-06-18  Jim Meyering  <jim@meyering.net>
84848
84849         Merge changes from coreutils.
84850         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
84851         Remove explicit declarations of xmalloc and realloc.
84852         Include xalloc.h.
84853         (read_utmp): Remove anachronistic cast of xmalloc.
84854
84855 2003-06-17  Paul Eggert  <eggert@twinsun.com>
84856
84857         Assume C89, so PARAMS isn't needed.
84858         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
84859         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
84860         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
84861         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
84862         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
84863         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
84864         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
84865         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
84866         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
84867         lib/xstrtod.h, lib/xstrtol.h: Likewise.
84868         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
84869         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
84870         no longer needed. Anyway, config.h should always be included before any
84871         other file.
84872
84873 2003-06-11  Simon Josefsson  <jas@extundo.com>
84874
84875         * modules/sysexits: New file.
84876         * MODULES.html.sh (func_all_modules): Add sysexits.
84877
84878 2003-06-11  Simon Josefsson  <jas@extundo.com>
84879
84880         * lib/sysexit_.h: New file.
84881
84882 2003-06-11  Derek Price  <derek@ximbiot.com>
84883
84884         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
84885         necessary.
84886
84887 2003-06-11  Bruno Haible  <bruno@clisp.org>
84888
84889         * m4/sysexits.m4: New file.
84890
84891 2003-06-10  Simon Josefsson  <jas@extundo.com>
84892
84893         * lib/argp.h: New file, from glibc.
84894         * lib/argp-ba.c: New file, from glibc.
84895         * lib/argp-eexst.c: New file, from glibc.
84896         * lib/argp-fmtstream.c: New file, from glibc.
84897         * lib/argp-fmtstream.h: New file, from glibc.
84898         * lib/argp-fs-xinl.c: New file, from glibc.
84899         * lib/argp-help.c: New file, from glibc.
84900         * lib/argp-namefrob.h: New file, from glibc.
84901         * lib/argp-parse.c: New file, from glibc.
84902         * lib/argp-pv.c: New file, from glibc.
84903         * lib/argp-pvh.c: New file, from glibc.
84904         * lib/argp-xinl.c: New file, from glibc.
84905
84906 2003-06-10  Simon Josefsson  <jas@extundo.com>
84907
84908         * modules/strchrnul: New file.
84909
84910 2003-06-10  Simon Josefsson  <jas@extundo.com>
84911
84912         * modules/argp: New file.
84913
84914 2003-06-10  Simon Josefsson  <jas@extundo.com>
84915
84916         * m4/strchrnul.m4: New file.
84917
84918 2003-06-10  Simon Josefsson  <jas@extundo.com>
84919
84920         * lib/strchrnul.h: New file.
84921         * lib/strchrnul.c: New file.
84922
84923 2003-06-10  Bruno Haible  <bruno@clisp.org>
84924
84925         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
84926
84927 2003-06-07  Karl Berry  <karl@gnu.org>
84928
84929         * config/config.{guess,sub}: update from prep.
84930
84931 2003-06-07  Jim Meyering  <jim@meyering.net>
84932
84933         * modules/strtod: Use $(...) notation, not @...@ for
84934         AC_REPLACE'd variables.
84935         * modules/localcharset: Likewise.
84936
84937 2003-06-07  Jim Meyering  <jim@meyering.net>
84938
84939         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
84940         in place of my name in the copyright comment.
84941         Remove definition and uses of __P.
84942
84943         From coreutils.
84944         * lib/stat.c: Don't declare xmalloc explicitly.
84945         Instead, include "xalloc.h".
84946         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
84947         xrealloc, and xcalloc return values.
84948         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
84949         Improve comment.
84950         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
84951
84952 2003-06-07  Bruno Haible  <bruno@clisp.org>
84953
84954         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
84955         avoid AC_CONFIG_LINKS.
84956         * modules/fnmatch (Makefile.am): Use explicit creation rule for
84957         fnmatch.h, to avoid AC_CONFIG_LINKS.
84958         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
84959
84960 2003-06-07  Bruno Haible  <bruno@clisp.org>
84961
84962         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
84963         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
84964         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84965         directory.
84966         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
84967         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84968         directory.
84969
84970 2003-06-06  Jim Meyering  <jim@meyering.net>
84971
84972         Merge from coreutils.
84973         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
84974         Consolidate declarations and initializations of *_base* locals.
84975
84976         Merge from coreutils.
84977         This avoids a core dump on systems without GNU putenv,
84978         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
84979         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
84980         (unsetenv): New static function, from GNU libc.
84981         (rpl_putenv): Use it.
84982
84983         * lib/modechange.c: Remove trailing blanks.
84984
84985         Merge from coreutils.
84986         * lib/fsusage.c: Remove declaration of statfs.
84987         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
84988
84989         * lib/posixtm.c: Include <stdbool.h> unconditionally.
84990
84991 2003-06-06  Jim Meyering  <jim@meyering.net>
84992
84993         * lib/stdbool_.h: Renamed from stdbool.h.in.
84994
84995 2003-06-06  Jim Meyering  <jim@meyering.net>
84996             Bruno Haible  <bruno@clisp.org>
84997
84998         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
84999         Adjust Makefile.am snippet not to redirect directly to target.
85000         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
85001
85002 2003-06-05  Paul Eggert  <eggert@twinsun.com>
85003
85004         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
85005         mismatch, look in future quarters as well as past.  This fixes a
85006         bug when processing fall-backwards gaps immediately after a long
85007         period of daylight-saving time.
85008
85009         * lib/mktime.c: Assume freestanding C89 or better.
85010         (HAVE_LIMITS_H): Remove.  Assume it's 1.
85011         (__P): Remove; not used.
85012         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
85013         (mktime, not_equal_tm, print_tm, check_result,
85014         main): Use prototypes.  Use const * where appropriate.
85015         (main): Fix typo in testing code that uncovered by above changes.
85016         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
85017
85018 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85019
85020         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
85021         locale.h, localeconv.  This merges changes from coreutils.
85022
85023         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
85024         It can be removed after the next Autoconf is released.
85025         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
85026         needed.
85027
85028 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85029
85030         * lib/mktime.c: Fix Debian bug 177940
85031         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
85032         (localtime_offset): Now long int, not time_t, because we want it
85033         to be guaranteed to be signed.  All uses changed.
85034         (__mktime_internal): If overflow would occur when adding offset,
85035         don't add it.
85036
85037         Merge 'human' changes from coreutils.  Rewrite to support
85038         locale-specific notations like thousands separators.
85039         * lib/human.c: Simplify authorship notice.
85040         Include human.h immediately after config.h.
85041         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
85042         <limits.h>: Do not include, since human.h does.
85043         (SIZE_MAX, UINTMAX_MAX): New macros.
85044         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
85045         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
85046         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
85047         (power_letter): Renamed from suffixes.
85048         (generate_suffix_backwards): Remove.
85049         (adjust_value): Now takes int style (because of human.h changes)
85050         and long double value (for greater precision on some platforms).
85051         (group_number): New function.
85052         (human_readable): Use it.  Use integer options, not enum.
85053         Put the options before the sizes in the arg list.
85054         Support all the new options.
85055         The old human_readable function has been removed;
85056         use inttostr.h instead.
85057         (human_readable, default_block_size, humblock):
85058         Use uintmax_t, not int, for block sizes.
85059         (human_readable_inexact, block_size_types): Remove.
85060         (block_size_opts): New constant.
85061         (human_options): Renamed from human_block_size, with new signature
85062         that allows block sizes up to UINTMAX_MAX.  All callers changed.
85063         * lib/human.h: Add copyright and authorship notice.
85064         Include <limits.h> and <stdbool.h> unconditionally.
85065         (PARAMS): Remove.  All uses removed.
85066         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
85067         (enum human_inexact_style): Remove tag; now a nameless enum.
85068         (human_floor, human_ceiling, human_round_to_even): Now have
85069         values 2, 0, 1 rather than -1, 1, 0.
85070         (human_group_digits, human_suppress_point_zero, human_autoscale,
85071         human_base_1024, human_SI, human_B): New constants.
85072         (human_readable_inexact, human_block_size): Remove.
85073         (human_readable): Size args are now uintmax_t, not int.
85074         (human_options): New decl.
85075
85076         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
85077         unnecessary now that we assume C89 or better.  This change
85078         imported from coreutils.
85079
85080         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85081         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
85082         in the 2003-05-30 sync from glibc.
85083
85084         .h files should stand alone, but we shouldn't include <sys/types.h>
85085         if we can get away with just <stddef.h>.
85086
85087         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
85088         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
85089         rather than <sys/types.h>, as we merely need size_t.
85090         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
85091         to get size_t.
85092         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
85093         Include <stdio.h>, to get FILE.
85094         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
85095         memcasecmp.h has included <stddef.h> and all we need is size_t.
85096         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
85097         our interface, instead of including <sys/types.h>
85098
85099 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85100
85101         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
85102         now, as glibc mktime is buggy on non-glibc systems.
85103
85104 2003-06-03  Karl Berry  <karl@gnu.org>
85105
85106         * config/config.sub: update from prep.
85107
85108 2003-06-02  Paul Eggert  <eggert@twinsun.com>
85109
85110         [from coreutils]
85111         Fix some minor time-related bugs with POSIX time arguments.
85112         Some valid time stamps were being rejected (notably -1, and
85113         time stamps before 1900 on 64-bit hosts).  And some invalid
85114         time stamps were being accepted, e.g. September 31.
85115
85116         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
85117         that we can return (time_t) -1 successfully.
85118         * lib/posixtm.c: Likewise.
85119         [HAVE_STDBOOL_H]: Include <stdbool.h>.
85120         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
85121         (t): Remove static var.
85122         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
85123         of static var.  All uses changed.
85124         (year): Do not reject years before 1900; they can occur with
85125         64-bit time_t.
85126         (posix_time_parse): Do not check for out-of-range components;
85127         that is now the caller's responsibility, since our checks were
85128         only approximations.
85129         (posixtime): Use mktime to check for out-of-range components,
85130         since it knows them exactly.
85131         If mktime returns (time_t) -1, check whether an error actually occurred
85132         by invoking localtime on -1.
85133         (main) [TEST_POSIXTIME]: Check for input data errors, and report
85134         posixtime failures better.
85135         Improve the test data (in comments only).
85136
85137 2003-06-02  Karl Berry  <karl@gnu.org>
85138
85139         * config/mkinstalldirs (version): new variable.
85140         (--version): new option.
85141         (usage): improve message.
85142
85143 2003-05-30  Karl Berry  <karl@gnu.org>
85144
85145         * lib/mktime.c: update from libc.
85146
85147 2003-05-30  Bruno Haible  <bruno@clisp.org>
85148
85149         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
85150         * config/config.rpath: Upgrade to gettext-0.12.1.
85151
85152 2003-05-30  Bruno Haible  <bruno@clisp.org>
85153
85154         * m4/gettext.m4: Upgrade to gettext-0.12.1.
85155         * m4/nls.m4: New file, from gettext-0.12.1.
85156         * m4/po.m4: New file, from gettext-0.12.1.
85157         * m4/progtest.m4: Upgrade to gettext-0.12.1.
85158
85159 2003-05-30  Bruno Haible  <bruno@clisp.org>
85160
85161         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
85162         * lib/localcharset.h: Likewise.
85163         * lib/localcharset.c: Likewise.
85164
85165 2003-05-29  Karl Berry  <karl@gnu.org>
85166
85167         * config/config.rpath: update from gettext.
85168
85169 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85170
85171         Assume the headers required for C89 freestanding compilers.
85172         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
85173         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
85174         * m4/human.m4 (gl_HUMAN): Likewise.
85175         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
85176         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
85177         * m4/userspec.m4 (gl_USERSPEC): Likewise.
85178         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
85179         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
85180         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
85181
85182 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85183
85184         Assume the headers required for C89 freestanding compilers.
85185         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
85186         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
85187         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
85188         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
85189         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
85190         define, since <limits.h> is guaranteed to do that.
85191         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
85192         * lib/exclude.c: Include <stdbool.h> unconditionally.
85193         * lib/tempname.c: Include <stddef.h> unconditionally.
85194         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
85195         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
85196         <stddef.h> does that.
85197         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
85198         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
85199         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
85200         needed.
85201         * lib/xstrtol.c: Likewise.
85202         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
85203         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
85204
85205         * lib/addext.c (addext): Use assignment rather than cast, to avoid
85206         warnings on some platforms.
85207
85208         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85209         arbitrarily.
85210
85211 2003-05-26  Jim Meyering  <jim@meyering.net>
85212
85213         Merge in a change from coreutils:
85214         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
85215         that is guaranteed to be `no'.  Use `no_such_member' to indicate
85216         that condition, rather than `-1' which is slightly misleading.
85217         Change the name of the cache variable to have the gl_ prefix.
85218         Prompted by a patch from Richard Dawe for DJGPP.
85219
85220 2003-05-24  Karl Berry  <karl@gnu.org>
85221
85222         * config/config.guess: update from prep.
85223
85224 2003-05-22  Karl Berry  <karl@gnu.org>
85225
85226         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
85227
85228 2003-05-20  Karl Berry  <karl@gnu.org>
85229
85230         * config/config.guess: update from prep.
85231
85232 2003-05-18  Karl Berry  <karl@gnu.org>
85233
85234         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
85235         might actually be set by the user.
85236
85237         * config/depcomp, install-sh, mdate-sh: update from automake.
85238
85239 2003-05-17  Bruno Haible  <bruno@clisp.org>
85240
85241         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
85242         invalid expansion for AC_EGREP_CPP.
85243         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
85244         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
85245         Suggested by Akim Demaille <akim@epita.fr> in
85246         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
85247
85248 2003-05-12  Jim Meyering  <jim@meyering.net>
85249
85250         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
85251         the space-padded-by-default conversion specifiers, %e, %k, %l.
85252
85253 2003-05-12  Bruno Haible  <bruno@clisp.org>
85254
85255         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
85256         the string is longer than 4 KB.
85257
85258 2003-05-11  Karl Berry  <karl@gnu.org>
85259
85260         * config/config.{guess,sub}: update from prep.
85261
85262 2003-05-09  Bruno Haible  <bruno@clisp.org>
85263
85264         * modules/error: Add m4/strerror_r.m4 to file list.
85265
85266 2003-05-03  Bruno Haible  <bruno@clisp.org>
85267
85268         Upgrade to Unicode-4.0.
85269         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
85270         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
85271         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
85272         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
85273         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
85274         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
85275         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
85276         Change width of U+E0100..U+E01EF from 1 to 0.
85277
85278 2003-04-25  Jim Meyering  <jim@meyering.net>
85279
85280         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
85281         of type size_t, not int.
85282
85283 2003-04-25  Bruno Haible  <bruno@clisp.org>
85284
85285         * lib/copy-file.c: Include <stddef.h>, for size_t.
85286
85287 2003-04-21  Paul Eggert  <eggert@twinsun.com>
85288
85289         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
85290         code which expansion is under static control.  Patch imported from
85291         Akim Demaille's patch to Bison; see
85292         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
85293
85294 2003-04-14  Bruno Haible  <bruno@clisp.org>
85295
85296         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
85297
85298 2003-04-11  Jim Meyering  <jim@meyering.net>
85299
85300         Merge changes from Coreutils.
85301
85302         2003-03-22  Jim Meyering  <jim@meyering.net>
85303
85304         * lib/strftime.c (widen): Cast alloca return value to proper type.
85305
85306         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
85307
85308         From GNU libc.
85309         * lib/strftime.c (my_strftime): Handle very large width
85310         specifications for numeric values correctly.  Improve checks for
85311         overflow.
85312
85313         2003-01-19  Jim Meyering  <jim@meyering.net>
85314
85315         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
85316         definitions.
85317         (nl_get_alt_digit) [! defined my_strftime]: Define.
85318         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
85319         _nl_get_alt_digit and _nl_get_walt_digit.
85320
85321         * lib/strftime.c (my_strftime): Merge in locale-related changes from
85322         libc. These changes have no effect outside of _LIBC.
85323
85324 2003-04-10  Bruno Haible  <bruno@clisp.org>
85325
85326         * modules/findprog: New file.
85327         * MODULES.html.sh (func_all_modules): Add it.
85328
85329 2003-04-10  Bruno Haible  <bruno@clisp.org>
85330
85331         * m4/findprog.m4: New file.
85332         * m4/eaccess.m4: New file.
85333
85334 2003-04-10  Bruno Haible  <bruno@clisp.org>
85335
85336         * lib/findprog.h: New file, from GNU gettext.
85337         * lib/findprog.c: New file, from GNU gettext.
85338
85339 2003-04-05  Jim Meyering  <jim@meyering.net>
85340
85341         Merge changes from Coreutils.
85342
85343         * lib/exclude.h (PARAMS): Remove definition and uses.
85344         * lib/exclude.c: Remove uses of `PARAMS'.
85345
85346         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
85347         Add test-cases for DOS filenames. Declare program_name.
85348         (main): Set up program_name.  Patch by Rich Dawe.
85349
85350         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85351         error from mntctl.
85352         Use mntctl's return value to drive the entry-processing loop, since
85353         we can't rely on the value of the vmt_length member in the last
85354         entry.  On some systems doing so could result in exhausting
85355         virtual memory.  Based in part on a patch from Mike Jetzer.
85356
85357 2003-04-04  Bruno Haible  <bruno@clisp.org>
85358
85359         * modules/linebreak: New file.
85360         * MODULES.html.sh (func_all_modules): Add it.
85361
85362 2003-04-04  Bruno Haible  <bruno@clisp.org>
85363
85364         * m4/linebreak.m4: New file.
85365
85366 2003-04-04  Bruno Haible  <bruno@clisp.org>
85367
85368         * lib/linebreak.h: New file, from GNU gettext.
85369         * lib/linebreak.c: New file, from GNU gettext with slight
85370         modifications.
85371         * lib/lbrkprop.h: New file, from GNU gettext.
85372
85373 2003-04-03  Bruno Haible  <bruno@clisp.org>
85374
85375         * modules/utf8-ucs4: New file.
85376         * modules/utf16-ucs4: New file.
85377         * modules/ucs4-utf8: New file.
85378         * modules/ucs4-utf16: New file.
85379         * MODULES.html.sh (func_all_modules): Add them.
85380
85381 2003-04-03  Bruno Haible  <bruno@clisp.org>
85382
85383         * m4/utf-ucs4.m4: New file.
85384         * m4/ucs4-utf.m4: New file.
85385
85386 2003-04-03  Bruno Haible  <bruno@clisp.org>
85387
85388         * lib/utf8-ucs4.h: New file, from GNU gettext.
85389         * lib/utf16-ucs4.h: New file, from GNU gettext.
85390         * lib/ucs4-utf8.h: New file, from GNU gettext.
85391         * lib/ucs4-utf16.h: New file, from GNU gettext.
85392
85393 2003-04-02  Bruno Haible  <bruno@clisp.org>
85394
85395         * modules/binary-io: New file.
85396         * MODULES.html.sh (func_all_modules): Add it.
85397
85398 2003-04-02  Bruno Haible  <bruno@clisp.org>
85399
85400         * lib/binary-io.h: New file, from GNU gettext.
85401
85402 2003-04-01  Bruno Haible  <bruno@clisp.org>
85403
85404         * modules/pathname: New file.
85405         * MODULES.html.sh (func_all_modules): Add it.
85406
85407 2003-04-01  Bruno Haible  <bruno@clisp.org>
85408
85409         * lib/pathname.h: New file, from GNU gettext.
85410         * lib/concatpath.c: New file, from GNU gettext.
85411
85412 2003-03-30  Bruno Haible  <bruno@clisp.org>
85413
85414         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
85415
85416 2003-03-30  Bruno Haible  <bruno@clisp.org>
85417
85418         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
85419         function chown() doesn't exist.
85420
85421 2003-03-28  Bruno Haible  <bruno@clisp.org>
85422
85423         * modules/copy-file: New file.
85424         * MODULES.html.sh (func_all_modules): Add it.
85425
85426 2003-03-28  Bruno Haible  <bruno@clisp.org>
85427
85428         * m4/copy-file.m4: New file.
85429
85430 2003-03-28  Bruno Haible  <bruno@clisp.org>
85431
85432         * lib/copy-file.h: New file, from GNU gettext.
85433         * lib/copy-file.c: New file, from GNU gettext.
85434
85435 2003-03-18  Jim Meyering  <jim@meyering.net>
85436
85437         * lib/quote.c (quote_n): Fix typo in comment.
85438
85439 2003-03-18  Bruno Haible  <bruno@clisp.org>
85440
85441         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
85442         checking.
85443         * m4/onceonly_2_57.m4: Likewise.
85444
85445 2003-03-17  Bruno Haible  <bruno@clisp.org>
85446
85447         * m4/onceonly.m4: Require autoconf 2.54 or newer.
85448         (m4_quote): Remove macro.
85449         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
85450
85451 2003-03-14  Jim Meyering  <jim@meyering.net>
85452
85453         Merge changes from Coreutils.
85454         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
85455         to be const, in order to avoid warnings.
85456         (obstack_room): Likewise.
85457         (obstack_empty_p): Likewise.
85458
85459 2003-03-14  Bruno Haible  <bruno@clisp.org>
85460
85461         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
85462         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
85463
85464 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85465
85466         Merge changes from Bison.
85467         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
85468         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
85469         when compiling Bison 1.875's `bitset bset = obstack_alloc
85470         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
85471         * lib/hash.c: Include <stdbool.h> unconditionally.
85472
85473 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85474
85475         * m4/onceonly.m4 (m4_quote): New macro.
85476         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
85477         Quote AC_FOREACH variable-expansions properly.
85478
85479 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85480
85481         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
85482
85483 2003-03-09  Paul Eggert  <eggert@twinsun.com>
85484
85485         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
85486         Reported by Bruce Becker; see:
85487         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
85488
85489 2003-03-03  Paul Eggert  <eggert@twinsun.com>
85490             Bruno Haible  <bruno@clisp.org>
85491
85492         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
85493         Reported by John Hughes, see
85494         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
85495
85496 2003-02-20  Bruno Haible  <bruno@clisp.org>
85497
85498         * MODULES.html.sh (func_all_modules): Add poll.
85499
85500 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85501
85502         * modules/poll: New file.
85503
85504 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85505
85506         * lib/poll_.h: New file.
85507         * lib/poll.c: New file.
85508
85509 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85510
85511         * m4/poll.m4: New file.
85512
85513 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85514
85515         * modules/mathl: New file.
85516
85517 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85518
85519         * lib/mathl.h: New file.
85520         * lib/acosl.c: New file.
85521         * lib/asinl.c: New file.
85522         * lib/atanl.c: New file.
85523         * lib/ceill.c: New file.
85524         * lib/cosl.c: New file.
85525         * lib/expl.c: New file.
85526         * lib/floorl.c: New file.
85527         * lib/frexpl.c: New file.
85528         * lib/ldexpl.c: New file.
85529         * lib/logl.c: New file.
85530         * lib/sincosl.c: New file.
85531         * lib/sinl.c: New file.
85532         * lib/sqrtl.c: New file.
85533         * lib/tanl.c: New file.
85534         * lib/trigl.c: New file.
85535         * lib/trigl.h: New file.
85536
85537 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85538
85539         * m4/mathl.m4: New file.
85540
85541 2003-02-18  Bruno Haible  <bruno@clisp.org>
85542
85543         * MODULES.html.sh (func_all_modules): Add mathl.
85544
85545 2003-02-17  Bruno Haible  <bruno@clisp.org>
85546
85547         * modules/mkdtemp: New module.
85548         * MODULES.html.sh (func_all_modules): Add it.
85549
85550 2003-02-17  Bruno Haible  <bruno@clisp.org>
85551
85552         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
85553
85554 2003-02-17  Bruno Haible  <bruno@clisp.org>
85555
85556         * lib/mkdtemp.h: New file, from GNU gettext.
85557         * lib/mkdtemp.c: New file, from GNU gettext.
85558
85559 2003-02-02  Jim Meyering  <jim@meyering.net>
85560
85561         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
85562         e.g. glibc-2.2.93.
85563
85564 2003-01-31  Bruno Haible  <bruno@clisp.org>
85565
85566         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
85567         'rpl_rename'.
85568         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
85569         'rpl_strnlen'.
85570         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
85571         'rpl_strtod'.
85572         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
85573         'rpl_utime'.
85574
85575 2003-01-31  Bruno Haible  <bruno@clisp.org>
85576
85577         * lib/rename.c: #undef rename before defining rpl_rename.
85578         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
85579
85580 2003-01-30  Bruno Haible  <bruno@clisp.org>
85581
85582         * modules/vasnprintf, modules/vasprintf: New modules.
85583         * MODULES.html.sh (func_all_modules): Add them.
85584
85585 2003-01-30  Bruno Haible  <bruno@clisp.org>
85586
85587         * m4/signed.m4: New file, from GNU gettext.
85588         * m4/longdouble.m4: New file, from GNU gettext.
85589         * m4/wchar_t.m4: New file, from GNU gettext.
85590         * m4/wint_t.m4: New file, from GNU gettext.
85591         * m4/vasnprintf.m4: New file.
85592         * m4/vasprintf.m4: New file.
85593
85594 2003-01-30  Bruno Haible  <bruno@clisp.org>
85595
85596         * lib/printf-args.h: New file, from GNU gettext.
85597         * lib/printf-args.c: New file, from GNU gettext.
85598         * lib/printf-parse.h: New file, from GNU gettext.
85599         * lib/printf-parse.c: New file, from GNU gettext.
85600         * lib/vasnprintf.h: New file, from GNU gettext.
85601         * lib/vasnprintf.c: New file, from GNU gettext.
85602         * lib/asnprintf.c: New file, from GNU gettext.
85603         * lib/vasprintf.h: New file, from GNU gettext with modifications.
85604         * lib/vasprintf.c: New file, from GNU gettext.
85605         * lib/asprintf.c: New file, from GNU gettext.
85606
85607 2003-01-29  Bruno Haible  <bruno@clisp.org>
85608
85609         * modules/stpncpy: New module.
85610         * MODULES.html.sh (func_all_modules): Add it.
85611
85612 2003-01-29  Bruno Haible  <bruno@clisp.org>
85613
85614         * m4/stpncpy.m4: New file.
85615
85616 2003-01-29  Bruno Haible  <bruno@clisp.org>
85617
85618         * lib/stpncpy.h: New file, from GNU gettext with modifications.
85619         * lib/stpncpy.c: New file, from GNU gettext with modifications.
85620
85621 2003-01-28  Bruno Haible  <bruno@clisp.org>
85622
85623         * modules/c-ctype: New module.
85624         * MODULES.html.sh (func_all_modules): Add it.
85625
85626 2003-01-28  Bruno Haible  <bruno@clisp.org>
85627
85628         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
85629         Paul Eggert.
85630         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
85631         Paul Eggert.
85632
85633 2003-01-27  Bruno Haible  <bruno@clisp.org>
85634
85635         * modules/xsetenv: New module.
85636         * MODULES.html.sh (func_all_modules): Add it.
85637
85638 2003-01-27  Bruno Haible  <bruno@clisp.org>
85639
85640         * lib/xsetenv.h: New file, from GNU gettext.
85641         * lib/xsetenv.c: New file, from GNU gettext.
85642
85643 2003-01-23  Jim Meyering  <jim@meyering.net>
85644
85645         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
85646         from working on systems without dirfd (at least Irix and OSF1/Tru64).
85647
85648 2003-01-23  Bruno Haible  <bruno@clisp.org>
85649
85650         * modules/minmax: New module.
85651         * MODULES.html.sh (func_all_modules): Add it.
85652
85653 2003-01-23  Bruno Haible  <bruno@clisp.org>
85654
85655         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
85656         Eggert.
85657
85658 2003-01-22  Bruno Haible  <bruno@clisp.org>
85659
85660         * modules/exit: New module.
85661         * MODULES.html.sh (func_all_modules): Add it.
85662
85663 2003-01-22  Bruno Haible  <bruno@clisp.org>
85664
85665         * lib/exit.h: New file, from GNU gettext.
85666
85667 2003-01-19  Bruno Haible  <bruno@clisp.org>
85668
85669         * gnulib-tool: Recognize option --extract-maintainer.
85670         (func_get_maintainer): New function.
85671         * modules/*: Add Maintainer entry.
85672
85673 2003-01-16  Jim Meyering  <jim@meyering.net>
85674
85675         * m4/regex.m4: The `regex' struct is both input and output.
85676         Initialize it before each use.  Patch by Tim Waugh.
85677
85678 2003-01-16  Bruno Haible  <bruno@clisp.org>
85679
85680         * MODULES.html.sh: Add a table of contents. Add the module name as
85681         leftmost column. Add hyperlinks.
85682
85683 2003-01-15  Bruno Haible  <bruno@clisp.org>
85684
85685         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
85686
85687 2003-01-15  Bruno Haible  <bruno@clisp.org>
85688
85689         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
85690         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
85691         suffix.
85692
85693 2003-01-15  Bruno Haible  <bruno@clisp.org>
85694
85695         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
85696
85697 2003-01-15  Bruno Haible  <bruno@clisp.org>
85698
85699         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
85700         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
85701
85702 2003-01-14  Jim Meyering  <jim@meyering.net>
85703
85704         * lib/same.c (same_name): Tweak a comment.
85705
85706 2003-01-14  Bruno Haible  <bruno@clisp.org>
85707
85708         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
85709         when a string comparison is sufficient.
85710
85711 2003-01-14  Bruno Haible  <bruno@clisp.org>
85712
85713         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
85714         'unsigned int'.
85715
85716 2003-01-14  Bruno Haible  <bruno@clisp.org>
85717
85718         * lib/hash-pjw.c: Add comment about low quality of this function.
85719
85720 2003-01-13  Bruno Haible  <bruno@clisp.org>
85721
85722         * modules/stpcpy: Distribute lib/stpcpy.h.
85723         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
85724
85725 2003-01-13  Bruno Haible  <bruno@clisp.org>
85726
85727         * modules/*: Add a description.
85728         * modules/strpbrk: Fix Makefile.am snippet.
85729         * modules/strtoimax: Fix dependencies.
85730         * modules/strtoumax: Likewise.
85731
85732 2003-01-13  Bruno Haible  <bruno@clisp.org>
85733
85734         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
85735         * modules/alloca (Makefile.am): All object files depend on alloca.h.
85736         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
85737
85738 2003-01-13  Bruno Haible  <bruno@clisp.org>
85739
85740         * gnulib-tool (func_create_testdir): Store config/* files in the main
85741         directory.
85742         * config.rpath: Move to ...
85743         * config/config.rpath: ... here.
85744         * modules/gettext: Contains config/config.rpath, not config.rpath.
85745         * modules/iconv: Likewise.
85746
85747 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85748
85749         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85750         to avoid collisions with libcurses and libreadline.
85751
85752         * m4/getstr.m4: Remove.
85753         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
85754
85755 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85756
85757         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85758         to avoid collisions with libcurses and libreadline.
85759
85760         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
85761         * lib/getstr.h, getstr.c: Remove.
85762         * lib/getline.c: Include "getline.h", to check interface.
85763         Move body of old getstr.c here: this defines MIN_CHUNK and
85764         declares getdelim2, which is renamed from getstr.
85765         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
85766
85767         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
85768         All uses changed.
85769         * lib/linebuffer.h: Likewise.
85770         (readline): Remove backward-compatibility macro.
85771
85772 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85773
85774         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85775         to avoid collisions with libcurses and libreadline.
85776         * getstr: Remove.
85777         * MODULES.html.sh: Remove getstr.
85778         * modules/getline: Depend on unlocked-io, not getstr.
85779
85780 2003-01-12  Jim Meyering  <jim@meyering.net>
85781
85782         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
85783
85784 2003-01-10  Bruno Haible  <bruno@clisp.org>
85785
85786         * modules/alloca: Change Makefile.am requirements. Simplify Include
85787         requirements. Add lib/alloca_.h to file list.
85788
85789 2003-01-10  Bruno Haible  <bruno@clisp.org>
85790
85791         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
85792
85793 2003-01-10  Bruno Haible  <bruno@clisp.org>
85794
85795         * lib/alloca_.h: New file.
85796         * lib/getdate.y: Unconditionally include alloca.h.
85797         * lib/makepath.c: Likewise.
85798         * lib/setenv.c: Likewise.
85799         * lib/userspec.c: Likewise.
85800
85801 2003-01-09  Karl Berry  <karl@gnu.org>
85802
85803         * MODULES.html.sh: include `dirname $0` in PATH, to find
85804         gnulib-tool.
85805
85806 2003-01-09  Bruno Haible  <bruno@clisp.org>
85807
85808         * modules/stdbool: Change configure.ac, Makefile.am requirements.
85809         Simplify Include requirements. Add lib/stdbool.h.in to file list.
85810
85811 2003-01-09  Bruno Haible  <bruno@clisp.org>
85812
85813         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
85814
85815 2003-01-09  Bruno Haible  <bruno@clisp.org>
85816
85817         * lib/stdbool.h.in: New file.
85818
85819 2003-01-09  Bruno Haible  <bruno@clisp.org>
85820
85821         * gnulib-tool (func_all_modules): Ignore files ending in ~.
85822         * MODULES.html.sh: Likewise.
85823
85824 2003-01-08  Jim Meyering  <jim@meyering.net>
85825
85826         * lib/full-write.c: Undefine and define-away `const' after inclusion
85827         of errno.h, not before.  Suggestion from Bruno Haible.
85828
85829 2003-01-08  Bruno Haible  <bruno@clisp.org>
85830
85831         * modules/full-read: Depend on full-write.
85832
85833 2003-01-08  Bruno Haible  <bruno@clisp.org>
85834
85835         * lib/safe-read.c: Include specification header first, to ensure its
85836         selfcontainedness.
85837         * lib/full-write.c: Likewise.
85838
85839 2003-01-07  Jim Meyering  <jim@meyering.net>
85840
85841         * lib/full-write.c: Rework so that it may serve to define full_read,
85842         too.
85843         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
85844
85845 2003-01-07  Bruno Haible  <bruno@clisp.org>
85846
85847         * lib/strtoimax.c: Include <stdint.h> as an alternative to
85848         <inttypes.h>.
85849         * lib/xstrtol.h: Likewise.
85850         * lib/xstrtoimax.c: Likewise.
85851         * lib/xstrtoumax.c: Likewise.
85852         * lib/human.h: Likewise.
85853
85854         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
85855         on systems that have <inttypes.h> but not <stdint.h>.
85856
85857 2003-01-07  Bruno Haible  <bruno@clisp.org>
85858
85859         * MODULES.html.sh: Add copyright notice.
85860         (missed_files): Omit CVS directory entries.
85861         (func_module): Make it work with sed-3.02.
85862         * MODULES.txt: Remove file.
85863
85864 2003-01-06  Jim Meyering  <jim@meyering.net>
85865
85866         * lib/version-etc.c: Update year in translatable copyright string.
85867
85868 2003-01-03  Karl Berry  <karl@gnu.org>
85869
85870         * config/config.{guess,sub}: update from prep.
85871
85872 2003-01-02  Karl Berry  <karl@gnu.org>
85873
85874         * doc/COPYING.DOC: belatedly updated to 1.2.
85875
85876 2003-01-01  Karl Berry  <karl@gnu.org>
85877
85878         * gnulib-tool (func_verify_module): report module name $module in
85879         error message, not $1.
85880         * gnulib-tool (create-testdir): don't complain if destdir couldn't
85881         be created, only if it doesn't exist.
85882         * gnulib-tool (last_checkin_date): don't expand the $Date here.
85883
85884 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85885
85886         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
85887
85888 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85889
85890         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
85891         memcmp if strcoll doesn't work.
85892
85893 2002-12-31  Bruno Haible  <bruno@clisp.org>
85894
85895         * lib/utime.c (utime_null): No need to call ftruncate if the file was
85896         nonempty.
85897
85898 2002-12-31  Bruno Haible  <bruno@clisp.org>
85899
85900         * lib/memcoll.c (STRCOLL): New macro.
85901         (memcoll): Use it.
85902
85903 2002-12-31  Bruno Haible  <bruno@clisp.org>
85904
85905         * lib/localcharset.h: New file.
85906         * lib/localcharset.c: Include it.
85907         * lib/unicodeio.c: Likewise.
85908
85909 2002-12-31  Bruno Haible  <bruno@clisp.org>
85910
85911         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
85912         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
85913
85914 2002-12-31  Bruno Haible  <bruno@clisp.org>
85915
85916         * lib/getline.h: Include <stddef.h>, for size_t.
85917
85918         * lib/unicodeio.h: Include <stddef.h>, for size_t.
85919         * lib/unicodeio.c: Don't include <stddef.h>.
85920
85921 2002-12-31  Bruno Haible  <bruno@clisp.org>
85922
85923         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
85924         HAVE_TM_ZONE.
85925
85926 2002-12-24  Karl Berry  <karl@gnu.org>
85927
85928         * config/config.guess: update from prep.
85929
85930 2002-12-24  Bruno Haible  <bruno@clisp.org>
85931
85932         General infrasructure.
85933         * m4/README: Rewritten.
85934         * m4/onceonly.m4: New file.
85935         * m4/onceonly_2_57.m4: New file.
85936
85937         Module atexit.
85938         * m4/atexit.m4: New file.
85939
85940         Module strtod.
85941         * m4/strtod.m4: New file.
85942
85943         Module strtol.
85944         * m4/strtol.m4: New file.
85945
85946         Module strtoul.
85947         * m4/strtoul.m4: New file.
85948
85949         Module memchr.
85950         * m4/memchr.m4: New file.
85951
85952         Module memcmp.
85953         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
85954         (jm_FUNC_MEMCMP): Invoke it.
85955
85956         Module memcpy.
85957         * m4/memcpy.m4: New file.
85958
85959         Module memmove.
85960         * m4/memmove.m4: New file.
85961
85962         Module memset.
85963         * m4/memset.m4: New file.
85964
85965         Module strcspn.
85966         * m4/strcspn.m4: New file.
85967
85968         Module strpbrk.
85969         * m4/strpbrk.m4: New file.
85970
85971         Module strstr.
85972         * m4/strstr.m4: New file.
85973
85974         Module strerror.
85975         * m4/strerror.m4: New file.
85976
85977         Module mktime.
85978         * m4/mktime.m4: Renamed from jm-mktime.m4.
85979         (gl_PREREQ_MKTIME): New macro.
85980         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
85981
85982         Module malloc.
85983         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
85984         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
85985         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
85986
85987         Module realloc.
85988         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
85989         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
85990         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
85991
85992         Module strftime.
85993         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
85994         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
85995         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
85996         gl_TM_GMTOFF.
85997         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
85998
85999         Module xalloc.
86000         * m4/xalloc.m4: New file.
86001
86002         Module alloca.
86003         * m4/alloca.m4: New file.
86004
86005         Module putenv.
86006         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
86007         (jm_FUNC_PUTENV): Invoke it.
86008
86009         Module setenv.
86010         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
86011         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
86012         when invoked twice.
86013         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
86014         gt_FUNC_SETENV.
86015
86016         Module memrchr.
86017         * m4/memrchr.m4: New file.
86018
86019         Module stpcpy.
86020         * m4/stpcpy.m4: New file.
86021
86022         Module strcase.
86023         * m4/strcase.m4: New file.
86024
86025         Module strdup.
86026         * m4/strdup.m4: New file.
86027
86028         Module strnlen.
86029         * m4/strnlen.m4: New file.
86030
86031         Module strndup.
86032         * m4/strndup.m4: New file.
86033
86034         Module xstrtod.
86035         * m4/xstrtod.m4: New file.
86036
86037         Module xstrtol.
86038         * m4/xstrtol.m4: New file.
86039
86040         Module getdate.
86041         * m4/getdate.m4: New file.
86042
86043         Module unlocked-io.
86044         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
86045         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
86046         * m4/jm-glibc-io.m4n: Remove file.
86047
86048         Module long-options.
86049         * m4/long-options.m4: New file.
86050
86051         Module md5.
86052         * m4/md5.m4: New file.
86053
86054         Module sha.
86055         * m4/sha.m4: New file.
86056
86057         Module getstr.
86058         * m4/getstr.m4: New file.
86059
86060         Module getline.
86061         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
86062         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
86063         <sys/types.h>, for size_t. Use the function name gnu_getline, not
86064         simply getline. Infoke gl_PREREQ_GETLINE.
86065
86066         Module obstack.
86067         * m4/obstack.m4: New file.
86068
86069         Module hash.
86070         * m4/hash.m4: New file.
86071
86072         Module readtokens.
86073         * m4/readtokens.m4: New file.
86074
86075         Module strverscmp.
86076         * m4/strverscmp.m4: New file.
86077
86078         Module stdbool.
86079         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
86080         OSF/1.
86081
86082         Module strtoll.
86083         * m4/strtoll.m4: New file.
86084
86085         Module strtoull.
86086         * m4/strtoull.m4: New file.
86087
86088         Module strtoimax.
86089         * m4/strtoimax.m4: New file.
86090
86091         Module strtoumax.
86092         * m4/strtoumax.m4: New file.
86093
86094         Module xstrtoimax.
86095         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
86096         jm_AC_PREREQ_XSTRTOIMAX.
86097         Moved the strtol prerequisites to strtol.m4.
86098         Moved the strtoll prerequisites to strtoll.m4.
86099         Moved the strtoimax prerequisites to strtoimax.m4.
86100
86101         Module xstrtoumax.
86102         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
86103         jm_AC_PREREQ_XSTRTOUMAX.
86104         Moved the strtoul prerequisites to strtoul.m4.
86105         Moved the strtoull prerequisites to strtoull.m4.
86106         Moved the strtoumax prerequisites to strtoumax.m4.
86107
86108         Module chown.
86109         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
86110         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
86111
86112         Module dup2.
86113         * m4/dup2.m4: New file.
86114
86115         Module ftruncate.
86116         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
86117         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
86118
86119         Module getgroups.
86120         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
86121         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
86122
86123         Module gettimeofday.
86124         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
86125         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
86126         gl_PREREQ_GETTIMEOFDAY.
86127
86128         Module mkdir.
86129         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
86130         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
86131
86132         Module mkstemp.
86133         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
86134         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
86135         jm_AC_TYPE_UINTMAX_T.
86136         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
86137
86138         Module stat.
86139         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
86140         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
86141
86142         Module lstat.
86143         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
86144         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
86145
86146         Module timespec.
86147         * m4/timespec.m4 (gl_TIMESPEC): New macro.
86148         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
86149         * m4/st_mtim.m4: Indentation.
86150
86151         Module nanosleep.
86152         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
86153         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
86154         gl_PREREQ_NANOSLEEP.
86155
86156         Module regex.
86157         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
86158         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
86159         (gl_REGEX): New macro.
86160
86161         Module rename.
86162         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
86163         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
86164
86165         Module rmdir.
86166         * m4/rmdir.m4: New file.
86167
86168         Module utime.
86169         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
86170         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
86171         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
86172
86173         Module dirname.
86174         * m4/dirname.m4: New file.
86175
86176         Module getopt.
86177         * m4/getopt.m4: New file.
86178
86179         Module unistd-safer.
86180         * m4/unistd-safer.m4: New file.
86181
86182         Module fnmatch.
86183         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
86184         declaration.
86185         (gl_PREREQ_FNMATCH_EXTRA): New macro.
86186         (gl_FUNC_FNMATCH_POSIX): New macro.
86187         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
86188         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
86189         simply fnmatch.
86190
86191         Module exclude.
86192         * m4/exclude.m4: New file.
86193
86194         Module human.
86195         * m4/human.m4: New file.
86196
86197         Module acl.
86198         * m4/acl.m4: Nop.
86199
86200         Module backupfile.
86201         * m4/backupfile.m4: New file.
86202         * m4/d-ino.m4: Indentation.
86203
86204         Module fsusage.
86205         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
86206         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
86207         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
86208
86209         Module dirfd.
86210         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
86211         requirements.
86212
86213         Module euidaccess.
86214         * m4/euidaccess.m4: New file.
86215
86216         Module file-type.
86217         * m4/file-type.m4: New file.
86218
86219         Module fileblocks.
86220         * m4/fileblocks.m4: New file.
86221
86222         Module filemode.
86223         * m4/filemode.m4: New file.
86224
86225         Module isdir.
86226         * m4/isdir.m4: New file.
86227
86228         Module lchown.
86229         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
86230         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
86231
86232         Module makepath.
86233         * m4/makepath.m4: New file.
86234
86235         Module modechange.
86236         * m4/modechange.m4: New file.
86237
86238         Module mountlist.
86239         * m4/mountlist.m4: New file.
86240         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
86241         Indentation.
86242
86243         Module path-concat.
86244         * m4/path-concat.m4: New file.
86245
86246         Module pathmax.
86247         * m4/pathmax.m4: New file.
86248
86249         Module same.
86250         * m4/same.m4: New file.
86251
86252         Module save-cwd.
86253         * m4/save-cwd.m4: New file.
86254
86255         Module savedir.
86256         * m4/savedir.m4: New file.
86257
86258         Module xgetcwd.
86259         * m4/xgetcwd.m4: New file.
86260         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
86261
86262         Module xreadlink.
86263         * m4/xreadlink.m4: New file.
86264
86265         Module safe-read.
86266         * m4/safe-read.m4: New file.
86267
86268         Module safe-write.
86269         * m4/safe-write.m4: New file.
86270
86271         Module closeout.
86272         * m4/closeout.m4: New file.
86273
86274         Module stdio-safer.
86275         * m4/stdio-safer.m4: New file.
86276
86277         Module getpass.
86278         * m4/getpass.m4: New file.
86279
86280         Module getugroups.
86281         * m4/getugroups.m4: New file.
86282
86283         Module group-member.
86284         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
86285         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
86286
86287         Module idcache.
86288         * m4/idcache.m4: New file.
86289
86290         Module userspec.
86291         * m4/userspec.m4: New file.
86292
86293         Module gettime.
86294         * m4/clock_time.m4: New file.
86295         * m4/gettime.m4: New file.
86296
86297         Module settime.
86298         * m4/settime.m4: New file.
86299
86300         Module posixtm.
86301         * m4/posixtm.m4: New file.
86302
86303         Module gethostname.
86304         * m4/gethostname.m4: New file.
86305
86306         Module canon-host.
86307         * m4/canon-host.m4: New file.
86308
86309         Module gettext.
86310         * m4/codeset.m4: New file, from gettext-0.11.5.
86311         * m4/gettext.m4: New file, from gettext-0.11.5.
86312         * m4/glibc21.m4: New file, from gettext-0.11.5.
86313         * m4/iconv.m4: New file, from gettext-0.11.5.
86314         * m4/intdiv0.m4: New file, from gettext-0.11.5.
86315         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
86316         * m4/inttypes.m4: New file, from gettext-0.11.5.
86317         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
86318         * m4/isc-posix.m4: New file, from gettext-0.11.5.
86319         * m4/lcmessage.m4: New file, from gettext-0.11.5.
86320         * m4/lib-ld.m4: New file, from gettext-0.11.5.
86321         * m4/lib-link.m4: New file, from gettext-0.11.5.
86322         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
86323         * m4/progtest.m4: New file, from gettext-0.11.5.
86324         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
86325         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
86326         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
86327
86328         Module localcharset.
86329         * m4/localcharset.m4: New file.
86330
86331         Module hard-locale.
86332         * m4/hard-locale.m4: New file.
86333
86334         Module mbswidth.
86335         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
86336         onceonly macros.
86337         * m4/mbrtowc.m4: Add comment.
86338
86339         Module memcasecmp.
86340         * m4/memcasecmp.m4: New file.
86341
86342         Module memcoll.
86343         * m4/memcoll.m4: New file.
86344
86345         Module unicodeio.
86346         * m4/unicodeio.m4: New file.
86347
86348         Module rpmatch.
86349         * m4/rpmatch.m4: New file.
86350
86351         Module yesno.
86352         * m4/yesno.m4: New file.
86353
86354         Module exitfail.
86355         * m4/exitfail.m4: New file.
86356
86357         Module c-stack.
86358         * m4/c-stack.m4 (gl_C_STACK): New macro.
86359         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
86360
86361         Module error.
86362         * m4/error.m4 (gl_ERROR): New macro.
86363         (jm_PREREQ_ERROR): Use onceonly macros.
86364
86365         Module fatal.
86366         * m4/fatal.m4: New file.
86367
86368         Module getloadavg.
86369         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
86370         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
86371
86372         Module getpagesize.
86373         * m4/getpagesize.m4: New file.
86374
86375         Module getusershell.
86376         * m4/getusershell.m4: New file.
86377
86378         Module physmem.
86379         * m4/physmem.m4: New file.
86380
86381         Module posixver.
86382         * m4/posixver.m4: New file.
86383
86384         Module quotearg.
86385         * m4/quotearg.m4: New file.
86386
86387         Module quote.
86388         * m4/quote.m4: New file.
86389
86390         Module readutmp.
86391         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
86392
86393         Module sig2str.
86394         * m4/sig2str.m4: New file.
86395
86396         Other.
86397         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
86398         ulonglong.m4.
86399         * m4/intmax_t.m4: New file.
86400         * m4/d-type.m4: Indentation.
86401         * m4/jm-macros.m4: Update.
86402         * m4/prereq.m4 (jm_PREREQ): Update.
86403         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
86404         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
86405         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
86406         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
86407         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
86408         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
86409         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
86410         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
86411         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
86412         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
86413         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
86414         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
86415         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
86416         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
86417         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
86418         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
86419         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
86420         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
86421         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
86422
86423 2002-12-24  Bruno Haible  <bruno@clisp.org>
86424
86425         * MODULES.txt: Update according to m4/ changes.
86426
86427         Module gettext.
86428         * config.rpath: New file, from gettext-0.11.5.
86429
86430         * modules/*: New module descriptions.
86431         * gnulib-tool: New file.
86432         * MODULES.html.sh: New file.
86433
86434 2002-12-21  Karl Berry  <karl@gnu.org>
86435
86436         * doc/fdl.texi: update to version 1.2.
86437
86438 2002-12-19  Karl Berry  <karl@gnu.org>
86439
86440         * config/config.guess: update from prep.
86441
86442 2002-12-18  Bruno Haible  <bruno@clisp.org>
86443
86444         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
86445         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
86446
86447 2002-12-17  Bruno Haible  <bruno@clisp.org>
86448
86449         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
86450         stdlib.h, string.h.
86451
86452 2002-12-17  Bruno Haible  <bruno@clisp.org>
86453
86454         * lib/canon-host.c (strdup): Remove unused declaration.
86455
86456         * lib/fsusage.c: Include full_read.h.
86457         (get_fs_usage): Use full_read instead of safe_read.
86458
86459         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
86460
86461 2002-12-12  Karl Berry  <karl@gnu.org>
86462
86463         * config/config.guess: update from prep.
86464
86465 2002-12-11  Bruno Haible  <bruno@clisp.org>
86466
86467         * m4/setenv.m4: New file, from gettext-0.11.5.
86468
86469 2002-12-11  Bruno Haible  <bruno@clisp.org>
86470
86471         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
86472         not unsetenv().
86473         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
86474         modifications:
86475
86476         2002-12-11  Bruno Haible  <bruno@clisp.org>
86477
86478                 * setenv.c (alloca): Fall back to malloc.
86479                 (freea): New macro.
86480                 (setenv): Use freea() to free memory allocated with alloca().
86481
86482         2002-11-13  Bruno Haible  <bruno@clisp.org>
86483
86484                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
86485                 function declarations.
86486                 * unsetenv.c (unsetenv): Likewise.
86487
86488         2002-03-04  Bruno Haible  <bruno@clisp.org>
86489
86490                 Portability to AIX 4.3.3.
86491                 * unsetenv.c: New file, extracted from setenv.c.
86492                 * setenv.c: Move the unsetenv() function to unsetenv.c.
86493
86494         2001-12-20  Bruno Haible  <bruno@clisp.org>
86495
86496                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
86497                 use malloc instead. For SunOS 4.
86498
86499         2001-12-11  Bruno Haible  <bruno@clisp.org>
86500
86501                 * setenv.c: Declare alloca.
86502                 (compar_fn_t): New typedef.
86503                 (KNOWN_VALUE, STORE_VALUE): Use it.
86504
86505         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
86506         setenv.h.
86507
86508 2002-12-10  Paul Eggert  <eggert@twinsun.com>
86509
86510         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
86511         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
86512         Choose values that are less likely to collide with system fnmatch
86513         options.
86514         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
86515         defined (e.g., a pure POSIX system).
86516         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
86517         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
86518
86519 2002-12-06  Paul Eggert  <eggert@twinsun.com>
86520
86521         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
86522         a pain in practice to deal with generated m4 files.  This change
86523         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
86524
86525         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
86526         and jm-glibc-io.m4, as they are no longer a special case.
86527         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
86528         kludge and the auto-generation stuff.  Check only whether the
86529         functions are declared, not whether they exist, since older hosts
86530         that don't declare the functions can't use the optimization anyway.
86531
86532 2002-12-06  Jim Meyering  <jim@meyering.net>
86533
86534         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
86535
86536         Merge in changes from libc's misc/error.c, in preparation
86537         for the merge of gnulib's changes back into libc.
86538
86539         * lib/error.c (_): Define only if not already defined.
86540         Move definition to follow all #include directives.
86541         Include unlocked-io.h only if !_LIBC.
86542         [_LIBC]: Include <libio/libioP.h>.
86543         [USE_IN_LIBIO]: Include <libio/iolibio.h>
86544         (fflush): Tweak definition to use INTUSE.
86545         (putc): Define.
86546
86547 2002-12-05  Paul Eggert  <eggert@twinsun.com>
86548
86549         * lib/alloca.c [defined emacs]: Include "lisp.h".
86550         (xalloc_die) [defined emacs]: New macro.
86551         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
86552         [! defined emacs]: Include <xalloc.h>.
86553         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
86554         (pointer): Typedef to POINTER_TYPE *.
86555         (malloc): Remove decl; we now always use xmalloc.
86556         (alloca): Use old-style definition, since Emacs needs this.
86557         Check for arithmetic overflow when computing combined size.
86558
86559 2002-12-04  Paul Eggert  <eggert@twinsun.com>
86560
86561         Do not generate unlocked-io.h automatically, since it's easier to
86562         maintain it by hand.
86563
86564         * lib/unlocked-io.h: New file, from GNU diffutils,
86565         but with proper copyright notice and attribution.
86566         * lib/gen-uio: Remove.
86567         * lib/Makefile.am: Add copyright notice.
86568         (libfetish_a_SOURCES): Add unlocked-io.h.
86569         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
86570         (DISTCLEANFILES, io_functions): Remove macros.
86571         (EXTRA_DIST): Remove gen_uio.
86572         (unlocked-io.h): Remove rule.
86573
86574 2002-12-04  Jim Meyering  <jim@meyering.net>
86575
86576         Reflect the fact that stat.c and lstat.c are no longer generated.
86577         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
86578         (DISTCLEANFILES): Likewise.
86579         (EXTRA_DIST): Likewise.
86580         (all_local): Don't depend on stat.c or lstat.c.
86581         (stat.c, lstat.c): Remove rules.
86582         (EXTRA_DIST): Remove xstat.in.
86583
86584         * lib/xstat.in: Remove file.  Contents moved into stat.c.
86585         * lib/stat.c: New file.  Contents mostly from xstat.in.
86586         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
86587         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
86588
86589         * lib/safe-read.c: Rework so that it may serve to define safe_write,
86590         too.
86591         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
86592
86593 2002-12-03  Jim Meyering  <jim@meyering.net>
86594
86595         * lib/safe-read.c, safe-write.c: Change variable names and comments,
86596         but not semantics, to minimize the differences between these two files.
86597         (safe_read): Change comment to mention SAFE_READ_ERROR.
86598
86599         * lib/safe-read.c (IS_EINTR): Define.
86600         (safe_read): Use IS_EINTR in place of in-function cpp directives.
86601
86602 2002-12-02  Jim Meyering  <jim@meyering.net>
86603
86604         * lib/safe-read.c (EINTR): Define.
86605         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86606         (INT_MAX): Provide fallback.
86607         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
86608
86609         * lib/safe-read.h (SAFE_READ_ERROR): Define.
86610
86611 2002-12-02  Bruno Haible  <bruno@clisp.org>
86612
86613         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
86614         Define, taken from safe-read.c.
86615         (INT_MAX): Provide fallback.
86616         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
86617         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
86618
86619         * lib/safe-read.c (EINTR): Remove definition.
86620         (safe_read): Don't use EINTR if it is absent.
86621
86622 2002-12-01  Jim Meyering  <jim@meyering.net>
86623
86624         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
86625         zero.
86626         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
86627
86628 2002-11-27  Paul Eggert  <eggert@twinsun.com>
86629
86630         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
86631         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
86632         with `if (! (value < limit)) abort ();', for readability.
86633
86634 2002-11-26  Karl Berry  <karl@gnu.org>
86635
86636         * lib/strdup.c: copy from libc again, with jim's ok.
86637         * lib/.cppi-disable: re-add strdup.c
86638
86639 2002-11-25  Karl Berry  <karl@gnu.org>
86640
86641         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
86642         instead of "strtol.c".
86643
86644 2002-11-25  Karl Berry  <karl@gnu.org>
86645
86646         * config/install-sh: update from automake for variable quoting, $0 in
86647         error msgs, etc.
86648
86649         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
86650         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
86651         entry.
86652
86653 2002-11-25  Jim Meyering  <jim@meyering.net>
86654
86655         * lib/mktime.c: Sync from libc, now that it has the latest fix.
86656
86657 2002-11-24  Karl Berry  <karl@gnu.org>
86658
86659         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
86660         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
86661
86662 2002-11-24  Jim Meyering  <jim@meyering.net>
86663
86664         Update from coreutils:
86665
86666         * lib/mktime.c: Merge in changes from libc.
86667
86668         Avoid a link-time failure on some Linux systems.
86669         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
86670         (otherwise).
86671         (__mon_yday): Declare with the STATIC attribute.
86672         (__mktime_internal): Likewise.
86673         Based on a report from Greg Schafer.
86674
86675 2002-11-23  Jim Meyering  <jim@meyering.net>
86676
86677         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
86678         Use `unsigned', not `int', as type of index.
86679
86680         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
86681
86682         * lib/fsusage.c: Remove unneeded parentheses around operands of
86683         `defined'.
86684
86685 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86686
86687         * lib/quotearg.h: Allow multiple inclusion by surrounding with
86688         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
86689         so that we can be included first.
86690         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
86691         * lib/quotearg.c: Include quotearg.h immediately after config.h.
86692         No need to include stddef.h or sys/types.h any more.
86693         Surround local include files with "", not "<>".
86694         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
86695         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
86696         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
86697         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
86698         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
86699         (ISPRINT): Remove; no longer needed now that we assume C89.
86700
86701         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
86702         Preserve errno.
86703
86704         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
86705         quotearg_char): Use SIZE_MAX rather than
86706         (size_t) -1 when we are talking about "infinity".
86707
86708         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
86709
86710 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86711
86712         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
86713         hint that one should use `if (! x) abort ();' rather than `assert
86714         (x);', and anyway it's one less thing to worry about configuring.
86715         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
86716         hash_rehash, hash_insert): Use abort rather than assert.
86717
86718 2002-11-22  Bruno Haible  <bruno@clisp.org>
86719
86720         * lib/safe-read.h: Assume C89. Add comments.
86721         (safe_read): Change return type to size_t.
86722         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
86723         byte counts > SSIZE_MAX correctly.
86724         * lib/safe-write.h: New file.
86725         * lib/safe-write.c: New file.
86726         * lib/full-read.h: New file.
86727         * lib/full-read.c: New file.
86728         * lib/full-write.h: Assume C89. Add comments.
86729         * lib/full-write.c: Include safe-write.h.
86730         (full_write): Rewritten to use safe_write.
86731         Suggested by Jim Meyering and Paul Eggert.
86732
86733 2002-11-21  Jim Meyering  <jim@meyering.net>
86734
86735         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
86736
86737         Merge in changes from the coreutils.
86738
86739         2002-09-25  Paul Eggert  <eggert@twinsun.com>
86740         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
86741         <stdint.h>.
86742         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
86743         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
86744         int.  Work more efficiently if X is the same width as uintmax_t.
86745         Do not compare X to -1, to avoid bogus compiler warning.
86746         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
86747         Don't assume that f_frsize and f_bsize are the same type.
86748
86749         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
86750         warning on FreeBSD.
86751
86752         * lib/makepath.c (make_path): Restore umask *before* creating the final
86753         component.
86754         (make_path): Minor reformatting.
86755
86756         * lib/xmalloc.c: Adjust to work with new autoconf macros,
86757         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
86758         HAVE_MALLOC/HAVE_REALLOC.
86759
86760         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
86761         dummy ones.  At least on GNU/Linux systems, `auto' means something
86762         else.
86763         From Michael Stone.
86764
86765 2002-11-21  Bruno Haible  <bruno@clisp.org>
86766
86767         Remove case insensitive option matching.
86768         * lib/argmatch.h (argcasematch): Remove declaration.
86769         (ARGCASEMATCH): Remove macro.
86770         (__xargmatch_internal): Remove case_sensitive argument.
86771         (XARGMATCH): Update.
86772         (XARGCASEMATCH): Remove macro.
86773         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
86774         case_sensitive argument.
86775         (argcasematch): Remove function.
86776         (__xargmatch_internal): Remove case_sensitive argument.
86777         (main): Use XARGMATCH instead of XARGCASEMATCH.
86778
86779         * lib/xmalloc.c: Change compile-time error message. Add comment about
86780         required autoconf version.
86781
86782 2002-11-20  Paul Eggert  <eggert@twinsun.com>
86783
86784         Merge argmatch cleanups from Bison.  Assume C89.
86785
86786         * lib/argmatch.c: Include config.h here, not in argmatch.h.
86787         Include stdlib.h, for EXIT_FAILURE.
86788         Always include <string.h>, since we assume C89.
86789         (EXIT_FAILURE): Remove pre-C89 bug workaround.
86790         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
86791         Include <stddef.h> instead, since it's all we need for size_t.
86792         (PARAMS): Remove.  All uses removed.
86793         (ARRAY_CARDINALITY): Do not bother to #undef.
86794         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
86795         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86796         Remove unnecessary parentheses.
86797         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86798         Insert necessary parentheses.
86799         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
86800         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
86801
86802 2002-11-19  Bruno Haible  <bruno@clisp.org>
86803
86804         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
86805         * lib/mbswidth.h: Include <stddef.h>, for size_t.
86806
86807         * lib/mbswidth.h (PARAMS): Remove macro.
86808         (mbswidth, mbsnwidth): Use ANSI C function declarations.
86809         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
86810
86811         * lib/gcd.h (PARAMS): Remove macro.
86812         (gcd): Use ANSI C function declarations.
86813         * lib/gcd.c (gcd): Likewise.
86814
86815 2002-11-15  Bruno Haible  <bruno@clisp.org>
86816
86817         * lib/strcspn.c: Include <stddef.h>.
86818         (strcspn): Use ANSI C function declaration. Change return type to
86819         size_t. Use NULL.
86820         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
86821         (strpbrk): Use NULL.
86822         * lib/strpbrk.h (PARAMS): Remove macro.
86823         (strpbrk): Use ANSI C function declaration.
86824         * lib/strstr.c: Don't include <sys/types.h>.
86825         * lib/strstr.h (PARAMS): Remove macro.
86826         (strstr): Use ANSI C function declarations.
86827
86828 2002-11-14  Karl Berry  <karl@gnu.org>
86829
86830         * config/mkinstalldirs: `do' on separate line, instead of
86831         `for var; do'.
86832
86833 2002-11-06  Bruno Haible  <bruno@clisp.org>
86834
86835         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
86836         * lib/gcd.c (gcd): Likewise.
86837
86838 2002-11-05  Bruno Haible  <bruno@clisp.org>
86839
86840         * lib/gcd.h: New file, from gettext-0.11.5.
86841         * lib/gcd.c: New file, from gettext-0.11.5.
86842
86843 2002-11-05  Bruno Haible  <bruno@clisp.org>
86844
86845         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86846         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86847         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86848         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86849
86850         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
86851         <libintl.h>.
86852         * lib/makepath.c: Include gettext.h instead of <locale.h> and
86853         <libintl.h>.
86854
86855         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
86856         * lib/human.c: Include gettext.h instead of <libintl.h>.
86857         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
86858         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
86859         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
86860         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
86861         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
86862         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
86863         (textdomain): Remove definition.
86864         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
86865
86866         * lib/long-options.c: Remove include of <libintl.h> and definition of
86867         _.
86868         * lib/same.c: Remove include of <libintl.h> and definition of _.
86869
86870 2002-11-04  Owen Taylor  <otaylor@redhat.com>
86871
86872         * lib/config.charset: A few additions for Solaris.
86873
86874 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86875
86876         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
86877         * lib/localcharset.c (locale_charset): Declare as extern "C".
86878
86879 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86880
86881         * lib/config.charset: msdos in uk_UA uses CP1125.
86882
86883 2002-11-04  Bruno Haible  <bruno@clisp.org>
86884
86885         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
86886         * lib/strcase.h: New file, from GNU gettext-0.11.5.
86887         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
86888         * lib/strstr.h: New file, from GNU gettext-0.11.5.
86889         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
86890
86891 2002-11-04  Bruno Haible  <bruno@clisp.org>
86892
86893         * lib/localcharset.c (locale_charset): Don't return an empty string.
86894
86895 2002-11-04  Bruno Haible  <bruno@clisp.org>
86896
86897         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
86898         aliases.
86899
86900 2002-11-04  Bruno Haible  <bruno@clisp.org>
86901
86902         * lib/config.charset: Update for newest glibc. Add canonical names
86903         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
86904
86905 2002-11-04  Bruno Haible  <bruno@clisp.org>
86906
86907         * lib/config.charset: Add support for NetBSD.
86908
86909 2002-11-04  Bruno Haible  <bruno@clisp.org>
86910
86911         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
86912
86913 2002-11-01  Bruno Haible  <bruno@clisp.org>
86914
86915         * configure.in: Add AC_CONFIG_AUX_DIR call.
86916         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
86917         test/Makefile.
86918         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
86919
86920 2002-09-28  Karl Berry  <karl@gnu.org>
86921
86922         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
86923         installed automake until the next release, since changes have been
86924         made.
86925
86926 2002-09-25  Karl Berry  <karl@gnu.org>
86927
86928         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
86929         * lib/getopt*: copy from libc/posix.
86930         * lib/gettext.h: copy from gettext.
86931         * lib/.cppi-disable: add strdup.c, gettext.h.
86932
86933 2002-09-25  Karl Berry  <karl@gnu.org>
86934
86935         * config/srclist.txt: enable gettext.h check.
86936         * config/config.{guess,sub}: update from prep.
86937         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
86938                 from automake 1.6.3.
86939         See srclist*.
86940
86941 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
86942
86943         * regex.c (PATFETCH): Remove the translating fetch.
86944         (PATFETCH_RAW): Rename to PATFETCH.
86945         (set_image_of_range): New fun.
86946         (SET_RANGE_TABLE_WORK_AREA): Use it.
86947         (regex_compile): Don't translate the pattern chars so eagerly.
86948         Only do it when inserting an `exactn' bytecode or when handling
86949         a char-range.
86950         (mutually_exclusive_p): Avoid empty statement.
86951
86952 2002-07-06  Jim Meyering  <meyering@lucent.com>
86953
86954         * m4/README: Don't mention Makefile.am.in.
86955         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
86956
86957 2002-07-01  Jim Meyering  <meyering@lucent.com>
86958
86959         * lib/c-stack.c: Include sys/time.h.
86960         From Volker Borchert.
86961
86962 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86963
86964         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
86965
86966 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86967
86968         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
86969         New macro.  Use it uniformly instead of
86970         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
86971         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
86972         reported by Vin Shelton.
86973
86974 2002-06-22  Paul Eggert  <eggert@twinsun.com>
86975
86976         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
86977         Do not assume SA_SIGINFO behavior.
86978         Bug reported by Jim Meyering on NetBSD 1.5.2.
86979
86980 2002-06-22  Jim Meyering  <meyering@lucent.com>
86981
86982         * m4/c-stack.m4: New file, from diffutils-2.8.2.
86983         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
86984
86985         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
86986         now that configure.ac uses AC_GNU_SOURCE.
86987         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
86988         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
86989
86990         Update to latest tools.  Suggestions from Paul Eggert.
86991         * m4/stdbool.m4: New file, from diffutils-2.8.2.
86992         * m4/gnu-source.m4: Update from diffutils-2.8.2.
86993         * m4/fnmatch.m4: Likewise.
86994         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
86995         to AC_HEADER_STDBOOL
86996
86997 2002-06-22  Jim Meyering  <meyering@lucent.com>
86998
86999         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
87000         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
87001
87002 2002-06-22  Jim Meyering  <meyering@lucent.com>
87003
87004         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
87005
87006         * lib/exitfail.c, exitfail.h: Likewise.
87007         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
87008
87009         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
87010         of fnmatch.h.
87011         (EXTRA_DIST): Add fnmatch_loop.c.
87012         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
87013
87014         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
87015         * lib/fnmatch.c: Update from diffutils-2.8.2.
87016         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
87017         * lib/fnmatch.h: Remove file.
87018
87019 2002-06-21  Jim Meyering  <meyering@lucent.com>
87020
87021         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
87022         * m4/mbrtowc.m4: Likewise.
87023
87024         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
87025         * m4/mbswidth.m4: Reflect name change:
87026         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
87027         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87028
87029         * m4/lib-link.m4: Update from gettext-0.11.2.
87030         * m4/gettext.m4: Likewise.
87031
87032         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
87033         From Alfred M. Szmidt.
87034
87035 2002-06-18  Paul Eggert  <eggert@twinsun.com>
87036
87037         * lib/file-type.h: Report an error if neither S_ISREG nor
87038         S_IFREG is defined, instead of using a test specific to glibc
87039         2.2.  This should be safe, since POSIX requires S_ISREG and
87040         Unix Version 7 had S_IFREG.  We don't need to check for
87041         <sys/types.h> since we don't use any symbols that it defines.
87042
87043 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
87044
87045         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
87046         $@-t, so that each temporary file name is unique and valid in the first
87047         8 characters, for operation under DOS.
87048
87049 2002-06-15  Paul Eggert  <eggert@twinsun.com>
87050
87051         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
87052
87053 2002-06-15  Jim Meyering  <meyering@lucent.com>
87054
87055         Work even with DJGPP 2.03, which lacks support for symlinks.
87056         From Richard Dawe.
87057         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
87058         is defined.
87059         * lib/lchown.c (S_ISLNK): Likewise.
87060
87061 2002-06-15  Jim Meyering  <meyering@lucent.com>
87062
87063         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
87064         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
87065         have been included before this file.
87066
87067 2002-06-14  Jim Meyering  <meyering@lucent.com>
87068
87069         * lib/file-type.h: Use the version from diffutils-2.8.2.
87070         * lib/file-type.c: Likewise.
87071
87072 2002-06-07  Jim Meyering  <meyering@lucent.com>
87073
87074         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
87075         They're needed at least for NetBSD 1.5.2.
87076         ($statxfs_includes): Include those same headers.
87077         ($statxfs_includes): Include sys/vfs.h if available.
87078         ($statxfs_includes): Likewise for sys/statvfs.h.
87079         Check for the following members in both structs statfs and statvfs:
87080         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
87081
87082 2002-06-01  Jim Meyering  <meyering@lucent.com>
87083
87084         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
87085         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
87086
87087 2002-05-28  Jim Meyering  <meyering@lucent.com>
87088
87089         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
87090         Reported by Volker Borchert.
87091
87092 2002-05-27  Jim Meyering  <meyering@lucent.com>
87093
87094         Fix a problem seen only on nonconforming systems whereby ls.c's
87095         use of localtime, and then of gettimeofday would cause trouble:
87096         the localtime call used to initialize rpl_gettimeofday's save
87097         mechanism would clobber ls's current local time information so
87098         that in any long listing the first file would always be listed
87099         with date 1970-01-01.  Analysis by Volker Borchert.
87100
87101         * lib/gettimeofday.c (localtime): Undefine.
87102         (rpl_localtime): New function.
87103
87104 2002-05-27  Jim Meyering  <meyering@lucent.com>
87105
87106         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
87107         localtime.
87108
87109         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
87110         use the replacement function; it wouldn't resolve at link time.
87111         Reported by Volker Borchert.
87112
87113 2002-05-22  Jim Meyering  <meyering@lucent.com>
87114
87115         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
87116         file-type.h.
87117         * lib/file-type.h: New file.
87118         * lib/file-type.c (file_type): New file/function.  Extracted from
87119         diffutils.
87120
87121 2002-04-30  Jim Meyering  <meyering@lucent.com>
87122
87123         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
87124
87125 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87126
87127         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
87128
87129 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87130
87131         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
87132         Do not check for alloca.h (no longer used) or stdbool.h (was never
87133         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
87134
87135 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87136
87137         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
87138
87139 2002-04-29  Jim Meyering  <meyering@lucent.com>
87140
87141         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
87142         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
87143         Use AC_FUNC_STRNLEN here instead.
87144
87145         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
87146         With autoconf-2.53a, it's part of AC_PROG_CC.
87147
87148 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87149
87150         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
87151         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
87152
87153 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87154
87155         * lib/sig2str.h, lib/sig2str.c: New files.
87156         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
87157
87158 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87159
87160         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
87161         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
87162         of 127, since 64 is the largest conceivable number for ancient
87163         nonstandard hosts.
87164         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
87165
87166 2002-04-28  Jim Meyering  <meyering@lucent.com>
87167
87168         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
87169
87170 2002-04-24  Jim Meyering  <meyering@lucent.com>
87171
87172         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
87173         (jm_PREREQ): Use it.
87174
87175         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
87176         mach/mach.h fcntl.h.
87177         Check for this function: setlocale.
87178
87179 2002-04-24  Jim Meyering  <meyering@lucent.com>
87180
87181         * lib/gettext.h: New file, from Gettext.
87182         * lib/Makefile.am (INCLUDES): Remove -I../intl.
87183         (libfetish_a_SOURCES): Add gettext.h.
87184
87185 2002-04-16  Jim Meyering  <meyering@lucent.com>
87186
87187         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
87188         ut_pid, ut_id, ut_exit.
87189
87190 2002-04-16  Jim Meyering  <meyering@lucent.com>
87191
87192         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
87193         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
87194         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
87195
87196 2002-04-12  Jim Meyering  <meyering@lucent.com>
87197
87198         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
87199         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
87200         existence of the getmntinfo function.  Needed for Darwin 5.3.
87201
87202         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
87203         This is necessary at least on Darwin 5.3.
87204
87205         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
87206         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
87207         strnlen.o in the library, and that makes some versions of ranlib
87208         object.
87209
87210 2002-04-12  Jim Meyering  <meyering@lucent.com>
87211
87212         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
87213
87214 2002-04-09  Jim Meyering  <meyering@lucent.com>
87215
87216         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
87217         to be more precise.  Rather than saying we're checking whether the
87218         function `works', say what we're testing.
87219         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
87220         Reported by Bruno Haible.
87221
87222 2002-03-10  Jim Meyering  <meyering@lucent.com>
87223
87224         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
87225         Suggestion from Santiago Vila.
87226
87227 2002-03-08  Jim Meyering  <meyering@lucent.com>
87228
87229         * lib/rename.c: Mention that this wrapper is needed also on
87230         mips-dec-ultrix4.4 systems.
87231
87232 2002-03-02  Jim Meyering  <meyering@lucent.com>
87233
87234         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
87235         not HAVE_CLOCK_SETTIME.
87236
87237 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87238
87239         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
87240         Check for clock_settime.
87241
87242 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87243
87244         * lib/nanosleep.h: Rename to....
87245         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
87246
87247         * lib/gettime.c: New file.
87248         * lib/settime.c: New file.
87249         * lib/stime.c: Remove.
87250
87251         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
87252         timespec.h.  Remove nanosleep.h.
87253
87254 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87255
87256         * m4/acl.m4: New file.
87257         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
87258         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
87259
87260 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87261
87262         * lib/acl.c, lib/acl.h: New files.
87263         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
87264
87265 2002-02-24  Jim Meyering  <meyering@lucent.com>
87266
87267         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
87268         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
87269         cause trouble.  Reported by Nelson Beebe.
87270
87271 2002-02-23  Paul Eggert  <eggert@twinsun.com>
87272
87273         * lib/path-concat.c (xpath_concat): Reorder code to pacify
87274         compilers that don't know that xalloc_die never returns.
87275
87276 2002-02-20  Jim Meyering  <meyering@lucent.com>
87277
87278         * lib/getdate.c: Regenerate using bison-1.33.
87279
87280 2002-02-17  Jim Meyering  <meyering@lucent.com>
87281
87282         * config/config.guess (main): Don't use `head -1'; it's no longer
87283         portable. Use `sed 1q' instead.
87284
87285 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
87286
87287         * m4/codeset.m4: Upgrade to gettext-0.11.
87288         * m4/gettext.m4: Upgrade to gettext-0.11.
87289         * m4/glibc21.m4: Upgrade to gettext-0.11.
87290         * m4/iconv.m4: Upgrade to gettext-0.11.
87291         * m4/isc-posix.m4: Upgrade to gettext-0.11.
87292         * m4/lcmessage.m4: Upgrade to gettext-0.11.
87293         * m4/lib-ld.m4: New file, from gettext-0.11.
87294         * m4/lib-link.m4: New file, from gettext-0.11.
87295         * m4/lib-prefix.m4: New file, from gettext-0.11.
87296         * m4/progtest.m4: Upgrade to gettext-0.11.
87297
87298 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87299
87300         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
87301         (jm_PREREQ): Use it.
87302
87303 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87304
87305         * lib/posixver.c, lib/posixver.h: New files.
87306         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87307
87308 2002-02-02  Paul Eggert  <eggert@twinsun.com>
87309             Bruno Haible  <bruno@clisp.org>
87310
87311         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
87312         (fwrite_success_callback): New declaration.
87313         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
87314         print_unicode_char. Call failure callback instead of error.
87315         (fwrite_success_callback): New function.
87316         (exit_failure_callback): New function.
87317         (fallback_failure_callback): New function.
87318         (print_unicode_char): Call unicode_to_mb.
87319
87320 2002-01-26  Jim Meyering  <meyering@lucent.com>
87321
87322         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
87323         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
87324
87325 2002-01-26  Jim Meyering  <meyering@lucent.com>
87326
87327         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
87328
87329 2002-01-22  Paul Eggert  <eggert@twinsun.com>
87330
87331         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
87332
87333 2002-01-22  Jim Meyering  <meyering@lucent.com>
87334
87335         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
87336         Otherwise, some versions of automake would omit the rule that makes
87337         Makefile from Makefile.in.
87338
87339 2002-01-21  Paul Eggert  <eggert@twinsun.com>
87340
87341         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
87342         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87343         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
87344         (memcoll): Set errno to zero if there is no error.
87345
87346         * lib/quotearg.c (quotearg_buffer_restyled):
87347         Fix bug with quoting buffers containing NUL when backslashing escapes.
87348         This bug was exposed by the other changes in this patch.
87349         (quotearg_n_options): New arg ARGSIZE.
87350         All callers changed.
87351         (quoting_options_from_style): New function.
87352         (quotearg_n_style): Use it.
87353         (quotearg_n_style_mem): New function.
87354
87355         * lib/quotearg.h (quotearg_n_style_mem): New function.
87356
87357 2002-01-19  Jim Meyering  <meyering@lucent.com>
87358
87359         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
87360         Remove useless quotes: DF_PROG="df".
87361         * m4/strnlen.m4: New file.
87362
87363 2002-01-16  Paul Eggert  <eggert@twinsun.com>
87364
87365         * lib/backupfile.c (ISDIGIT): Comment fix.
87366         * lib/getdate.y (ISDIGIT): Likewise.
87367         * lib/posixtm.c (ISDIGIT, year): Likewise.
87368         * lib/strverscmp.c (ISDIGIT): Likewise.
87369         * lib/userspec.c (ISDIGIT): Likewise.
87370
87371 2002-01-16  Jim Meyering  <meyering@lucent.com>
87372
87373         * lib/getdate.y: Add three semicolons, each just before a closing
87374         brace. Bison (as of version 1.31) no longer papers over that mistake.
87375
87376 2002-01-05  Jim Meyering  <meyering@lucent.com>
87377
87378         * lib/version-etc.c (version_etc_copyright): Update copyright year.
87379
87380 2001-12-19  Paul Eggert  <eggert@twinsun.com>
87381
87382         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
87383         not silently exit merely because the output buffer happens to
87384         have nothing pending.
87385
87386 2001-12-18  Paul Eggert  <eggert@twinsun.com>
87387
87388         See the big note in ../ChangeLog.
87389         * lib/human.c (suffixes): Prefer K to k for 1024.
87390         (generate_suffix_backwards): New function.
87391         (human_readable_inexact): Use it.
87392         * lib/xstrtol.c (__xstrtol): If there is no number but there
87393         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
87394         Accept 'K' as well as 'k'.
87395
87396 2001-12-15  Jim Meyering  <meyering@lucent.com>
87397
87398         * lib/regex.h (__restrict_arr): Update from libc.
87399
87400         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
87401         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
87402         (STREQ): Define.
87403
87404 2001-12-14  Jim Meyering  <meyering@lucent.com>
87405
87406         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
87407         Suggestion from Bruno Haible.
87408
87409 2001-12-10  Jim Meyering  <meyering@lucent.com>
87410
87411         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
87412         xrealloc, Instead, include "xalloc.h".
87413         (initbuffer): Don't cast xmalloc return value to char*.
87414         (readline): Reword comment.
87415         Don't cast xrealloc return value to char*
87416         Return NULL, not 0.
87417
87418 2001-12-09  Jim Meyering  <meyering@lucent.com>
87419
87420         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
87421         about `signed and unsigned type in conditional expression'.
87422         * lib/posixtm.c (posix_time_parse): Likewise.
87423
87424         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
87425
87426         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
87427         to avoid a pedantic warning.
87428
87429         * lib/getstr.c: Don't include assert.h.
87430         (getstr): Remove warning-evoking assertions.
87431         Return -1 if offset parameter is out of bounds.
87432         Change the type of a local from int to size_t.
87433
87434         * lib/strftime.c (my_strftime_localtime_r): Include this function
87435         definition in the `#if ! HAVE_TM_GMTOFF' block.
87436
87437         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
87438         Include xalloc.h instead.
87439
87440 2001-12-02  Jim Meyering  <meyering@lucent.com>
87441
87442         * lib/tempname.c: Don't declare getenv, thus reverting the change of
87443         2001-11-18.  It's no longer necessary, now that stdlib.h is always
87444         included.
87445
87446         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
87447         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
87448
87449 2001-11-30  Akim Demaille  <akim@epita.fr>
87450
87451         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
87452         before being defined.
87453
87454 2001-11-27  Paul Eggert  <eggert@twinsun.com>
87455
87456         * lib/quotearg.h (quotearg_n, quotearg_n_style):
87457         First arg is int, not unsigned.
87458         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
87459         (SIZE_MAX, UINT_MAX): New macros.
87460         (quotearg_n_options): Abort if N is negative.
87461         Avoid overflow check on hosts where size_t is 64 bits and int
87462         is 32 bits, as overflow is impossible there.
87463         Fix off-by-one typo that caused unnecessary reallocation.
87464
87465 2001-11-27  Jim Meyering  <meyering@lucent.com>
87466
87467         * lib/tempname.c: Merge with version from libc.
87468         * lib/regex.c: Likewise.
87469
87470         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
87471         systems for which STDC_HEADERS is 0, it was not included, resulting in
87472         a warning about an integer-to-pointer conversion problem with getenv.
87473         Reported by Volker Borchert.
87474
87475 2001-11-26  Jim Meyering  <meyering@lucent.com>
87476
87477         * lib/gtod.h: Remove file.
87478         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
87479         * lib/gettimeofday.c: Don't include gtod.h.
87480         (GTOD_init): Remove function.
87481         (rpl_gettimeofday): Do its job here instead, rather than aborting.
87482         Suggestion from Volker Borchert.
87483
87484 2001-11-23  Jim Meyering  <meyering@lucent.com>
87485
87486         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
87487         it.
87488         * lib/hash.c (struct hash_table): Define it here instead.
87489
87490 2001-11-22  Jim Meyering  <meyering@lucent.com>
87491
87492         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
87493
87494 2001-11-20  Jim Meyering  <meyering@lucent.com>
87495
87496         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
87497         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
87498
87499 2001-11-19  Jim Meyering  <meyering@lucent.com>
87500
87501         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
87502         directory.  Use "conftestXXXXXX" as the template.
87503         Suggestion from Paul Eggert.
87504
87505         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
87506         immediately, so the test doesn't mistakenly hit the max-open-files
87507         limit.
87508
87509 2001-11-18  Paul Eggert  <eggert@twinsun.com>
87510
87511         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
87512         (TEMPORARIES): New macro.
87513         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
87514         removes an artificial limitation (e.g. HP-UX 10.20, where
87515         TMP_MAX is 17576).
87516
87517 2001-11-18  Jim Meyering  <meyering@lucent.com>
87518
87519         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
87520
87521 2001-11-18  Jim Meyering  <meyering@lucent.com>
87522
87523         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
87524         on SunOS 4.
87525
87526         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
87527         files will be created before anything else.
87528
87529 2001-11-17  Paul Eggert  <eggert@twinsun.com>
87530
87531         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
87532         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
87533
87534 2001-11-17  Jim Meyering  <meyering@lucent.com>
87535
87536         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
87537         Prompted by a report from Bob Proulx.
87538
87539         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
87540         Instead, require UTILS_FUNC_MKSTEMP.
87541
87542 2001-11-17  Jim Meyering  <meyering@lucent.com>
87543
87544         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
87545         Now, that's done as part of AC_FUNC_STRTOD.
87546
87547 2001-11-17  Jim Meyering  <meyering@lucent.com>
87548
87549         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
87550         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
87551         rather than group writable.  Patch by Juan F. Codagnone.
87552
87553         * lib/readtokens.c: Remove explicit declarations of xmalloc and
87554         xrealloc, Instead, include "xalloc.h".
87555
87556         * lib/mountlist.c: Include unlocked-io.h after all system headers.
87557         Remove explicit declarations of xmalloc, xrealloc,
87558         and xstrdup.  Instead, include "xalloc.h".
87559
87560         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
87561         unlocked-io.h.
87562         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
87563         Likewise.
87564         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
87565
87566         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
87567         Reported by Padraig Brady.
87568
87569         * lib/mkstemp.c: #undef mkstemp.
87570         Include config.h.
87571         (rpl_mkstemp): Rename from mkstemp.
87572         Protoize.
87573
87574 2001-11-16  Jim Meyering  <meyering@lucent.com>
87575
87576         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
87577         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
87578         determine the amount of total physical memory, use pstat_getstatic.
87579         HPUX-11 doesn't define _SC_PHYS_PAGES.
87580         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
87581         If sysconf couldn't be used to determine the amount of available
87582         physical memory, use both pstat_getstatic and pstat_getdynamic.
87583         Based on a patch from Bob Proulx.
87584
87585 2001-11-10  Jim Meyering  <meyering@lucent.com>
87586
87587         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
87588         (jm_PREREQ): Use it.
87589
87590 2001-11-09  Jim Meyering  <meyering@lucent.com>
87591
87592         * m4/jm-macros.m4: Require autoconf-2.52f.
87593         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
87594         Use these AC_-prefixed names, not the AM_-prefixed ones.
87595
87596         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
87597
87598 2001-11-05  Jim Meyering  <meyering@lucent.com>
87599
87600         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
87601
87602 2001-11-04  Jim Meyering  <meyering@lucent.com>
87603
87604         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
87605         $DEFS.
87606
87607 2001-11-03  Jim Meyering  <meyering@lucent.com>
87608
87609         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
87610         of AC_DEFUN.
87611
87612         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
87613         know the name of the variable in the macro definition.
87614
87615 2001-11-03  Jim Meyering  <meyering@lucent.com>
87616
87617         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
87618         in argmatch_to_argument call.
87619
87620         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
87621         argument.
87622
87623         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
87624         e.g., a fault due to an attempt to free a NULL pointer.
87625
87626 2001-11-01  Jim Meyering  <meyering@lucent.com>
87627
87628         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
87629         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
87630
87631 2001-11-01  Jim Meyering  <meyering@lucent.com>
87632
87633         * lib/dirfd.c, lib/dirfd.h: New files.
87634         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
87635
87636         * lib/hash.c (hash_print) [TESTING]: Clean up.
87637
87638 2001-10-22  Paul Eggert  <eggert@twinsun.com>
87639
87640         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
87641         to avoid a warning if -Wall.
87642
87643 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
87644
87645         * README: New file
87646         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
87647         (per RMS's instructions, this is now the canonical source)
87648         * lgpl/, gpl/: New directories.
87649
87650 2001-10-21  Paul Eggert  <eggert@twinsun.com>
87651
87652         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
87653
87654 2001-10-21  Jim Meyering  <meyering@lucent.com>
87655
87656         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
87657         this code would end up calling gettext even in packages built
87658         with --disable-nls.
87659         * lib/getopt.c (_): Likewise.
87660         * lib/regex.c (_): Likewise.
87661
87662 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87663
87664         * m4/error.m4 (jm_PREREQ_ERROR):
87665         Do not invoke AC_CHECK_FUNCS with strerror_r, as
87666         AC_FUNC_STRERROR_R does that.
87667         Check for strerror declaration.
87668
87669         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
87670         are supposed to have them these days.
87671         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
87672         Merge changes from latest Autoconf CVS.
87673         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
87674         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
87675         POSIX decided to standardize on the int flavor of strerror_r.
87676
87677 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87678
87679         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
87680         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
87681         Use strerror_r that is only a macro, even if it is not a function.
87682         (strerror): Check for HAVE_DECL_STRERROR before declaring.
87683         (private_strerror): Use prototypes, not old-style function definition.
87684         (print_errno_message): New function.
87685         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
87686         char*-flavored one.
87687         (error_tail, error, error_at_line): Use it.
87688
87689 2001-10-11  Jim Meyering  <meyering@lucent.com>
87690
87691         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
87692         and quote_n (1, ... to avoid clobbering a buffer.
87693
87694 2001-10-05  Jim Meyering  <meyering@lucent.com>
87695
87696         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
87697         hash-pjw.h.
87698         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
87699         * lib/hash-pjw.h: New file.
87700
87701 2001-09-30  Jim Meyering  <meyering@lucent.com>
87702
87703         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
87704         `struct fsstat' has the `f_fstypename' member.
87705         Use that to define FS_TYPE, which is now used to make
87706         the getfsstat link test tighter.
87707
87708 2001-09-30  Jim Meyering  <meyering@lucent.com>
87709
87710         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
87711         Include <sys/ucred.h>, for Apple Darwin.
87712         Include sys/mount.h and sys/fs_types.h only if available.
87713         (FS_TYPE): Define.
87714         (read_filesystem_list): Use FS_TYPE.
87715
87716 2001-09-29  Paul Eggert  <eggert@twinsun.com>
87717
87718         * lib/exclude.c (excluded_filename): 0 -> false, since it's
87719         a boolean context.
87720
87721 2001-09-29  Jim Meyering  <meyering@lucent.com>
87722
87723         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87724         [one-argument getmntent function]): Include stdio.h before mntent.h.
87725         SunOS 4.1.x needs it for the declaration of `FILE'.
87726         Patch by Volker Borchert.
87727
87728         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87729         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
87730         sys/fs_types.h, and make the link-test for getfsstat guard #include
87731         directives with appropriate #if HAVE_*_H tests so that we can
87732         detect getfsstat on Apple Darwin1.3.7 systems.
87733         Reported by Nelson Beebe.
87734         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
87735
87736 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87737
87738         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87739         #defines strtoimax.  Also treat the other strto* functions
87740         like strtoimax.
87741
87742         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87743         Check for strtoul and strtoumax,
87744         as those declarations are made even in the signed case.
87745         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
87746         Likewise, for strtol and strtoimax.
87747
87748 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87749
87750         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87751         #defines strtoimax.  Also treat the other strto* functions
87752         like strtoimax.
87753
87754         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
87755         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
87756         (strtoimax, strtoumax): Do not declare if already defined as a macro.
87757
87758 2001-09-26  Jim Meyering  <meyering@lucent.com>
87759
87760         Most macros in unlocked-io.h had the wrong number of arguments.
87761         * lib/gen-uio: New script.
87762         (USE_UNLOCKED_IO): Define to 1 if not already defined.
87763         * lib/unlocked-io.hin: Remove file.
87764         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
87765         rather than trying to embed it here.
87766         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
87767         Reported by Padraig Brady.
87768
87769 2001-09-25  Volker Borchert  <bt@teknon.de>
87770
87771         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
87772         `result'.
87773
87774 2001-09-24  Jim Meyering  <meyering@lucent.com>
87775
87776         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
87777
87778 2001-09-23  Jim Meyering  <meyering@lucent.com>
87779
87780         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
87781         instead of the mere test for existence of mntent.h.  The latter
87782         would get a false-positive on AIX 3.4 systems.
87783         In the outer getmntent if-block, don't die if neither of the getmntent
87784         tests succeeds.  Instead, just fall through and continue with the
87785         remaining tests.
87786
87787 2001-09-23  Jim Meyering  <meyering@lucent.com>
87788
87789         * lib/mountlist.c: Remove useless parentheses in #if directives.
87790         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
87791         the deprecated MOUNTED symbol is no longer defined in mntent.h.
87792
87793 2001-09-22  Jim Meyering  <meyering@lucent.com>
87794
87795         * m4/gettext.m4: New file.  From gettext.
87796         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
87797         * m4/progtest.m4: Likewise
87798         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
87799         * m4/glibc21.m4: Likewise.
87800
87801         * m4/libintl.m4: Remove.  No longer used.
87802
87803 2001-09-22  Jim Meyering  <meyering@lucent.com>
87804
87805         * lib/localcharset.c: Update from latest gettext.
87806         * lib/config.charset: Likewise.
87807
87808 2001-09-20  Jim Meyering  <meyering@lucent.com>
87809
87810         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
87811         strtoimax.
87812         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
87813         strtoumax.
87814
87815 2001-09-20  Jim Meyering  <meyering@lucent.com>
87816
87817         * lib/xstrtol.c (strtoimax): Guard declaration with
87818         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
87819         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
87820         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
87821         (strtoumax): Likewise, for completeness (it wasn't necessary).
87822
87823 2001-09-17  Paul Eggert  <eggert@twinsun.com>
87824
87825         * lib/strtoimax.c (HAVE_LONG_LONG):
87826         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
87827         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
87828         to work around bug in IBM C compiler.
87829
87830 2001-09-17  Jim Meyering  <meyering@lucent.com>
87831
87832         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
87833         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
87834         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
87835         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
87836         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
87837         whenever the right hand side need not be expanded by the shell.
87838
87839 2001-09-16  Paul Eggert  <eggert@twinsun.com>
87840
87841         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
87842         library.  It's not correct, as some older glibcs are buggy.
87843         fnmatch wasn't fixed until glibc 2.2.
87844
87845         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
87846         special shell magic here.
87847
87848 2001-09-16  Jim Meyering  <meyering@lucent.com>
87849
87850         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
87851         * m4/jm-macros.m4: Require it.
87852
87853 2001-09-16  Jim Meyering  <meyering@lucent.com>
87854
87855         * lib/mkdir.c: New file.
87856
87857 2001-09-15  Jim Meyering  <meyering@lucent.com>
87858
87859         * m4/jm-macros.m4: Check for help2man.
87860
87861 2001-09-11  Jim Meyering  <meyering@lucent.com>
87862
87863         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
87864         The body, by Paul Eggert, was moved here from configure.in.
87865         * m4/jm-macros.m4: Require UTILS_HOST_OS.
87866
87867 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87868
87869         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
87870         (jm_PREREQ): Use it.
87871
87872 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87873
87874         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
87875         Use ssize_t, not int, to store result of readlink.
87876         Check for ssize_t overflow as well as size_t overflow,
87877         as POSIX says the result of readlink is implementation-defined
87878         when ssize_t overflows.
87879         Remove unnecessary cast to char*.
87880         Use free+malloc instead of realloc, as the storage doesn't need
87881         to be preserved and it's clearer and can be more efficient that way.
87882         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
87883         * lib/xreadlink.h (xreadlink): Update prototype.
87884
87885 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87886
87887         * lib/xgetcwd.c: Revert some of the previous change; intead,
87888         fix the HAVE_GETCWD_NULL code to behave more like the
87889         !HAVE_GETCWD_NULL code used to.
87890
87891         Include "xalloc.h".
87892         (xgetcwd): Do not return NULL when memory is exhausted; instead,
87893         invoke xalloc_die.
87894
87895 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87896
87897         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
87898         sys/param.h, as pathmax.h includes them.
87899
87900 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87901
87902         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
87903         (jm_PREREQ_XGETCWD): New macro.
87904
87905         * m4/getcwd.m4: New file.
87906
87907 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87908
87909         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
87910         like the HAVE_GETCWD_NULL code.
87911         Include pathmax.h if not HAVE_GETCWD.
87912         Do not include xalloc.h.
87913         (INITIAL_BUFFER_SIZE): New symbol.
87914         Do not use xmalloc / xrealloc, since the caller is responsible for
87915         handling errors.  Preserve errno around `free' during failure.
87916         Do not overrun buffer when using getwd.
87917
87918 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87919
87920         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
87921         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
87922         getcwd (NULL, 0).
87923
87924 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87925
87926         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
87927         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
87928         spotted by Jim Meyering.
87929
87930 2001-09-03  Jim Meyering  <meyering@lucent.com>
87931
87932         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
87933         failure.
87934
87935 2001-09-02  Jim Meyering  <meyering@lucent.com>
87936
87937         * lib/error.c: Update from GNU libc.
87938
87939 2001-09-01  Jim Meyering  <meyering@lucent.com>
87940
87941         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
87942         Used by df.
87943
87944 2001-09-01  Jim Meyering  <meyering@lucent.com>
87945
87946         * lib/xreadlink.c: New file.
87947         * lib/xreadlink.h: New file.
87948         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
87949         xreadlink.h.
87950
87951         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
87952         doesn't conflict with sparc Solaris 7's definition in
87953         /usr/include/sys/int_types.h.
87954
87955         * lib/exclude.c: Use `""', not `<>' to #include non-system header
87956         files.
87957         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
87958         and strncasecmp as r-values.  Unixware didn't have declarations.
87959
87960 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87961
87962         * lib/xstrtol.h: Add copyright notice.
87963         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
87964         LONGINT_INVALID_SUFFIX_CHAR.
87965
87966 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87967
87968         * lib/xstrtol.c (strtoimax): New decl.
87969
87970 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87971
87972         * lib/xgetcwd.c: Don't include pathmax.h.
87973         Include stdlib.h and unistd.h if available.
87974         Include xalloc.h.
87975         (xmalloc, xstrdup, free): Remove decls.
87976         (xgetcwd): Don't assume sizes fit in unsigned.
87977         Check for overflow when computing sizes.
87978         Simplify reallocation code.
87979
87980 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87981
87982         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
87983         a directory's st_size can have an arbitrary value, so the old
87984         usage could waste an arbitrary amount of memory.  All uses
87985         changed.
87986         * lib/savedir.h: Update prototype.
87987
87988 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87989
87990         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
87991
87992         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
87993         old strtoimax.c.
87994
87995         Also, make the following further changes to make this file's
87996         configuration more similar to that of strtol.c:
87997         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
87998         (strtoumax, uintmax_t, strtoull, strtol): Remove.
87999         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
88000         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
88001         changed to signed values.
88002
88003         And make the following changes as well:
88004         Fix copyright notice, as 1999 was missing.
88005         (verify): New macro.
88006         (strtoimax): Check sizes at compile-time, not run-time.
88007         Prefer strtol to strtoll if both work.
88008         (main): Remove; it was not that useful and was a pain to maintain.
88009
88010         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
88011
88012 2001-08-31  Jim Meyering  <meyering@lucent.com>
88013
88014         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
88015         Use an initial, malloc'd, buffer of length 128 rather than
88016         a statically allocated one of length 1024.
88017
88018 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88019
88020         Simplify code, partly by assuming autoconf 2.52 semantics.
88021
88022         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
88023
88024         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
88025         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
88026         All uses removed.
88027         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
88028         Move AC_REQUIRE to next-to-top level, to avoid confusion.
88029         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
88030         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
88031         jm_AC_HEADER_INTTYPES_H.
88032         * m4/jm-macros.m4 (jm_MACROS): Likewise.
88033
88034         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
88035
88036         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
88037         Quote first arg of AC_DEFUN.
88038         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
88039         since they are needed to parse the include file even if we need
88040         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
88041         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
88042         but with opposite signedness.
88043
88044 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88045
88046         Merge 'exclude' changes from tar 1.13.22.
88047         This fixes one or two unlikely storage allocation overflow bugs,
88048         but doesn't change user-visible behavior otherwise.
88049
88050 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88051
88052         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
88053         (jm_PREREQ_EXCLUDE): New macro.
88054
88055 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88056
88057         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
88058         tm to be declared.
88059
88060 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88061
88062         * lib/hash.c: Remove '2001' from copyright notice.
88063
88064 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88065
88066         * lib/full-write.h: New file.
88067         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
88068         * lib/full-write.c: Correct credits, as cccp.c no longer
88069         exists and anyway it was so heavily changed from the old cccp
88070         code as to be unrecognizable.  Include full-write.h.
88071         (full_write): Return size_t, with short writes meaning failure.
88072         All callers changed.  This fixes a bug with large buffers
88073         on 64-bit hosts.
88074         * lib/utime.c: Include full-write.h.
88075
88076 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88077
88078         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
88079         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
88080         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
88081         Include if available.
88082         (<xalloc.h>): Include
88083         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
88084         (verify): New macro.  Use it to verify that EXCLUDE macros do not
88085         collide with FNM macros.
88086         (struct patopts): New struct.
88087         (struct exclude): Use it, as exclude patterns now come with options.
88088         (new_exclude): Support above changes.
88089         (new_exclude, add_exclude_file):
88090         Initial size must now be a power of two to simplify overflow checking.
88091         (free_exclude, fnmatch_no_wildcards): New function.
88092         (excluded_filename): No longer requires options arg, as the options
88093         are determined by add_exclude.  Now returns bool, not int.
88094         (excluded_filename, add_exclude):
88095         Add support for the fancy new exclusion options.
88096         (add_exclude, add_exclude_file): Now takes int options arg.
88097         Check for arithmetic overflow when computing sizes.
88098         (add_exclude_file): xrealloc might modify errno, so don't
88099         realloc until after errno might be used.
88100
88101         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
88102         New macros.
88103         (free_exclude): New decl.
88104         (add_exclude, add_exclude_file): Now takes int options arg.
88105         (excluded_filename): No longer requires options arg, as the options
88106         are determined by add_exclude.  Now returns bool, not int.
88107
88108 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88109
88110         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
88111
88112 2001-08-27  Jim Meyering  <meyering@lucent.com>
88113
88114         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
88115
88116         * lib/version-etc.c (N_): Remove definition.
88117         Revert most of last change.
88118         Instead, simply don't mark the `Copyright...' string for translation.
88119         Based on advice from Paul Eggert.
88120
88121         * lib/strtoxmax.c: Tweak comment.
88122
88123 2001-08-26  Jim Meyering  <meyering@lucent.com>
88124
88125         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
88126
88127         * m4/xstrtoimax.m4: New file.
88128         * m4/xstrtoumax.m4: Add comments explaining why we
88129         AC_REPLACE_FUNCS(strtol).
88130
88131 2001-08-26  Jim Meyering  <meyering@lucent.com>
88132
88133         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
88134         of copyright with `%s' so translators don't get an untranslated
88135         message in 2002.
88136         (COPYRIGHT_YEAR): Define.
88137         (version_etc): Use fprintf rather than fputs.
88138         Suggestion from Ulrich Drepper.
88139
88140         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
88141
88142         * lib/strtoll.c: New file, from GNU libc.
88143         * lib/xstrtoimax.c: New file.
88144
88145         * lib/xstrtol.h: Add xstrtoimax.
88146         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
88147         * lib/strtoimax.c: New file.  Likewise, but first define
88148         STRTOUXMAX_SIGNED.
88149
88150         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
88151         ...
88152         * lib/strtoxmax.c: ... then renamed to this.
88153
88154 2001-08-18  Paul Eggert  <eggert@twinsun.com>
88155
88156         * m4/inttypes.m4: Add AC_PREREQ(2.13).
88157         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
88158         (jm_AC_TYPE_INTMAX_T): New macro.
88159         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
88160
88161         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
88162
88163         * m4/longlong.m4: Renamed from ulonglong.m4.
88164         * m4/inttypes.m4: Renamed from inttypes_h.m4.
88165         * m4/uintmax_t.m4: Removed.
88166
88167 2001-08-13  Paul Eggert  <eggert@twinsun.com>
88168
88169         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
88170         Port to Solaris 8, where 'sed' requires a space after the 'r'
88171         command, and where sh dislikes "$/".  Clean up the spacing a bit.
88172         Redirect output to $tmp just once.
88173
88174 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
88175
88176         * lib/addext.c (<errno.h>): Include.
88177         (errno): Declare if not defined.
88178         (addext): Work correctly when pathconf returns -1 and leaves
88179         errno alone because there is no limit.  Also, work even if
88180         pathconf returns a value greater than SIZE_MAX.
88181
88182 2001-08-12  Jim Meyering  <meyering@lucent.com>
88183
88184         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
88185         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
88186         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
88187         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
88188         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
88189         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
88190         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
88191         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
88192         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
88193         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
88194         utime.m4, utimes.m4, xstrtoumax.m4:
88195         Quote the first argument in each use of AC_DEFUN.
88196
88197 2001-08-12  Jim Meyering  <meyering@lucent.com>
88198
88199         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
88200         Simply `return getcwd (NULL, 0);'.
88201         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
88202         Use 1300 as initial value for length, not PATH_MAX.
88203
88204         * lib/pathmax.h: Clean up cpp syntax.
88205
88206 2001-08-12  Jim Meyering  <meyering@lucent.com>
88207
88208         * lib/gettimeofday.c: New file.
88209         * lib/gtod.h: New file.
88210         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
88211
88212 2001-08-05  Jim Meyering  <meyering@lucent.com>
88213
88214         * m4/jm-macros.m4: Require autoconf-2.52.
88215
88216 2001-08-04  Jim Meyering  <meyering@lucent.com>
88217
88218         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
88219         stmt, to get in sync with glibc.
88220
88221 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88222
88223         The following changes are from gettext 0.10.39 as maintained by
88224         Bruno Haible.
88225
88226         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
88227         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
88228         with inverted sense.  All uses changed.
88229
88230         * lib/mbswidth.c: Don't include <limits.h>.
88231         Include <stdlib.h> and <string.h> unconditionally.
88232         (iswcntrl, mbsinit, ISCNTRL): New macros.
88233         (mbsnwidth): Use K&R style function declarations.
88234         Don't bother checking for MB_LEN_MAX == 1, since the compiler
88235         can optimize it when MB_CUR_MAX == 1.
88236         The width of control characters is zero, not 1.
88237
88238 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88239
88240         The following changes are from gettext 0.10.39 as maintained by
88241         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
88242
88243         * m4/codeset.m4: Upgrade to serial AM1.
88244         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
88245         all uses changed.  Quote first arg of AC_DEFUN.
88246         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
88247
88248         * m4/iconv.m4: Upgrade to serial AM2.
88249         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
88250         Add --with-libconv-prefix.
88251         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
88252         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
88253         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
88254         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
88255         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
88256
88257         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
88258         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
88259         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
88260         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
88261         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
88262         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
88263         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
88264         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
88265         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
88266
88267         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
88268         string.h any more.
88269
88270         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
88271         not the default value.
88272
88273         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
88274         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
88275         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
88276         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
88277         Also check for iswcntrl, used for wcwidth fallback.
88278         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
88279         to Autoconf 2.13.
88280
88281 2001-08-03  Jim Meyering  <meyering@lucent.com>
88282
88283         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
88284         as it was in the original.  Reported by Paul Eggert.
88285
88286 2001-07-16  Jim Meyering  <meyering@lucent.com>
88287
88288         * m4/gettimeofday.m4: New file.
88289         Prompted by a report from Bernhard Baehr.
88290
88291 2001-07-15  Jim Meyering  <meyering@lucent.com>
88292
88293         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
88294         stuff. Now it's in ../Makefile.cfg.
88295
88296 2001-07-15  Jim Meyering  <meyering@lucent.com>
88297
88298         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
88299         (BUILT_SOURCES): Add unlocked-io.h.
88300         (io_functions): Define.
88301         (unlocked-io.h): New rule.
88302         (DISTCLEANFILES): Add unlocked-io.h.
88303         (all-local): Depend on unlocked-io.h, to ensure it is created.
88304
88305         * lib/unlocked-io.hin: New file
88306
88307         * lib/regex.c: Update from glibc.
88308
88309 2001-07-05  Jim Meyering  <meyering@lucent.com>
88310
88311         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
88312         recommendation.
88313         (libfetish_a_SOURCES): Put all .h files here instead.
88314         Remove a thus-exposed (better checks in automake) duplicate and
88315         two unnecessary .h files.
88316
88317 2001-07-04  Jim Meyering  <meyering@lucent.com>
88318
88319         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
88320         that generates jm-glibc-io.m4 so that it doesn't trigger any make
88321         distcheck failure.
88322
88323 2001-07-02  Jim Meyering  <meyering@lucent.com>
88324
88325         The following changes were prompted by suggestions from Bruno Haible.
88326
88327         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
88328         is now generated.
88329         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
88330         definition of EXTRA_DIST.
88331         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
88332         ensure that the generated file is created/updated whenever the list
88333         of $(unlocked_functions) is changed.
88334         (jm-glibc-io.m4): New rule.
88335         (unlocked-io.h): New rule -- currently unused.
88336
88337 2001-06-24  Jim Meyering  <meyering@lucent.com>
88338
88339         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
88340         unmatched right bracket, rather than kludging it with an extra,
88341         falsely-matching quote in a comment.  Patch by Akim Demaille.
88342
88343 2001-06-11  Jim Meyering  <meyering@lucent.com>
88344
88345         * lib/regex.c: Update from GNU libc.
88346
88347 2001-05-27  Jim Meyering  <meyering@lucent.com>
88348
88349         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
88350         Check for ut_type in struct utmp.
88351
88352 2001-05-27  Jim Meyering  <meyering@lucent.com>
88353
88354         * lib/readutmp.h (UT_TYPE): Define.
88355
88356 2001-05-24  Jim Meyering  <meyering@lucent.com>
88357
88358         * lib/argmatch.c: Include "quote.h".
88359         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
88360         quote function.  Reported by Göran Uddeborg.
88361
88362 2001-05-22  Jim Meyering  <meyering@lucent.com>
88363
88364         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
88365         now that we use the package-supplied version unconditionally.
88366         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
88367
88368 2001-05-21  Jim Meyering  <meyering@lucent.com>
88369
88370         * m4/regex.m4: Change a couple backticks to single quotes to avoid
88371         shell syntax errors.
88372
88373 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88374
88375         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
88376
88377 2001-05-20  Paul Eggert  <eggert@twinsun.com>
88378
88379         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
88380         Don't bother to check library strftime, since
88381         we'll be using our own my_strftime function anyway.
88382         Define my_strftime instead of strftime.
88383
88384 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
88385
88386         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
88387         which is not yet declared.
88388
88389 2001-05-15  Jim Meyering  <meyering@lucent.com>
88390
88391         * m4/regex.m4: Use proper quoting so brackets appear in the test
88392         program.
88393         Reported by, and with help from, Bruno Haible.
88394
88395 2001-05-13  Jim Meyering  <meyering@lucent.com>
88396
88397         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
88398         undefined.
88399
88400 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88401
88402         dirname code cleanup.  base_name now behaves more compatibly
88403         with POSIX basename when given file names that have trailing
88404         slashes, and similarly for dir_name.  Add new primitives
88405         base_len and dir_len.  Put the directory-name-related decls
88406         into dirname.h.
88407
88408         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
88409         * lib/backupfile.c (base_name): Likewise.
88410         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
88411         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
88412         * lib/makepath.c (strip_trailing_slashes): Likewise.
88413         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
88414         ISSLASH): Likewise.
88415         * lib/rename.c (strip_trailing_slashes): Likewise.
88416         * lib/same.c (base_name): Likewise.
88417         * lib/stripslash.c (ISSLASH): Likewise.
88418
88419         * lib/addext.c: Include <dirname.h> after size_t is defined.
88420         * lib/backupfile.c: Likewise.
88421
88422         * lib/addext.c (addext): Use base_len to trim redundant
88423         trailing slashes instead of doing it ourselves.
88424         But do not trim the last slash if it is not redundant.
88425
88426         * lib/backupfile.c (find_backup_file_name,
88427         max_backup_version): Use base_len instead of rolling it ourselves.
88428         Handle the case of "" and (on DOS) "C:" correctly.
88429
88430         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
88431         needed. Include <string.h>, <dirname.h>.
88432         (base_name): Allow file names ending in slashes, other than names
88433         that are all slashes.  In this case, return the basename followed
88434         by the slashes.  This is more general, and can be used in places
88435         where the original base_name purposely had an assertion failure.
88436         (base_len): New function.
88437
88438         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
88439         Do not include <assert.h>; no longer needed.
88440         Include xalloc.h.
88441         (memrchr): Remove decl.
88442         (dir_name_r): Remove.
88443         (dir_len): Renamed from dirlen.  All callers changed.
88444         Rewrite in terms of base_name, for simplicity and consistency.
88445         (dir_name): Never return NULL.  All callers changed.
88446         Do not include <stdlib.h> in test program; no longer needed.
88447         return 0; is fine for test program.
88448
88449         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
88450         New macros.
88451         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
88452
88453         * lib/path-concat.c (path_concat): Use base_len to compute
88454         base length, not strlen; this means we cannot rely on memcpy
88455         to null-terminate.
88456
88457         * lib/same.c (STREQ): Remove.
88458         (same_name): Handle the case where the basename ends in trailing '/'.
88459
88460         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
88461         a slash was stripped.  Do not strip the last slash after a
88462         file system prefix.
88463
88464 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88465
88466         * lib/Makefile.am (libfetish_a_SOURCES):
88467         Add strftime.c, since we now compile it on all hosts.
88468
88469         * lib/strftime.c (my_strftime):
88470         Define to nstrftime if emacs, but only if my_strftime is not defined.
88471         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
88472         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
88473         Add one more extra argument: a nanoseconds value.
88474         All uses changed.
88475         (ns): New macro.
88476         (my_strftime function): Add %N format.
88477         (emacs_strftimeu): Renamed from emacs_strftime,
88478         with extra ut argument.
88479
88480 2001-05-09  Paul Eggert  <eggert@twinsun.com>
88481
88482         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
88483
88484 2001-04-21  Jim Meyering  <meyering@lucent.com>
88485
88486         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
88487         doesn't interfere.
88488
88489 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88490
88491         * m4/ftruncate.m4: Check for chsize.
88492         Link with ftruncate.o unconditionally if ftruncate is missing.
88493         This was required when cross-compiling to i586-mingw32msvc.
88494
88495 2001-04-08  Jim Meyering  <meyering@lucent.com>
88496
88497         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
88498         recomputed; that's necessary when the offset spans a DST transition.
88499         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
88500
88501 2001-04-02  Jim Meyering  <meyering@lucent.com>
88502
88503         * lib/regex.h, regex.c: Update from GNU libc.
88504
88505 2001-03-24  Jim Meyering  <meyering@lucent.com>
88506
88507         * m4/jm-macros.m4: Require autoconf-2.49d.
88508
88509 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
88510
88511         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
88512
88513 2001-03-19  Paul Eggert  <eggert@twinsun.com>
88514
88515         * lib/version-etc.c (version_etc_copyright): Update to 2001.
88516
88517 2001-03-17  Jim Meyering  <meyering@lucent.com>
88518
88519         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
88520         now that the version in autoconf is equivalent.
88521         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
88522
88523         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
88524         Suggestion from Akim Demaille.
88525
88526         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
88527         (jm_PREREQ_TEMPNAME): New function.
88528
88529 2001-03-16  Paul Eggert  <eggert@twinsun.com>
88530
88531         * lib/tempname.c (uint64_t): Define to uintmax_t if
88532         not defined, and if UINT64_MAX is not defined.
88533         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
88534         Reported by John David Anglin.
88535
88536 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
88537
88538         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
88539         resolve alias if codeset is empty.
88540         * lib/config.charset (BeOS): Use wildcard syntax.
88541
88542 2001-03-13  Jim Meyering  <meyering@lucent.com>
88543
88544         * lib/path-concat.c (path_concat)
88545         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
88546         concatenating e.g., `C:' and `foo'.
88547         From Bruno Haible.
88548
88549 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88550
88551         * lib/localcharset.c (locale_charset): Don't use
88552         setlocale(LC_CTYPE,NULL). Don't return NULL.
88553         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
88554
88555 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88556
88557         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
88558         support for DOS/DJGPP.
88559
88560 2001-03-01  Paul Eggert  <eggert@twinsun.com>
88561
88562         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
88563         lacks mkstemp.  Compile our own tempname.c if we compile our own
88564         mkstemp.c, as mkstemp relies on tempname.
88565
88566 2001-03-01  Jim Meyering  <meyering@lucent.com>
88567
88568         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
88569         AH_VERBATIM really does output its argument verbatim.
88570
88571 2001-02-28  Paul Eggert  <eggert@twinsun.com>
88572
88573         * lib/Makefile.am (libfetish_a_SOURCES):
88574         Add dup-safer.c, fopen-safer.c.
88575         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
88576
88577         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
88578         * lib/unistd-safer.h: New files.
88579
88580 2001-02-25  Paul Eggert  <eggert@twinsun.com>
88581
88582         The mkstemp replacement is taken from glibc 2.2.2, with some
88583         portability fixes for use outside glibc, as follows:
88584
88585         * lib/tempname.c (struct_stat64): New macro.
88586         (direxists, __gen_tempname): Use it.
88587         This avoids a portability problem with Solaris 8.
88588
88589         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
88590         (<stddef.h>, <stdint.h>, <string.h>):
88591         Include only if STDC_HEADERS || _LIBC.
88592         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
88593         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
88594         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
88595         (__set_errno): Define this macro if <errno.h> doesn't.
88596         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
88597         Define these macros if <stdio.h> doesn't.
88598         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
88599         Define these macros if <sys/stat.h>
88600         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
88601         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
88602         __xstat64): Define if not _LIBC.
88603         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
88604         (__gen_tempname): Invoke gettimeofday only if
88605         HAVE_GETTIMEOFDAY || _LIBC;
88606         otherwise, fall back on plain "time".
88607         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
88608
88609         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
88610
88611         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
88612
88613 2001-02-18  Paul Eggert  <eggert@twinsun.com>
88614
88615         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
88616
88617 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88618
88619         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
88620         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
88621         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
88622         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88623
88624 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88625
88626         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
88627         Remove workaround macros for hosts that have mbrtowc but not
88628         mbstate_t, as we now insist on proper declarations for both
88629         before using mbrtowc.
88630
88631 2001-02-17  Jim Meyering  <meyering@lucent.com>
88632
88633         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
88634         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
88635         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
88636         UnixWare 7.1.1.
88637
88638         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
88639         rather than AC_CACHE_VAL.
88640
88641 2001-02-17  Jim Meyering  <meyering@lucent.com>
88642
88643         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
88644         around included file name.
88645
88646         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
88647
88648         * lib/strftime.c: Update from GNU libc (the only changes were to
88649         comments).
88650
88651 2001-02-17  Jim Meyering  <meyering@lucent.com>
88652
88653         * lib/regex.c: Update from libc.
88654
88655 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
88656
88657         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
88658         clash.
88659
88660 2001-02-16  Paul Eggert  <eggert@twinsun.com>
88661
88662         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
88663         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
88664         Reported by Mark Hounschell via Paul Eggert.
88665
88666 2001-02-07  Jim Meyering  <meyering@lucent.com>
88667
88668         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
88669
88670 2001-02-05  Jim Meyering  <meyering@lucent.com>
88671
88672         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
88673         it includes the patch required for `large file' support with at least
88674         HP-UX's 10.20 /bin/cc.
88675
88676 2001-02-03  Jim Meyering  <meyering@lucent.com>
88677
88678         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
88679         AS_IF, now that it works once again (mysteriously).
88680         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88681
88682 2001-01-30  Jim Meyering  <meyering@lucent.com>
88683
88684         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
88685         * m4/chown.m4: Rename conftestchown to conftest.chown.
88686         * m4/rename.m4: s/conftestdir/conftest.d1/ and
88687         s/conftestdir2/conftest.d2/.
88688         * m4/utimes.m4: s/conftestdata/conftest.data/
88689         Inspired by Pavel Roskin's change in autoconf.
88690
88691 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
88692
88693         * lib/config.charset: Update for FreeBSD 4.2.
88694
88695 2001-01-27  Jim Meyering  <meyering@lucent.com>
88696
88697         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
88698         a use of AS_IF.
88699         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88700
88701 2001-01-26  Jim Meyering  <meyering@lucent.com>
88702
88703         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
88704         quotearg.c includes it.
88705
88706 2001-01-26  Jim Meyering  <meyering@lucent.com>
88707
88708         * lib/quotearg.c: Include stddef.h.
88709         * lib/quote.c: Include stddef.h.
88710         Reported by Axel Kittenberger.
88711
88712         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
88713         line in double quotes so that it evokes a better diagnostic.
88714         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
88715         Reported by Axel Kittenberger.
88716
88717 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
88718
88719         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
88720         as if it was a `charset'.
88721
88722 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88723
88724         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
88725         has const.
88726
88727 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88728
88729         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
88730         to avoid a warning.  Add back 'const' to inptr.
88731
88732 2001-01-20  Jim Meyering  <meyering@lucent.com>
88733
88734         Be sure that headers are checked before used in code compiled
88735         for the type checks.
88736         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
88737         In place of that, invoke jm_CHECK_ALL_TYPES.
88738         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
88739         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
88740         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
88741         The check for ssize_t was mistakenly run before the test for unistd.h.
88742
88743         The configure-time check for stdbool.h was missing.
88744         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
88745         (jm_PREREQ_HASH): New function.
88746
88747 2001-01-17  Jim Meyering  <meyering@lucent.com>
88748
88749         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
88750         for autoconf-2.49c.
88751         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
88752
88753 2001-01-16  Jim Meyering  <meyering@lucent.com>
88754
88755         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
88756         From Bruno Haible.
88757
88758 2001-01-14  Jim Meyering  <meyering@lucent.com>
88759
88760         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
88761         foo and bar.  Create conftestdir/ in the script, not in the C code.
88762         Remove directories in the script, not in the C code.
88763         Remove conftestdir{,2} before trying to create the directory.
88764         Make the entire configure script fail if the mkdir fails.
88765
88766 2001-01-14  Jim Meyering  <meyering@lucent.com>
88767
88768         * lib/rename.c: New file.  From Volker Borchert.
88769         Include stdlib.h, string.h or strings.h, and xalloc.h.
88770         Use strip_trailing_slashes rather than open-coding it.
88771
88772 2001-01-03  Paul Eggert  <eggert@twinsun.com>
88773
88774         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
88775
88776 2001-01-03  Jim Meyering  <meyering@lucent.com>
88777
88778         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
88779         of local `inptr' to avoid warning with some system declarations of
88780         iconv.
88781
88782 2001-01-02  Volker Borchert  <bt@teknon.de>
88783
88784         * m4/rename.m4: New file.
88785         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
88786
88787 2001-01-01  Jim Meyering  <meyering@lucent.com>
88788
88789         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
88790         even on systems with utmpx.h.  It's necessary for the declaration of
88791         utmp's ut_user member.  Reported by Andreas Jaeger.
88792
88793         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
88794         available. They are required for the declarations of getgrgid and
88795         getpwuid resp.
88796         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
88797         Reported by Andreas Jaeger.
88798
88799 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
88800
88801         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
88802         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
88803         so `make install' also works in VPATH builds.
88804
88805 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
88806
88807         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
88808         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
88809         can be used in subdirectories.
88810
88811 2000-12-29  Paul Eggert  <eggert@twinsun.com>
88812
88813         * lib/modechange.c: Do not assume that mode_t uses the
88814         traditional octal encoding.  E.g. "chmod 1 FOO" should set
88815         the other-execute bit of FOO even if S_IXOTH != 1.
88816
88817         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
88818         WOTH, XOTH, ALLM): New macros.
88819         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
88820          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
88821         Use them.
88822         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
88823         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
88824         (mode_compile):
88825         No need to use uintmax_t; unsigned long is long enough.
88826         Don't bother to get suffix since we don't use it.
88827
88828 2000-12-26  Jim Meyering  <meyering@lucent.com>
88829
88830         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
88831         better with autoheader.
88832
88833 2000-12-24  Jim Meyering  <meyering@lucent.com>
88834
88835         * lib/hash.c (is_prime): Return explicit boolean values.
88836         (hash_get_first): Return NULL to appease Irix5.6's 89.
88837         Reported by Nelson Beebe.
88838
88839 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
88840
88841         * lib/localcharset.c (locale_charset): Add support for Win32.
88842
88843 2000-12-18  Paul Eggert  <eggert@twinsun.com>
88844
88845         * lib/physmem.h, lib/physmem.c: New files.
88846
88847         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
88848         (noinst_HEADERS): Add physmem.h.
88849
88850         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
88851         't' for compatibility with Solaris 8 sort.
88852
88853 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
88854
88855         * lib/config.charset: Add support for BeOS.
88856
88857 2000-12-17  Jim Meyering  <meyering@lucent.com>
88858
88859         * m4/dos.m4 (jm_AC_DOS): New file and macro.
88860         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
88861
88862 2000-12-16  Jim Meyering  <meyering@lucent.com>
88863
88864         This bug had a serious impact on chown: `chown N:M FILE' (for integer
88865         N and M) would have treated it like `chown N:N FILE'.
88866
88867         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
88868
88869 2000-12-16  Jim Meyering  <meyering@lucent.com>
88870
88871         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
88872         SHELLS_FILE to a file name that's useful on djgpp systems.
88873         Include stdlib.h.
88874         (ADDITIONAL_DEFAULT_SHELLS): Define.
88875         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
88876         Based mostly on a patch from Prashant TR.
88877
88878 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
88879
88880         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
88881         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
88882         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
88883
88884 2000-12-08  Andreas Schwab  <schwab@suse.de>
88885
88886         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
88887         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
88888
88889 2000-12-07  Jim Meyering  <meyering@lucent.com>
88890
88891         * lib/stripslash.c (ISSLASH): Define.
88892         (strip_trailing_slashes): Use ISSLASH rather than comparing against
88893         `/'.
88894         From Prashant TR.
88895
88896         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
88897         (dir_name_r): Declare this function as static.
88898         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
88899         manifest itself on a name containing a mix of slashes and
88900         backslashes.
88901         Make this function work with names starting with a DOS-style
88902         drive letter and colon prefix.
88903         (dir_name): Append `.' if necessary.
88904         Based mostly on patches from Prashant TR and Eli Zaretskii.
88905
88906         * lib/dirname.h (dir_name_r): Remove prototype.
88907
88908 2000-12-06  Paul Eggert  <eggert@twinsun.com>
88909
88910         * m4/off_t-format.m4: Remove this file.
88911         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
88912
88913 2000-12-06  Jim Meyering  <meyering@lucent.com>
88914
88915         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
88916         replacement strtoull, we may well need the replacement strtoul, too.
88917         Check for declarations of strtoul and strtoull.
88918         Check for strtol.  Mainly as a cue to cause automake to include
88919         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
88920         Check for limits.h -- strtol.c needs it.
88921
88922 2000-12-05  Jim Meyering  <meyering@lucent.com>
88923
88924         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
88925
88926 2000-12-04  Jim Meyering  <meyering@lucent.com>
88927
88928         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
88929         Also include memory.h, stdlib.h, unistd.h if appropriate.
88930         Reported by Andreas Jaeger (conflicting declaration of malloc).
88931
88932 2000-12-02  Jim Meyering  <meyering@lucent.com>
88933
88934         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
88935         * m4/jm-macros.m4 (jm_MACROS): require it.
88936
88937 2000-12-02  Jim Meyering  <meyering@lucent.com>
88938
88939         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
88940
88941 2000-12-01  Paul Eggert  <eggert@twinsun.com>
88942
88943         * lib/memrchr.c: Include <config.h> before any system include file.
88944
88945 2000-11-30  Jim Meyering  <meyering@lucent.com>
88946
88947         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
88948
88949 2000-11-30  Jim Meyering  <meyering@lucent.com>
88950
88951         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
88952
88953 2000-11-29  Paul Eggert  <eggert@twinsun.com>
88954
88955         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
88956
88957 2000-11-26  Jim Meyering  <meyering@lucent.com>
88958
88959         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
88960
88961 2000-11-22  Paul Eggert  <eggert@twinsun.com>
88962
88963         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
88964         size of (size_t) -1; it's not portable.
88965
88966 2000-11-17  Jim Meyering  <meyering@lucent.com>
88967
88968         * lib/strstr.c: Update from GNU libc.
88969
88970 2000-11-17  Akim Demaille  <akim@epita.fr>
88971
88972         * lib/obstack.h: Formatting changes.
88973         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
88974         prevent type checking.
88975         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
88976         cast the value to (void *): assigning a `foo *' to a `void *'
88977         variable is valid.
88978         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
88979
88980 2000-11-16  Jim Meyering  <meyering@lucent.com>
88981
88982         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
88983
88984 2000-11-11  Jim Meyering  <meyering@lucent.com>
88985
88986         * lib/error.c: Add a couple #includes, merging from GNU libc version.
88987
88988 2000-11-10  Jim Meyering  <meyering@lucent.com>
88989
88990         * lib/obstack.h: Update from GNU libc.
88991         * lib/obstack.c: Likewise.
88992
88993 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
88994
88995         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
88996
88997 2000-11-06  Paul Eggert  <eggert@twinsun.com>
88998
88999         * lib/getusershell.c (setusershell): Use rewind rather than
89000         fseek/fseeko, to avoid configuration hassles with fseeko.
89001         Don't bother opening SHELLS_FILE if shellstream is NULL;
89002         it's not necessary.
89003
89004 2000-11-05  Jim Meyering  <meyering@lucent.com>
89005
89006         * lib/makepath.h (make_dir): Declare.
89007         * lib/makepath.c (make_dir): Remove `static' attribute.
89008         Tweak a comment.
89009
89010 2000-11-04  Jim Meyering  <meyering@lucent.com>
89011
89012         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
89013
89014 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
89015
89016         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
89017         last one in a bucket, advance to the next bucket.
89018
89019 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
89020
89021         * lib/fnmatch.c: Do not comment out all the code if we are using
89022         the GNU C library, because in some cases we are replacing buggy
89023         code in the GNU C library itself.
89024
89025 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
89026
89027         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
89028         (regex_compile): Catch bogus \(\1\).
89029
89030 2000-10-30  Paul Eggert  <eggert@twinsun.com>
89031
89032         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
89033         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
89034         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
89035
89036 2000-10-30  Paul Eggert  <eggert@twinsun.com>
89037
89038         * lib/error.h, getline.h, modechange.h:
89039         Remove "2000" from Copyright line, as the file hasn't been
89040         changed this year other than in the copyright notice.
89041
89042         * lib/xalloc.h: Add "2000" to Copyright line, as this file
89043         was changed this year.
89044
89045 2000-10-29  Jim Meyering  <meyering@lucent.com>
89046
89047         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
89048         renaming.
89049         * m4/ls-mntd-fs.m4: Likewise
89050
89051 2000-10-29  Jim Meyering  <meyering@lucent.com>
89052
89053         * lib/xstat.in: Fix grammar in comment.
89054
89055 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
89056
89057         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
89058         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
89059         doesn't define __restrict_arr.
89060
89061 2000-10-28  Jim Meyering  <meyering@lucent.com>
89062
89063         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
89064         (jm_PREREQ_MEMCHR): New function.
89065
89066 2000-10-28  Jim Meyering  <meyering@lucent.com>
89067
89068         * lib/memchr.c: Update from libc.
89069         Adjust for portability:
89070         [HAVE_STDLIB_H]: Include stdlib.h.
89071         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
89072         Undef __memchr, too.
89073         [!weak_alias]: Define __memchr to memchr.
89074
89075         * lib/regex.c: Update from libc.
89076         * lib/regex.h: Likewise.
89077         * lib/getopt1.c: Likewise.
89078         * lib/memcmp.c: Likewise.
89079
89080         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
89081         Avoid using fseek, when possible -- it's broken by design.
89082         Patch by Ulrich Drepper.
89083
89084 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
89085
89086         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
89087         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
89088         Giving in to popular pressure to shut up the compiler with casts.
89089
89090 2000-10-26  Jim Meyering  <meyering@lucent.com>
89091
89092         * lib/strftime.c: Update from libc.
89093
89094 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
89095
89096         * regex.c: More `unsigned char' -> `re_char' changes.
89097         Also change several `int' into `re_wchar_t'.
89098         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
89099         (PUSH_FAILURE_POINTER): Don't cast any more.
89100         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
89101         We want GCC to complain, since this piece of code makes
89102         re_match non-reentrant, which *should* be fixed.
89103         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
89104         (EXTEND_BUFFER): Use RETALLOC.
89105         (SET_LIST_BIT): Don't cast.
89106         (re_wchar_t): New type.
89107         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
89108         that those two functions will always properly return.
89109         (IMMEDIATE_QUIT_CHECK): Cast to void.
89110         (analyse_first): Use recursion rather than an explicit stack.
89111         (re_compile_fastmap): Can't fail anymore.
89112         (re_search_2): Don't check re_compile_fastmap for failure.
89113         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
89114         Now also sets the new value (passed in a new argument).
89115         (re_match_2_internal): Use it.
89116         Also, use a new var `reg' of type size_t when looping through regs
89117         rather than reuse the inappropriate `mcnt'.
89118
89119 2000-10-25  Jim Meyering  <meyering@lucent.com>
89120
89121         * lib/obstack.c: Update from libc.
89122
89123 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
89124
89125         * regex.c (regex_compile): Change the way of handling a range from
89126         a char less than 256 to a char not less than 256.
89127
89128 2000-10-24  Andrew Innes  <andrewi@gnu.org>
89129
89130         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
89131         NT-Emacs only.
89132         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
89133         so that re_search functions only quit when callers expect them to.
89134
89135 2000-10-23  Jim Meyering  <meyering@lucent.com>
89136
89137         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
89138         wrong.  That set_locale call must not have any side effects.
89139         From Paul Eggert.
89140
89141 2000-10-22  Jim Meyering  <meyering@lucent.com>
89142
89143         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
89144         [CYCLIC]: Remove now-unused definition.
89145
89146         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
89147         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
89148         Suggestion from Ulrich Drepper.
89149
89150 2000-10-21  Jim Meyering  <meyering@lucent.com>
89151
89152         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
89153         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
89154         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
89155
89156 2000-10-21  Jim Meyering  <meyering@lucent.com>
89157
89158         * lib/dirname.c (memrchr): Declare if necessary.
89159         (dir_name): Remove the restriction that there be no
89160         trailing slashes.  Now, this code skips past them, effectively
89161         ignoring them.
89162         [TEST_DIRNAME] (main): New unit tests.
89163
89164         * lib/memrchr.c: New file from GNU libc.
89165         Undef __memrchr, too.
89166         [!weak_alias]: Define __memrchr to memrchr.
89167         Guard weak_alias use with `#ifdef weak_alias'.
89168
89169 2000-10-21  Jim Meyering  <meyering@lucent.com>
89170
89171         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
89172         (dir_name): Use dir_name_r.
89173         * lib/dirname.h (dir_name_r): Declare it.
89174
89175 2000-10-17  Jim Meyering  <meyering@lucent.com>
89176
89177         * lib/quote.h (PARAMS): Define and use.
89178         Reported by Akim Demaille.
89179
89180         * lib/getopt.c: Update from libc.
89181
89182 2000-10-16  Jim Meyering  <meyering@lucent.com>
89183
89184         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
89185         setlocale.
89186         From Jan Fedak.
89187
89188 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
89189
89190         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
89191
89192 2000-09-25  Jim Meyering  <meyering@lucent.com>
89193
89194         * lib/md5.h (rol): Define (from GnuPG).
89195
89196         * lib/sha.c: Give credit (GnuPG) where due.
89197         (M): Use rol rather than open-coding it.
89198         Add a FIXME comment.
89199
89200 2000-09-21  Jim Meyering  <meyering@lucent.com>
89201
89202         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
89203         Reported by Michael Stone.
89204
89205 2000-09-20  Jim Meyering  <meyering@lucent.com>
89206
89207         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
89208         (noinst_HEADERS): Add sha.h.
89209         Based on code from Scott G. Miller and from GnuPG.
89210
89211 2000-09-18  Jim Meyering  <meyering@lucent.com>
89212
89213         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
89214         LIBS. Otherwise, everyone ends up linking with -lelf for some
89215         configurations.
89216         Reported by Mike Stone.
89217
89218 2000-09-15  Jim Meyering  <meyering@lucent.com>
89219
89220         * lib/regex.c: Update from libc.
89221
89222 2000-09-10  Jim Meyering  <meyering@lucent.com>
89223
89224         * lib/getopt.c (_getopt_internal): Update from glibc.
89225
89226 2000-09-09  Jim Meyering  <meyering@lucent.com>
89227
89228         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
89229         think it should be used as a general replacement for isascii.
89230         * lib/fnmatch.c: Likewise.
89231         * lib/mbswidth.c: Likewise
89232         * lib/regex.c: Likewise.
89233
89234         Don't use atoi.
89235         * lib/userspec.c: Include sys/param.h and limits.h.
89236         Include xstrtol.h.
89237         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
89238         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
89239         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
89240         UID, GID.  Check range.
89241
89242 2000-09-06  Jim Meyering  <meyering@lucent.com>
89243
89244         * lib/getopt.c (_getopt_internal): Update from glibc.
89245
89246 2000-08-30  Jim Meyering  <meyering@lucent.com>
89247
89248         * lib/strftime.c: Merge in changes from GNU libc.
89249
89250 2000-08-26  Jim Meyering  <meyering@lucent.com>
89251
89252         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
89253         * m4/fpending.m4: New file.
89254
89255 2000-08-26  Jim Meyering  <meyering@lucent.com>
89256
89257         * lib/closeout.c: Include "__fpending.h".
89258         (close_stdout_status): Return right away if there's nothing to flush.
89259
89260         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
89261         * lib/__fpending.c: New file.
89262         * lib/__fpending.h: New file.
89263
89264 2000-08-20  Jim Meyering  <meyering@lucent.com>
89265
89266         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
89267         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
89268         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
89269
89270 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
89271
89272         Improve fileutils installation on systems where running
89273         programs (like install) can't be unlinked.
89274         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
89275         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
89276
89277 2000-08-07  Paul Eggert  <eggert@twinsun.com>
89278
89279         Standardize on "memory exhausted" instead of "Memory exhausted"
89280         or "virtual memory exhausted".
89281         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
89282         "virtual memory exhausted".
89283         * lib/same.c (same_name): Invoke xalloc_die instead of printing
89284         our own message.
89285         * lib/userspec.c (parse_user_spec): Likewise.
89286         * lib/bumpalloc.h: comment fix
89287         * lib/same.c, userspec.c: Include xalloc.h.
89288
89289         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
89290         not char *const and pointing to a constant array.
89291         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
89292         (xrealloc): Comment fix.
89293
89294         * lib/userspec.c (parse_user_spec):
89295         Don't translate a message until just before returning,
89296         to avoid unnecessary translation.
89297
89298 2000-08-07  Jim Meyering  <meyering@lucent.com>
89299
89300         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
89301         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
89302         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
89303         getgroups.c, gethostname.c, getopt.h, group-member.c,
89304         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
89305         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
89306         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
89307         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
89308         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
89309         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
89310         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
89311         yesno.c: Back out Copyright date changes for each file with no change
89312         this year.  This eases coordination with other programs using the same
89313         source code modules.  From Paul Eggert.
89314
89315 2000-08-06  Paul Eggert  <eggert@twinsun.com>
89316
89317         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
89318         not char, for compatibility with glibc 2.1.3 strftime.c.
89319
89320 2000-08-03  Greg McGary  <greg@mcgary.org>
89321
89322         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
89323         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
89324         (EXTEND_BUFFER): Use them.
89325
89326 2000-08-01  Jim Meyering  <meyering@lucent.com>
89327
89328         * lib/dirname.c (ISSLASH): Define.
89329         (BACKSLASH_IS_PATH_SEPARATOR): Define.
89330         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
89331         both `\' and `/' may be use as path separators.
89332         Based on a patch from Prashant TR.
89333
89334 2000-07-31  Paul Eggert  <eggert@twinsun.com>
89335
89336         * lib/quotearg.c (quotearg_n_options): Don't make the initial
89337         slot vector a constant, since it might get modified.
89338
89339 2000-07-31  Jim Meyering  <meyering@lucent.com>
89340
89341         * lib/xmalloc.c: Use `virtual memory exhausted', not
89342         `Memory exhausted'.
89343         * lib/obstack.c (print_and_abort): Likewise.
89344
89345 2000-07-30  Paul Eggert  <eggert@twinsun.com>
89346
89347         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
89348         buffer, so that the caller can always quote one small
89349         component of a "memory exhausted" message in slot 0.
89350         From a suggestion by Jim Meyering.
89351
89352 2000-07-30  Jim Meyering  <meyering@lucent.com>
89353
89354         * lib/makepath.c (make_path): Quote the other instance, too.
89355
89356         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
89357         (STATIC_BUF_SIZE): Define.
89358         (quotearg_n_options): Use only statically allocated storage when
89359         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
89360         than STATIC_BUF_SIZE.
89361
89362 2000-07-29  Jim Meyering  <meyering@lucent.com>
89363
89364         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
89365         * lib/dirname.c (dir_name): Likewise.
89366
89367         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
89368         `/'.
89369
89370         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
89371         (dir_name): Assert that there are no trailing slashes.
89372
89373 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
89374
89375         * lib/mbswidth.h (mbswidth): Add a flags argument.
89376         (mbswidth): New declaration.
89377         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
89378         * lib/mbswidth.c (mbswidth): Add a flags argument.
89379         (mbsnwidth): New function.
89380
89381 2000-07-24  Jim Meyering  <meyering@lucent.com>
89382
89383         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
89384
89385 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89386
89387         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
89388
89389 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89390
89391         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
89392         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
89393         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
89394         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
89395         invoke multibyte primitives.
89396
89397 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89398
89399         * lib/quotearg.c:
89400         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
89401         so that mbstate_t is always defined.
89402
89403         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
89404         be 1 in at least one GCC installation, and this configuration
89405         error is likely to be common.  Ignoring MB_LEN_MAX hurts
89406         performance on hosts that have mbrtowc but have only unibyte
89407         locales, but I assume these hosts are rare.
89408
89409 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89410
89411         * lib/mbswidth.c (_XOPEN_SOURCE):
89412         Don't define; this causes problems on Solaris 7.
89413         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
89414
89415 2000-07-23  Jim Meyering  <meyering@lucent.com>
89416
89417         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
89418         too: getgrgid, getpwuid, getuid.
89419
89420 2000-07-23  Jim Meyering  <meyering@lucent.com>
89421
89422         * lib/basename.c (base_name): Add an assertion.
89423
89424 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
89425
89426         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
89427         shadow its mbsinit function.
89428
89429 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89430
89431         * lib/mbswidth.h: New file.
89432         * lib/mbswidth.c: New file.
89433         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
89434         (noinst_HEADERS): Add mbswidth.h.
89435
89436 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89437
89438         * lib/config.charset: Add support for FreeBSD. Improve support for
89439         HP-UX and IRIX 6.
89440
89441 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
89442
89443         * m4/mbswidth.m4: New file.
89444         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
89445
89446 2000-07-15  Jim Meyering  <meyering@lucent.com>
89447
89448         * lib/makepath.c: Include quote.h.
89449         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
89450         corresponding argument in a `quote (...)' call.
89451         Give better diagnostics.
89452
89453         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
89454         (noinst_HEADERS): Add quote.h.
89455
89456         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
89457         from tar's src/misc.c.
89458         * lib/quote.h: New file.  Prototypes for same.
89459
89460 2000-07-14  Paul Eggert  <eggert@twinsun.com>
89461
89462         From a suggestion by Bruno Haible.
89463         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
89464         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
89465         to decide whether to define the BeOS workaround macro;
89466         this adjusts to the change to AC_MBSTATE_T.
89467
89468 2000-07-14  Jim Meyering  <meyering@lucent.com>
89469
89470         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
89471         jm_AC_TYPE_UINTMAX_T.
89472
89473 2000-07-13  Paul Eggert  <eggert@twinsun.com>
89474
89475         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
89476
89477         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
89478         quotearg_buffer_restyled): Add support for
89479         clocale_quoting_style.  Undo previous change to
89480         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
89481         and "{RIGHT QUOTATION MARK}" msgids.
89482
89483 2000-07-10  Paul Eggert  <eggert@twinsun.com>
89484
89485         From a suggestion by Bruno Haible.
89486         * m4/mbstate_t.m4 (AC_MBSTATE_T):
89487         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
89488         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
89489         and mbstate_t, to a single-part test that simply defines mbstate_t.
89490         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
89491         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
89492
89493 2000-07-10  Jim Meyering  <meyering@lucent.com>
89494
89495         * m4/strerror_r.m4: Mirror the correction made in autoconf.
89496
89497         * m4/gnu-source.m4: Output to confdefs.h directly.
89498         Suggestion from Akim Demaille.
89499
89500 2000-07-09  Paul Eggert  <eggert@twinsun.com>
89501
89502         The old behavior of quoting `like this' doesn't look good with
89503         newer, ISO-style fonts.  See:
89504         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
89505
89506         Instead, quote "like this" by default.  Let the translator
89507         tailor the locale-specific quoting behavior by providing
89508         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
89509
89510         * lib/quotearg.c (N_): New macro.
89511         (gettext_default): New function.
89512         (quotearg_buffer_restyled): Use
89513         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
89514         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
89515
89516 2000-07-09  Jim Meyering  <meyering@lucent.com>
89517
89518         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
89519         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
89520
89521         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
89522         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
89523
89524 2000-07-09  Jim Meyering  <meyering@lucent.com>
89525
89526         * lib/Most files: Update copyright dates to include 2000.
89527
89528 2000-07-08  Jim Meyering  <meyering@lucent.com>
89529
89530         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
89531         if not defined.
89532         (xgethostname): Remove now-unnecessary #ifdef.
89533         Move declaration of `err' into loop where it's used.
89534
89535 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89536         and Bruno Haible  <haible@clisp.cons.org>
89537
89538         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
89539         only if the test for an object-type mbstate_t fails.  This
89540         prevents us from mistakenly reporting that mbstate_t is a
89541         system object type after we "#define mbstate_t int" to work
89542         around its lack.
89543
89544 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89545         and Bruno Haible  <haible@clisp.cons.org>
89546
89547         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
89548
89549 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89550
89551         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
89552         to strerror_r.
89553         Include <ctype.h> for use of isalpha.
89554
89555 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89556
89557         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
89558         by allocating a larger buffer. Test the gethostname return value for
89559         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
89560         returns an error and ENAMETOOLONG isn't defined.
89561
89562 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89563
89564         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
89565         dimension.
89566
89567 2000-07-04  Jim Meyering  <meyering@lucent.com>
89568
89569         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
89570         of the deprecated AC_CHECKING.
89571
89572 2000-07-04  Jim Meyering  <meyering@lucent.com>
89573
89574         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
89575         Reported by Bruno Haible.
89576
89577 2000-07-04  Jim Meyering  <meyering@lucent.com>
89578
89579         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
89580         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
89581         lacks mbrtowc.
89582
89583 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89584
89585         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
89586         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
89587
89588 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89589         and Bruno Haible  <haible@clisp.cons.org>
89590
89591         * lib/quotearg.c (mbrtowc):
89592         Assign to *pwc, and return 1 only if result is nonzero.
89593         (iswprint): Use ISPRINT when substituting our own mbrtowc.
89594
89595 2000-07-03  Jim Meyering  <meyering@lucent.com>
89596
89597         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
89598
89599 2000-07-03  Jim Meyering  <meyering@lucent.com>
89600
89601         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
89602         This is necessary to get a definition of e.g., UTMP_FILE on
89603         HP-UX 10.20.
89604         From Bob Proulx.
89605
89606 2000-07-02  Jim Meyering  <meyering@lucent.com>
89607
89608         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
89609
89610         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
89611         AC_LIBOBJ(function_name).
89612         * m4/chown.m4: Likewise.
89613         * m4/fnmatch.m4: Likewise.
89614         * m4/ftruncate.m4: Likewise.
89615         * m4/getgroups.m4: Likewise.
89616         * m4/getline.m4: Likewise.
89617         * m4/group-member.m4: Likewise.
89618         * m4/jm-macros.m4: Likewise.
89619         * m4/lstat.m4: Likewise.
89620         * m4/malloc.m4: Likewise.
89621         * m4/memcmp.m4: Likewise.
89622         * m4/nanosleep.m4: Likewise.
89623         * m4/putenv.m4: Likewise.
89624         * m4/realloc.m4: Likewise.
89625         * m4/regex.m4: Likewise.
89626         * m4/stat.m4: Likewise.
89627         * m4/strftime.m4: Likewise.
89628
89629 2000-07-02  Jim Meyering  <meyering@lucent.com>
89630
89631         * lib/quotearg.c (mbstate_t): Don't define here.
89632
89633 2000-07-02  Jim Meyering  <meyering@lucent.com>
89634
89635         * lib/nanosleep.c (SIGCONT): Define if not already defined.
89636
89637 2000-07-01  Jim Meyering  <meyering@lucent.com>
89638
89639         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
89640
89641 2000-07-01  Jim Meyering  <meyering@lucent.com>
89642
89643         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
89644         problem.
89645
89646 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89647
89648         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
89649         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
89650
89651 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89652
89653         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
89654         per change in ../m4/ls-mntd-fs.m4.
89655         (read_filesystem_list): Ignore symbolic links.
89656
89657 2000-06-29  Jim Meyering  <meyering@lucent.com>
89658
89659         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
89660         for declaration of strcmp.
89661
89662         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
89663
89664         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
89665         Avoid warning by casting result to `char *' to remove `const'.
89666
89667 2000-06-28  Jim Meyering  <meyering@lucent.com>
89668
89669         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
89670         included by quotearg.c, for which we perform this test.  From
89671         Bruno Haible.
89672
89673 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89674
89675         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
89676         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
89677         <utmpx.h> exists, put readutmp.o into LIBOBJS.
89678
89679 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89680
89681         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
89682
89683 2000-06-26  Paul Eggert  <eggert@twinsun.com>
89684
89685         savedir now sets errno on failure and invokes xmalloc to get memory.
89686         Fix a couple of other minor bugs while we're at it.
89687
89688         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
89689         (NAMLEN): Remove macro.
89690         (malloc, realloc): Remove decls.
89691         (stpcpy): Likewise.
89692         ("xalloc.h"): Include.
89693         (NAME_SIZE_DEFAULT): New macro.
89694         (savedir): Use xmalloc / xrealloc to allocate memory.
89695         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
89696         Skip "" directory entries.
89697         Use strlen to calculate directory entry length, since the old method
89698         is rarely used these days and isn't worth supporting.
89699         Don't use a pointer after freeing it.
89700         Check for integer overflow when calculating allocation size.
89701         Use memcpy to copy entries, instead of stpcpy.
89702         Set errno properly when returning NULL.
89703         Check for readdir error.
89704
89705 2000-06-26  Jim Meyering  <meyering@lucent.com>
89706
89707         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
89708
89709 2000-06-25  Jim Meyering  <meyering@lucent.com>
89710
89711         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
89712         Linux header bug when _XOPEN_SOURCE is defined to 500.
89713
89714 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89715
89716         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
89717         deficiency.
89718
89719 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89720
89721         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
89722         Include xalloc.h.
89723         Don't include <stdlib.h>.  Don't declare malloc, realloc.
89724
89725 2000-06-24  Jim Meyering  <meyering@lucent.com>
89726
89727         * m4/strerror_r.m4: Revive this file -- to try out an experimental
89728         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
89729         for which strerror does return char*, but which lacks a conveniently
89730         accessible declaration of the function.  If the compile-test says
89731         strerror_r doesn't work, then resort to a `run'-test that works on
89732         BeOS and segfaults on DEC Unix.
89733
89734 2000-06-24  Jim Meyering  <meyering@lucent.com>
89735
89736         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
89737
89738 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89739
89740         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
89741         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
89742
89743 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89744
89745         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
89746         (mbrtowc, mbstate_t): Define substitutes if
89747         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
89748         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
89749         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
89750
89751 2000-06-23  Jim Meyering  <meyering@lucent.com>
89752
89753         * m4/afs.m4: Add missing AC_MSG_RESULT.
89754         Reported by Bruno Haible.
89755
89756         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
89757         Suggestion from Bruno Haible.
89758
89759 2000-06-23  Jim Meyering  <meyering@lucent.com>
89760
89761         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
89762
89763 2000-06-21  Jim Meyering  <meyering@lucent.com>
89764
89765         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
89766
89767 2000-06-21  Jim Meyering  <meyering@lucent.com>
89768
89769         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
89770         (noinst_HEADERS): Add getstr.h.
89771
89772         * lib/getline.c (getstr): Move into a separate file.
89773         * lib/getstr.c (getstr): New file, extracted from getline.c, with
89774         the following changes: new parameter, delim2; both delim[12]
89775         parameters have type `int', not `char'.  The latter would lose
89776         with 8-bit delimiters.
89777         * lib/getstr.h: New file.
89778
89779 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89780
89781         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
89782         than 1024, return a memory chunk of least possible size, instead
89783         of size PATH_MAX + 2. In the loop, increment the size proportionally.
89784         Use free/xmalloc instead of xrealloc to avoid copying for very long
89785         paths.
89786
89787 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89788
89789         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
89790         the empty string.
89791
89792 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89793
89794         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
89795         address, not strdup.  Include <stdlib.h> and don't declare free().
89796
89797 2000-06-19  Jim Meyering  <meyering@lucent.com>
89798
89799         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
89800
89801 2000-06-18  Jim Meyering  <meyering@lucent.com>
89802
89803         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
89804
89805         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
89806         `checking whether...' message to be consistent with that of the
89807         lstat test.
89808
89809 2000-06-18  Jim Meyering  <meyering@lucent.com>
89810
89811         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
89812         Besides, these days every porting target provides a mkdir function.
89813
89814         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
89815         needed. (this snippet comes from src/system.h).
89816
89817 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
89818
89819         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
89820
89821 2000-06-15  Paul Eggert  <eggert@twinsun.com>
89822
89823         * lib/human.c (adjust_value): New function.
89824         (human_readable_inexact): Apply rounding style even when
89825         printing approximate values.
89826
89827 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89828
89829         * lib/human.c (human_readable_inexact): Allow an input block
89830         size that is not a multiple of the output block size, and vice versa.
89831         Reported by Piergiorgio Sartor.
89832
89833 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89834
89835         * lib/getdate.y (get_date): Apply relative times after time
89836         zone indicator, not before.  Reported by Todd A. Jacobs.
89837
89838 2000-06-13  Jim Meyering  <meyering@lucent.com>
89839
89840         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
89841
89842         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
89843
89844 2000-06-12  Paul Eggert  <eggert@twinsun.com>
89845
89846         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
89847
89848 2000-06-12  Jim Meyering  <meyering@lucent.com>
89849
89850         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
89851         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
89852         optional argument.
89853         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
89854         the optional argument, `lib'.
89855
89856 2000-06-08  Jim Meyering  <meyering@lucent.com>
89857
89858         * m4/largefile.m4: Remove file (now that it's part of autoconf).
89859
89860 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89861
89862         Rewrite largefile configuration so that we don't need to run
89863         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
89864         AC_CANONICAL_HOST in configure.in -- jmm]
89865
89866         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
89867         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
89868         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
89869         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
89870         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
89871         All uses changed.
89872         Instead of inspecting the output of getconf, try to compile the
89873         test program without and with the macro definition.
89874         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
89875         for getconf.  Instead, check for the needed flags by compiling
89876         test programs.
89877
89878 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89879
89880         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
89881
89882 2000-06-04  Jim Meyering  <meyering@lucent.com>
89883
89884         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
89885         SunOS 4.1.4 for which gid_t is an unsigned type.
89886
89887 2000-06-03  Jim Meyering  <meyering@lucent.com>
89888
89889         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
89890         now that autoconf requires that.
89891
89892         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
89893         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
89894         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
89895
89896 2000-06-03  Jim Meyering  <meyering@lucent.com>
89897
89898         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
89899
89900 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89901
89902         * m4/glibc21.m4: New file.
89903         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
89904
89905 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89906
89907         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
89908         newer, don't install charset.alias.
89909         * lib/config.charset: Change the Linux/glibc rules so they become empty
89910         on glibc-2.1 or newer.
89911
89912 2000-06-02  Jim Meyering  <meyering@lucent.com>
89913
89914         * lib/mountlist.c: Back out last change.  Instead, do this...
89915         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
89916         me_dummy member using the same `ignore'-testing code.
89917         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
89918         fs_type strings.
89919         From Mark D. Roth.
89920
89921 2000-05-29  Jim Meyering  <meyering@lucent.com>
89922
89923         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
89924         mounts with the `ignore' attribute.  Based on a patch from
89925         Mark D. Roth.
89926
89927 2000-05-28  Jim Meyering  <meyering@lucent.com>
89928
89929         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
89930         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89931         * m4/stat.m4: Likewise.
89932         * m4/lstat.m4: Likewise.
89933         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
89934
89935         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
89936         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
89937
89938 2000-05-26  Jim Meyering  <meyering@lucent.com>
89939
89940         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
89941
89942 2000-05-24  Jim Meyering  <meyering@lucent.com>
89943
89944         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
89945         autoconf requires that.
89946         * m4/lib-check.m4: Likewise.
89947         * m4/jm-macros.m4: Likewise.
89948         * m4/strftime.m4: Likewise.
89949
89950         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
89951         AC_CHECK_DECLS, now that autoconf requires that.
89952
89953 2000-05-22  Jim Meyering  <meyering@lucent.com>
89954
89955         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89956         * m4/lstat.m4: Likewise.
89957
89958 2000-05-22  Jim Meyering  <meyering@lucent.com>
89959
89960         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
89961
89962 2000-05-20  Jim Meyering  <meyering@lucent.com>
89963
89964         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
89965         (jm_PREREQ): Use it.
89966
89967 2000-05-18  Jim Meyering  <meyering@lucent.com>
89968
89969         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
89970         back, too, since it may have been modified by allocate_entry.
89971         (hash_delete): Rewrite to use neither the assignment operator
89972         nor the comma operator in an if-expression.
89973
89974 2000-05-15  Paul Eggert  <eggert@twinsun.com>
89975
89976         * lib/closeout.c:
89977         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
89978         Remove; no longer needed.
89979         "quotearg.h": Add include.
89980         (file_name): Do not bother to explicitly initialize to NULL; it's less
89981         efficient on some hosts.
89982         (close_stdout_status): Remove test as to whether stdout was already
89983         closed; it breaks for the case "echo x | sort >&-".
89984         Quote file name colons.
89985         Do not assume that _("write error") lacks format strings.
89986
89987 2000-05-15  Jim Meyering  <meyering@lucent.com>
89988
89989         * lib/version-etc.c (version_etc_copyright): Update the copyright
89990         string used in all --version output.
89991
89992 2000-05-14  Jim Meyering  <meyering@lucent.com>
89993
89994         * lib/closeout.c (close_stdout_set_file_name): New function.
89995         (close_stdout_status): Use new file-scoped global.
89996         Return right away if fstat says the stdout file descriptor is invalid.
89997         * lib/closeout.h (close_stdout_set_file_name): Declare.
89998
89999 2000-05-10  Jim Meyering  <meyering@lucent.com>
90000
90001         * lib/closeout.c [default_exit_status]: New file-scoped variable.
90002         (close_stdout_set_status): New function.
90003         * lib/closeout.h (close_stdout_set_status): Declare.
90004
90005 2000-05-09  Jim Meyering  <meyering@lucent.com>
90006
90007         * m4/gettext.m4: Rename this...
90008         * m4/libintl.m4: ...to this.
90009
90010 2000-05-08  Jim Meyering  <meyering@lucent.com>
90011
90012         * lib/long-options.c: Don't include closeout.h.
90013         (parse_long_options): Don't call close_stdout for --version.
90014
90015 2000-05-06  Paul Eggert  <eggert@twinsun.com>
90016
90017         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
90018         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
90019         2.1.3 bug.  This avoids a clash when files like regex.c define
90020         _GNU_SOURCE.
90021
90022 2000-05-06  Jim Meyering  <meyering@lucent.com>
90023
90024         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
90025         (AC_REPLACE_FUNCS): Add strnlen.
90026
90027         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
90028         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
90029
90030         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
90031         AC_SEARCH_LIBS call for nanosleep.
90032         (LIB_NANOSLEEP): Set and AC_SUBST.
90033
90034 2000-05-06  Jim Meyering  <meyering@lucent.com>
90035
90036         * lib/strnlen.c: Undefine __strnlen and strnlen.
90037         [!weak_alias]: Define __strnlen to strnlen.
90038
90039         * lib/atexit.c: New file, from libiberty.
90040
90041 2000-05-06  Jim Meyering  <meyering@lucent.com>
90042
90043         * lib/closeout.c (close_stdout_status): Also check for errors on the
90044         stderr stream.
90045
90046 2000-05-05  Jim Meyering  <meyering@lucent.com>
90047
90048         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
90049         AC_SEARCH_LIBS call for clock_gettime.
90050         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
90051
90052         * m4/search-libs.m4: Update from autoconf.
90053
90054         su doesn't work on Solaris 2.6.
90055         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
90056         <shadow.h>.  Reported by Dragos Harabor.
90057
90058 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
90059
90060         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
90061         memcpy instead of xmalloc, xrealloc, path_concat.
90062         (locale_charset): Treat empty environment variables as absent.
90063         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
90064
90065 2000-05-04  Jim Meyering  <meyering@lucent.com>
90066
90067         * lib/getopt.c: Update from glibc.
90068         * lib/obstack.c: Likewise.
90069         * lib/obstack.h: Likewise.
90070         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
90071         file
90072
90073         * lib/regex.h: Likewise.
90074         * lib/strndup.c: Likewise.
90075         * lib/strnlen.c: New file, from glibc.
90076
90077 2000-05-03  Jim Meyering  <meyering@lucent.com>
90078
90079         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
90080
90081 2000-05-02  Paul Eggert  <eggert@twinsun.com>
90082
90083         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
90084         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
90085         compile-time test, rather than inspecting host and OS, to
90086         decide whether to define _LARGEFILE_SOURCE.
90087
90088 2000-05-01  Jim Meyering  <meyering@lucent.com>
90089
90090         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
90091
90092         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
90093         Based on a patch from Bruno Haible.
90094
90095 2000-05-01  Jim Meyering  <meyering@lucent.com>
90096
90097         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
90098
90099 2000-04-29  Jim Meyering  <meyering@lucent.com>
90100
90101         * lib/path-concat.c: Declare strdup only if it's not defined.
90102         * lib/canon-host.c: Likewise.
90103
90104 2000-04-28  Jim Meyering  <meyering@lucent.com>
90105
90106         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
90107         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
90108         is included first, then limits.h is included by locale.h by libintl.h.
90109         From John David Anglin.
90110
90111 2000-04-25  Jim Meyering  <meyering@lucent.com>
90112
90113         * lib/makepath.c (S_IRWXUGO): Define.
90114         (make_path): Always perform explicit chmod if MODE specifies any
90115         of the `special' permission bits.  Prompted by a bug report against
90116         install from Mate Wierdl and Joost van Baal.
90117
90118 2000-04-18  Jim Meyering  <meyering@lucent.com>
90119
90120         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
90121         (jm_PREREQ): Use it.
90122
90123 2000-04-18  Jim Meyering  <meyering@lucent.com>
90124
90125         * lib/README: New file.
90126
90127         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
90128         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
90129
90130 2000-04-17  Jim Meyering  <meyering@lucent.com>
90131
90132         Get it right :-)
90133         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
90134         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
90135         Suggestion from Akim Demaille.
90136
90137 2000-04-17  Jim Meyering  <meyering@lucent.com>
90138
90139         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
90140         the definition of it to rpl_strftime also defined-away the system's
90141         declaration.
90142
90143 2000-04-15  Jim Meyering  <meyering@lucent.com>
90144
90145         Use `C' to denote so-called `contiguous' files, the same way
90146         that tar does.
90147         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
90148         (ftypelet): Use S_ISCTG.
90149         From Michael Deutschmann.
90150
90151 2000-04-14  Jim Meyering  <meyering@lucent.com>
90152
90153         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
90154         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
90155         clobbered.
90156
90157 2000-04-14  Jim Meyering  <meyering@lucent.com>
90158
90159         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
90160
90161 2000-04-13  Jim Meyering  <meyering@lucent.com>
90162
90163         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
90164         AH_VERBATIM to insert required #ifndef into config.h.in.
90165         Suggestion from Akim Demaille.
90166
90167 2000-04-12  Jim Meyering  <meyering@lucent.com>
90168
90169         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
90170         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
90171         Christian Krackowizer.
90172
90173         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
90174         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
90175         (AC_SYS_LARGEFILE): Require.
90176         (AM_C_PROTOTYPES): Require.
90177
90178 2000-04-08  Jim Meyering  <meyering@lucent.com>
90179
90180         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
90181         names don't conflict.  Reported by Eli Zaretskii.
90182
90183 2000-04-07  Jim Meyering  <meyering@lucent.com>
90184
90185         * lib/putenv.c: Move inclusion of errno.h so it follows that of
90186         sys/types.h, to work around system header problems on AIX 3.2.5.
90187         From Bruno Haible.
90188
90189 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
90190
90191         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
90192         bug.  Deal with the different error behavior of Irix iconv.
90193
90194 2000-04-05  Paul Eggert  <eggert@twinsun.com>
90195
90196         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
90197         IRIX if the installer said otherwise.
90198
90199 2000-04-05  Jim Meyering  <meyering@lucent.com>
90200
90201         Portability tweaks required for ultrix4.3.
90202         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
90203         (jm_CHECK_DECLS): Add getutent to the list of functions.
90204         (_jm_DECL_HEADERS): Add utmpx.h.
90205         From John David Anglin.
90206
90207         * m4/strftime.m4: Back out the 2000-04-02 change.
90208         Instead of that change, simply undefine putenv in the test program.
90209
90210 2000-04-05  Jim Meyering  <meyering@lucent.com>
90211
90212         Portability tweaks required for ultrix4.3.
90213         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
90214         getutent.
90215         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
90216         * lib/canon-host.c: Declare strdup.
90217         * lib/path-concat.c: Likewise.
90218         From John David Anglin.
90219
90220 2000-04-04  Jim Meyering  <meyering@lucent.com>
90221
90222         Be more DOS 8.3-friendly.
90223         * lib/ref-add.sin: Renamed from ref-add.sed.in.
90224         * lib/ref-del.sin: Renamed from ref-del.sed.in.
90225         * lib/Makefile.am: Reflect renaming.
90226         Reported by Eli Zaretskii.
90227
90228         Use a temporary file name that won't clash with `charset.alias'
90229         in the DOS 8.3 name space.
90230         * lib/Makefile.am (charset_tmp): Define.
90231         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
90232         (uninstall-local): Likewise.
90233         Reported by Eli Zaretskii.
90234
90235 2000-04-03  Jim Meyering  <meyering@lucent.com>
90236
90237         * m4/gettext.m4: Fix typo in comment.
90238
90239         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
90240         textutils/configure.in).  Suggestion from Paul Eggert.
90241         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
90242
90243 2000-04-02  Paul Eggert  <eggert@twinsun.com>
90244
90245         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
90246         variable in the shell rather than using putenv, which isn't
90247         portable.  This avoids the configure-time inter-test dependency
90248         on the potentially-renamed putenv function.
90249
90250 2000-03-30  Paul Eggert  <eggert@twinsun.com>
90251
90252         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
90253         before checking struct stat.st_blksize, so that
90254         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
90255
90256 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90257
90258         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
90259         since strftime.c uses HAVE_STRFTIME to decide whether to use
90260         the underlying strftime.
90261
90262 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90263
90264         * lib/time/strftime.c (my_strftime): Make sure we call the system
90265         strftime, not ourselves, when invoking the underlying strftime.
90266
90267 2000-03-24  Jim Meyering  <meyering@lucent.com>
90268
90269         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
90270         (charset_alias): Define.
90271         (install-exec-local): Factor out common code.
90272         (uninstall-local): Split lines longer than 80.
90273         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
90274         (SUFFIXES): Define.
90275         (.sed.in.sed): New rule.  Don't redirect directly to $@.
90276         (CLEANFILES): Add ref-add.sed and ref-del.sed.
90277
90278 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
90279
90280         * lib/config.charset: Output a line containing "Packages using this
90281         file".
90282         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
90283         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
90284         ref-del.sed): New rules.
90285
90286 2000-03-17  Jim Meyering  <meyering@lucent.com>
90287
90288         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
90289         Otherwise, include <strings.h>
90290
90291 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
90292
90293         * lib/unicodeio.c (utf8_wctomb): New function.
90294         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
90295         format instead of in UCS-4 with platform dependent endianness.
90296
90297 2000-03-10  Jim Meyering  <meyering@lucent.com>
90298
90299         * m4/lib-check.m4: Look for getspnam in -lgen, too.
90300         From Marco Franzen.
90301
90302 2000-03-07  Paul Eggert  <eggert@twinsun.com>
90303
90304         * lib/savedir.c (savedir): Work even if directory size is
90305         negative; this can happen with some screwy NFS configurations.
90306
90307 2000-03-06  Jim Meyering  <meyering@lucent.com>
90308
90309         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
90310         if it's NULL (because we ran out of memory).  From Bruno Haible.
90311
90312 2000-03-05  Jim Meyering  <meyering@lucent.com>
90313
90314         * lib/localcharset.c ("path-concat.h"): Include.
90315         (get_charset_aliases): Use path_concat instead of ANSI string
90316         concatenation.
90317
90318         * lib/unicodeio.h (PARAMS): Define.
90319         Use it to guard prototype.
90320
90321 2000-03-04  Jim Meyering  <meyering@lucent.com>
90322
90323         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
90324         for lib/localcharset.c.
90325
90326 2000-03-04  Jim Meyering  <meyering@lucent.com>
90327
90328         * lib/Makefile.am (install-exec-local): Create $(libdir) before
90329         installing into it.
90330         (uninstall-local): Uncomment this rule so `make distcheck' works
90331         once again.
90332
90333         * lib/unicodeio.c (<errno.h>): Include it.
90334         (errno): Declare if not defined.
90335
90336         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
90337
90338         * lib/config.charset: New version, incorporating remarks from a linux
90339         i18n mailing list.  From Bruno Haible.
90340
90341 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
90342
90343         * m4/codeset.m4: New file.
90344         * m4/iconv.m4: New file.
90345         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
90346
90347 2000-03-03  Jim Meyering  <meyering@lucent.com>
90348
90349         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
90350
90351 2000-03-02  Jim Meyering  <meyering@lucent.com>
90352
90353         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
90354         the messages come out on separate lines.
90355
90356         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
90357         rather than jm_CHECK_DECLARATIONS.
90358         * m4/decl.m4: Remove now-unused file.
90359
90360         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
90361         geteuid.
90362
90363 2000-03-02  Jim Meyering  <meyering@lucent.com>
90364
90365         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
90366
90367 2000-03-01  Jim Meyering  <meyering@lucent.com>
90368
90369         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
90370         * lib/unicodeio.c: Likewise.
90371
90372 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
90373
90374         * lib/config.charset: New file.
90375         * lib/localcharset.c: New file.
90376         * lib/unicodeio.h, lib/unicodeio.c: New files.
90377         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
90378         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
90379         (noinst_HEADERS): Add unicodeio.h.
90380         (all-local, install-exec-local, charset.alias): New targets.
90381
90382 2000-02-28  Paul Eggert  <eggert@twinsun.com>
90383
90384         * lib/quotearg.c (ALERT_CHAR): New macro.
90385         (quotearg_buffer_restyled): Use it.
90386
90387 2000-02-27  Jim Meyering  <meyering@lucent.com>
90388
90389         * m4/check-decl.m4: Add getenv to the list.
90390
90391 2000-02-27  Jim Meyering  <meyering@lucent.com>
90392
90393         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
90394         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
90395
90396         * lib/backupfile.c: Guard inclusion of stdlib.h with
90397         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
90398         Declare malloc if needed.
90399
90400         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
90401         `#ifndef HAVE_DECL..'
90402         now that autoconf always defines the HAVE_DECL_ symbols.
90403         * lib/human.c: Likewise.
90404         * lib/same.c: Likewise.
90405         * lib/strtoumax.c: Likewise.
90406
90407         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
90408         declaration check was not run.
90409         * lib/hash.c: Likewise.
90410         * lib/human.c: Likewise.
90411         * lib/same.c: Likewise.
90412         * lib/strtoumax.c: Likewise.
90413
90414         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
90415         `.', then first look up the entire `.'-containing string as a login
90416         name.
90417
90418 2000-02-23  Jim Meyering  <meyering@lucent.com>
90419
90420         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
90421         in place of my hack.
90422
90423 2000-02-18  Paul Eggert  <eggert@twinsun.com>
90424
90425         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
90426         (textint): New typedef.
90427         (parser_control): Member year changed from int to textint.
90428         All uses changed.
90429         (YYSTYPE): Removed; replaced by %union with int and textint members.
90430         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
90431         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
90432         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
90433         (tSNUMBER, tUNUMBER): Now of type <textintval>.
90434         (date, number, to_year): Use width of number in digits, not its value,
90435         to determine whether it's a 2-digit year, or a 2-digit time.
90436         (yylex): Store number of digits of numeric tokens.
90437         Reported by John Kendall.
90438
90439         (parser_control): Changed from struct parser_control to typedef (for
90440         consistency).  All uses changed.
90441
90442         (tID): Removed; not used.
90443         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
90444
90445 2000-02-14  Paul Eggert  <eggert@twinsun.com>
90446
90447         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
90448         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
90449
90450 2000-02-12  Jim Meyering  <meyering@lucent.com>
90451
90452         * lib/userspec.c (ISDIGIT): Define it.
90453         (isdigit): Remove definition.
90454         (is_number): Use ISDIGIT, not isdigit.
90455         <libintl.h>: Include.
90456         (_ and N_): Define.
90457         (parse_user_spec): Mark translatable strings.
90458
90459 2000-02-10  Jim Meyering  <meyering@lucent.com>
90460
90461         With these changes, nanosleep.[ch] are finally enough like the other
90462         lib/* replacement files to compile on a few more losing systems.
90463
90464         * lib/nanosleep.h: Don't include config.h.
90465         Remove prototype from declaration of nanosleep.
90466         (PARAMS): Remove now-unneeded definition.
90467         * lib/nanosleep.c: #undef nanosleep.
90468         (rpl_nanosleep): Rename from nanosleep.
90469
90470 2000-02-10  Jim Meyering  <meyering@lucent.com>
90471
90472         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
90473         gnu_nanosleep to rpl_nanosleep.
90474
90475 2000-02-09  Jim Meyering  <meyering@lucent.com>
90476
90477         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
90478         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
90479
90480 2000-02-08  Akim Demaille  <akim@epita.fr>
90481
90482         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
90483         `[' and `]' and remove uses of `changequote'.
90484         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
90485         (AC_SYS_LARGEFILE): Likewise.
90486         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
90487         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
90488         of changequote.
90489         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
90490         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
90491         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
90492         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
90493
90494 2000-02-05  Jim Meyering  <meyering@lucent.com>
90495
90496         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
90497         Remove explicit use of AC_HEADER_TIME.  It is required by
90498         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
90499         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
90500         in autoconf whereby the expansion of the latter ended up preceding
90501         the expansion of its prerequisite, AC_HEADER_TIME.
90502         Reported by Volker Borchert.
90503
90504 2000-02-03  Jim Meyering  <meyering@lucent.com>
90505
90506         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
90507
90508 2000-02-03  Jim Meyering  <meyering@lucent.com>
90509
90510         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
90511         rather than with `#if HAVE_UTMPNAME'.
90512
90513 2000-02-02  Jim Meyering  <meyering@lucent.com>
90514
90515         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
90516         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
90517         Reported by Eli Zaretskii.
90518
90519 2000-02-01  Jim Meyering  <meyering@lucent.com>
90520
90521         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
90522
90523 2000-01-31  Jim Meyering  <meyering@lucent.com>
90524
90525         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
90526         functions.  Add the time.h and sys/time.h headers along with the
90527         AC_REQUIRE'ment of AC_HEADER_TIME.
90528
90529 2000-01-31  Jim Meyering  <meyering@lucent.com>
90530
90531         * lib/nanosleep.h (nanosleep): Guard declaration with
90532         `#if ! HAVE_DECL_NANOSLEEP'.
90533         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
90534         the declaration in that vendor's sys/timers.h.
90535         Reported by Christian Krackowizer.
90536
90537         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
90538         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
90539         (ISPRINT): Likewise.
90540         Reported by Tom Tromey.
90541
90542 2000-01-30  Jim Meyering  <meyering@lucent.com>
90543
90544         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
90545
90546         * m4/prereq.m4 (utmp_includes): Define.
90547         Check for ut_user and ut_name members in both struct utmpx
90548         and struct utmp.
90549
90550 2000-01-30  Jim Meyering  <meyering@lucent.com>
90551
90552         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
90553         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
90554         header files where only utmpx.ut_user is declared.
90555
90556         * lib/readutmp.h (UT_USER): Define.
90557
90558 2000-01-29  Jim Meyering  <meyering@lucent.com>
90559
90560         * m4/lib-check.m4: New file containing library-related checks from
90561         fileutils and sh-utils (textutils had none).
90562
90563 2000-01-28  Jim Meyering  <meyering@lucent.com>
90564
90565         * m4/perl.m4: Change format of warning message to look more like that
90566         from the missing script.  Suggestion from François Pinard.
90567
90568 2000-01-25  Jim Meyering  <meyering@lucent.com>
90569
90570         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
90571         well as time.h in the compile check.
90572         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
90573         Fix typo in cross-compiling case: s/yes/no/.
90574
90575 2000-01-23  Jim Meyering  <meyering@lucent.com>
90576
90577         * m4/jm-macros.m4: Move df-related tests here from
90578         fileutils/configure.in
90579
90580         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
90581         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
90582
90583         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
90584         s/space/ac_fsusage_space/.
90585         (jm_FILE_SYSTEM_USAGE): Take two parameters.
90586
90587         * m4/ftruncate.m4: New file (derived from part of
90588         fileutils/configure.in).
90589         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
90590         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
90591
90592         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
90593         AC_SUBST these here, rather than just in sh-util/configure.in, so
90594         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
90595         all the same.
90596         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
90597         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
90598         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
90599         (AC_SUBST(POW_LIBM)): Likewise.
90600         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
90601
90602 2000-01-23  Jim Meyering  <meyering@lucent.com>
90603
90604         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
90605         obstack.c.
90606
90607 2000-01-22  Jim Meyering  <meyering@lucent.com>
90608
90609         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
90610
90611         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
90612
90613         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
90614         configure.in
90615         (AC_CHECK_HEADERS): Likewise for sh-utils.
90616         (AC_CHECK_HEADERS): Likewise for textutils.
90617         Merge the three lists of headers.
90618
90619         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
90620         from fileutils' configure.in.
90621
90622         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
90623         code. Moved tests into their own function (_jm_DECL_HEADERS) in
90624         check-decl.m4.
90625
90626         * m4/check-decl.m4: Use #if rather than #ifdef.
90627         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
90628         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
90629         (_jm_DECL_HEADERS): Define new function.
90630         (jm_CHECK_DECLARATIONS): Require it.
90631
90632 2000-01-22  Jim Meyering  <meyering@lucent.com>
90633
90634         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
90635         [! HAVE_DECL_STRTOULL]: Declare strtoull.
90636         Required for some AIX systems.  Reported by Christian Krackowizer.
90637         [TESTING] (main): New function.
90638
90639         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
90640         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
90641         letters.
90642
90643         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
90644         iswprint.
90645
90646         * lib/strverscmp.c (ISDIGIT): Define.
90647         (strverscmp): Use ISDIGIT, not isdigit.
90648
90649 2000-01-19  Jim Meyering  <meyering@lucent.com>
90650
90651         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
90652         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
90653         defines `struct timespec' in <sys/time.h>
90654
90655         * m4/c-bs-a.m4: Remove uses of changequote altogether.
90656         Thanks to Akim for explaining.
90657
90658 2000-01-17  Paul Eggert  <eggert@twinsun.com>
90659
90660         * lib/nanosleep.c (nanosleep):
90661         Don't use SA_INTERRUPT to decide whether to call sigaction, as
90662         POSIX.1 doesn't require SA_INTERRUPT and some systems
90663         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
90664         it's been part of POSIX.1 since day 1 (in 1988).
90665
90666 2000-01-17  Jim Meyering  <meyering@lucent.com>
90667
90668         * lib/interlock: Remove unused file.  Reported by François Pinard.
90669
90670 2000-01-16  Paul Eggert  <eggert@twinsun.com>
90671
90672         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
90673         alert, backslash, formfeed, and vertical tab unnecessarily in
90674         shell quoting style.
90675
90676 2000-01-16  Jim Meyering  <meyering@lucent.com>
90677
90678         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
90679         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
90680         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
90681         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
90682
90683 2000-01-16  Jim Meyering  <meyering@lucent.com>
90684
90685         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
90686         because the latter didn't work.
90687
90688 2000-01-15  Jim Meyering  <meyering@lucent.com>
90689
90690         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
90691         (AC_REPLACE_FUNCS): Add memcpy and memset.
90692         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
90693         Add strpbrk.
90694         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
90695
90696 2000-01-12  Jim Meyering  <meyering@lucent.com>
90697
90698         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
90699         (jm_PREREQ): Use it.
90700         (jm_PREREQ_READUTMP): New macro.
90701         (jm_PREREQ): Use it.
90702
90703 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90704
90705         Quote multibyte characters correctly.
90706         * m4/c-bs-a.m4: New file.
90707         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
90708         (jm_PREREQ): Use it.
90709
90710 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90711
90712         * m4/uintmax_t.m4: Port to autoconf 2.13.
90713
90714 2000-01-08  Jim Meyering  <meyering@ascend.com>
90715
90716         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
90717         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
90718
90719 2000-01-04  Jim Meyering  <meyering@ascend.com>
90720
90721         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
90722         jm_STRUCT_DIRENT_D_TYPE.
90723         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
90724         jm_STRUCT_DIRENT_D_INO.
90725         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
90726         jm_STRUCT_UTIMBUF.
90727         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
90728         renamings.
90729         * m4/utime.m4: Likewise.
90730
90731         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
90732         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
90733
90734 2000-01-03  Paul Eggert  <eggert@twinsun.com>
90735
90736         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
90737         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
90738
90739 2000-01-02  Jim Meyering  <meyering@ascend.com>
90740
90741         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
90742         remember if this is necessary.
90743
90744 1999-12-26  Jim Meyering  <meyering@ascend.com>
90745
90746         * m4/jm-macros.m4: Use it here.
90747         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
90748
90749 1999-12-23  Jim Meyering  <meyering@ascend.com>
90750
90751         * m4/jm-macros.m4: Check for clock_gettime (moved from
90752         fileutils/configure.in)
90753         Check for gettimeofday.
90754
90755 1999-12-20  Jim Meyering  <meyering@ascend.com>
90756
90757         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
90758         autoconf-2.14a-1999-12-20.
90759
90760 1999-12-19  Jim Meyering  <meyering@ascend.com>
90761
90762         * m4/lstat-slash.m4: New file.
90763         * m4/jm-macros.m4: Use the new macro:
90764         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90765
90766 1999-12-07  Jim Meyering  <meyering@ascend.com>
90767
90768         * m4/perl.m4: Require that File::Compare be available, too.
90769         Too many systems seem to lack it.
90770
90771         * m4/strftime.m4: Add checks for most of the cpp macros tested in
90772         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
90773
90774 1999-11-18  Paul Eggert  <eggert@twinsun.com>
90775
90776         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
90777         problem with the QNX 4.25 shell, which doesn't propagate exit
90778         status of failed commands inside shell assignments.
90779
90780 1999-11-17  Jim Meyering  <meyering@ascend.com>
90781
90782         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
90783
90784 1999-11-07  Jim Meyering  <meyering@ascend.com>
90785
90786         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
90787
90788 1999-11-06  Jim Meyering  <meyering@ascend.com>
90789
90790         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
90791         * m4/jm-macros.m4 (jm_MACROS): Use it here.
90792
90793 1999-11-05  Jim Meyering  <meyering@ascend.com>
90794
90795         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
90796         configure.in of textutils, fileutils, and sh-utils into this one
90797         (shared between those packages) file.
90798         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
90799         AC_STRUCT_ST_BLKSIZE.
90800
90801 1999-11-03  Jim Meyering  <meyering@ascend.com>
90802
90803         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
90804         of AC_CHECK_TYPE checks includes unistd.h.
90805         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
90806         Suggestion from Akim Demaille.
90807
90808 1999-10-30  Jim Meyering  <meyering@ascend.com>
90809
90810         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
90811         m4-quoted string.
90812         * m4/ls-mntd-fs.m4: Likewise.
90813         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
90814         * m4/jm-winsz1.m4: Likewise.
90815
90816         * m4/const.m4: Remove file, since the fix made it into the experimental
90817         version of autoconf.
90818         * m4/mktime.m4: Likewise.
90819
90820         * m4/check-type.m4: Remove file, now that the latest version of
90821         AC_CHECK_TYPE takes a third arg to specify additional #includes.
90822
90823         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
90824         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
90825         AC_CHECK_TYPE.
90826
90827 1999-10-04  Jim Meyering  <meyering@ascend.com>
90828
90829         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
90830
90831 1999-09-22  Paul Eggert  <eggert@twinsun.com>
90832
90833         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
90834         2.95.1 bug with HP-UX 10.20.
90835
90836 1999-09-17  Jim Meyering  <meyering@ascend.com>
90837
90838         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
90839         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
90840         due to missing strdup (against sh-utils-2.0).
90841
90842 1999-08-29  Jim Meyering  <meyering@ascend.com>
90843
90844         * m4/jm-macros.m4: Require jm_BISON.
90845         * m4/bison.m4: New file.
90846
90847 1999-08-17  Paul Eggert  <eggert@twinsun.com>
90848
90849         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
90850         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
90851
90852 1999-08-05  Jim Meyering  <meyering@ascend.com>
90853
90854         * m4/getline.m4: Rename test file from conftestdata to conftest.data
90855         to avoid conflicts with `conftest' on 8+3 filesystems.
90856         Suggestion from Eli Zaretskii.
90857
90858 1999-08-04  Jim Meyering  <meyering@ascend.com>
90859
90860         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
90861         fileutils and sh-utils (textutils's getline test was inadequate).
90862         (AM_FUNC_GETLINE): Run this test.
90863         (AC_CHECK_FUNCS): Check for getdelim.
90864         Reported by Bob Proulx.
90865
90866 1999-08-02  Jim Meyering  <meyering@ascend.com>
90867
90868         * m4/jm-macros.m4: Add a comment.
90869
90870 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90871
90872         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
90873         <inttypes.h> defines strtoumax as a macro (and not as a
90874         function).
90875
90876 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90877
90878         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
90879         that we can shift, multiply and divide unsigned long long
90880         values; Ultrix cc can't do it.
90881
90882 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90883
90884         * m4/mktime.m4: New file, which is a preview of what should appear
90885         in the next public autoconf release.
90886
90887 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90888
90889         * m4/lfs.m4: Remove this file.
90890         * m4/largefile.m4: New file.  It contains the old contents of
90891         lfs.m4, except that all names with prefix AC_LFS have been
90892         changed to use the prefix AC_SYS_LARGEFILE instead, to be
90893         compatible with future autoconf versions.  Also, some minor m4
90894         quoting problems have been fixed.
90895
90896 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90897
90898         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
90899         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
90900         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
90901         and simplify the shell code.
90902
90903 1999-08-01  Jim Meyering  <meyering@ascend.com>
90904
90905         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
90906         m4.
90907
90908 1999-07-20  Jim Meyering  <meyering@ascend.com>
90909
90910         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
90911
90912 1999-07-15  Jim Meyering  <meyering@ascend.com>
90913
90914         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
90915
90916 1999-05-22  Jim Meyering  <meyering@ascend.com>
90917
90918         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
90919
90920 1999-05-20  Jim Meyering  <meyering@ascend.com>
90921
90922         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
90923         Add a colon after each `then' in case $4 is empty.
90924
90925 1999-05-16  Jim Meyering  <meyering@ascend.com>
90926
90927         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
90928
90929 1999-05-10  Jim Meyering  <meyering@ascend.com>
90930
90931         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
90932
90933         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
90934         AC_FUNC_MKTIME.
90935
90936 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
90937
90938         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
90939
90940 1999-05-04  Paul Eggert  <eggert@twinsun.com>
90941
90942         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
90943         not CPPFLAGS, so that linking works correctly in IRIX.
90944
90945 1999-04-30  Paul Eggert  <eggert@twinsun.com>
90946
90947         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
90948
90949 1999-04-20  Paul Eggert  <eggert@twinsun.com>
90950
90951         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
90952         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
90953         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
90954         jm_AC_TYPE_UNSIGNED_LONG_LONG.
90955         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
90956
90957         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
90958
90959 1999-04-20  Jim Meyering  <meyering@ascend.com>
90960
90961         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
90962         AC_REPLACE xstroull if necessary.  From Paul Eggert.
90963         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
90964
90965 1999-04-18  Jim Meyering  <meyering@ascend.com>
90966
90967         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
90968         * m4/jm-macros.m4: Use it.
90969
90970 1999-04-06  Jim Meyering  <meyering@ascend.com>
90971
90972         * m4/strftime.m4: Remove test for %f.
90973
90974 1999-03-29  Jim Meyering  <meyering@ascend.com>
90975
90976         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
90977         superset of the AC_TYPE_* checks in the textutils, fileutils,
90978         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
90979         AC_TYPE_PID_T.
90980
90981 1999-03-28  Jim Meyering  <meyering@ascend.com>
90982
90983         * m4/jm-macros.m4: Define GNU_PACKAGE here.
90984         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
90985         replaced e.g., in the *.sh files of the sh-utils.
90986
90987 1999-03-20  Jim Meyering  <meyering@ascend.com>
90988
90989         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
90990         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
90991         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
90992
90993 1999-03-19  Jim Meyering  <meyering@ascend.com>
90994
90995         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
90996
90997 1999-03-12  Jim Meyering  <meyering@ascend.com>
90998
90999         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
91000
91001 1999-03-07  Jim Meyering  <meyering@ascend.com>
91002
91003         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
91004         declared.
91005
91006 1999-02-17  Jim Meyering  <meyering@ascend.com>
91007
91008         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
91009         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
91010
91011 1999-02-07  Jim Meyering  <meyering@ascend.com>
91012
91013         * m4/group-member.m4: New file -- extracted from sh-utils'
91014         configure.in.
91015
91016         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
91017         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
91018
91019 1999-02-06  Jim Meyering  <meyering@ascend.com>
91020
91021         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
91022         * m4/fnmatch.m4: Likewise.
91023         * m4/getgroups.m4: Likewise.
91024         * m4/lstat.m4: Likewise.
91025         * m4/malloc.m4: Likewise.
91026         * m4/putenv.m4: Likewise.
91027         * m4/realloc.m4: Likewise.
91028         * m4/regex.m4: Likewise.
91029         * m4/stat.m4: Likewise.
91030         * m4/strftime.m4: Likewise.
91031         Suggestion from Alain Magloire.
91032
91033         * m4/chown.m4: Use `.$ac_objext', not `.o'.
91034         * m4/fnmatch.m4: Likewise.
91035         * m4/getgroups.m4: Likewise.
91036         * m4/getline.m4: Likewise.
91037         * m4/lstat.m4: Likewise.
91038         * m4/malloc.m4: Likewise.
91039         * m4/memcmp.m4: Likewise.
91040         * m4/putenv.m4: Likewise.
91041         * m4/realloc.m4: Likewise.
91042         * m4/regex.m4: Likewise.
91043         * m4/stat.m4: Likewise.
91044         * m4/strftime.m4: Likewise.
91045         Suggestion from Alain Magloire.
91046
91047         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
91048         an argument.
91049
91050         * m4/regex.m4: Add a run-time Test for proper operation of
91051         re_compile_pattern.
91052
91053 1999-01-31  Jim Meyering  <meyering@ascend.com>
91054
91055         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
91056
91057 1999-01-30  Jim Meyering  <meyering@ascend.com>
91058
91059         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
91060
91061         * m4/jm-mktime.m4: Make this a wrapper around the official
91062         AM_FUNC_MKTIME rather than my private copy, now that the official one
91063         is up to date.
91064         * m4/mktime.m4: Remove file.
91065
91066         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
91067         * m4/uptime.m4: Likewise.
91068         * m4/uintmax_t.m4: Likewise.
91069
91070 1999-01-28  Jim Meyering  <meyering@ascend.com>
91071
91072         * m4/jm-macros.m4: Use jm_AFS.
91073         * m4/afs.m4: New file (from fileutils' configure.in).
91074
91075         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
91076         * m4/chown.m4: Likewise.
91077         * m4/d-ino.m4: Likewise.
91078         * m4/d-type.m4: Likewise.
91079         * m4/fnmatch.m4: Likewise.
91080         * m4/getgroups.m4: Likewise.
91081         * m4/gettext.m4: Likewise.
91082         * m4/jm-mktime.m4: Likewise.
91083         * m4/jm-winsz2.m4: Likewise.
91084         * m4/lcmessage.m4: Likewise.
91085         * m4/ls-mntd-fs.m4: Likewise.
91086         * m4/malloc.m4: Likewise.
91087         * m4/memcmp.m4: Likewise.
91088         * m4/putenv.m4: Likewise.
91089         * m4/realloc.m4: Likewise.
91090         * m4/st_mtim.m4: Likewise.
91091         * m4/strftime.m4: Likewise.
91092
91093 1999-01-16  Jim Meyering  <meyering@ascend.com>
91094
91095         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
91096         (ARGMATCH_DIE_DECL): Define.
91097
91098 1999-01-12  Jim Meyering  <meyering@ascend.com>
91099
91100         * m4/Makefile.am.in: Rewrite to avoid using fmt.
91101         Reported by Lars Hecking.
91102
91103 1999-01-10  Jim Meyering  <meyering@ascend.com>
91104
91105         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
91106         gross kludge.
91107         * m4/inttypes_h.m4: Likewise.
91108         * m4/lstat.m4: Likewise.
91109         * m4/malloc.m4: Likewise.
91110         * m4/readdir.m4: Likewise.
91111         * m4/realloc.m4: Likewise.
91112         * m4/st_dm_mode.m4: Likewise.
91113         * m4/stat.m4: Likewise.
91114         * m4/utimbuf.m4: Likewise.
91115         * m4/utimes.m4: Likewise.
91116
91117         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
91118         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
91119         comments in config.h.in are meaningful.
91120
91121         * m4/jm-macros.m4: Require autoconf-2.13 here.
91122
91123         * m4/regex.m4: By default, don't use the included regex.c on systems
91124         with glibc 2.  Suggestion from Uli Drepper.
91125
91126 1999-01-02  Jim Meyering  <meyering@ascend.com>
91127
91128         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
91129
91130 1998-12-18  Jim Meyering  <meyering@ascend.com>
91131
91132         * m4/Makefile.am.in (Makefile.am): Simplify rule.
91133         Based on a suggestion from Lars Hecking.
91134
91135 1998-11-16  Paul Eggert  <eggert@twinsun.com>
91136
91137         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
91138
91139 1998-11-16  Jim Meyering  <meyering@ascend.com>
91140
91141         * m4/lfs.m4: Double-quote the `uname...` expression.
91142
91143 1998-11-14  Jim Meyering  <meyering@ascend.com>
91144
91145         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
91146         * m4/stat.m4: Likewise.
91147
91148 1998-11-03  Jim Meyering  <meyering@ascend.com>
91149
91150         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
91151         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
91152
91153 1998-10-18  Jim Meyering  <meyering@ascend.com>
91154
91155         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
91156
91157 1998-10-17  Jim Meyering  <meyering@ascend.com>
91158
91159         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
91160         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
91161         calls for those previously hard-coded headers.  Instead, take a new
91162         parameter.
91163         (jm_CHECK_DECLARATIONS): Reflect interface change.
91164         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
91165         (jm_CHECK_DECL_LOCALTIME_R): New macro.
91166
91167         * m4/mktime.m4: Test for spring-forward gap before long-running test.
91168
91169 1998-10-14  Jim Meyering  <meyering@ascend.com>
91170
91171         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
91172         instead of "TZ=America/Vancouver".  From Paul Eggert.
91173
91174 1998-10-11  Jim Meyering  <meyering@ascend.com>
91175
91176         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
91177         This adds a test for a recently added compatibility fix for mktime.c.
91178         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
91179
91180 1998-09-27  Jim Meyering  <meyering@ascend.com>
91181
91182         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
91183
91184         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
91185         ../configure.in, including a change from Gordon Matzigkeit to allow
91186         cross-compiling for the Hurd.
91187
91188         * m4/glibc.m4: New file/macro to test for the GNU C Library
91189         versions 1 and 2.  From Gordon Matzigkeit.
91190         Indent.
91191
91192 1998-09-21  Jim Meyering  <meyering@ascend.com>
91193
91194         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
91195
91196 1998-08-18  Paul Eggert  <eggert@twinsun.com>
91197
91198         Port nanosecond-resolution times to UnixWare 2.1.2 and
91199         pedantic Solaris 2.6.
91200
91201         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
91202         AC_STRUCT_ST_MTIM.
91203         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
91204         Generate name of ns member, instead of just 1 or undef.
91205         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
91206
91207 1998-08-15  Jim Meyering  <meyering@ascend.com>
91208
91209         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
91210         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
91211         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
91212         instead of jm_TYPE_SSIZE_T.
91213
91214 1998-08-12  Jim Meyering  <meyering@ascend.com>
91215
91216         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
91217
91218 1998-08-02  Jim Meyering  <meyering@ascend.com>
91219
91220         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
91221         in acconfig.h manually.
91222
91223 1998-07-31  Paul Eggert  <eggert@twinsun.com>
91224
91225         * m4/st_mtim.m4: New file.
91226
91227 1998-07-28  Jim Meyering  <meyering@ascend.com>
91228
91229         * m4/utimes.m4: Undef stat.
91230
91231 1998-07-25  Jim Meyering  <meyering@ascend.com>
91232
91233         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
91234         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
91235
91236 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
91237
91238         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
91239         uid and gid actually remain unchanged.
91240
91241 1998-07-07  Jim Meyering  <meyering@ascend.com>
91242
91243         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
91244
91245 1998-07-04  Jim Meyering  <meyering@ascend.com>
91246
91247         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
91248         to prove that this macro can be used in packages without regex.c.
91249
91250 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
91251
91252         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
91253         is to be used.
91254
91255 1998-07-03  Jim Meyering  <meyering@ascend.com>
91256
91257         * m4/gettext.m4: Add -lintl if it's found to be necessary.
91258
91259         * m4/gettext.m4: New file -- from gettext-0.10.35.
91260         * m4/lcmessage.m4: Likewise.
91261         * m4/progtest.m4: Likewise.
91262
91263         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
91264         * m4/jm-macros.m4: Require the new macro.
91265
91266 1998-06-29  Jim Meyering  <meyering@ascend.com>
91267
91268         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
91269         for the definition of NGROUPS (used in a system header included
91270         by sys/mount.h).
91271
91272 1998-06-28  Jim Meyering  <meyering@ascend.com>
91273
91274         * m4/ls-mntd-fs.m4: New file.
91275         * m4/fstypename.m4: New file.
91276
91277         * m4/jm-macros.m4: Require the new macro.
91278         * m4/jm-glibc-io.m4: New file.
91279
91280 1998-05-19  Jim Meyering  <meyering@ascend.com>
91281
91282         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
91283         * m4/lchown.m4: New file.
91284
91285         * m4/Makefile.am.in: New file.
91286         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
91287
91288 1998-05-14  Jim Meyering  <meyering@ascend.com>
91289
91290         * m4/Makefile.am (EXTRA_DIST): Add them.
91291         * m4/jm-macros.m4: New file.
91292         * m4/utimbuf.m4: New file.
91293
91294 1998-05-12  Jim Meyering  <meyering@ascend.com>
91295
91296         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
91297
91298 1998-05-11  Jim Meyering  <meyering@ascend.com>
91299
91300         * m4/isc-posix.m4: New file.
91301
91302 1998-05-10  Jim Meyering  <meyering@ascend.com>
91303
91304         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
91305
91306 1998-05-09  Jim Meyering  <meyering@ascend.com>
91307
91308         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
91309         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
91310         with automake.
91311
91312         * m4/ssize_t.m4: New file.
91313         * m4/mktime.m4: Remove file -- the new automake has this now.
91314
91315 1998-04-26  Jim Meyering  <meyering@ascend.com>
91316
91317         * m4/assert.m4: New file.
91318         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
91319
91320 1998-04-05  Jim Meyering  <meyering@ascend.com>
91321
91322         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
91323         (jm_PREREQ): Use it here.
91324
91325 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
91326
91327         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
91328         in acconfig.h.
91329
91330 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
91331
91332         * m4/prereq.m4: New file.
91333         * m4/error.m4: New file.
91334         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
91335
91336 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
91337
91338         * m4/getline.m4: Don't set am_cv_func_working_getline before the
91339         cache-check for the same variable -- that defeated the purpose of
91340         the test; the test program was never run.  This was a problem only
91341         on systems with losing getline functions -- HP-UX 10.20 is one.
91342         Reported by Bjorn Helgaas.
91343
91344 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
91345
91346         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
91347
91348 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
91349
91350         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
91351
91352         * m4/const.m4: New file.  Use an initializer in this declaration
91353         typedef int charset[2]; const charset x;
91354         Reported by Bob Glickstein.
91355
91356 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
91357
91358         * m4/chown.m4: Fix reversed types on -1 args to chown.
91359         From Kaveh Ghazi.
91360
91361 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
91362
91363         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
91364         Add lseek and memchr.
91365
91366         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
91367         T.E.Dickey <dickey@clark.net> said that some older preprocessors
91368         have a 20-character limit on names.
91369
91370 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
91371
91372         * m4/inttypes_h.m4: New file.
91373         * m4/uintmax_t.m4: New file.
91374         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
91375
91376
91377         -----
91378
91379         Local Variables:
91380         coding: utf-8
91381         End:
91382
91383         Copyright (C) 1997-2012 Free Software Foundation, Inc.
91384
91385         Copying and distribution of this file, with or without
91386         modification, are permitted provided the copyright notice
91387         and this notice are preserved.